785271546b9c713ea2870435f525b130e84f3372
[openwrt/staging/mans0n.git] /
1 From c862059875cffc013ee27bf9759ac288224e7a14 Mon Sep 17 00:00:00 2001
2 From: Vivek Unune <npcomplete13@gmail.com>
3 Date: Wed, 4 Nov 2020 15:29:52 -0500
4 Subject: [PATCH] ARM: dts: BCM5301X: Linksys EA9500 make use of pinctrl
5
6 Now that we have a pin controller, use that instead of manuplating the
7 mdio/mdc pins directly. i.e. we no longer require the mdio-mii-mux
8
9 Signed-off-by: Vivek Unune <npcomplete13@gmail.com>
10 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
11 ---
12 .../boot/dts/bcm47094-linksys-panamera.dts | 26 +++----------------
13 1 file changed, 4 insertions(+), 22 deletions(-)
14
15 --- a/arch/arm/boot/dts/bcm47094-linksys-panamera.dts
16 +++ b/arch/arm/boot/dts/bcm47094-linksys-panamera.dts
17 @@ -123,33 +123,13 @@
18 };
19 };
20
21 - mdio-bus-mux {
22 - #address-cells = <1>;
23 - #size-cells = <0>;
24 + mdio-bus-mux@18003000 {
25
26 /* BIT(9) = 1 => external mdio */
27 - mdio_ext: mdio@200 {
28 + mdio@200 {
29 reg = <0x200>;
30 #address-cells = <1>;
31 #size-cells = <0>;
32 - };
33 - };
34 -
35 - mdio-mii-mux {
36 - compatible = "mdio-mux-mmioreg";
37 - mdio-parent-bus = <&mdio_ext>;
38 - #address-cells = <1>;
39 - #size-cells = <0>;
40 - reg = <0x1800c1c0 0x4>;
41 -
42 - /* BIT(6) = mdc, BIT(7) = mdio */
43 - mux-mask = <0xc0>;
44 -
45 - mdio-mii@0 {
46 - /* Enable MII function */
47 - reg = <0x0>;
48 - #address-cells = <1>;
49 - #size-cells = <0>;
50
51 switch@0 {
52 compatible = "brcm,bcm53125";
53 @@ -159,6 +139,8 @@
54 reset-names = "robo_reset";
55 reg = <0>;
56 dsa,member = <1 0>;
57 + pinctrl-names = "default";
58 + pinctrl-0 = <&pinmux_mdio>;
59
60 ports {
61 #address-cells = <1>;