Skip to content

Commit db06260

Browse files
committed
devicetree: format files in boards/we
Applying dts-linter results for format files in boards/we Signed-off-by: Kyle Micallef Bonnici <[email protected]>
1 parent 0cc214a commit db06260

13 files changed

+115
-117
lines changed

boards/we/oceanus1ev/we_oceanus1ev.dts

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
#include <zephyr/dt-bindings/input/input-event-codes.h>
1010

1111
/ {
12-
model = "Oceanus-I EV";
1312
compatible = "we,oceanus1ev";
13+
model = "Oceanus-I EV";
1414

1515
chosen {
16+
zephyr,code-partition = &slot0_partition;
1617
zephyr,console = &lpuart1;
17-
zephyr,sram = &sram0;
1818
zephyr,flash = &flash0;
19-
zephyr,code-partition = &slot0_partition;
19+
zephyr,sram = &sram0;
2020
};
2121

2222
leds {
@@ -37,17 +37,17 @@
3737
compatible = "gpio-keys";
3838

3939
wake_up_button: button_0 {
40-
label = "/WAKE_UP";
4140
gpios = <&gpioa 0 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
41+
label = "/WAKE_UP";
4242
zephyr,code = <INPUT_KEY_0>;
4343
};
4444
};
4545

4646
aliases {
4747
led0 = &yellow_led;
4848
led1 = &blue_led;
49-
sw0 = &wake_up_button;
5049
lora0 = &lora;
50+
sw0 = &wake_up_button;
5151
watchdog0 = &iwdg;
5252
};
5353
};
@@ -63,11 +63,11 @@ stm32_lp_tick_source: &lptim1 {
6363
};
6464

6565
&pll {
66+
clocks = <&clk_hsi>;
6667
div-m = <1>;
67-
mul-n = <6>;
68-
div-r = <2>;
6968
div-q = <2>;
70-
clocks = <&clk_hsi>;
69+
div-r = <2>;
70+
mul-n = <6>;
7171
status = "okay";
7272
};
7373

@@ -76,39 +76,39 @@ stm32_lp_tick_source: &lptim1 {
7676
};
7777

7878
&rcc {
79-
clocks = <&pll>;
80-
clock-frequency = <DT_FREQ_M(48)>;
81-
cpu1-prescaler = <1>;
8279
ahb3-prescaler = <1>;
8380
apb1-prescaler = <1>;
8481
apb2-prescaler = <1>;
82+
clock-frequency = <DT_FREQ_M(48)>;
83+
clocks = <&pll>;
84+
cpu1-prescaler = <1>;
8585
};
8686

8787
&lpuart1 {
88+
current-speed = <9600>;
8889
pinctrl-0 = <&lpuart1_tx_pa2 &lpuart1_rx_pa3>;
8990
pinctrl-names = "default";
90-
current-speed = <9600>;
9191
status = "okay";
9292
};
9393

9494
&usart1 {
95+
current-speed = <115200>;
9596
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
9697
pinctrl-names = "default";
97-
current-speed = <115200>;
9898
status = "okay";
9999
};
100100

101101
&i2c1 {
102+
clock-frequency = <I2C_BITRATE_FAST>;
102103
pinctrl-0 = <&i2c1_scl_pb8 &i2c1_sda_pb7>;
103104
pinctrl-names = "default";
104105
status = "okay";
105-
clock-frequency = <I2C_BITRATE_FAST>;
106106
};
107107

108108
&spi1 {
109+
cs-gpios = <&gpioa 15 GPIO_ACTIVE_LOW>;
109110
pinctrl-0 = <&spi1_sck_pb3 &spi1_miso_pb4 &spi1_mosi_pb5>;
110111
pinctrl-names = "default";
111-
cs-gpios = <&gpioa 15 GPIO_ACTIVE_LOW>;
112112
status = "okay";
113113
};
114114

@@ -125,24 +125,24 @@ stm32_lp_tick_source: &lptim1 {
125125
#size-cells = <1>;
126126

127127
boot_partition: partition@0 {
128-
label = "mcuboot";
129128
reg = <0x00000000 DT_SIZE_K(32)>;
129+
label = "mcuboot";
130130
read-only;
131131
};
132132

133133
slot0_partition: partition@8000 {
134-
label = "image-0";
135134
reg = <0x00008000 DT_SIZE_K(108)>;
135+
label = "image-0";
136136
};
137137

138138
slot1_partition: partition@23000 {
139-
label = "image-1";
140139
reg = <0x00023000 DT_SIZE_K(108)>;
140+
label = "image-1";
141141
};
142142

143143
storage_partition: partition@3e000 {
144-
label = "storage";
145144
reg = <0x0003e000 DT_SIZE_K(8)>;
145+
label = "storage";
146146
};
147147
};
148148
};

