Skip to content

Commit 82602f8

Browse files
committed
devicetree: format files in boards/wiznet
Applying dts-linter results for format files in boards/wiznet Signed-off-by: Kyle Micallef Bonnici <[email protected]>
1 parent 032ebbd commit 82602f8

File tree

4 files changed

+39
-39
lines changed

4 files changed

+39
-39
lines changed

boards/wiznet/w5500_evb_pico/w5500_evb_pico-pinctrl.dtsi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@
1212
};
1313

1414
group2 {
15-
pinmux = <UART0_RX_P1>;
1615
input-enable;
16+
pinmux = <UART0_RX_P1>;
1717
};
1818
};
1919

2020
i2c0_default: i2c0_default {
2121
group1 {
22-
pinmux = <I2C0_SDA_P4>, <I2C0_SCL_P5>;
2322
input-enable;
2423
input-schmitt-enable;
24+
pinmux = <I2C0_SDA_P4>, <I2C0_SCL_P5>;
2525
};
2626
};
2727

2828
i2c1_default: i2c1_default {
2929
group1 {
30-
pinmux = <I2C1_SDA_P6>, <I2C1_SCL_P7>;
3130
input-enable;
3231
input-schmitt-enable;
32+
pinmux = <I2C1_SDA_P6>, <I2C1_SCL_P7>;
3333
};
3434
};
3535

@@ -39,8 +39,8 @@
3939
};
4040

4141
group2 {
42-
pinmux = <SPI0_RX_P16>;
4342
input-enable;
43+
pinmux = <SPI0_RX_P16>;
4444
};
4545
};
4646

@@ -52,8 +52,8 @@
5252

5353
adc_default: adc_default {
5454
group1 {
55-
pinmux = <ADC_CH0_P26>, <ADC_CH1_P27>, <ADC_CH2_P28>, <ADC_CH3_P29>;
5655
input-enable;
56+
pinmux = <ADC_CH0_P26>, <ADC_CH1_P27>, <ADC_CH2_P28>, <ADC_CH3_P29>;
5757
};
5858
};
5959
};

boards/wiznet/w5500_evb_pico/w5500_evb_pico.dts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,17 @@
1717

1818
/ {
1919
chosen {
20-
zephyr,sram = &sram0;
20+
zephyr,code-partition = &code_partition;
21+
zephyr,console = &uart0;
2122
zephyr,flash = &flash0;
2223
zephyr,flash-controller = &ssi;
23-
zephyr,console = &uart0;
2424
zephyr,shell-uart = &uart0;
25-
zephyr,code-partition = &code_partition;
25+
zephyr,sram = &sram0;
2626
};
2727

2828
pico_header: connector {
2929
compatible = "raspberrypi,pico-header";
3030
#gpio-cells = <2>;
31-
gpio-map-mask = <0xffffffff 0xffffffc0>;
32-
gpio-map-pass-thru = <0 0x3f>;
3331
gpio-map = <0 0 &gpio0 0 0>, /* GP0 */
3432
<1 0 &gpio0 1 0>, /* GP1 */
3533
<2 0 &gpio0 2 0>, /* GP2 */
@@ -56,6 +54,8 @@
5654
<26 0 &gpio0 26 0>, /* GP26 */
5755
<27 0 &gpio0 27 0>, /* GP27 */
5856
<28 0 &gpio0 28 0>; /* GP28 */
57+
gpio-map-mask = <0xffffffff 0xffffffc0>;
58+
gpio-map-pass-thru = <0 0x3f>;
5959
};
6060

6161
leds {
@@ -72,8 +72,8 @@
7272
status = "disabled";
7373

7474
pwm_led0: pwm_led_0 {
75-
pwms = <&pwm 9 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
7675
label = "PWM_LED";
76+
pwms = <&pwm 9 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
7777
};
7878
};
7979

@@ -97,8 +97,8 @@
9797

9898
/* Reserved memory for the second stage bootloader */
9999
second_stage_bootloader: partition@0 {
100-
label = "second_stage_bootloader";
101100
reg = <0x00000000 0x100>;
101+
label = "second_stage_bootloader";
102102
read-only;
103103
};
104104

@@ -107,18 +107,18 @@
107107
* size is 16MB minus the 0x100 bytes taken by the bootloader.
108108
*/
109109
code_partition: partition@100 {
110-
label = "code-partition";
111110
reg = <0x100 (DT_SIZE_M(16) - 0x100)>;
111+
label = "code-partition";
112112
read-only;
113113
};
114114
};
115115
};
116116

