Message ID | 1414499062-23875-4-git-send-email-romain.perier@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Am Dienstag, 28. Oktober 2014, 12:24:22 schrieb Romain Perier: > This enables EMAC Rockchip and adds initial ethernet support > for the MarsBoard RK3066. > > Signed-off-by: Romain Perier <romain.perier@gmail.com> please reorder your series a bit: Patch1: ARM: dts: rockchip: Add EMAC Rockchip for RK3066 SoCs Patch2: old patches 1,2,4 combined into one single patch > --- > arch/arm/boot/dts/rk3066a-marsboard.dts | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > > diff --git a/arch/arm/boot/dts/rk3066a-marsboard.dts > b/arch/arm/boot/dts/rk3066a-marsboard.dts index 146bd61..560070c 100644 > --- a/arch/arm/boot/dts/rk3066a-marsboard.dts > +++ b/arch/arm/boot/dts/rk3066a-marsboard.dts > @@ -122,6 +122,30 @@ > /* must be included after &tps gets defined */ > #include "tps65910.dtsi" > > +&emac { > + status = "okay"; > + > + phy = <&phy0>; > + phy-supply = <&vaux33_reg>; &vcc_rmii as explained in the other mail > + > + pinctrl-names = "default"; > + pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>; > + > + phy0: ethernet-phy@0 { > + reg = <0>; > + interrupt-parent = <&gpio1>; > + interrupts = <26 IRQ_TYPE_LEVEL_LOW>; > + }; > +}; > + > +&pinctrl { > + lan8720a { > + phy_int: phy-int { > + rockchip,pins = <RK_GPIO1 26 RK_FUNC_GPIO &pcfg_pull_none>; > + }; > + }; > +}; > + > &uart0 { > status = "okay"; > };
diff --git a/arch/arm/boot/dts/rk3066a-marsboard.dts b/arch/arm/boot/dts/rk3066a-marsboard.dts index 146bd61..560070c 100644 --- a/arch/arm/boot/dts/rk3066a-marsboard.dts +++ b/arch/arm/boot/dts/rk3066a-marsboard.dts @@ -122,6 +122,30 @@ /* must be included after &tps gets defined */ #include "tps65910.dtsi" +&emac { + status = "okay"; + + phy = <&phy0>; + phy-supply = <&vaux33_reg>; + + pinctrl-names = "default"; + pinctrl-0 = <&emac_xfer>, <&emac_mdio>, <&phy_int>; + + phy0: ethernet-phy@0 { + reg = <0>; + interrupt-parent = <&gpio1>; + interrupts = <26 IRQ_TYPE_LEVEL_LOW>; + }; +}; + +&pinctrl { + lan8720a { + phy_int: phy-int { + rockchip,pins = <RK_GPIO1 26 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; +}; + &uart0 { status = "okay"; };
This enables EMAC Rockchip and adds initial ethernet support for the MarsBoard RK3066. Signed-off-by: Romain Perier <romain.perier@gmail.com> --- arch/arm/boot/dts/rk3066a-marsboard.dts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)