77d3420ff8711675dfb26df00dddba0830027c70
[openwrt/staging/ansuel.git] /
1 From 441d531ec9b766f49e01c107a3043235daa4493f Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Ar=C4=B1n=C3=A7=20=C3=9CNAL?= <arinc.unal@arinc9.com>
3 Date: Sun, 2 Jan 2022 23:33:04 +0300
4 Subject: [PATCH] ARM: dts: BCM5301X: define RTL8365MB switch on Asus RT-AC88U
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Define the Realtek RTL8365MB switch without interrupt support on the device
10 tree of Asus RT-AC88U.
11
12 Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
13 Acked-by: Alvin Šipraga <alsi@bang-olufsen.dk>
14 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
15 ---
16 arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts | 76 ++++++++++++++++++++
17 1 file changed, 76 insertions(+)
18
19 --- a/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
20 +++ b/arch/arm/boot/dts/bcm47094-asus-rt-ac88u.dts
21 @@ -93,6 +93,82 @@
22 gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
23 };
24 };
25 +
26 + switch {
27 + compatible = "realtek,rtl8365mb";
28 + /* 7 = MDIO (has input reads), 6 = MDC (clock, output only) */
29 + mdc-gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
30 + mdio-gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
31 + reset-gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
32 + realtek,disable-leds;
33 + dsa,member = <1 0>;
34 +
35 + ports {
36 + #address-cells = <1>;
37 + #size-cells = <0>;
38 +
39 + port@0 {
40 + reg = <0>;
41 + label = "lan5";
42 + phy-handle = <&ethphy0>;
43 + };
44 +
45 + port@1 {
46 + reg = <1>;
47 + label = "lan6";
48 + phy-handle = <&ethphy1>;
49 + };
50 +
51 + port@2 {
52 + reg = <2>;
53 + label = "lan7";
54 + phy-handle = <&ethphy2>;
55 + };
56 +
57 + port@3 {
58 + reg = <3>;
59 + label = "lan8";
60 + phy-handle = <&ethphy3>;
61 + };
62 +
63 + port@6 {
64 + reg = <6>;
65 + label = "cpu";
66 + ethernet = <&sw0_p5>;
67 + phy-mode = "rgmii";
68 + tx-internal-delay-ps = <2000>;
69 + rx-internal-delay-ps = <2100>;
70 +
71 + fixed-link {
72 + speed = <1000>;
73 + full-duplex;
74 + pause;
75 + };
76 + };
77 + };
78 +
79 + mdio {
80 + compatible = "realtek,smi-mdio";
81 + #address-cells = <1>;
82 + #size-cells = <0>;
83 +
84 + ethphy0: ethernet-phy@0 {
85 + reg = <0>;
86 + };
87 +
88 + ethphy1: ethernet-phy@1 {
89 + reg = <1>;
90 + };
91 +
92 + ethphy2: ethernet-phy@2 {
93 + reg = <2>;
94 + };
95 +
96 + ethphy3: ethernet-phy@3 {
97 + reg = <3>;
98 + };
99 + };
100 + };
101 };
102
103 &srab {