117117
&uart0 {
118118
current-speed = <115200>;
119-
status = "okay";
120119
pinctrl-0 = <&uart0_default>;
121120
pinctrl-names = "default";
121+
status = "okay";
122122
};
123123

124124
&gpio0 {
@@ -127,32 +127,32 @@
127127

128128
&i2c0 {
129129
clock-frequency = <I2C_BITRATE_STANDARD>;
130-
status = "okay";
131130
pinctrl-0 = <&i2c0_default>;
132131
pinctrl-names = "default";
132+
status = "okay";
133133
};
134134

135135
&i2c1 {
136+
clock-frequency = <I2C_BITRATE_FAST>;
136137
pinctrl-0 = <&i2c1_default>;
137138
pinctrl-names = "default";
138139
status = "disabled";
139-
clock-frequency = <I2C_BITRATE_FAST>;
140140
};
141141

142142
&spi0 {
143143
clock-frequency = <DT_FREQ_M(8)>;
144-
status = "okay";
144+
cs-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
145145
pinctrl-0 = <&spi0_default>;
146146
pinctrl-names = "default";
147-
cs-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
147+
status = "okay";
148148

149149
ethernet: w5500@0 {
150150
compatible = "wiznet,w5500";
151151
reg = <0x0>;
152-
spi-max-frequency = <50000000>;
153152
int-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
154-
reset-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
155153
local-mac-address = [00 00 00 01 02 03];
154+
reset-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
155+
spi-max-frequency = <50000000>;
156156
status = "okay";
157157
};
158158
};
@@ -166,24 +166,24 @@
166166
};
167167

168168
&adc {
169-
status = "okay";
170169
pinctrl-0 = <&adc_default>;
171170
pinctrl-names = "default";
171+
status = "okay";
172172
};
173173

174174
zephyr_udc0: &usbd {
175175
status = "okay";
176176
};
177177

178178
&pwm {
179+
divider-int-0 = <255>;
179180
pinctrl-0 = <&pwm_ch4b_default>;
180181
pinctrl-names = "default";
181-
divider-int-0 = <255>;
182182
};
183183

184184
&vreg {
185-
regulator-always-on;
186185
regulator-allowed-modes = <REGULATOR_RPI_PICO_MODE_NORMAL>;
186+
regulator-always-on;
187187
};
188188

189189
pico_spi: &spi0 {};

boards/wiznet/w5500_evb_pico2/w5500_evb_pico2-pinctrl.dtsi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@
1212
};
1313

1414
group2 {
15-
pinmux = <UART0_RX_P1>;
1615
input-enable;
16+
pinmux = <UART0_RX_P1>;
1717
};
1818
};
1919

2020
i2c0_default: i2c0_default {
2121
group1 {
22-
pinmux = <I2C0_SDA_P4>, <I2C0_SCL_P5>;
2322
input-enable;
2423
input-schmitt-enable;
24+
pinmux = <I2C0_SDA_P4>, <I2C0_SCL_P5>;
2525
};
2626
};
2727

2828
i2c1_default: i2c1_default {
2929
group1 {
30-
pinmux = <I2C1_SDA_P6>, <I2C1_SCL_P7>;
3130
input-enable;
3231
input-schmitt-enable;
32+
pinmux = <I2C1_SDA_P6>, <I2C1_SCL_P7>;
3333
};
3434
};
3535

