linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] arm64: dts: freescale: sl28: fix RGMII
@ 2021-05-14 18:55 Michael Walle
  2021-05-14 18:55 ` [PATCH v2 1/2] arm64: dts: freescale: sl28: var4: fix RGMII clock and voltage Michael Walle
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Michael Walle @ 2021-05-14 18:55 UTC (permalink / raw)
  To: linux-arm-kernel, devicetree, linux-kernel
  Cc: Shawn Guo, Li Yang, Rob Herring, Michael Walle

This fixes the RGMII on the sl28 boards. While the network port was
actually working it is still out-of-spec.

Please note, that this is split into two patches because each one fixes
a different commit.

Changes since v1:
  - use different subjects for the two patches. I didn't use sl28-varN
	because I'd like to keep "sl28:" for all the sl28 related patches.

Michael Walle (2):
  arm64: dts: freescale: sl28: var4: fix RGMII clock and voltage
  arm64: dts: freescale: sl28: var1: fix RGMII clock and voltage

 .../boot/dts/freescale/fsl-ls1028a-kontron-sl28-var1.dts     | 3 ++-
 .../boot/dts/freescale/fsl-ls1028a-kontron-sl28-var4.dts     | 5 ++---
 2 files changed, 4 insertions(+), 4 deletions(-)

-- 
2.20.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH v2 1/2] arm64: dts: freescale: sl28: var4: fix RGMII clock and voltage
  2021-05-14 18:55 [PATCH v2 0/2] arm64: dts: freescale: sl28: fix RGMII Michael Walle
@ 2021-05-14 18:55 ` Michael Walle
  2021-05-14 18:55 ` [PATCH v2 2/2] arm64: dts: freescale: sl28: var1: " Michael Walle
  2021-05-23  5:08 ` [PATCH v2 0/2] arm64: dts: freescale: sl28: fix RGMII Shawn Guo
  2 siblings, 0 replies; 4+ messages in thread
From: Michael Walle @ 2021-05-14 18:55 UTC (permalink / raw)
  To: linux-arm-kernel, devicetree, linux-kernel
  Cc: Shawn Guo, Li Yang, Rob Herring, Michael Walle

During hardware validation it was noticed that the clock isn't
continuously enabled when there is no link. This is because the 125MHz
clock is derived from the internal PLL which seems to go into some kind
of power-down mode every once in a while. The LS1028A expects a contiuous
clock. Thus enable the PLL all the time.

Also, the RGMII pad voltage is wrong. It was configured to 2.5V (that is
the VDDH regulator). The correct voltage is 1.8V, i.e. the VDDIO
regulator.

This fix is for the freescale/fsl-ls1028a-kontron-sl28-var4.dts.

Fixes: 815364d0424e ("arm64: dts: freescale: add Kontron sl28 support")
Signed-off-by: Michael Walle <michael@walle.cc>
---
 .../boot/dts/freescale/fsl-ls1028a-kontron-sl28-var4.dts     | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var4.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var4.dts
index df212ed5bb94..e65d1c477e2c 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var4.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var4.dts
@@ -31,11 +31,10 @@
 			reg = <0x4>;
 			eee-broken-1000t;
 			eee-broken-100tx;
-
 			qca,clk-out-frequency = <125000000>;
 			qca,clk-out-strength = <AR803X_STRENGTH_FULL>;
