[PATCH 1/2] arm64: dts: fsl-ls1028a-qds: Drop overlay syntax hard coding

Shawn Guo shawnguo at kernel.org
Fri Feb 11 00:57:03 PST 2022


On Mon, Jan 31, 2022 at 11:07:00AM +0000, Vladimir Oltean wrote:
> Hi Shawn,
> 
> On Sat, Jan 29, 2022 at 03:09:11PM +0800, Shawn Guo wrote:
> > As suggested by commit 9ae8578b517a ("of: Documentation: change overlay
> > example to use current syntax"), there is no need to have overlay syntax
> > be hard coded in the device tree source file any more.
> > 
> > Signed-off-by: Shawn Guo <shawnguo at kernel.org>
> > ---
> 
> This looks good.
> 
> Reviewed-by: Vladimir Oltean <vladimir.oltean at nxp.com>
> 
> Just one minor comment below:
> 
> > diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-65bb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-65bb.dts
> > index 8ffb707a1576..bd88438c2ecd 100644
> > --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-65bb.dts
> > +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-qds-65bb.dts
> > @@ -11,98 +11,78 @@
> >  /dts-v1/;
> >  /plugin/;
> >  
> > -/ {
> > -	fragment at 0 {
> > -		target = <&mdio_slot1>;
> > -
> > -		__overlay__ {
> > -			#address-cells = <1>;
> > -			#size-cells = <0>;
> > -
> > -			slot1_sgmii: ethernet-phy at 2 {
> > -				/* AQR112 */
> > -				reg = <0x2>;
> > -				compatible = "ethernet-phy-ieee802.3-c45";
> > -			};
> > -		};
> > -	};
> > +&mdio_slot1 {
> >  
> 
> Can you please delete this blank line?

Fixed.  Thanks for spotting it, Vladimir!

Shawn

> 
> > -	fragment at 1 {
> > -		target = <&enetc_port0>;
> > +	#address-cells = <1>;
> > +	#size-cells = <0>;
> >  
> > -		__overlay__ {
> > -			phy-handle = <&slot1_sgmii>;
> > -			phy-mode = "2500base-x";
> > -			managed = "in-band-status";
> > -			status = "okay";
> > -		};
> > +	slot1_sgmii: ethernet-phy at 2 {
> > +		/* AQR112 */
> > +		reg = <0x2>;
> > +		compatible = "ethernet-phy-ieee802.3-c45";
> >  	};
> > +};



More information about the linux-arm-kernel mailing list