linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 1/2] net: macb: Add PTP support for SAMA5D29
@ 2021-08-12  7:44 Hari Prasath
  2021-08-12  7:44 ` [PATCH net-next 2/2] dt-bindings: net: macb: add documentation for sama5d29 ethernet interface Hari Prasath
  2021-08-13 23:20 ` [PATCH net-next 1/2] net: macb: Add PTP support for SAMA5D29 patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Hari Prasath @ 2021-08-12  7:44 UTC (permalink / raw)
  To: nicolas.ferre, claudiu.beznea, davem, kuba, linux, palmer,
	paul.walmsley, netdev, linux-kernel, linux-riscv, robh,
	devicetree
  Cc: mpuswlinux, Hari.PrasathGE

Add PTP capability to the macb config object for sama5d29.

Signed-off-by: Hari Prasath <Hari.PrasathGE@microchip.com>
---
 drivers/net/ethernet/cadence/macb_main.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c
index 181ebc235925..d13fb1d31821 100644
--- a/drivers/net/ethernet/cadence/macb_main.c
+++ b/drivers/net/ethernet/cadence/macb_main.c
@@ -4533,6 +4533,14 @@ static const struct macb_config sama5d2_config = {
 	.usrio = &macb_default_usrio,
 };
 
+static const struct macb_config sama5d29_config = {
+	.caps = MACB_CAPS_USRIO_DEFAULT_IS_MII_GMII | MACB_CAPS_GEM_HAS_PTP,
+	.dma_burst_length = 16,
+	.clk_init = macb_clk_init,
+	.init = macb_init,
+	.usrio = &macb_default_usrio,
+};
+
 static const struct macb_config sama5d3_config = {
 	.caps = MACB_CAPS_SG_DISABLED | MACB_CAPS_GIGABIT_MODE_AVAILABLE
 	      | MACB_CAPS_USRIO_DEFAULT_IS_MII_GMII | MACB_CAPS_JUMBO,
@@ -4610,6 +4618,7 @@ static const struct of_device_id macb_dt_ids[] = {
 	{ .compatible = "cdns,gem", .data = &pc302gem_config },
 	{ .compatible = "cdns,sam9x60-macb", .data = &at91sam9260_config },
 	{ .compatible = "atmel,sama5d2-gem", .data = &sama5d2_config },
+	{ .compatible = "atmel,sama5d29-gem", .data = &sama5d29_config },
 	{ .compatible = "atmel,sama5d3-gem", .data = &sama5d3_config },
 	{ .compatible = "atmel,sama5d3-macb", .data = &sama5d3macb_config },
 	{ .compatible = "atmel,sama5d4-gem", .data = &sama5d4_config },
-- 
2.17.1


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

* [PATCH net-next 2/2] dt-bindings: net: macb: add documentation for sama5d29 ethernet interface
  2021-08-12  7:44 [PATCH net-next 1/2] net: macb: Add PTP support for SAMA5D29 Hari Prasath
@ 2021-08-12  7:44 ` Hari Prasath
  2021-08-13 23:20 ` [PATCH net-next 1/2] net: macb: Add PTP support for SAMA5D29 patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Hari Prasath @ 2021-08-12  7:44 UTC (permalink / raw)
  To: nicolas.ferre, claudiu.beznea, davem, kuba, linux, palmer,
	paul.walmsley, netdev, linux-kernel, linux-riscv, robh,
	devicetree
  Cc: mpuswlinux, Hari.PrasathGE

Add documentation for SAMA5D29 ethernet interface.

Signed-off-by: Hari Prasath <Hari.PrasathGE@microchip.com>
---
 Documentation/devicetree/bindings/net/macb.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/net/macb.txt b/Documentation/devicetree/bindings/net/macb.txt
index a4d547efc32a..af9df2f01a1c 100644
--- a/Documentation/devicetree/bindings/net/macb.txt
+++ b/Documentation/devicetree/bindings/net/macb.txt
@@ -8,6 +8,7 @@ Required properties:
   Use "cdns,np4-macb" for NP4 SoC devices.
   Use "cdns,at32ap7000-macb" for other 10/100 usage or use the generic form: "cdns,macb".
   Use "atmel,sama5d2-gem" for the GEM IP (10/100) available on Atmel sama5d2 SoCs.
+  Use "atmel,sama5d29-gem" for GEM XL IP (10/100) available on Atmel sama5d29 SoCs.
   Use "atmel,sama5d3-macb" for the 10/100Mbit IP available on Atmel sama5d3 SoCs.
   Use "atmel,sama5d3-gem" for the Gigabit IP available on Atmel sama5d3 SoCs.
   Use "atmel,sama5d4-gem" for the GEM IP (10/100) available on Atmel sama5d4 SoCs.
-- 
2.17.1


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

* Re: [PATCH net-next 1/2] net: macb: Add PTP support for SAMA5D29
  2021-08-12  7:44 [PATCH net-next 1/2] net: macb: Add PTP support for SAMA5D29 Hari Prasath
  2021-08-12  7:44 ` [PATCH net-next 2/2] dt-bindings: net: macb: add documentation for sama5d29 ethernet interface Hari Prasath
@ 2021-08-13 23:20 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-08-13 23:20 UTC (permalink / raw)
  To: Hari Prasath
  Cc: nicolas.ferre, claudiu.beznea, davem, kuba, linux, palmer,
	paul.walmsley, netdev, linux-kernel, linux-riscv, robh,
	devicetree, mpuswlinux

Hello:

This series was applied to netdev/net-next.git (refs/heads/master):

On Thu, 12 Aug 2021 13:14:21 +0530 you wrote:
> Add PTP capability to the macb config object for sama5d29.
> 
> Signed-off-by: Hari Prasath <Hari.PrasathGE@microchip.com>
> ---
>  drivers/net/ethernet/cadence/macb_main.c | 9 +++++++++
>  1 file changed, 9 insertions(+)

Here is the summary with links:
  - [net-next,1/2] net: macb: Add PTP support for SAMA5D29
    https://git.kernel.org/netdev/net-next/c/7d13ad501169
  - [net-next,2/2] dt-bindings: net: macb: add documentation for sama5d29 ethernet interface
    https://git.kernel.org/netdev/net-next/c/593f8c44cc8b

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-12  7:44 [PATCH net-next 1/2] net: macb: Add PTP support for SAMA5D29 Hari Prasath
2021-08-12  7:44 ` [PATCH net-next 2/2] dt-bindings: net: macb: add documentation for sama5d29 ethernet interface Hari Prasath
2021-08-13 23:20 ` [PATCH net-next 1/2] net: macb: Add PTP support for SAMA5D29 patchwork-bot+netdevbpf

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