2019-12-04 16:59:18

by Ioana Ciornei

[permalink] [raw]
Subject: [PATCH v2 0/2] arm64: dts: lx2160a: add EMDIO1 and phy nodes

This patch set adds the External MDIO1 node and the two
RGMII PHYs connected to it.

Changes in v2:
- added a newline between nodes in 2/2
- moved the WRIOP node (sorted by unit address) in 1/2

Ioana Ciornei (2):
arm64: dts: lx2160a: add emdio1 node
arm64: dts: lx2160a: add RGMII phy nodes

.../boot/dts/freescale/fsl-lx2160a-rdb.dts | 28 +++++++++++++++++++
.../arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 11 ++++++++
2 files changed, 39 insertions(+)

--
2.17.1


2019-12-04 17:00:56

by Ioana Ciornei

[permalink] [raw]
Subject: [PATCH v2 1/2] arm64: dts: lx2160a: add emdio1 node

Add the External MDIO1 device node found in the WRIOP global memory
region. This is needed for management of external PHYs.

Signed-off-by: Ioana Ciornei <[email protected]>
---
Changes in v2:
- moved the WRIOP node (sorted by unit address)

arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 11 +++++++++++
1 file changed, 11 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
index b032f3890c8c..b63336f3fe54 100644
--- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
@@ -861,6 +861,17 @@
fsl,extts-fifo;
};

+ /* WRIOP0: 0x8b8_0000, E-MDIO1: 0x1_6000 */
+ emdio1: mdio@8b96000 {
+ compatible = "fsl,fman-memac-mdio";
+ reg = <0x0 0x8b96000 0x0 0x1000>;
+ interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ little-endian;
+ status = "disabled";
+ };
+
fsl_mc: fsl-mc@80c000000 {
compatible = "fsl,qoriq-mc";
reg = <0x00000008 0x0c000000 0 0x40>,
--
2.17.1

2019-12-04 17:31:36

by Ioana Ciornei

[permalink] [raw]
Subject: [PATCH v2 2/2] arm64: dts: lx2160a: add RGMII phy nodes

Annotate the EMDIO1 node and describe the 2 AR8035 RGMII PHYs.
Also, add phy-handles for dpmac17 and dpmac18 to its associated PHY.
The MAC is not capable to add the needed RGMII delays, thus the
"rgmii-id" phy-connection-type is used.

Signed-off-by: Ioana Ciornei <[email protected]>
---
Changes in v2:
- added a newline between nodes

.../boot/dts/freescale/fsl-lx2160a-rdb.dts | 28 +++++++++++++++++++
1 file changed, 28 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts
index c2817b784232..51615de102fe 100644
--- a/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a-rdb.dts
@@ -35,6 +35,34 @@
status = "okay";
};

+&dpmac17 {
+ phy-handle = <&rgmii_phy1>;
+ phy-connection-type = "rgmii-id";
+};
+
+&dpmac18 {
+ phy-handle = <&rgmii_phy2>;
+ phy-connection-type = "rgmii-id";
+};
+
+&emdio1 {
+ status = "okay";
+
+ rgmii_phy1: ethernet-phy@1 {
+ /* AR8035 PHY */
+ compatible = "ethernet-phy-id004d.d072";
+ reg = <0x1>;
+ eee-broken-1000t;
+ };
+
+ rgmii_phy2: ethernet-phy@2 {
+ /* AR8035 PHY */
+ compatible = "ethernet-phy-id004d.d072";
+ reg = <0x2>;
+ eee-broken-1000t;
+ };
+};
+
&esdhc0 {
sd-uhs-sdr104;
sd-uhs-sdr50;
--
2.17.1

2019-12-11 03:19:02

by Shawn Guo

[permalink] [raw]
Subject: Re: [PATCH v2 0/2] arm64: dts: lx2160a: add EMDIO1 and phy nodes

On Wed, Dec 04, 2019 at 06:58:26PM +0200, Ioana Ciornei wrote:
> This patch set adds the External MDIO1 node and the two
> RGMII PHYs connected to it.
>
> Changes in v2:
> - added a newline between nodes in 2/2
> - moved the WRIOP node (sorted by unit address) in 1/2
>
> Ioana Ciornei (2):
> arm64: dts: lx2160a: add emdio1 node
> arm64: dts: lx2160a: add RGMII phy nodes

Applied both, thanks.

2019-12-23 02:12:26

by Shawn Guo

[permalink] [raw]
Subject: Re: [PATCH v2 0/2] arm64: dts: lx2160a: add EMDIO1 and phy nodes

Hi Ioana,

On Wed, Dec 04, 2019 at 06:58:26PM +0200, Ioana Ciornei wrote:
> This patch set adds the External MDIO1 node and the two
> RGMII PHYs connected to it.
>
> Changes in v2:
> - added a newline between nodes in 2/2
> - moved the WRIOP node (sorted by unit address) in 1/2
>
> Ioana Ciornei (2):
> arm64: dts: lx2160a: add emdio1 node
> arm64: dts: lx2160a: add RGMII phy nodes

I was just reminded by people who want to search the patch on
[email protected], that you should copy that list as
well. Generally you should use scripts/get_maintainer.pl to find
recipients when sending patches.

Shawn