Message ID | 6ffbd48d-a8f4-4247-817c-4fe25a8099ab@bamkrs.de |
---|---|
State | Changes Requested |
Delegated to: | Jagannadha Sutradharudu Teki |
Headers | show |
Series | sun8i-emac: sun8i-v3s compatibility for sun8i-emac | expand |
On Wed, May 27, 2020 at 7:03 PM Benedikt-Alexander Mokroß <u-boot@bamkrs.de> wrote: > > This optional patch adds the needed device-tree node to sun8i-v3s.dtsi to enable > ethernet for sun8i-v3s boards. Better to sync the dts(i) from Linux (-next) with proper tag details.
Hi Jagan, do you mean to sync over the whole sun8i-v3s.dtsi or just the emac node? Linux does not have an emac node for the v3s in its dts. What could be done would be to sync the sun8i-v3s.dtsi and add the emac node from sunxi-h3-h5.dtsi (where I already have taken the main part of the emac node from) or have I misunderstood you? Benedikt > Am 01.06.2020 um 18:37 schrieb Jagan Teki <jagan@amarulasolutions.com>: > > On Wed, May 27, 2020 at 7:03 PM Benedikt-Alexander Mokroß > <u-boot@bamkrs.de> wrote: >> >> This optional patch adds the needed device-tree node to sun8i-v3s.dtsi to enable >> ethernet for sun8i-v3s boards. > > Better to sync the dts(i) from Linux (-next) with proper tag details.
diff --git a/arch/arm/dts/sun8i-v3s.dtsi b/arch/arm/dts/sun8i-v3s.dtsi index ebefc0fefe..e6c090465a 100644 --- a/arch/arm/dts/sun8i-v3s.dtsi +++ b/arch/arm/dts/sun8i-v3s.dtsi @@ -280,5 +280,53 @@ #interrupt-cells = <3>; interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>; }; + + emac: ethernet@1c30000 { + compatible = "allwinner,sun8i-v3s-emac"; + syscon = <&syscon>; + reg = <0x01c30000 0x104>; + interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "macirq"; + resets = <&ccu RST_BUS_EMAC>; + reset-names = "stmmaceth"; + clocks = <&ccu CLK_BUS_EMAC>; + clock-names = "stmmaceth"; + #address-cells = <1>; + #size-cells = <0>; + phy-handle = <&int_mii_phy>; + phy = <&int_mii_phy>; + phy-mode = "mii"; + allwinner,leds-active-low; + status = "disabled"; + + mdio: mdio { + #address-cells = <1>; + #size-cells = <0>; + compatible = "snps,dwmac-mdio"; + }; + + mdio-mux { + compatible = "allwinner,sun8i-h3-mdio-mux"; + #address-cells = <1>; + #size-cells = <0>; + + mdio-parent-bus = <&mdio>; + + int_mdio: mdio@1 { + compatible = "allwinner,sun8i-h3-mdio-internal"; + reg = <1>; + #address-cells = <1>; + #size-cells = <0>; + + int_mii_phy: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + clocks = <&ccu CLK_BUS_EPHY>; + resets = <&ccu RST_BUS_EPHY>; + phy-is-integrated; + }; + }; + }; + }; }; };
This optional patch adds the needed device-tree node to sun8i-v3s.dtsi to enable ethernet for sun8i-v3s boards. Signed-off-by: Benedikt-Alexander Mokroß <u-boot@bamkrs.de> --- arch/arm/dts/sun8i-v3s.dtsi | 48 +++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+)