ARM: dts: imx25-pdk: Add FEC pins
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 5 Mar 2014 20:30:37 +0000 (17:30 -0300)
committerShawn Guo <shawn.guo@freescale.com>
Wed, 30 Apr 2014 05:35:19 +0000 (13:35 +0800)
Instead of relying on the bootloader for configuring the FEC pins, pass the
FEC pin configuration via device tree instead.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/imx25-pdk.dts

index d6429804cdb2dcf6396d3a1142c8fdf6bdfa1162..a97dd7305c46b985dc5453771c49e5dddb3f5196 100644 (file)
 
 &fec {
        phy-mode = "rmii";
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_fec>;
        status = "okay";
 };
 
 &iomuxc {
        imx25-pdk {
+               pinctrl_fec: fecgrp {
+                       fsl,pins = <
+                               MX25_PAD_FEC_MDC__FEC_MDC               0x80000000
+                               MX25_PAD_FEC_MDIO__FEC_MDIO             0x400001e0
+                               MX25_PAD_FEC_TDATA0__FEC_TDATA0         0x80000000
+                               MX25_PAD_FEC_TDATA1__FEC_TDATA1         0x80000000
+                               MX25_PAD_FEC_TX_EN__FEC_TX_EN           0x80000000
+                               MX25_PAD_FEC_RDATA0__FEC_RDATA0         0x80000000
+                               MX25_PAD_FEC_RDATA1__FEC_RDATA1         0x80000000
+                               MX25_PAD_FEC_RX_DV__FEC_RX_DV           0x80000000
+                               MX25_PAD_FEC_TX_CLK__FEC_TX_CLK         0x1c0
+                       >;
+               };
+
                pinctrl_uart1: uart1grp {
                        fsl,pins = <
                                MX25_PAD_UART1_RTS__UART1_RTS           0xe0