* [PATCH] arm64: allwinner: h6: orangepi-one-plus: Add Ethernet support @ 2018-08-07 7:18 Jagan Teki [not found] ` <20180807071839.25305-1-jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Jagan Teki @ 2018-08-07 7:18 UTC (permalink / raw) To: Maxime Ripard, Chen-Yu Tsai, Icenowy Zheng Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw, Jagan Teki Add Ethernet support for orangepi-one-plus board, - Ethernet port connected via RTL8211E PHY - GMAC_EN is connected via PD6 - GMAC-3V supplied from ALDO2 regulator Signed-off-by: Jagan Teki <jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org> --- .../allwinner/sun50i-h6-orangepi-one-plus.dts | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts index 0612c19cd994..eca5b7ea0d6d 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts @@ -21,6 +21,35 @@ chosen { stdout-path = "serial0:115200n8"; }; + + reg_gmac_3v3: gmac-3v3 { + compatible = "regulator-fixed"; + regulator-name = "vcc-gmac-3v3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + startup-delay-us = <100000>; + enable-active-high; + gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */ + vin-supply = <®_aldo2>; + }; +}; + +&emac { + pinctrl-names = "default"; + pinctrl-0 = <&ext_rgmii_pins>; + phy-mode = "rgmii"; + phy-handle = <&ext_rgmii_phy>; + phy-supply = <®_gmac_3v3>; + allwinner,rx-delay-ps = <200>; + allwinner,tx-delay-ps = <200>; + status = "okay"; +}; + +&mdio { + ext_rgmii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; }; &mmc0 { -- 2.18.0.321.gffc6fa0e3 ^ permalink raw reply related [flat|nested] 3+ messages in thread
[parent not found: <20180807071839.25305-1-jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org>]
* Re: [PATCH] arm64: allwinner: h6: orangepi-one-plus: Add Ethernet support [not found] ` <20180807071839.25305-1-jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org> @ 2018-08-07 7:19 ` Icenowy Zheng 2018-08-07 7:24 ` Jagan Teki 0 siblings, 1 reply; 3+ messages in thread From: Icenowy Zheng @ 2018-08-07 7:19 UTC (permalink / raw) To: Jagan Teki, Maxime Ripard, Chen-Yu Tsai Cc: devicetree-u79uwXL29TY76Z2rM5mHXA, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-sunxi-/JYPxA39Uh5TLH3MbocFFw 于 2018年8月7日 GMT+08:00 下午3:18:39, Jagan Teki <jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org> 写到: >Add Ethernet support for orangepi-one-plus board, >- Ethernet port connected via RTL8211E PHY >- GMAC_EN is connected via PD6 >- GMAC-3V supplied from ALDO2 regulator Is the prequisite patchset merged? > >Signed-off-by: Jagan Teki <jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org> >--- > .../allwinner/sun50i-h6-orangepi-one-plus.dts | 29 +++++++++++++++++++ > 1 file changed, 29 insertions(+) > >diff --git >a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts >b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts >index 0612c19cd994..eca5b7ea0d6d 100644 >--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts >+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts >@@ -21,6 +21,35 @@ > chosen { > stdout-path = "serial0:115200n8"; > }; >+ >+ reg_gmac_3v3: gmac-3v3 { >+ compatible = "regulator-fixed"; >+ regulator-name = "vcc-gmac-3v3"; >+ regulator-min-microvolt = <3300000>; >+ regulator-max-microvolt = <3300000>; >+ startup-delay-us = <100000>; >+ enable-active-high; >+ gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */ >+ vin-supply = <®_aldo2>; >+ }; >+}; >+ >+&emac { >+ pinctrl-names = "default"; >+ pinctrl-0 = <&ext_rgmii_pins>; >+ phy-mode = "rgmii"; >+ phy-handle = <&ext_rgmii_phy>; >+ phy-supply = <®_gmac_3v3>; >+ allwinner,rx-delay-ps = <200>; >+ allwinner,tx-delay-ps = <200>; >+ status = "okay"; >+}; >+ >+&mdio { >+ ext_rgmii_phy: ethernet-phy@1 { >+ compatible = "ethernet-phy-ieee802.3-c22"; >+ reg = <1>; >+ }; > }; > > &mmc0 { -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/d/optout. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] arm64: allwinner: h6: orangepi-one-plus: Add Ethernet support 2018-08-07 7:19 ` Icenowy Zheng @ 2018-08-07 7:24 ` Jagan Teki 0 siblings, 0 replies; 3+ messages in thread From: Jagan Teki @ 2018-08-07 7:24 UTC (permalink / raw) To: Icenowy Zheng Cc: Maxime Ripard, Chen-Yu Tsai, devicetree, linux-arm-kernel, linux-kernel, linux-sunxi On Tue, Aug 7, 2018 at 12:49 PM, Icenowy Zheng <icenowy@aosc.io> wrote: > > > 于 2018年8月7日 GMT+08:00 下午3:18:39, Jagan Teki <jagan@amarulasolutions.com> 写到: >>Add Ethernet support for orangepi-one-plus board, >>- Ethernet port connected via RTL8211E PHY >>- GMAC_EN is connected via PD6 >>- GMAC-3V supplied from ALDO2 regulator > > Is the prequisite patchset merged? Not yet, I guess. Do you suggest to squash if not? ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-08-07 7:24 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-08-07 7:18 [PATCH] arm64: allwinner: h6: orangepi-one-plus: Add Ethernet support Jagan Teki [not found] ` <20180807071839.25305-1-jagan-dyjBcgdgk7Pe9wHmmfpqLFaTQe2KTcn/@public.gmane.org> 2018-08-07 7:19 ` Icenowy Zheng 2018-08-07 7:24 ` Jagan Teki
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).