|
24 | 24 | }; |
25 | 25 |
|
26 | 26 | soc { |
27 | | - |
28 | | - flash_controller: flash-controller@4001e000 { |
29 | | - compatible = "nordic,nrf51-flash-controller"; |
30 | | - reg = <0x4001e000 0x1000>; |
31 | | - |
32 | | - #address-cells = <1>; |
33 | | - #size-cells = <1>; |
34 | | - |
35 | | - label="NRF_FLASH_DRV_NAME"; |
36 | | - |
37 | | - flash0: flash@0 { |
38 | | - compatible = "soc-nv-flash"; |
39 | | - label = "NRF_FLASH"; |
40 | | - erase-block-size = <1024>; |
41 | | - write-block-size = <4>; |
42 | | - }; |
43 | | - }; |
44 | | - |
45 | 27 | sram0: memory@20000000 { |
46 | 28 | compatible = "mmio-sram"; |
47 | 29 | }; |
48 | 30 |
|
49 | | - adc: adc@40007000 { |
50 | | - compatible = "nordic,nrf-adc"; |
51 | | - reg = <0x40007000 0x1000>; |
52 | | - interrupts = <7 NRF_DEFAULT_IRQ_PRIORITY>; |
53 | | - status = "disabled"; |
54 | | - label = "ADC_0"; |
55 | | - #io-channel-cells = <1>; |
56 | | - }; |
57 | | - |
58 | 31 | clock: clock@40000000 { |
59 | 32 | compatible = "nordic,nrf-clock"; |
60 | 33 | reg = <0x40000000 0x1000>; |
|
63 | 36 | label = "CLOCK"; |
64 | 37 | }; |
65 | 38 |
|
66 | | - ecb: ecb@4000e000 { |
67 | | - compatible = "nordic,nrf-ecb"; |
68 | | - reg = <0x4000e000 0x1000>; |
69 | | - interrupts = <14 NRF_DEFAULT_IRQ_PRIORITY>; |
70 | | - status = "okay"; |
71 | | - label = "ECB"; |
72 | | - }; |
73 | | - |
74 | 39 | uart0: uart@40002000 { |
75 | 40 | compatible = "nordic,nrf-uart"; |
76 | 41 | reg = <0x40002000 0x1000>; |
|
79 | 44 | label = "UART_0"; |
80 | 45 | }; |
81 | 46 |
|
82 | | - gpiote: gpiote@40006000 { |
83 | | - compatible = "nordic,nrf-gpiote"; |
84 | | - reg = <0x40006000 0x1000>; |
85 | | - interrupts = <6 NRF_DEFAULT_IRQ_PRIORITY>; |
86 | | - status = "disabled"; |
87 | | - label = "GPIOTE_0"; |
88 | | - }; |
89 | | - |
90 | | - gpio0: gpio@50000000 { |
91 | | - compatible = "nordic,nrf-gpio"; |
92 | | - gpio-controller; |
93 | | - reg = <0x50000000 0x1000>; |
94 | | - #gpio-cells = <2>; |
95 | | - label = "GPIO_0"; |
96 | | - status = "disabled"; |
97 | | - port = <0>; |
98 | | - }; |
99 | | - |
100 | | - i2c0: i2c@40003000 { |
101 | | - compatible = "nordic,nrf-twi"; |
| 47 | + spi0: spi@40003000 { |
| 48 | + compatible = "nordic,nrf-spi"; |
102 | 49 | #address-cells = <1>; |
103 | 50 | #size-cells = <0>; |
104 | 51 | reg = <0x40003000 0x1000>; |
105 | | - clock-frequency = <I2C_BITRATE_STANDARD>; |
106 | 52 | interrupts = <3 NRF_DEFAULT_IRQ_PRIORITY>; |
107 | 53 | status = "disabled"; |
108 | | - label = "I2C_0"; |
| 54 | + label = "SPI_0"; |
109 | 55 | }; |
110 | 56 |
|
111 | | - i2c1: i2c@40004000 { |
| 57 | + i2c0: i2c@40003000 { |
112 | 58 | compatible = "nordic,nrf-twi"; |
113 | 59 | #address-cells = <1>; |
114 | 60 | #size-cells = <0>; |
115 | | - reg = <0x40004000 0x1000>; |
116 | | - clock-frequency = <I2C_BITRATE_STANDARD>; |
117 | | - interrupts = <4 NRF_DEFAULT_IRQ_PRIORITY>; |
118 | | - status = "disabled"; |
119 | | - label = "I2C_1"; |
120 | | - }; |
121 | | - |
122 | | - qdec: qdec@40012000 { |
123 | | - compatible = "nordic,nrf-qdec"; |
124 | | - reg = <0x40012000 0x1000>; |
125 | | - interrupts = <18 NRF_DEFAULT_IRQ_PRIORITY>; |
126 | | - status = "disabled"; |
127 | | - label = "QDEC"; |
128 | | - }; |
129 | | - |
130 | | - rng: random@4000d000 { |
131 | | - compatible = "nordic,nrf-rng"; |
132 | | - reg = <0x4000d000 0x1000>; |
133 | | - interrupts = <13 NRF_DEFAULT_IRQ_PRIORITY>; |
134 | | - status = "okay"; |
135 | | - label = "RNG"; |
136 | | - }; |
137 | | - |
138 | | - spi0: spi@40003000 { |
139 | | - compatible = "nordic,nrf-spi"; |
140 | | - #address-cells = <1>; |
141 | | - #size-cells = <0>; |
142 | 61 | reg = <0x40003000 0x1000>; |
| 62 | + clock-frequency = <I2C_BITRATE_STANDARD>; |
143 | 63 | interrupts = <3 NRF_DEFAULT_IRQ_PRIORITY>; |
144 | 64 | status = "disabled"; |
145 | | - label = "SPI_0"; |
| 65 | + label = "I2C_0"; |
146 | 66 | }; |
147 | 67 |
|
148 | 68 | spi1: spi@40004000 { |
|
160 | 80 | label = "SPI_1"; |
161 | 81 | }; |
162 | 82 |
|
163 | | - rtc0: rtc@4000b000 { |
164 | | - compatible = "nordic,nrf-rtc"; |
165 | | - reg = <0x4000b000 0x1000>; |
166 | | - cc-num = <3>; |
167 | | - interrupts = <11 NRF_DEFAULT_IRQ_PRIORITY>; |
168 | | - status = "okay"; |
169 | | - clock-frequency = <32768>; |
170 | | - prescaler = <1>; |
171 | | - label = "RTC_0"; |
| 83 | + i2c1: i2c@40004000 { |
| 84 | + compatible = "nordic,nrf-twi"; |
| 85 | + #address-cells = <1>; |
| 86 | + #size-cells = <0>; |
| 87 | + reg = <0x40004000 0x1000>; |
| 88 | + clock-frequency = <I2C_BITRATE_STANDARD>; |
| 89 | + interrupts = <4 NRF_DEFAULT_IRQ_PRIORITY>; |
| 90 | + status = "disabled"; |
| 91 | + label = "I2C_1"; |
172 | 92 | }; |
173 | 93 |
|
174 | | - rtc1: rtc@40011000 { |
175 | | - compatible = "nordic,nrf-rtc"; |
176 | | - reg = <0x40011000 0x1000>; |
177 | | - cc-num = <4>; |
178 | | - interrupts = <17 NRF_DEFAULT_IRQ_PRIORITY>; |
179 | | - status = "okay"; |
180 | | - clock-frequency = <32768>; |
181 | | - prescaler = <1>; |
182 | | - label = "RTC_1"; |
| 94 | + gpiote: gpiote@40006000 { |
| 95 | + compatible = "nordic,nrf-gpiote"; |
| 96 | + reg = <0x40006000 0x1000>; |
| 97 | + interrupts = <6 NRF_DEFAULT_IRQ_PRIORITY>; |
| 98 | + status = "disabled"; |
| 99 | + label = "GPIOTE_0"; |
| 100 | + }; |
| 101 | + |
| 102 | + adc: adc@40007000 { |
| 103 | + compatible = "nordic,nrf-adc"; |
| 104 | + reg = <0x40007000 0x1000>; |
| 105 | + interrupts = <7 NRF_DEFAULT_IRQ_PRIORITY>; |
| 106 | + status = "disabled"; |
| 107 | + label = "ADC_0"; |
| 108 | + #io-channel-cells = <1>; |
183 | 109 | }; |
184 | 110 |
|
185 | 111 | timer0: timer@40008000 { |
|
212 | 138 | label = "TIMER_2"; |
213 | 139 | }; |
214 | 140 |
|
| 141 | + rtc0: rtc@4000b000 { |
| 142 | + compatible = "nordic,nrf-rtc"; |
| 143 | + reg = <0x4000b000 0x1000>; |
| 144 | + cc-num = <3>; |
| 145 | + interrupts = <11 NRF_DEFAULT_IRQ_PRIORITY>; |
| 146 | + status = "okay"; |
| 147 | + clock-frequency = <32768>; |
| 148 | + prescaler = <1>; |
| 149 | + label = "RTC_0"; |
| 150 | + }; |
| 151 | + |
215 | 152 | temp: temp@4000c000 { |
216 | 153 | compatible = "nordic,nrf-temp"; |
217 | 154 | reg = <0x4000c000 0x1000>; |
|
220 | 157 | label = "TEMP_0"; |
221 | 158 | }; |
222 | 159 |
|
| 160 | + rng: random@4000d000 { |
| 161 | + compatible = "nordic,nrf-rng"; |
| 162 | + reg = <0x4000d000 0x1000>; |
| 163 | + interrupts = <13 NRF_DEFAULT_IRQ_PRIORITY>; |
| 164 | + status = "okay"; |
| 165 | + label = "RNG"; |
| 166 | + }; |
| 167 | + |
| 168 | + ecb: ecb@4000e000 { |
| 169 | + compatible = "nordic,nrf-ecb"; |
| 170 | + reg = <0x4000e000 0x1000>; |
| 171 | + interrupts = <14 NRF_DEFAULT_IRQ_PRIORITY>; |
| 172 | + status = "okay"; |
| 173 | + label = "ECB"; |
| 174 | + }; |
| 175 | + |
223 | 176 | wdt: wdt0: watchdog@40010000 { |
224 | 177 | compatible = "nordic,nrf-watchdog"; |
225 | 178 | reg = <0x40010000 0x1000>; |
226 | 179 | interrupts = <16 NRF_DEFAULT_IRQ_PRIORITY>; |
227 | 180 | status = "okay"; |
228 | 181 | label = "WDT"; |
229 | 182 | }; |
| 183 | + |
| 184 | + rtc1: rtc@40011000 { |
| 185 | + compatible = "nordic,nrf-rtc"; |
| 186 | + reg = <0x40011000 0x1000>; |
| 187 | + cc-num = <4>; |
| 188 | + interrupts = <17 NRF_DEFAULT_IRQ_PRIORITY>; |
| 189 | + status = "okay"; |
| 190 | + clock-frequency = <32768>; |
| 191 | + prescaler = <1>; |
| 192 | + label = "RTC_1"; |
| 193 | + }; |
| 194 | + |
| 195 | + qdec: qdec@40012000 { |
| 196 | + compatible = "nordic,nrf-qdec"; |
| 197 | + reg = <0x40012000 0x1000>; |
| 198 | + interrupts = <18 NRF_DEFAULT_IRQ_PRIORITY>; |
| 199 | + status = "disabled"; |
| 200 | + label = "QDEC"; |
| 201 | + }; |
| 202 | + |
| 203 | + flash_controller: flash-controller@4001e000 { |
| 204 | + compatible = "nordic,nrf51-flash-controller"; |
| 205 | + reg = <0x4001e000 0x1000>; |
| 206 | + |
| 207 | + #address-cells = <1>; |
| 208 | + #size-cells = <1>; |
| 209 | + |
| 210 | + label="NRF_FLASH_DRV_NAME"; |
| 211 | + |
| 212 | + flash0: flash@0 { |
| 213 | + compatible = "soc-nv-flash"; |
| 214 | + label = "NRF_FLASH"; |
| 215 | + erase-block-size = <1024>; |
| 216 | + write-block-size = <4>; |
| 217 | + }; |
| 218 | + }; |
| 219 | + |
| 220 | + gpio0: gpio@50000000 { |
| 221 | + compatible = "nordic,nrf-gpio"; |
| 222 | + gpio-controller; |
| 223 | + reg = <0x50000000 0x1000>; |
| 224 | + #gpio-cells = <2>; |
| 225 | + label = "GPIO_0"; |
| 226 | + status = "disabled"; |
| 227 | + port = <0>; |
| 228 | + }; |
230 | 229 | }; |
231 | 230 |
|
232 | 231 | sw_pwm: sw-pwm { |
|
0 commit comments