2018-04-06 12:48:19

by Esben Haabendal

[permalink] [raw]
Subject: [PATCH] ARM: dts: ls1021a: Specify TBIPA register address

From: Esben Haabendal <[email protected]>

The current (mildly evil) fsl_pq_mdio code uses an undocumented shadow of
the TBIPA register on LS1021A, which happens to be read-only.
Changing TBI PHY address therefore does not work on LS1021A.

The real (and documented) address of the TBIPA registere lies in the eTSEC
block and not in MDIO/MII, which is read/write, so using that fixes
the problem.

Signed-off-by: Esben Haabendal <[email protected]>
---
arch/arm/boot/dts/ls1021a.dtsi | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi
index c31dad98f989..728e206009ea 100644
--- a/arch/arm/boot/dts/ls1021a.dtsi
+++ b/arch/arm/boot/dts/ls1021a.dtsi
@@ -587,7 +587,8 @@
device_type = "mdio";
#address-cells = <1>;
#size-cells = <0>;
- reg = <0x0 0x2d24000 0x0 0x4000>;
+ reg = <0x0 0x2d24000 0x0 0x4000>,
+ <0x0 0x2d10030 0x0 0x4>;
};

ptp_clock@2d10e00 {
--
2.16.3



2018-04-08 17:24:45

by David Miller

[permalink] [raw]
Subject: Re: [PATCH] ARM: dts: ls1021a: Specify TBIPA register address

From: Esben Haabendal <[email protected]>
Date: Fri, 6 Apr 2018 14:46:35 +0200

> From: Esben Haabendal <[email protected]>
>
> The current (mildly evil) fsl_pq_mdio code uses an undocumented shadow of
> the TBIPA register on LS1021A, which happens to be read-only.
> Changing TBI PHY address therefore does not work on LS1021A.
>
> The real (and documented) address of the TBIPA registere lies in the eTSEC
> block and not in MDIO/MII, which is read/write, so using that fixes
> the problem.
>
> Signed-off-by: Esben Haabendal <[email protected]>

Applied.