arm64: dts: armada-3720-espressobin: Configure RGMII and SMI pins
authorRemi Pommarel <repk@triplefau.lt>
Mon, 28 Jan 2019 20:07:27 +0000 (21:07 +0100)
committerGregory CLEMENT <gregory.clement@bootlin.com>
Fri, 8 Feb 2019 20:58:58 +0000 (21:58 +0100)
In order to be able to communicate with the 88e6341 switch some pins
have to be repurposed as RGMII and SMI pins.

This fixes ethernet support on system booted via a bootloader that
has not already configured those pins (e.g. mainline u-boot, or vendor
u-boot compiled without ethernet support).

Signed-off-by: Remi Pommarel <repk@triplefau.lt>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
arch/arm64/boot/dts/marvell/armada-3720-espressobin.dts
arch/arm64/boot/dts/marvell/armada-37xx.dtsi

index 18938d1..dcb6109 100644 (file)
 };
 
 &eth0 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&rgmii_pins>, <&smi_pins>;
        phy-mode = "rgmii-id";
        status = "okay";
 
index b278b64..d4542bf 100644 (file)
                                        function = "mii";
                                };
 
+                               smi_pins: smi-pins {
+                                       groups = "smi";
+                                       function = "smi";
+                               };
+
                                sdio_pins: sdio-pins {
                                        groups = "sdio_sb";
                                        function = "sdio";