Jean-Christophe PLAGNIOL-VILLARD | 23fa648 | 2012-02-27 11:19:34 +0100 | [diff] [blame] | 1 | Atmel AT91 device tree bindings. |
| 2 | ================================ |
| 3 | |
Alexandre Belloni | 02037a9 | 2014-09-15 18:15:59 +0200 | [diff] [blame] | 4 | Boards with a SoC of the Atmel AT91 or SMART family shall have the following |
| 5 | properties: |
| 6 | |
| 7 | Required root node properties: |
| 8 | compatible: must be one of: |
| 9 | * "atmel,at91rm9200" |
| 10 | |
| 11 | * "atmel,at91sam9" for SoCs using an ARM926EJ-S core, shall be extended with |
| 12 | the specific SoC family or compatible: |
| 13 | o "atmel,at91sam9260" |
| 14 | o "atmel,at91sam9261" |
| 15 | o "atmel,at91sam9263" |
| 16 | o "atmel,at91sam9x5" for the 5 series, shall be extended with the specific |
| 17 | SoC compatible: |
| 18 | - "atmel,at91sam9g15" |
| 19 | - "atmel,at91sam9g25" |
| 20 | - "atmel,at91sam9g35" |
| 21 | - "atmel,at91sam9x25" |
| 22 | - "atmel,at91sam9x35" |
| 23 | o "atmel,at91sam9g20" |
| 24 | o "atmel,at91sam9g45" |
| 25 | o "atmel,at91sam9n12" |
| 26 | o "atmel,at91sam9rl" |
Alexandre Belloni | 1d376df | 2015-01-13 19:12:25 +0100 | [diff] [blame] | 27 | o "atmel,at91sam9xe" |
Alexandre Belloni | 02037a9 | 2014-09-15 18:15:59 +0200 | [diff] [blame] | 28 | * "atmel,sama5" for SoCs using a Cortex-A5, shall be extended with the specific |
| 29 | SoC family: |
| 30 | o "atmel,sama5d3" shall be extended with the specific SoC compatible: |
| 31 | - "atmel,sama5d31" |
| 32 | - "atmel,sama5d33" |
| 33 | - "atmel,sama5d34" |
| 34 | - "atmel,sama5d35" |
| 35 | - "atmel,sama5d36" |
| 36 | o "atmel,sama5d4" shall be extended with the specific SoC compatible: |
| 37 | - "atmel,sama5d41" |
| 38 | - "atmel,sama5d42" |
| 39 | - "atmel,sama5d43" |
| 40 | - "atmel,sama5d44" |
| 41 | |
Jean-Christophe PLAGNIOL-VILLARD | 23fa648 | 2012-02-27 11:19:34 +0100 | [diff] [blame] | 42 | PIT Timer required properties: |
| 43 | - compatible: Should be "atmel,at91sam9260-pit" |
| 44 | - reg: Should contain registers location and length |
| 45 | - interrupts: Should contain interrupt for the PIT which is the IRQ line |
| 46 | shared across all System Controller members. |
Nicolas Ferre | 3a61a5d | 2012-01-19 10:13:40 +0100 | [diff] [blame] | 47 | |
Joachim Eastwood | 454c46d | 2012-10-28 18:31:07 +0000 | [diff] [blame] | 48 | System Timer (ST) required properties: |
Alexandre Belloni | b595809 | 2015-03-12 13:07:25 +0100 | [diff] [blame] | 49 | - compatible: Should be "atmel,at91rm9200-st", "syscon", "simple-mfd" |
Joachim Eastwood | 454c46d | 2012-10-28 18:31:07 +0000 | [diff] [blame] | 50 | - reg: Should contain registers location and length |
| 51 | - interrupts: Should contain interrupt for the ST which is the IRQ line |
| 52 | shared across all System Controller members. |
Alexandre Belloni | b595809 | 2015-03-12 13:07:25 +0100 | [diff] [blame] | 53 | Its subnodes can be: |
| 54 | - watchdog: compatible should be "atmel,at91rm9200-wdt" |
Joachim Eastwood | 454c46d | 2012-10-28 18:31:07 +0000 | [diff] [blame] | 55 | |
Nicolas Ferre | 3a61a5d | 2012-01-19 10:13:40 +0100 | [diff] [blame] | 56 | TC/TCLIB Timer required properties: |
Josh Wu | 11930c5 | 2012-09-14 17:01:29 +0800 | [diff] [blame] | 57 | - compatible: Should be "atmel,<chip>-tcb". |
Nicolas Ferre | 3a61a5d | 2012-01-19 10:13:40 +0100 | [diff] [blame] | 58 | <chip> can be "at91rm9200" or "at91sam9x5" |
| 59 | - reg: Should contain registers location and length |
| 60 | - interrupts: Should contain all interrupts for the TC block |
| 61 | Note that you can specify several interrupt cells if the TC |
| 62 | block has one interrupt per channel. |
Boris BREZILLON | 864382d | 2013-12-17 16:47:14 +0100 | [diff] [blame] | 63 | - clock-names: tuple listing input clock names. |
| 64 | Required elements: "t0_clk" |
| 65 | Optional elements: "t1_clk", "t2_clk" |
| 66 | - clocks: phandles to input clocks. |
Nicolas Ferre | 3a61a5d | 2012-01-19 10:13:40 +0100 | [diff] [blame] | 67 | |
| 68 | Examples: |
| 69 | |
| 70 | One interrupt per TC block: |
| 71 | tcb0: timer@fff7c000 { |
| 72 | compatible = "atmel,at91rm9200-tcb"; |
| 73 | reg = <0xfff7c000 0x100>; |
| 74 | interrupts = <18 4>; |
Boris BREZILLON | 864382d | 2013-12-17 16:47:14 +0100 | [diff] [blame] | 75 | clocks = <&tcb0_clk>; |
| 76 | clock-names = "t0_clk"; |
Nicolas Ferre | 3a61a5d | 2012-01-19 10:13:40 +0100 | [diff] [blame] | 77 | }; |
| 78 | |
| 79 | One interrupt per TC channel in a TC block: |
| 80 | tcb1: timer@fffdc000 { |
| 81 | compatible = "atmel,at91rm9200-tcb"; |
| 82 | reg = <0xfffdc000 0x100>; |
| 83 | interrupts = <26 4 27 4 28 4>; |
Boris BREZILLON | 864382d | 2013-12-17 16:47:14 +0100 | [diff] [blame] | 84 | clocks = <&tcb1_clk>; |
| 85 | clock-names = "t0_clk"; |
Nicolas Ferre | 3a61a5d | 2012-01-19 10:13:40 +0100 | [diff] [blame] | 86 | }; |
Jean-Christophe PLAGNIOL-VILLARD | c8082d3 | 2012-03-03 03:16:27 +0800 | [diff] [blame] | 87 | |
| 88 | RSTC Reset Controller required properties: |
| 89 | - compatible: Should be "atmel,<chip>-rstc". |
| 90 | <chip> can be "at91sam9260" or "at91sam9g45" |
| 91 | - reg: Should contain registers location and length |
| 92 | |
| 93 | Example: |
| 94 | |
| 95 | rstc@fffffd00 { |
| 96 | compatible = "atmel,at91sam9260-rstc"; |
| 97 | reg = <0xfffffd00 0x10>; |
| 98 | }; |
Jean-Christophe PLAGNIOL-VILLARD | a7776ec | 2012-03-02 20:54:37 +0800 | [diff] [blame] | 99 | |
| 100 | RAMC SDRAM/DDR Controller required properties: |
Alexandre Belloni | 0506b29 | 2015-03-16 21:04:06 +0100 | [diff] [blame] | 101 | - compatible: Should be "atmel,at91rm9200-sdramc", "syscon" |
Nicolas Ferre | 20b4e4f | 2013-11-15 11:03:23 +0100 | [diff] [blame] | 102 | "atmel,at91sam9260-sdramc", |
Jean-Christophe PLAGNIOL-VILLARD | a7776ec | 2012-03-02 20:54:37 +0800 | [diff] [blame] | 103 | "atmel,at91sam9g45-ddramc", |
Alexandre Belloni | 017b552 | 2014-07-08 18:21:11 +0200 | [diff] [blame] | 104 | "atmel,sama5d3-ddramc", |
Jean-Christophe PLAGNIOL-VILLARD | a7776ec | 2012-03-02 20:54:37 +0800 | [diff] [blame] | 105 | - reg: Should contain registers location and length |
Jean-Christophe PLAGNIOL-VILLARD | a7776ec | 2012-03-02 20:54:37 +0800 | [diff] [blame] | 106 | |
| 107 | Examples: |
| 108 | |
| 109 | ramc0: ramc@ffffe800 { |
| 110 | compatible = "atmel,at91sam9g45-ddramc"; |
| 111 | reg = <0xffffe800 0x200>; |
| 112 | }; |
| 113 | |
Jean-Christophe PLAGNIOL-VILLARD | 82015c4 | 2012-03-02 21:01:00 +0800 | [diff] [blame] | 114 | SHDWC Shutdown Controller |
| 115 | |
| 116 | required properties: |
| 117 | - compatible: Should be "atmel,<chip>-shdwc". |
| 118 | <chip> can be "at91sam9260", "at91sam9rl" or "at91sam9x5". |
| 119 | - reg: Should contain registers location and length |
| 120 | |
| 121 | optional properties: |
| 122 | - atmel,wakeup-mode: String, operation mode of the wakeup mode. |
| 123 | Supported values are: "none", "high", "low", "any". |
| 124 | - atmel,wakeup-counter: Counter on Wake-up 0 (between 0x0 and 0xf). |
| 125 | |
| 126 | optional at91sam9260 properties: |
| 127 | - atmel,wakeup-rtt-timer: boolean to enable Real-time Timer Wake-up. |
| 128 | |
| 129 | optional at91sam9rl properties: |
| 130 | - atmel,wakeup-rtc-timer: boolean to enable Real-time Clock Wake-up. |
| 131 | - atmel,wakeup-rtt-timer: boolean to enable Real-time Timer Wake-up. |
| 132 | |
| 133 | optional at91sam9x5 properties: |
| 134 | - atmel,wakeup-rtc-timer: boolean to enable Real-time Clock Wake-up. |
| 135 | |
| 136 | Example: |
| 137 | |
| 138 | rstc@fffffd00 { |
| 139 | compatible = "atmel,at91sam9260-rstc"; |
| 140 | reg = <0xfffffd00 0x10>; |
| 141 | }; |
Alexandre Belloni | cb282f7 | 2014-12-18 10:45:50 +0100 | [diff] [blame] | 142 | |
| 143 | Special Function Registers (SFR) |
| 144 | |
| 145 | Special Function Registers (SFR) manage specific aspects of the integrated |
| 146 | memory, bridge implementations, processor and other functionality not controlled |
| 147 | elsewhere. |
| 148 | |
| 149 | required properties: |
| 150 | - compatible: Should be "atmel,<chip>-sfr", "syscon". |
| 151 | <chip> can be "sama5d3" or "sama5d4". |
| 152 | - reg: Should contain registers location and length |
| 153 | |
| 154 | sfr@f0038000 { |
| 155 | compatible = "atmel,sama5d3-sfr", "syscon"; |
| 156 | reg = <0xf0038000 0x60>; |
| 157 | }; |