Skip to content

Commit 461eb05

Browse files
mbolivar-nordiccfriedt
authored andcommitted
dts: nrf51822: sort /soc nodes
Sort by unit address. Signed-off-by: Martí Bolívar <[email protected]>
1 parent 7f36f90 commit 461eb05

File tree

1 file changed

+103
-104
lines changed

1 file changed

+103
-104
lines changed

dts/arm/nordic/nrf51822.dtsi

Lines changed: 103 additions & 104 deletions
Original file line numberDiff line numberDiff line change
@@ -24,37 +24,10 @@
2424
};
2525

2626
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-
4527
sram0: memory@20000000 {
4628
compatible = "mmio-sram";
4729
};
4830

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-
5831
clock: clock@40000000 {
5932
compatible = "nordic,nrf-clock";
6033
reg = <0x40000000 0x1000>;
@@ -63,14 +36,6 @@
6336
label = "CLOCK";
6437
};
6538

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-
7439
uart0: uart@40002000 {
7540
compatible = "nordic,nrf-uart";
7641
reg = <0x40002000 0x1000>;
@@ -79,70 +44,25 @@
7944
label = "UART_0";
8045
};
8146

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";
10249
#address-cells = <1>;
10350
#size-cells = <0>;
10451
reg = <0x40003000 0x1000>;
105-
clock-frequency = <I2C_BITRATE_STANDARD>;
10652
interrupts = <3 NRF_DEFAULT_IRQ_PRIORITY>;
10753
status = "disabled";
108-
label = "I2C_0";
54+
label = "SPI_0";
10955
};
11056

111-
i2c1: i2c@40004000 {
57+
i2c0: i2c@40003000 {
11258
compatible = "nordic,nrf-twi";
11359
#address-cells = <1>;
11460
#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>;
14261
reg = <0x40003000 0x1000>;
62+
clock-frequency = <I2C_BITRATE_STANDARD>;
14363
interrupts = <3 NRF_DEFAULT_IRQ_PRIORITY>;
14464
status = "disabled";
145-
label = "SPI_0";
65+
label = "I2C_0";
14666
};
14767

14868
spi1: spi@40004000 {
@@ -160,26 +80,32 @@
16080
label = "SPI_1";
16181
};
16282

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";
17292
};
17393

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>;
183109
};
184110

185111
timer0: timer@40008000 {
@@ -212,6 +138,17 @@
212138
label = "TIMER_2";
213139
};
214140

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+
215152
temp: temp@4000c000 {
216153
compatible = "nordic,nrf-temp";
217154
reg = <0x4000c000 0x1000>;
@@ -220,13 +157,75 @@
220157
label = "TEMP_0";
221158
};
222159

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+
223176
wdt: wdt0: watchdog@40010000 {
224177
compatible = "nordic,nrf-watchdog";
225178
reg = <0x40010000 0x1000>;
226179
interrupts = <16 NRF_DEFAULT_IRQ_PRIORITY>;
227180
status = "okay";
228181
label = "WDT";
229182
};
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+
};
230229
};
231230

232231
sw_pwm: sw-pwm {

0 commit comments

Comments
 (0)