boards/we/ophelia1ev/we_ophelia1ev_nrf52805-pinctrl.dtsi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
i2c0_sleep: i2c0_sleep {
1010
group1 {
11+
low-power-enable;
1112
psels = <NRF_PSEL(TWIM_SDA, 0, 16)>,
1213
<NRF_PSEL(TWIM_SCL, 0, 18)>;
13-
low-power-enable;
1414
};
1515
};
1616

@@ -24,10 +24,10 @@
2424

2525
spi0_sleep: spi0_sleep {
2626
group1 {
27+
low-power-enable;
2728
psels = <NRF_PSEL(SPIM_SCK, 0, 14)>,
2829
<NRF_PSEL(SPIM_MOSI, 0, 16)>,
2930
<NRF_PSEL(SPIM_MISO, 0, 18)>;
30-
low-power-enable;
3131
};
3232
};
3333

@@ -38,19 +38,19 @@
3838
};
3939

4040
group2 {
41+
bias-pull-up;
4142
psels = <NRF_PSEL(UART_RX, 0, 18)>,
4243
<NRF_PSEL(UART_CTS, 0, 14)>;
43-
bias-pull-up;
4444
};
4545
};
4646

4747
uart0_sleep: uart0_sleep {
4848
group1 {
49+
low-power-enable;
4950
psels = <NRF_PSEL(UART_TX, 0, 16)>,
5051
<NRF_PSEL(UART_RX, 0, 18)>,
5152
<NRF_PSEL(UART_RTS, 0, 4)>,
5253
<NRF_PSEL(UART_CTS, 0, 14)>;
53-
low-power-enable;
5454
};
5555
};
5656
};

boards/we/ophelia1ev/we_ophelia1ev_nrf52805.dts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@
1010
#include <zephyr/dt-bindings/input/input-event-codes.h>
1111

1212
/ {
13-
model = "we_ophelia1ev_nrf52805";
1413
compatible = "we,we-ophelia1ev-nrf52805";
14+
model = "we_ophelia1ev_nrf52805";
1515

1616
chosen {
17+
zephyr,bt-c2h-uart = &uart0;
18+
zephyr,bt-mon-uart = &uart0;
19+
zephyr,code-partition = &slot0_partition;
1720
zephyr,console = &uart0;
21+
zephyr,flash = &flash0;
1822
zephyr,shell-uart = &uart0;
19-
zephyr,uart-mcumgr = &uart0;
20-
zephyr,bt-mon-uart = &uart0;
21-
zephyr,bt-c2h-uart = &uart0;
2223
zephyr,sram = &sram0;
23-
zephyr,flash = &flash0;
24-
zephyr,code-partition = &slot0_partition;
24+
zephyr,uart-mcumgr = &uart0;
2525
};
2626

2727
leds {
@@ -42,8 +42,8 @@
4242
compatible = "gpio-keys";
4343

4444
button0: button_0 {
45-
label = "Example button";
4645
gpios = <&gpio0 20 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
46+
label = "Example button";
4747
zephyr,code = <INPUT_KEY_0>;
4848
};
4949
};
@@ -52,9 +52,9 @@
5252
aliases {
5353
led0 = &led0;
5454
led1 = &led1;
55-
sw0 = &button0;
5655
mcuboot-button0 = &button0;
5756
mcuboot-led0 = &led0;
57+
sw0 = &button0;
5858
watchdog0 = &wdt0;
5959
};
6060
};
@@ -81,27 +81,27 @@
8181

8282
&i2c0 {
8383
compatible = "nordic,nrf-twi";
84-
status = "okay";
8584
pinctrl-0 = <&i2c0_default>;
8685
pinctrl-1 = <&i2c0_sleep>;
8786
pinctrl-names = "default", "sleep";
87+
status = "okay";
8888
};
8989

9090
&spi0 {
9191
compatible = "nordic,nrf-spi";
92-
status = "okay";
9392
pinctrl-0 = <&spi0_default>;
9493
pinctrl-1 = <&spi0_sleep>;
9594
pinctrl-names = "default", "sleep";
95+
status = "okay";
9696
};
9797

9898
&uart0 {
9999
compatible = "nordic,nrf-uarte";
100-
status = "okay";
101100
current-speed = <115200>;
102101
pinctrl-0 = <&uart0_default>;
103102
pinctrl-1 = <&uart0_sleep>;
104103
pinctrl-names = "default", "sleep";
104+
status = "okay";
105105
};
106106

