Skip to content

Commit ed46254

Browse files
committed
dts: r4lite: some cleanup
1 parent acdb1f6 commit ed46254

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

arch/arm64/boot/dts/mediatek/mt7987a-bananapi-bpi-r4-lite.dts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,19 @@
33
* Copyright (C) 2025 MediaTek Inc.
44
* Author: Sam.Shih <sam.shih@mediatek.com>
55
*/
6+
67
/dts-v1/;
8+
79
#include "mt7987a.dtsi"
810
#include <dt-bindings/input/input.h>
911
#include <dt-bindings/leds/common.h>
1012
#include "mt7987a-bananapi-bpi-r4-lite-mikrobus.dtsi"
13+
1114
/ {
1215
model = "Bananapi BPI-R4-LITE";
1316
compatible = "bananapi,bpi-r4-lite",
1417
"mediatek,mt7987a", "mediatek,mt7987";
18+
1519
aliases {
1620
/* mt7987 I2C0 */
1721
i2c0 = &i2c0;
@@ -21,12 +25,14 @@
2125
i2c3 = &imux2_MikroBus;
2226
i2c4 = &imux3;
2327
};
28+
2429
chosen {
2530
bootargs = "console=ttyS0,115200n1 loglevel=6 \
2631
earlycon=uart8250,mmio32,0x11000000 \
2732
pci=pcie_bus_perf ubi.block=0,firmware \
2833
root=/dev/fit0 rootwait";
2934
};
35+
3036
gpio-keys {
3137
compatible = "gpio-keys";
3238
reset {
@@ -42,6 +48,7 @@
4248
debounce-interval = <10>;
4349
};
4450
};
51+
4552
pwm-leds {
4653
compatible = "pwm-leds";
4754
status = "okay";
@@ -83,10 +90,12 @@
8390
maximum-power-milliwatt = <3000>;
8491
};
8592
};
93+
8694
&fan {
8795
pwms = <&pwm 2 50000>;
8896
status = "okay";
8997
};
98+
9099
&gmac0 {
91100
phy-mode = "2500base-x";
92101
status = "okay";
@@ -96,20 +105,24 @@
96105
pause;
97106
};
98107
};
108+
99109
&gmac1 {
100110
phy-mode = "internal";
101111
phy-handle = <&phy15>;
102112
status = "okay";
103113
};
114+
104115
&hnat {
105116
mtketh-lan2 = "eth2";
106117
mtketh-max-gmac = <3>;
107118
};
119+
108120
&pwm {
109121
pinctrl-names = "default";
110122
pinctrl-0 = <&pwm_pins>;
111123
status = "okay";
112124
};
125+
113126
&pwm_pins {
114127
mux {
115128
/*
@@ -121,6 +134,7 @@
121134
groups = "pwm0", "pwm1_0", "pwm2_0";
122135
};
123136
};
137+
124138
&i2c0 {
125139
pinctrl-names = "default";
126140
pinctrl-0 = <&i2c0_pins>;
@@ -130,14 +144,17 @@
130144
reg = <0x70>;
131145
#address-cells = <1>;
132146
#size-cells = <0>;
147+
133148
imux0_rtc: i2c@0 {
134149
#address-cells = <1>;
135150
#size-cells = <0>;
136151
reg = <0x0>;
152+
137153
rtc@51 {
138154
compatible = "nxp,pcf8563";
139155
reg = <0x51>;
140156
};
157+
141158
eeprom@57 {
142159
compatible = "atmel,24c02";
143160
reg = <0x57>;
@@ -146,26 +163,31 @@
146163
size = <256>;
147164
};
148165
};
166+
149167
imux1_sfp: i2c@1 {
150168
#address-cells = <1>;
151169
#size-cells = <0>;
152170
reg = <0x1>;
153171
};
172+
154173
imux2_MikroBus: i2c@2 {
155174
#address-cells = <1>;
156175
#size-cells = <0>;
157176
reg = <0x2>;
158177
};
178+
159179
imux3: i2c@3 {
160180
#address-cells = <1>;
161181
#size-cells = <0>;
162182
reg = <0x3>;
183+
163184
pca9555: i2c-gpio-expander@20 {
164185
compatible = "nxp,pca9555";
165186
gpio-controller;
166187
#gpio-cells = <2>;
167188
reg = <0x20>;
168189
};
190+
169191
wifi_eeprom@50 {
170192
compatible = "atmel,24c02";
171193
reg = <0x50>;
@@ -176,6 +198,7 @@
176198
};
177199
};
178200
};
201+
179202
&mdio {
180203
/* built-in 2.5G Ethernet PHY */
181204
phy15: phy@15 {
@@ -186,6 +209,7 @@
186209
phy-mode = "internal";
187210
active-low;
188211
};
212+
189213
switch31: switch@31 {
190214
compatible = "mediatek,mt7531";
191215
reg = <31>;
@@ -208,33 +232,40 @@
208232
phys = <&tphyu2port0 PHY_TYPE_USB2>,
209233
<&tphyu3port0 PHY_TYPE_USB3>;
210234
};
235+
211236
&switch31 {
212237
ports {
213238
#address-cells = <1>;
214239
#size-cells = <0>;
240+
215241
port@0 {
216242
reg = <0>;
217243
label = "lan0";
218244
};
245+
219246
port@1 {
220247
reg = <1>;
221248
label = "lan1";
222249
};
250+
223251
port@2 {
224252
reg = <2>;
225253
label = "lan2";
226254
};
255+
227256
port@3 {
228257
reg = <3>;
229258
label = "lan3";
230259
};
260+
231261
port@5 {
232262
reg = <5>;
233263
label = "sfp0";
234264
phy-mode = "2500base-x";
235265
sfp = <&sfp>;
236266
managed = "in-band-status";
237267
};
268+
238269
port@6 {
239270
reg = <6>;
240271
label = "cpu";
@@ -248,6 +279,7 @@
248279
};
249280
};
250281
};
282+
251283
&tphyu3port0 {
252284
status = "okay";
253285
};

0 commit comments

Comments
 (0)