-
-			vddio-supply = <&vddh>;
+			qca,keep-pll-enabled;
+			vddio-supply = <&vddio>;
 
 			vddio: vddio-regulator {
 				regulator-name = "VDDIO";
-- 
2.20.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH v2 2/2] arm64: dts: freescale: sl28: var1: fix RGMII clock and voltage
  2021-05-14 18:55 [PATCH v2 0/2] arm64: dts: freescale: sl28: fix RGMII Michael Walle
  2021-05-14 18:55 ` [PATCH v2 1/2] arm64: dts: freescale: sl28: var4: fix RGMII clock and voltage Michael Walle
@ 2021-05-14 18:55 ` Michael Walle
  2021-05-23  5:08 ` [PATCH v2 0/2] arm64: dts: freescale: sl28: fix RGMII Shawn Guo
  2 siblings, 0 replies; 4+ messages in thread
From: Michael Walle @ 2021-05-14 18:55 UTC (permalink / raw)
  To: linux-arm-kernel, devicetree, linux-kernel
  Cc: Shawn Guo, Li Yang, Rob Herring, Michael Walle

During hardware validation it was noticed that the clock isn't
continuously enabled when there is no link. This is because the 125MHz
clock is derived from the internal PLL which seems to go into some kind
of power-down mode every once in a while. The LS1028A expects a contiuous
clock. Thus enable the PLL all the time.

Also, the RGMII pad voltage is wrong, it was configured to 2.5V (that is
the VDDH regulator). The correct voltage is 1.8V, i.e. the VDDIO
regulator.

This fix is for the freescale/fsl-ls1028a-kontron-sl28-var1.dts.

Fixes: 642856097c18 ("arm64: dts: freescale: sl28: add variant 1")
Signed-off-by: Michael Walle <michael@walle.cc>
---
 .../arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var1.dts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var1.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var1.dts
index 6c309b97587d..e8d31279b7a3 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var1.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28-var1.dts
@@ -46,7 +46,8 @@
 			eee-broken-100tx;
 			qca,clk-out-frequency = <125000000>;
 			qca,clk-out-strength = <AR803X_STRENGTH_FULL>;
-			vddio-supply = <&vddh>;
+			qca,keep-pll-enabled;
+			vddio-supply = <&vddio>;
 
 			vddio: vddio-regulator {
 				regulator-name = "VDDIO";
-- 
2.20.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH v2 0/2] arm64: dts: freescale: sl28: fix RGMII
  2021-05-14 18:55 [PATCH v2 0/2] arm64: dts: freescale: sl28: fix RGMII Michael Walle
  2021-05-14 18:55 ` [PATCH v2 1/2] arm64: dts: freescale: sl28: var4: fix RGMII clock and voltage Michael Walle
  2021-05-14 18:55 ` [PATCH v2 2/2] arm64: dts: freescale: sl28: var1: " Michael Walle
@ 2021-05-23  5:08 ` Shawn Guo
  2 siblings, 0 replies; 4+ messages in thread
From: Shawn Guo @ 2021-05-23  5:08 UTC (permalink / raw)
  To: Michael Walle
  Cc: linux-arm-kernel, devicetree, linux-kernel, Li Yang, Rob Herring

On Fri, May 14, 2021 at 08:55:51PM +0200, Michael Walle wrote:
> This fixes the RGMII on the sl28 boards. While the network port was
> actually working it is still out-of-spec.
> 
> Please note, that this is split into two patches because each one fixes
> a different commit.
> 
> Changes since v1:
>   - use different subjects for the two patches. I didn't use sl28-varN
> 	because I'd like to keep "sl28:" for all the sl28 related patches.
> 
> Michael Walle (2):
>   arm64: dts: freescale: sl28: var4: fix RGMII clock and voltage
>   arm64: dts: freescale: sl28: var1: fix RGMII clock and voltage

Applied both, thanks.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2021-05-23  5:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-14 18:55 [PATCH v2 0/2] arm64: dts: freescale: sl28: fix RGMII Michael Walle
2021-05-14 18:55 ` [PATCH v2 1/2] arm64: dts: freescale: sl28: var4: fix RGMII clock and voltage Michael Walle
2021-05-14 18:55 ` [PATCH v2 2/2] arm64: dts: freescale: sl28: var1: " Michael Walle
2021-05-23  5:08 ` [PATCH v2 0/2] arm64: dts: freescale: sl28: fix RGMII Shawn Guo

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