Skip to content

Commit c1f5011

Browse files
committed
dts: r4pro: some cleanup and binding-fixes
1 parent ed46254 commit c1f5011

2 files changed

Lines changed: 23 additions & 18 deletions

File tree

arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4-pro-8x.dts

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747

4848
&mdio_bus {
4949
/* external Airoha AN8831X connected to MXL switch */
50+
5051
phy24: ethernet-phy@24 {
5152
reg = <24>;
5253
compatible = "ethernet-phy-ieee802.3-c45";
@@ -59,14 +60,14 @@
5960
#address-cells = <1>;
6061
#size-cells = <0>;
6162

62-
phy24_led0: an8831x_phy24_led0@0 {
63+
phy24_led0: led0@0 {
6364
reg = <0>;
6465
linux,default-trigger = "netdev";
6566
active-high;
6667
status = "okay";
6768
};
6869

69-
phy24_led1: an8831x_phy24_led1@1 {
70+
phy24_led1: led1@1 {
7071
reg = <1>;
7172
linux,default-trigger = "netdev";
7273
active-high;
@@ -88,14 +89,14 @@
8889
#address-cells = <1>;
8990
#size-cells = <0>;
9091

91-
phy28_led0: an8831x_phy28_led0@0 {
92+
phy28_led0: led0@0 {
9293
reg = <0>;
9394
linux,default-trigger = "netdev";
9495
active-high;
9596
status = "okay";
9697
};
9798

98-
phy28_led1: an8831x_phy28_led1@1 {
99+
phy28_led1: led1@1 {
99100
reg = <1>;
100101
linux,default-trigger = "netdev";
101102
active-high;
@@ -107,12 +108,17 @@
107108

108109
&switch16 {
109110
ds_mux: ds-mux-bus {
111+
#address-cells = <1>;
112+
#size-cells = <0>;
113+
110114
ds_mux0: ds-mux@0 {
111115
compatible = "mxl862xx,ds-mux";
112116
reg = <12>;
113117
chan-sel-gpios = <&pio 54 GPIO_ACTIVE_HIGH>;
114118
mod-def0-gpios = <&pio 4 GPIO_ACTIVE_LOW>;
115119
sfp-present-channel = <0>;
120+
#address-cells = <1>;
121+
#size-cells = <0>;
116122

117123
ds_channel_0: channel@0 {
118124
reg = <0>;

arch/arm64/boot/dts/mediatek/mt7988a-bananapi-bpi-r4-pro.dtsi

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,15 @@
33
* Copyright (C) 2022 MediaTek Inc.
44
* Author: Sam.Shih <sam.shih@mediatek.com>
55
*/
6+
67
/dts-v1/;
8+
79
#include "mt7988a.dtsi"
810
#include <dt-bindings/gpio/gpio.h>
911
#include <dt-bindings/input/input.h>
1012
#include <dt-bindings/leds/common.h>
1113
#include <dt-bindings/regulator/richtek,rt5190a-regulator.h>
14+
1215
/*
1316
* ----------------------------------- Bananapi Bpi R4 Pro PINs ---------------------------------
1417
* | | Function | Function | |
@@ -28,6 +31,7 @@
2831
* | 25 | GND | GPIO52/PCM_DRX_I2S_DIN | 26 |
2932
* |----|----------------------------------------|-----------------------------------------|----|
3033
*/
34+
3135
/ {
3236
aliases {
3337
ethernet0 = &gmac0;
@@ -41,13 +45,13 @@
4145
i2c5 = &imux2_sfp2;
4246
i2c6 = &imux3_wifi;
4347
};
48+
4449
chosen {
4550
stdout-path = &serial0;
4651
bootargs = "console=ttyS0,115200n1 loglevel=8 \
4752
earlycon=uart8250,mmio32,0x11000000 \
4853
pci=pcie_bus_perf ubi.block=0,firmware root=/dev/fit0 \
4954
rootwait";
50-
rootdisk-spim-nand = <&ubi_rootfs>;
5155
};
5256

5357
fan: pwm-fan {
@@ -89,6 +93,7 @@
8993
default-state = "on";
9094
};
9195
};
96+
9297
/*memory {
9398
reg = <0x00 0x40000000 0x00 0x10000000>;
9499
};*/
@@ -289,12 +294,14 @@
289294
pinctrl-names = "default";
290295
pinctrl-0 = <&i2c0_pins>;
291296
status = "okay";
297+
292298
rt5190a_64: rt5190a@64 {
293299
compatible = "richtek,rt5190a";
294300
reg = <0x64>;
295301
vin2-supply = <&rt5190_buck1>;
296302
vin3-supply = <&rt5190_buck1>;
297303
vin4-supply = <&rt5190_buck1>;
304+
298305
regulators {
299306
rt5190_buck1: buck1 {
300307
regulator-name = "rt5190a-buck1";
@@ -305,20 +312,23 @@
305312
regulator-boot-on;
306313
regulator-always-on;
307314
};
315+
308316
buck2 {
309317
regulator-name = "vcore";
310318
regulator-min-microvolt = <600000>; //0.85 in shematic
311319
regulator-max-microvolt = <1400000>;
312320
regulator-boot-on;
313321
regulator-always-on;
314322
};
323+
315324
rt5190_buck3: buck3 {
316325
regulator-name = "vproc";
317326
regulator-min-microvolt = <600000>; //0.85-1.0
318327
regulator-max-microvolt = <1400000>;
319328
regulator-boot-on;
320329
regulator-always-on;
321330
};
331+
322332
buck4 {
323333
regulator-name = "rt5190a-buck4"; //1.8
324334
regulator-min-microvolt = <850000>;
@@ -328,6 +338,7 @@
328338
regulator-boot-on;
329339
regulator-always-on;
330340
};
341+
331342
ldo {
332343
regulator-name = "rt5190a-ldo";
333344
regulator-min-microvolt = <1200000>; //1.8
@@ -519,19 +530,6 @@
519530
pinctrl-names = "default";
520531
pinctrl-0 = <&pcie0_pins>;
521532
status = "okay";
522-
523-
/*slot0: pcie@0,0 {
524-
#address-cells = <3>;
525-
#size-cells = <2>;
526-
527-
reg = <0x0000 0 0 0 0>;
528-
mt7996@0,0 {
529-
compatible = "mediatek,mt76";
530-
reg = <0x0000 0 0 0 0>;
531-
device_type = "pci";
532-
//mediatek,mtd-eeprom = <&factory 0x0>;
533-
};
534-
};*/
535533
};
536534

537535
/* mPCIe (11310000 near leds) SIM3 */
@@ -672,6 +670,7 @@
672670
status = "okay";
673671
};
674672

673+
/* back USB */
675674
&ssusb0 {
676675
/* Use U2P only instead of both U3P/U2P due to U3P serdes shared with pcie2 */
677676
phys = <&xphyu2port0 PHY_TYPE_USB2>;

0 commit comments

Comments
 (0)