public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: lan966x: Add support for SMA connectors
@ 2023-04-21 11:37 Horatiu Vultur
  2023-05-21 15:10 ` Horatiu Vultur
  2023-05-22  9:41 ` Claudiu.Beznea
  0 siblings, 2 replies; 3+ messages in thread
From: Horatiu Vultur @ 2023-04-21 11:37 UTC (permalink / raw)
  To: devicetree, linux-kernel, netdev
  Cc: robh+dt, krzysztof.kozlowski+dt, richardcochran, nicolas.ferre,
	claudiu.beznea, Horatiu Vultur

The pcb8309 has 2 SMA connectors which are connected to the lan966x
chip. The lan966x can generate 1PPS output on one of them and it can
receive 1PPS input on the other one.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
---
 arch/arm/boot/dts/lan966x-pcb8309.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm/boot/dts/lan966x-pcb8309.dts b/arch/arm/boot/dts/lan966x-pcb8309.dts
index c436cd20d4b4c..0cb505f79ba1a 100644
--- a/arch/arm/boot/dts/lan966x-pcb8309.dts
+++ b/arch/arm/boot/dts/lan966x-pcb8309.dts
@@ -144,6 +144,18 @@ fc4_b_pins: fc4-b-pins {
 		function = "fc4_b";
 	};
 
+	pps_out_pins: pps-out-pins {
+		/* 1pps output */
+		pins = "GPIO_38";
+		function = "ptpsync_3";
+	};
+
+	ptp_ext_pins: ptp-ext-pins {
+		/* 1pps input */
+		pins = "GPIO_39";
+		function = "ptpsync_4";
+	};
+
 	sgpio_a_pins: sgpio-a-pins {
 		/* SCK, D0, D1, LD */
 		pins = "GPIO_32", "GPIO_33", "GPIO_34", "GPIO_35";
@@ -212,5 +224,7 @@ gpio@1 {
 };
 
 &switch {
+	pinctrl-0 = <&pps_out_pins>, <&ptp_ext_pins>;
+	pinctrl-names = "default";
 	status = "okay";
 };
-- 
2.38.0


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

* Re: [PATCH] ARM: dts: lan966x: Add support for SMA connectors
  2023-04-21 11:37 [PATCH] ARM: dts: lan966x: Add support for SMA connectors Horatiu Vultur
@ 2023-05-21 15:10 ` Horatiu Vultur
  2023-05-22  9:41 ` Claudiu.Beznea
  1 sibling, 0 replies; 3+ messages in thread
From: Horatiu Vultur @ 2023-05-21 15:10 UTC (permalink / raw)
  To: devicetree, linux-kernel, netdev
  Cc: robh+dt, krzysztof.kozlowski+dt, richardcochran, nicolas.ferre,
	claudiu.beznea

The 04/21/2023 13:37, Horatiu Vultur wrote:

Hi,

> The pcb8309 has 2 SMA connectors which are connected to the lan966x
> chip. The lan966x can generate 1PPS output on one of them and it can
> receive 1PPS input on the other one.

Just a gentle ping. Thanks.

> 
> Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
> ---
>  arch/arm/boot/dts/lan966x-pcb8309.dts | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/lan966x-pcb8309.dts b/arch/arm/boot/dts/lan966x-pcb8309.dts
> index c436cd20d4b4c..0cb505f79ba1a 100644
> --- a/arch/arm/boot/dts/lan966x-pcb8309.dts
> +++ b/arch/arm/boot/dts/lan966x-pcb8309.dts
> @@ -144,6 +144,18 @@ fc4_b_pins: fc4-b-pins {
>  		function = "fc4_b";
>  	};
>  
> +	pps_out_pins: pps-out-pins {
> +		/* 1pps output */
> +		pins = "GPIO_38";
> +		function = "ptpsync_3";
> +	};
> +
> +	ptp_ext_pins: ptp-ext-pins {
> +		/* 1pps input */
> +		pins = "GPIO_39";
> +		function = "ptpsync_4";
> +	};
> +
>  	sgpio_a_pins: sgpio-a-pins {
>  		/* SCK, D0, D1, LD */
>  		pins = "GPIO_32", "GPIO_33", "GPIO_34", "GPIO_35";
> @@ -212,5 +224,7 @@ gpio@1 {
>  };
>  
>  &switch {
> +	pinctrl-0 = <&pps_out_pins>, <&ptp_ext_pins>;
> +	pinctrl-names = "default";
>  	status = "okay";
>  };
> -- 
> 2.38.0
> 

-- 
/Horatiu

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

* Re: [PATCH] ARM: dts: lan966x: Add support for SMA connectors
  2023-04-21 11:37 [PATCH] ARM: dts: lan966x: Add support for SMA connectors Horatiu Vultur
  2023-05-21 15:10 ` Horatiu Vultur
@ 2023-05-22  9:41 ` Claudiu.Beznea
  1 sibling, 0 replies; 3+ messages in thread
From: Claudiu.Beznea @ 2023-05-22  9:41 UTC (permalink / raw)
  To: Horatiu.Vultur, devicetree, linux-kernel, netdev
  Cc: robh+dt, krzysztof.kozlowski+dt, richardcochran, Nicolas.Ferre

On 21.04.2023 14:37, Horatiu Vultur wrote:
> The pcb8309 has 2 SMA connectors which are connected to the lan966x
> chip. The lan966x can generate 1PPS output on one of them and it can
> receive 1PPS input on the other one.
> 
> Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>

Applied to at91-dt, thanks!

> ---
>  arch/arm/boot/dts/lan966x-pcb8309.dts | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/lan966x-pcb8309.dts b/arch/arm/boot/dts/lan966x-pcb8309.dts
> index c436cd20d4b4c..0cb505f79ba1a 100644
> --- a/arch/arm/boot/dts/lan966x-pcb8309.dts
> +++ b/arch/arm/boot/dts/lan966x-pcb8309.dts
> @@ -144,6 +144,18 @@ fc4_b_pins: fc4-b-pins {
>  		function = "fc4_b";
>  	};
>  
> +	pps_out_pins: pps-out-pins {
> +		/* 1pps output */
> +		pins = "GPIO_38";
> +		function = "ptpsync_3";
> +	};
> +
> +	ptp_ext_pins: ptp-ext-pins {
> +		/* 1pps input */
> +		pins = "GPIO_39";
> +		function = "ptpsync_4";
> +	};
> +
>  	sgpio_a_pins: sgpio-a-pins {
>  		/* SCK, D0, D1, LD */
>  		pins = "GPIO_32", "GPIO_33", "GPIO_34", "GPIO_35";
> @@ -212,5 +224,7 @@ gpio@1 {
>  };
>  
>  &switch {
> +	pinctrl-0 = <&pps_out_pins>, <&ptp_ext_pins>;
> +	pinctrl-names = "default";
>  	status = "okay";
>  };


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

end of thread, other threads:[~2023-05-22  9:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-21 11:37 [PATCH] ARM: dts: lan966x: Add support for SMA connectors Horatiu Vultur
2023-05-21 15:10 ` Horatiu Vultur
2023-05-22  9:41 ` Claudiu.Beznea

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox