soc.lore.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: Actions updates for v5.14
@ 2021-06-28  7:28 Manivannan Sadhasivam
  2021-06-28  7:28 ` [PATCH 1/2] ARM: dts: owl-s500: Add ethernet support Manivannan Sadhasivam
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Manivannan Sadhasivam @ 2021-06-28  7:28 UTC (permalink / raw)
  To: soc
  Cc: olof, arnd, afaerber, linux-actions, thomas.liau,
	cristian.ciocaltea, Manivannan Sadhasivam

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(+)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] ARM: dts: owl-s500: Add ethernet support
  2021-06-28  7:28 [PATCH 0/2] ARM: Actions updates for v5.14 Manivannan Sadhasivam
@ 2021-06-28  7:28 ` Manivannan Sadhasivam
  2021-06-28  7:28 ` [PATCH 2/2] ARM: dts: owl-s500-roseapplepi: " Manivannan Sadhasivam
  2021-08-02 13:34 ` [PATCH 0/2] ARM: Actions updates for v5.14 Arnd Bergmann
  2 siblings, 0 replies; 4+ messages in thread
From: Manivannan Sadhasivam @ 2021-06-28  7:28 UTC (permalink / raw)
  To: soc
  Cc: olof, arnd, afaerber, linux-actions, thomas.liau,
	cristian.ciocaltea, kernel test robot, Manivannan Sadhasivam,
	Manivannan Sadhasivam

From: Cristian Ciocaltea <cristian.ciocaltea@gmail.com>

Add Ethernet MAC device tree node for Actions Semi S500 SoC.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/222ee0c2cb431619f558dce9726585ac92f65e00.1623401998.git.cristian.ciocaltea@gmail.com
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
---
 arch/arm/boot/dts/owl-s500.dtsi | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/arch/arm/boot/dts/owl-s500.dtsi b/arch/arm/boot/dts/owl-s500.dtsi
index cd635f222d26..739b4b9cec8c 100644
--- a/arch/arm/boot/dts/owl-s500.dtsi
+++ b/arch/arm/boot/dts/owl-s500.dtsi
@@ -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";
+		};
 	};
 };
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] ARM: dts: owl-s500-roseapplepi: Add ethernet support
  2021-06-28  7:28 [PATCH 0/2] ARM: Actions updates for v5.14 Manivannan Sadhasivam
  2021-06-28  7:28 ` [PATCH 1/2] ARM: dts: owl-s500: Add ethernet support Manivannan Sadhasivam
@ 2021-06-28  7:28 ` Manivannan Sadhasivam
  2021-08-02 13:34 ` [PATCH 0/2] ARM: Actions updates for v5.14 Arnd Bergmann
  2 siblings, 0 replies; 4+ messages in thread
From: Manivannan Sadhasivam @ 2021-06-28  7:28 UTC (permalink / raw)
  To: soc
  Cc: olof, arnd, afaerber, linux-actions, thomas.liau,
	cristian.ciocaltea, Manivannan Sadhasivam, Manivannan Sadhasivam

From: Cristian Ciocaltea <cristian.ciocaltea@gmail.com>

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.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/d0e1fbf81984127f0352eb740c7129424b5e40f9.1623401998.git.cristian.ciocaltea@gmail.com
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
---
 arch/arm/boot/dts/owl-s500-roseapplepi.dts | 45 ++++++++++++++++++++++
 1 file changed, 45 insertions(+)

diff --git a/arch/arm/boot/dts/owl-s500-roseapplepi.dts b/arch/arm/boot/dts/owl-s500-roseapplepi.dts
index b8c5db2344aa..eb555f385283 100644
--- a/arch/arm/boot/dts/owl-s500-roseapplepi.dts
+++ b/arch/arm/boot/dts/owl-s500-roseapplepi.dts
@@ -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";
 };
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] ARM: Actions updates for v5.14
  2021-06-28  7:28 [PATCH 0/2] ARM: Actions updates for v5.14 Manivannan Sadhasivam
  2021-06-28  7:28 ` [PATCH 1/2] ARM: dts: owl-s500: Add ethernet support Manivannan Sadhasivam
  2021-06-28  7:28 ` [PATCH 2/2] ARM: dts: owl-s500-roseapplepi: " Manivannan Sadhasivam
@ 2021-08-02 13:34 ` Arnd Bergmann
  2 siblings, 0 replies; 4+ messages in thread
From: Arnd Bergmann @ 2021-08-02 13:34 UTC (permalink / raw)
  To: soc, Manivannan Sadhasivam
  Cc: Arnd Bergmann, thomas.liau, cristian.ciocaltea, linux-actions,
	olof, afaerber

From: Arnd Bergmann <arnd@arndb.de>

On Mon, 28 Jun 2021 12:58:15 +0530, Manivannan Sadhasivam wrote:
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-08-02 13:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28  7:28 [PATCH 0/2] ARM: Actions updates for v5.14 Manivannan Sadhasivam
2021-06-28  7:28 ` [PATCH 1/2] ARM: dts: owl-s500: Add ethernet support Manivannan Sadhasivam
2021-06-28  7:28 ` [PATCH 2/2] ARM: dts: owl-s500-roseapplepi: " Manivannan Sadhasivam
2021-08-02 13:34 ` [PATCH 0/2] ARM: Actions updates for v5.14 Arnd Bergmann

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).