* [PATCH v2 0/2] arm64: dts: lx2160a: add EMDIO1 and phy nodes
@ 2019-12-04 16:58 Ioana Ciornei
2019-12-04 16:58 ` [PATCH v2 1/2] arm64: dts: lx2160a: add emdio1 node Ioana Ciornei
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Ioana Ciornei @ 2019-12-04 16:58 UTC (permalink / raw)
To: shawnguo; +Cc: devicetree, linux-kernel, Ioana Ciornei
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 1/2] arm64: dts: lx2160a: add emdio1 node
2019-12-04 16:58 [PATCH v2 0/2] arm64: dts: lx2160a: add EMDIO1 and phy nodes Ioana Ciornei
@ 2019-12-04 16:58 ` Ioana Ciornei
2019-12-04 16:58 ` [PATCH v2 2/2] arm64: dts: lx2160a: add RGMII phy nodes Ioana Ciornei
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Ioana Ciornei @ 2019-12-04 16:58 UTC (permalink / raw)
To: shawnguo; +Cc: devicetree, linux-kernel, Ioana Ciornei
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 <ioana.ciornei@nxp.com>
---
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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v2 2/2] arm64: dts: lx2160a: add RGMII phy nodes
2019-12-04 16:58 [PATCH v2 0/2] arm64: dts: lx2160a: add EMDIO1 and phy nodes Ioana Ciornei
2019-12-04 16:58 ` [PATCH v2 1/2] arm64: dts: lx2160a: add emdio1 node Ioana Ciornei
@ 2019-12-04 16:58 ` Ioana Ciornei
2019-12-11 3:18 ` [PATCH v2 0/2] arm64: dts: lx2160a: add EMDIO1 and " Shawn Guo
2019-12-23 2:10 ` Shawn Guo
3 siblings, 0 replies; 5+ messages in thread
From: Ioana Ciornei @ 2019-12-04 16:58 UTC (permalink / raw)
To: shawnguo; +Cc: devicetree, linux-kernel, Ioana Ciornei
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 <ioana.ciornei@nxp.com>
---
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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH v2 0/2] arm64: dts: lx2160a: add EMDIO1 and phy nodes
2019-12-04 16:58 [PATCH v2 0/2] arm64: dts: lx2160a: add EMDIO1 and phy nodes Ioana Ciornei
2019-12-04 16:58 ` [PATCH v2 1/2] arm64: dts: lx2160a: add emdio1 node Ioana Ciornei
2019-12-04 16:58 ` [PATCH v2 2/2] arm64: dts: lx2160a: add RGMII phy nodes Ioana Ciornei
@ 2019-12-11 3:18 ` Shawn Guo
2019-12-23 2:10 ` Shawn Guo
3 siblings, 0 replies; 5+ messages in thread
From: Shawn Guo @ 2019-12-11 3:18 UTC (permalink / raw)
To: Ioana Ciornei; +Cc: devicetree, linux-kernel
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v2 0/2] arm64: dts: lx2160a: add EMDIO1 and phy nodes
2019-12-04 16:58 [PATCH v2 0/2] arm64: dts: lx2160a: add EMDIO1 and phy nodes Ioana Ciornei
` (2 preceding siblings ...)
2019-12-11 3:18 ` [PATCH v2 0/2] arm64: dts: lx2160a: add EMDIO1 and " Shawn Guo
@ 2019-12-23 2:10 ` Shawn Guo
3 siblings, 0 replies; 5+ messages in thread
From: Shawn Guo @ 2019-12-23 2:10 UTC (permalink / raw)
To: Ioana Ciornei; +Cc: devicetree, linux-kernel
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
linux-arm-kernel@lists.infradead.org, that you should copy that list as
well. Generally you should use scripts/get_maintainer.pl to find
recipients when sending patches.
Shawn
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-12-23 2:10 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-04 16:58 [PATCH v2 0/2] arm64: dts: lx2160a: add EMDIO1 and phy nodes Ioana Ciornei
2019-12-04 16:58 ` [PATCH v2 1/2] arm64: dts: lx2160a: add emdio1 node Ioana Ciornei
2019-12-04 16:58 ` [PATCH v2 2/2] arm64: dts: lx2160a: add RGMII phy nodes Ioana Ciornei
2019-12-11 3:18 ` [PATCH v2 0/2] arm64: dts: lx2160a: add EMDIO1 and " Shawn Guo
2019-12-23 2:10 ` 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).