ARM: dts: at91-sama5d2-icp: Add MACB node
authorRazvan Stefanescu <razvan.stefanescu@microchip.com>
Wed, 12 Dec 2018 10:42:05 +0000 (12:42 +0200)
committerEugen Hristev <eugen.hristev@microchip.com>
Thu, 18 Apr 2019 06:43:22 +0000 (09:43 +0300)
MACB has a fixed link connection to KSZ8563 switch port.

Signed-off-by: Razvan Stefanescu <razvan.stefanescu@microchip.com>
arch/arm/dts/at91-sama5d2_icp.dts

index e777754..cae8748 100644 (file)
                                status = "okay";
                        };
 
+                       macb0: ethernet@f8008000 {
+                               pinctrl-names = "default";
+                               pinctrl-0 = <&pinctrl_macb0_rmii &pinctrl_macb0_phy_irq &pinctrl_macb0_rst>;
+                               phy-mode = "internal";
+                               status = "okay";
+                       };
+
                        i2c1: i2c@fc028000 {
                                dmas = <0>, <0>;
                                pinctrl-names = "default";
                                                bias-disable;
                                        };
 
+                                       pinctrl_macb0_rmii: macb0_rmii {
+                                               pinmux = <PIN_PD1__GRXCK>,
+                                                        <PIN_PD2__GTXER>,
+                                                        <PIN_PD5__GRX2>,
+                                                        <PIN_PD6__GRX3>,
+                                                        <PIN_PD7__GTX2>,
+                                                        <PIN_PD8__GTX3>,
+                                                        <PIN_PD9__GTXCK>,
+                                                        <PIN_PD10__GTXEN>,
+                                                        <PIN_PD11__GRXDV>,
+                                                        <PIN_PD12__GRXER>,
+                                                        <PIN_PD13__GRX0>,
+                                                        <PIN_PD14__GRX1>,
+                                                        <PIN_PD15__GTX0>,
+                                                        <PIN_PD16__GTX1>,
+                                                        <PIN_PD17__GMDC>,
+                                                        <PIN_PD18__GMDIO>;
+                                               bias-disable;
+                                       };
+
+                                       pinctrl_macb0_phy_irq: macb0_phy_irq {
+                                               pinmux = <PIN_PD3__GPIO>;
+                                               bias-disable;
+                                       };
+
+                                       pinctrl_macb0_rst: macb0_sw_rst {
+                                               pinmux = <PIN_PD4__GPIO>;
+                                               bias-pull-up;
+                                       };
+
                                        pinctrl_sdmmc0_default: sdmmc0_default {
                                                pinmux = <PIN_PA1__SDMMC0_CMD>,
                                                         <PIN_PA2__SDMMC0_DAT0>,