linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: ls1028a-qds: define mdio slots for networking options
@ 2022-01-26  9:26 Li Yang
  2022-01-26 13:21 ` Andrew Lunn
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Li Yang @ 2022-01-26  9:26 UTC (permalink / raw)
  To: Shawn Guo, linux-arm-kernel, linux-kernel; +Cc: Li Yang, Alex Marginean

The ls1028a QDS board support different pluggable PHY cards.  Define the
nodes for these slots to be updated at boot time with overlay according
to board setup.

Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
---
 .../boot/dts/freescale/fsl-ls1028a-qds.dts    | 24 +++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts
index 177bc1405f0f..19d3952dbffe 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts
@@ -107,6 +107,30 @@ qds_phy1: ethernet-phy@5 {
 				reg = <5>;
 			};
 		};
+
+		mdio_slot1: mdio@4 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <4>;
+		};
+
+		mdio_slot2: mdio@5 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <5>;
+		};
+
+		mdio_slot3: mdio@6 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <6>;
+		};
+
+		mdio_slot4: mdio@7 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			reg = <7>;
+		};
 	};
 };
 
-- 
2.25.1


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

* Re: [PATCH] arm64: dts: ls1028a-qds: define mdio slots for networking options
  2022-01-26  9:26 [PATCH] arm64: dts: ls1028a-qds: define mdio slots for networking options Li Yang
@ 2022-01-26 13:21 ` Andrew Lunn
  2022-01-27 17:05 ` Vladimir Oltean
  2022-01-29  7:01 ` Shawn Guo
  2 siblings, 0 replies; 4+ messages in thread
From: Andrew Lunn @ 2022-01-26 13:21 UTC (permalink / raw)
  To: Li Yang; +Cc: Shawn Guo, linux-arm-kernel, linux-kernel, Alex Marginean

On Wed, Jan 26, 2022 at 03:26:50AM -0600, Li Yang wrote:
> The ls1028a QDS board support different pluggable PHY cards.  Define the
> nodes for these slots to be updated at boot time with overlay according
> to board setup.
> 
> Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
> Signed-off-by: Li Yang <leoyang.li@nxp.com>

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew

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

* Re: [PATCH] arm64: dts: ls1028a-qds: define mdio slots for networking options
  2022-01-26  9:26 [PATCH] arm64: dts: ls1028a-qds: define mdio slots for networking options Li Yang
  2022-01-26 13:21 ` Andrew Lunn
@ 2022-01-27 17:05 ` Vladimir Oltean
  2022-01-29  7:01 ` Shawn Guo
  2 siblings, 0 replies; 4+ messages in thread
From: Vladimir Oltean @ 2022-01-27 17:05 UTC (permalink / raw)
  To: Li Yang
  Cc: Shawn Guo, linux-arm-kernel, linux-kernel, Alex Marginean, Andrew Lunn

On Wed, Jan 26, 2022 at 03:26:50AM -0600, Li Yang wrote:
> The ls1028a QDS board support different pluggable PHY cards.  Define the
> nodes for these slots to be updated at boot time with overlay according
> to board setup.
> 
> Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
> Signed-off-by: Li Yang <leoyang.li@nxp.com>
> ---

Tested-by: Vladimir Oltean <vladimir.oltean@nxp.com>

This fixes:
=> tftp $fdt_addr_r fsl-ls1028a-qds.dtb && tftp $fdt_ovr_addr_r fsl-ls1028a-qds-85bb.dtb
=> fdt addr $fdt_addr_r && fdt resize 0x100000 && fdt apply $fdt_ovr_addr_r
failed on fdt_overlay_apply(): FDT_ERR_NOTFOUND

>  .../boot/dts/freescale/fsl-ls1028a-qds.dts    | 24 +++++++++++++++++++
>  1 file changed, 24 insertions(+)
> 
> diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts
> index 177bc1405f0f..19d3952dbffe 100644
> --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts
> +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts
> @@ -107,6 +107,30 @@ qds_phy1: ethernet-phy@5 {
>  				reg = <5>;
>  			};
>  		};
> +
> +		mdio_slot1: mdio@4 {
> +			#address-cells = <1>;
> +			#size-cells = <0>;
> +			reg = <4>;
> +		};
> +
> +		mdio_slot2: mdio@5 {
> +			#address-cells = <1>;
> +			#size-cells = <0>;
> +			reg = <5>;
> +		};
> +
> +		mdio_slot3: mdio@6 {
> +			#address-cells = <1>;
> +			#size-cells = <0>;
> +			reg = <6>;
> +		};
> +
> +		mdio_slot4: mdio@7 {
> +			#address-cells = <1>;
> +			#size-cells = <0>;
> +			reg = <7>;
> +		};
>  	};
>  };
>  
> -- 
> 2.25.1
> 

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

* Re: [PATCH] arm64: dts: ls1028a-qds: define mdio slots for networking options
  2022-01-26  9:26 [PATCH] arm64: dts: ls1028a-qds: define mdio slots for networking options Li Yang
  2022-01-26 13:21 ` Andrew Lunn
  2022-01-27 17:05 ` Vladimir Oltean
@ 2022-01-29  7:01 ` Shawn Guo
  2 siblings, 0 replies; 4+ messages in thread
From: Shawn Guo @ 2022-01-29  7:01 UTC (permalink / raw)
  To: Li Yang; +Cc: linux-arm-kernel, linux-kernel, Alex Marginean

On Wed, Jan 26, 2022 at 03:26:50AM -0600, Li Yang wrote:
> The ls1028a QDS board support different pluggable PHY cards.  Define the
> nodes for these slots to be updated at boot time with overlay according
> to board setup.
> 
> Signed-off-by: Alex Marginean <alexandru.marginean@nxp.com>
> Signed-off-by: Li Yang <leoyang.li@nxp.com>

Applied, thanks!

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

end of thread, other threads:[~2022-01-29  7:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-26  9:26 [PATCH] arm64: dts: ls1028a-qds: define mdio slots for networking options Li Yang
2022-01-26 13:21 ` Andrew Lunn
2022-01-27 17:05 ` Vladimir Oltean
2022-01-29  7:01 ` 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).