ARM: Actions updates for v5.14
Subsystems (2)
Manivannan Sadhasivam
maintainercover ARM: Actions updates for v5.14
Hi Arnd, Olof,
Sorry for submitting this short series so late. I was waiting for the clk patches to be picked by Stephen.
For the Actions ARM32 platform, we have just couple of patches for v5.14 cycle adding Ethernet support to the S500 SoC and enabling it on the Roseapple Pi dev board. The EMAC controller is an in-house IP from Actions Semi capable of operating at 10/100Mb/s in half-duplex and full-duplex modes. The emac driver patches are already merged into netdev and the clk patches are just queued for v5.14.
The ethernet node depends on the clk binding update for which the patch has already been merged into clk tree[1].
Please consider applying!
Thanks,
Mani
Cristian Ciocaltea (2):
ARM: dts: owl-s500: Add ethernet support
ARM: dts: owl-s500-roseapplepi: Add ethernet support
arch/arm/boot/dts/owl-s500-roseapplepi.dts | 45 ++++++++++++++++++++++ arch/arm/boot/dts/owl-s500.dtsi | 10 +++++ 2 files changed, 55 insertions(+)
Signature · 1 line
2.25.1
Manivannan Sadhasivam
maintainerPATCH 1/2 ARM: dts: owl-s500: Add ethernet support
From: Cristian Ciocaltea <[email protected]>
Add Ethernet MAC device tree node for Actions Semi S500 SoC.
--- arch/arm/boot/dts/owl-s500.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+)
arch/arm/boot/dts/owl-s500.dtsi +10 -0
@@ -324,5 +324,15 @@ mmc2: mmc@b0238000 { dma-names = "mmc"; status = "disabled"; }; + + ethernet: ethernet@b0310000 { + compatible = "actions,s500-emac", "actions,owl-emac"; + reg = <0xb0310000 0x10000>; + interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cmu CLK_ETHERNET>, <&cmu CLK_RMII_REF>; + clock-names = "eth", "rmii"; + resets = <&cmu RESET_ETHERNET>; + status = "disabled"; + }; }; };
Signature · 1 line
2.25.1
Manivannan Sadhasivam
maintainerPATCH 2/2 ARM: dts: owl-s500-roseapplepi: Add ethernet support
In reply to Manivannan SadhasivamFrom: Cristian Ciocaltea <[email protected]>
Add pinctrl configuration for enabling the Ethernet MAC on RoseapplePi SBC. Additionally, provide the necessary properties for the generic S500 ethernet node in order to setup PHY and MDIO.
--- arch/arm/boot/dts/owl-s500-roseapplepi.dts | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+)
arch/arm/boot/dts/owl-s500-roseapplepi.dts +45 -0
@@ -225,6 +225,27 @@ bias1-pinconf { bias-pull-down; }; }; + + ethernet_pins: ethernet-pins { + eth_rmii-pinmux { + groups = "rmii_txd0_mfp", "rmii_txd1_mfp", + "rmii_rxd0_mfp", "rmii_rxd1_mfp", + "rmii_txen_mfp", "rmii_rxen_mfp", + "rmii_crs_dv_mfp", "rmii_ref_clk_mfp"; + function = "eth_rmii"; + }; + + phy_clk-pinmux { + groups = "clko_25m_mfp"; + function = "clko_25m"; + }; + + ref_clk-pinconf { + groups = "rmii_ref_clk_drv"; + drive-strength = <2>; + }; + + }; }; /* uSD */
@@ -241,6 +262,30 @@ &mmc0 { vqmmc-supply = <&sd_vcc>; }; +ðernet { + pinctrl-names = "default"; + pinctrl-0 = <ðernet_pins>; + phy-mode = "rmii"; + phy-handle = <ð_phy>; + status = "okay"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + reset-gpios = <&pinctrl 88 GPIO_ACTIVE_LOW>; /* GPIOC24 */ + reset-delay-us = <10000>; + reset-post-delay-us = <150000>; + + eth_phy: ethernet-phy@3 { + reg = <0x3>; + max-speed = <100>; + interrupt-parent = <&sirq>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + }; + }; +}; + &twd_timer { status = "okay"; };
Signature · 1 line
2.25.1
Arnd Bergmann
AppliedFrom: Arnd Bergmann <[email protected]>
Quoted 11 lines · Manivannan Sadhasivam
Sorry for submitting this short series so late. I was waiting for the clk patches to be picked by Stephen.
For the Actions ARM32 platform, we have just couple of patches for v5.14 cycle adding Ethernet support to the S500 SoC and enabling it on the Roseapple Pi dev board. The EMAC controller is an in-house IP from Actions Semi capable of operating at 10/100Mb/s in half-duplex and full-duplex modes. The emac driver patches are already merged into netdev and the clk patches are just queued for v5.14.
[...]
Applied to arm/dt, thanks!
[1/2] ARM: dts: owl-s500: Add ethernet support
commit: df5060dce764998800baa085fc1a31c71fa15f2f
[2/2] ARM: dts: owl-s500-roseapplepi: Add ethernet support
commit: 062f82a0b7a760db3fb08f33c9a919c301c2ad9b
Arnd