Skip to content

Commit 838117f

Browse files
committed
devicetree: format files in boards/waveshare
Applying dts-linter results for format files in boards/waveshare Signed-off-by: Kyle Micallef Bonnici <[email protected]>
1 parent 264110f commit 838117f

File tree

10 files changed

+46
-47
lines changed

10 files changed

+46
-47
lines changed

boards/waveshare/esp32s3_matrix/esp32s3_matrix_esp32s3_appcpu.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#include <espressif/partitions_0x0_amp_4M.dtsi>
1010

1111
/ {
12-
model = "ESP32-S3-Matrix APPCPU";
1312
compatible = "waveshare,esp32-s3-matrix";
13+
model = "ESP32-S3-Matrix APPCPU";
1414

1515
chosen {
1616
zephyr,sram = &sram1;

boards/waveshare/esp32s3_matrix/esp32s3_matrix_esp32s3_procpu.dts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
#include "esp32s3_matrix-pinctrl.dtsi"
1414

1515
/ {
16-
model = "ESP32-S3-Matrix PROCPU";
1716
compatible = "waveshare,esp32-s3-matrix";
17+
model = "ESP32-S3-Matrix PROCPU";
1818

1919
aliases {
2020
sw0 = &button0;
@@ -44,11 +44,11 @@
4444

4545
rgb_matrix: rgb-matrix {
4646
compatible = "led-strip-matrix";
47-
status = "okay";
4847
width = <8>;
4948
height = <8>;
5049
circulative;
5150
led-strips = <&led_strip>;
51+
status = "okay";
5252
};
5353
};
5454

@@ -65,12 +65,12 @@
6565
};
6666

6767
&spi2 {
68-
status = "okay";
6968
#address-cells = <1>;
7069
#size-cells = <0>;
7170
pinctrl-0 = <&spim2_ws2812_led>;
7271
pinctrl-names = "default";
7372
line-idle-low;
73+
status = "okay";
7474

7575
led_strip: ws2812@0 {
7676
compatible = "worldsemi,ws2812-spi";

boards/waveshare/esp32s3_touch_lcd_1_28/esp32s3_touch_lcd_1_28_esp32s3_appcpu.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
#include <espressif/partitions_0x0_amp_16M.dtsi>
99

1010
/ {
11-
model = "ESP32-S3-Touch-LCD-1.28 APPCPU";
1211
compatible = "waveshare,esp32-s3-touch-lcd-1.28";
12+
model = "ESP32-S3-Touch-LCD-1.28 APPCPU";
1313

1414
chosen {
1515
zephyr,sram = &sram1;

boards/waveshare/esp32s3_touch_lcd_1_28/esp32s3_touch_lcd_1_28_esp32s3_procpu.dts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
#include <espressif/partitions_0x0_amp_16M.dtsi>
1313

1414
/ {
15-
model = "ESP32-S3-Touch-LCD-1.28 PROCPU";
1615
compatible = "waveshare,esp32-s3-touch-lcd-1.28";
16+
model = "ESP32-S3-Touch-LCD-1.28 PROCPU";
1717

1818
aliases {
1919
i2c-1 = &i2c1;
@@ -72,14 +72,14 @@
7272
#size-cells = <0>;
7373

7474
gc9a01: gc9a01@0 {
75-
status = "okay";
7675
compatible = "galaxycore,gc9x01x";
7776
reg = <0>;
7877
mipi-max-frequency = <100000000>;
7978
pixel-format = <PANEL_PIXEL_FORMAT_RGB_565>;
8079
display-inversion;
8180
width = <240>;
8281
height = <240>;
82+
status = "okay";
8383
};
8484
};
8585
};
@@ -97,27 +97,27 @@
9797
};
9898

9999
&i2c1 {
100-
status = "okay";
101100
clock-frequency = <I2C_BITRATE_STANDARD>;
102101
pinctrl-0 = <&i2c1_default>;
103102
pinctrl-names = "default";
103+
status = "okay";
104104

105105
/* Hynitron CST816S Capacitive Touch Controller */
106106
cst816s: cst816s@15 {
107-
status = "okay";
108107
compatible = "hynitron,cst816s";
109108
reg = <0x15>;
110109
irq-gpios = <&gpio0 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
111110
rst-gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
111+
status = "okay";
112112
};
113113
};
114114

115115
&ledc0 {
116-
status = "okay";
117116
pinctrl-0 = <&ledc0_default>;
118117
pinctrl-names = "default";
119118
#address-cells = <1>;
120119
#size-cells = <0>;
120+
status = "okay";
121121

122122
channel0@0 {
123123
reg = <0x0>;
@@ -136,23 +136,23 @@
136136
};
137137

138138
&spi2 {
139-
status = "okay";
140139
#address-cells = <1>;
141140
#size-cells = <0>;
142141
pinctrl-0 = <&spim2_default>;
143142
pinctrl-names = "default";
144143
cs-gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
144+
status = "okay";
145145
};
146146

147147
&trng0 {
148148
status = "okay";
149149
};
150150

151151
&uart0 {
152-
status = "okay";
153152
current-speed = <115200>;
154153
pinctrl-0 = <&uart0_default>;
155154
pinctrl-names = "default";
155+
status = "okay";
156156
};
157157

158158
&wdt0 {

boards/waveshare/nrf51_ble400/nrf51_ble400.dts

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

1212
/ {
13-
model = "Waveshare BLE400";
1413
compatible = "waveshare,BLE400";
14+
model = "Waveshare BLE400";
1515

1616
chosen {
1717
zephyr,console = &uart0;
@@ -91,26 +91,26 @@
9191
};
9292

9393
&i2c0 {
94-
status = "okay";
9594
/* smba-pin = <2>; */
9695
pinctrl-0 = <&i2c0_default>;
9796
pinctrl-1 = <&i2c0_sleep>;
9897
pinctrl-names = "default", "sleep";
98+
status = "okay";
9999
};
100100

101101
&spi1 {
102102
compatible = "nordic,nrf-spi";
103-
status = "okay";
104103
cs-gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
105104
pinctrl-0 = <&spi1_default>;
106105
pinctrl-1 = <&spi1_sleep>;
107106
pinctrl-names = "default", "sleep";
107+
status = "okay";
108108
};
109109

110110
&uart0 {
111111
current-speed = <115200>;
112-
status = "okay";
113112
pinctrl-0 = <&uart0_default>;
114113
pinctrl-1 = <&uart0_sleep>;
115114
pinctrl-names = "default", "sleep";
115+
status = "okay";
116116
};

boards/waveshare/open103z/waveshare_open103z.dts

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

1212
/ {
13-
model = "Waveshare Open103Z";
1413
compatible = "waveshare,open103z";
14+
model = "Waveshare Open103Z";
1515

1616
chosen {
1717
zephyr,console = &usart1;
@@ -146,15 +146,15 @@
146146
&i2c1 {
147147
pinctrl-0 = <&i2c1_sda_pb7 &i2c1_scl_pb6>;
148148
pinctrl-names = "default";
149-
status = "okay";
150149
clock-frequency = <I2C_BITRATE_FAST>;
150+
status = "okay";
151151
};
152152

153153
&i2c2 {
154154
pinctrl-0 = <&i2c2_sda_pb11 &i2c2_scl_pb10>;
155155
pinctrl-names = "default";
156-
status = "okay";
157156
clock-frequency = <I2C_BITRATE_FAST>;
157+
status = "okay";
158158
};
159159

160160
&can1 {
@@ -176,17 +176,17 @@ zephyr_udc0: &usb {
176176
*/
177177
pinctrl-0 = <&usb_dm_pa11 &usb_dp_pa12>;
178178
pinctrl-names = "default";
179-
status = "okay";
180179
disconnect-gpios = <&gpiog 15 GPIO_ACTIVE_HIGH>;
180+
status = "okay";
181181
};
182182

183183
&timers1 {
184184
status = "okay";
185185

186186
pwm1: pwm {
187-
status = "okay";
188187
pinctrl-0 = <&tim1_ch1_pwm_out_pa8>;
189188
pinctrl-names = "default";
189+
status = "okay";
190190
};
191191
};
192192

boards/waveshare/rp2040_matrix/rp2040_matrix-pinctrl.dtsi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include <dt-bindings/pinctrl/rpi-pico-rp2040-pinctrl.h>
88

99
&pinctrl {
10-
1110
adc_default: adc_default {
1211
group1 {
1312
pinmux = <ADC_CH0_P26>, <ADC_CH1_P27>, <ADC_CH2_P28>, <ADC_CH3_P29>;

boards/waveshare/rp2040_matrix/rp2040_matrix.dts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
#include "rp2040_matrix-pinctrl.dtsi"
1616

1717
/ {
18-
model = "Waveshare RP2040 Matrix";
1918
compatible = "waveshare,rp2040-matrix";
19+
model = "Waveshare RP2040 Matrix";
2020

2121
chosen {
2222
zephyr,sram = &sram0;
@@ -39,11 +39,11 @@
3939

4040
led_matrix: led_matrix {
4141
compatible = "led-strip-matrix";
42-
status = "okay";
4342
led-strips = <&ws2812>;
4443
width = <5>;
4544
height = <5>;
4645
circulative;
46+
status = "okay";
4747
};
4848
};
4949

@@ -57,8 +57,8 @@
5757

5858
/* Reserved memory for the second stage bootloader */
5959
second_stage_bootloader: partition@0 {
60-
label = "second_stage_bootloader";
6160
reg = <0x00000000 0x100>;
61+
label = "second_stage_bootloader";
6262
read-only;
6363
};
6464

@@ -67,8 +67,8 @@
6767
* size is 2 MB minus the 0x100 bytes taken by the bootloader.
6868
*/
6969
code_partition: partition@100 {
70-
label = "code-partition";
7170
reg = <0x100 (DT_SIZE_M(2) - 0x100)>;
71+
label = "code-partition";
7272
read-only;
7373
};
7474
};
@@ -80,9 +80,9 @@
8080

8181
&uart0 {
8282
current-speed = <115200>;
83-
status = "okay";
8483
pinctrl-0 = <&uart0_default>;
8584
pinctrl-names = "default";
85+
status = "okay";
8686
};
8787

8888
&spi0 {
@@ -100,11 +100,11 @@
100100
};
101101

102102
&adc {
103-
status = "okay";
104103
pinctrl-0 = <&adc_default>;
105104
pinctrl-names = "default";
106105
#address-cells = <1>;
107106
#size-cells = <0>;
107+
status = "okay";
108108

109109
channel@0 {
110110
reg = <0>;
@@ -144,20 +144,20 @@
144144

145145
pio-ws2812 {
146146
compatible = "worldsemi,ws2812-rpi_pico-pio";
147-
status = "okay";
148147
pinctrl-0 = <&ws2812_pio0_default>;
149148
pinctrl-names = "default";
150149
bit-waveform = <3>, <3>, <4>;
150+
status = "okay";
151151

152152
ws2812: ws2812 {
153-
status = "okay";
154153
gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
155154
chain-length = <25>;
156155
color-mapping = <LED_COLOR_ID_GREEN
157-
LED_COLOR_ID_RED
158-
LED_COLOR_ID_BLUE>;
156+
LED_COLOR_ID_RED
157+
LED_COLOR_ID_BLUE>;
159158
reset-delay = <280>;
160159
frequency = <800000>;
160+
status = "okay";
161161
};
162162
};
163163
};

boards/waveshare/rp2040_plus/rp2040_plus.dts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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,25 +107,25 @@
107107
* size is 4MB minus the 0x100 bytes taken by the bootloader.
108108
*/
109109
code_partition: partition@100 {
110-
label = "code-partition";
111110
reg = <0x100 (DT_SIZE_M(4) - 0x100)>;
111+
label = "code-partition";
112112
read-only;
113113
};
114114
};
115115
};
116116

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

124124
&i2c0 {
125-
status = "okay";
126125
pinctrl-0 = <&i2c0_default>;
127126
pinctrl-names = "default";
128127
clock-frequency = <I2C_BITRATE_STANDARD>;
128+
status = "okay";
129129
};
130130

131131
&i2c1 {
@@ -136,9 +136,9 @@
136136

137137
&spi0 {
138138
clock-frequency = <DT_FREQ_M(8)>;
139-
status = "okay";
140139
pinctrl-0 = <&spi0_default>;
141140
pinctrl-names = "default";
141+
status = "okay";
142142
};
143143

144144
&timer {
@@ -159,11 +159,11 @@
159159
};
160160

161161
&adc {
162-
status = "okay";
163162
pinctrl-0 = <&adc_default>;
164163
pinctrl-names = "default";
165164
#address-cells = <1>;
166165
#size-cells = <0>;
166+
status = "okay";
167167

168168
channel@3 {
169169
reg = <3>;

0 commit comments

Comments
 (0)