107107
&flash0 {
@@ -111,28 +111,28 @@
111111
#size-cells = <1>;
112112

113113
boot_partition: partition@0 {
114-
label = "mcuboot";
115114
reg = <0x00000000 0xc000>;
115+
label = "mcuboot";
116116
};
117117

118118
slot0_partition: partition@c000 {
119-
label = "image-0";
120119
reg = <0x0000C000 0xd000>;
120+
label = "image-0";
121121
};
122122

123123
slot1_partition: partition@19000 {
124-
label = "image-1";
125124
reg = <0x00019000 0xd000>;
125+
label = "image-1";
126126
};
127127

128128
scratch_partition: partition@26000 {
129-
label = "image-scratch";
130129
reg = <0x00026000 0x3000>;
130+
label = "image-scratch";
131131
};
132132

133133
storage_partition: partition@29000 {
134-
label = "storage";
135134
reg = <0x00029000 0x00007000>;
135+
label = "storage";
136136
};
137137
};
138138
};

boards/we/ophelia4ev/ophelia4ev_common.dtsi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@
102102
};
103103

104104
&pwm20 {
105-
status = "okay";
106105
pinctrl-0 = <&pwm20_default>;
107106
pinctrl-1 = <&pwm20_sleep>;
108107
pinctrl-names = "default", "sleep";
108+
status = "okay";
109109
};
110110

111111
/* Get a node label for wi-fi spi to use in shield files */

boards/we/ophelia4ev/ophelia4ev_nrf54l15-pinctrl.dtsi

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,19 @@
1111
};
1212

1313
group2 {
14+
bias-pull-up;
1415
psels = <NRF_PSEL(UART_RX, 1, 15)>,
1516
<NRF_PSEL(UART_CTS, 1, 7)>;
16-
bias-pull-up;
1717
};
1818
};
1919

2020
/omit-if-no-ref/ uart20_sleep: uart20_sleep {
2121
group1 {
22+
low-power-enable;
2223
psels = <NRF_PSEL(UART_TX, 1, 4)>,
2324
<NRF_PSEL(UART_RX, 1, 15)>,
2425
<NRF_PSEL(UART_RTS, 1, 6)>,
2526
<NRF_PSEL(UART_CTS, 1, 7)>;
26-
low-power-enable;
2727
};
2828
};
2929

@@ -34,19 +34,19 @@
3434
};
3535

3636
group2 {
37+
bias-pull-up;
3738
psels = <NRF_PSEL(UART_RX, 2, 7)>,
3839
<NRF_PSEL(UART_CTS, 2, 9)>;
39-
bias-pull-up;
4040
};
4141
};
4242

4343
/omit-if-no-ref/ uart30_sleep: uart30_sleep {
4444
group1 {
45+
low-power-enable;
4546
psels = <NRF_PSEL(UART_TX, 2, 8)>,
4647
<NRF_PSEL(UART_RX, 2, 7)>,
4748
<NRF_PSEL(UART_RTS, 2, 10)>,
4849
<NRF_PSEL(UART_CTS, 2, 9)>;
49-
low-power-enable;
5050
};
5151
};
5252

@@ -60,10 +60,10 @@
6060

6161
/omit-if-no-ref/ spi00_sleep: spi00_sleep {
6262
group1 {
63+
low-power-enable;
6364
psels = <NRF_PSEL(SPIM_SCK, 2, 1)>,
6465
<NRF_PSEL(SPIM_MOSI, 2, 2)>,
6566
<NRF_PSEL(SPIM_MISO, 2, 4)>;
66-
low-power-enable;
6767
};
6868
};
6969

@@ -75,8 +75,8 @@
7575

7676
/omit-if-no-ref/ pwm20_sleep: pwm20_sleep {
7777
group1 {
78-
psels = <NRF_PSEL(PWM_OUT0, 1, 10)>;
7978
low-power-enable;
79+
psels = <NRF_PSEL(PWM_OUT0, 1, 10)>;
8080
};
8181
};
8282

@@ -89,9 +89,9 @@
8989

9090
/omit-if-no-ref/ grtc_sleep: grtc_sleep {
9191
group1 {
92+
low-power-enable;
9293
psels = <NRF_PSEL(GRTC_CLKOUT_FAST, 1, 8)>,
9394
<NRF_PSEL(GRTC_CLKOUT_32K, 0, 4)>;
94-
low-power-enable;
9595
};
9696
};
9797
};

0 commit comments

Comments
 (0)