Skip to contentSkip to conversation

ARM: Actions updates for v5.14

PATCH Applied Manivannan Sadhasivam 2 participants 4 messages Jun 28, 2021 – Aug 2, 2021

Subsystems (2)
lore
Share & tools
lore

Manivannan Sadhasivam

author maintainer
#0 lore raw

cover 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

[1] https://lore.kernel.org/lkml/1d0902cf073f76a1a602410061481ccb3fc36a72.1623354574.git.cristian.ciocaltea@gmail.com/

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
author maintainer
#1 lore raw

PATCH 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
index cd635f222d26..739b4b9cec8c 100644
@@ -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
author maintainer
#2 lore raw

PATCH 2/2 ARM: dts: owl-s500-roseapplepi: Add ethernet support

In reply to Manivannan Sadhasivam

From: 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
index b8c5db2344aa..eb555f385283 100644
@@ -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>;
 };
 
+&ethernet {
+	pinctrl-names = "default";
+	pinctrl-0 = <&ethernet_pins>;
+	phy-mode = "rmii";
+	phy-handle = <&eth_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
#3 lore raw
In reply to Manivannan Sadhasivam

From: 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