@@ -39,8 +39,8 @@
3939
};
4040

4141
group2 {
42-
pinmux = <SPI0_RX_P16>;
4342
input-enable;
43+
pinmux = <SPI0_RX_P16>;
4444
};
4545
};
4646

@@ -52,8 +52,8 @@
5252

5353
adc_default: adc_default {
5454
group1 {
55-
pinmux = <ADC_CH0_P26>, <ADC_CH1_P27>, <ADC_CH2_P28>, <ADC_CH3_P29>;
5655
input-enable;
56+
pinmux = <ADC_CH0_P26>, <ADC_CH1_P27>, <ADC_CH2_P28>, <ADC_CH3_P29>;
5757
};
5858
};
5959
};

boards/wiznet/w5500_evb_pico2/w5500_evb_pico2.dtsi

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,15 @@
1414

1515
/ {
1616
chosen {
17-
zephyr,sram = &sram0;
18-
zephyr,flash = &flash0;
1917
zephyr,console = &uart0;
18+
zephyr,flash = &flash0;
2019
zephyr,shell-uart = &uart0;
20+
zephyr,sram = &sram0;
2121
};
2222

2323
pico_header: connector {
2424
compatible = "raspberrypi,pico-header";
2525
#gpio-cells = <2>;
26-
gpio-map-mask = <0xffffffff 0xffffffc0>;
27-
gpio-map-pass-thru = <0 0x3f>;
2826
gpio-map = <0 0 &gpio0 0 0>, /* GP0 */
2927
<1 0 &gpio0 1 0>, /* GP1 */
3028
<2 0 &gpio0 2 0>, /* GP2 */
@@ -51,6 +49,8 @@
5149
<26 0 &gpio0 26 0>, /* GP26 */
5250
<27 0 &gpio0 27 0>, /* GP27 */
5351
<28 0 &gpio0 28 0>; /* GP28 */
52+
gpio-map-mask = <0xffffffff 0xffffffc0>;
53+
gpio-map-pass-thru = <0 0x3f>;
5454
};
5555

5656
leds {
@@ -67,8 +67,8 @@
6767
status = "disabled";
6868

6969
pwm_led0: pwm_led_0 {
70-
pwms = <&pwm 9 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
7170
label = "PWM_LED";
71+
pwms = <&pwm 9 PWM_MSEC(20) PWM_POLARITY_NORMAL>;
7272
};
7373
};
7474

@@ -88,9 +88,9 @@
8888

8989
&uart0 {
9090
current-speed = <115200>;
91-
status = "okay";
9291
pinctrl-0 = <&uart0_default>;
9392
pinctrl-names = "default";
93+
status = "okay";
9494
};
9595

9696
&gpio0 {
@@ -99,18 +99,18 @@
9999

100100
&spi0 {
101101
clock-frequency = <DT_FREQ_M(8)>;
102-
status = "okay";
102+
cs-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
103103
pinctrl-0 = <&spi0_default>;
104104
pinctrl-names = "default";
105-
cs-gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
105+
status = "okay";
106106

107107
ethernet: w5500@0 {
108108
compatible = "wiznet,w5500";
109109
reg = <0x0>;
110-
spi-max-frequency = <50000000>;
111110
int-gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
112-
reset-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
113111
local-mac-address = [00 00 00 01 02 03];
112+
reset-gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
113+
spi-max-frequency = <50000000>;
114114
status = "okay";
115115
};
116116
};
@@ -129,9 +129,9 @@
129129
};
130130

131131
&pwm {
132+
divider-int-0 = <255>;
132133
pinctrl-0 = <&pwm_ch4b_default>;
133134
pinctrl-names = "default";
134-
divider-int-0 = <255>;
135135
};
136136

137137
&timer0 {

0 commit comments

Comments
 (0)