On Mon, 9 May 2022 07:48:55 +0000 Corentin Labbe <clabbe@xxxxxxxxxxxx> wrote: Hi! > Now that PHY core can handle regulators, move regulator handle in PHY > node. Other than this is somewhat more "correct", is it really needed for those boards? Because it breaks compatibility with older kernels, so when we update the DTs in U-Boot, we run into problems (again). IIUC this series is about the OPi3 & friends, which didn't work with older kernels anyway, so can we just skip this patch (and 5/6), to just enable the boards that didn't work before? Cheers, Andre > > Signed-off-by: Corentin Labbe <clabbe@xxxxxxxxxxxx> > --- > arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts | 2 +- > arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts | 2 +- > arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts | 2 +- > arch/arm/boot/dts/sun8i-h3-nanopi-r1.dts | 2 +- > arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts | 2 +- > arch/arm/boot/dts/sun8i-h3-orangepi-plus2e.dts | 2 +- > arch/arm/boot/dts/sun8i-h3-zeropi.dts | 2 +- > arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts | 2 +- > arch/arm/boot/dts/sun8i-r40-oka40i-c.dts | 2 +- > arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts | 2 +- > arch/arm/boot/dts/sun9i-a80-cubieboard4.dts | 2 +- > arch/arm/boot/dts/sun9i-a80-optimus.dts | 2 +- > arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi | 2 +- > 13 files changed, 13 insertions(+), 13 deletions(-) > > diff --git a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts > index 5a7e1bd5f825..b450be0a45ed 100644 > --- a/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts > +++ b/arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dts > @@ -129,7 +129,6 @@ &ehci0 { > &emac { > pinctrl-names = "default"; > pinctrl-0 = <&emac_rgmii_pins>; > - phy-supply = <®_sw>; > phy-handle = <&rgmii_phy>; > phy-mode = "rgmii-id"; > allwinner,rx-delay-ps = <700>; > @@ -151,6 +150,7 @@ &mdio { > rgmii_phy: ethernet-phy@1 { > compatible = "ethernet-phy-ieee802.3-c22"; > reg = <1>; > + phy-supply = <®_sw>; > }; > }; > > diff --git a/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts b/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts > index 870993393fc2..fe70b350cdbb 100644 > --- a/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts > +++ b/arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dts > @@ -181,7 +181,6 @@ &ehci1 { > &emac { > pinctrl-names = "default"; > pinctrl-0 = <&emac_rgmii_pins>; > - phy-supply = <®_dldo4>; > phy-handle = <&rgmii_phy>; > phy-mode = "rgmii-id"; > status = "okay"; > @@ -201,6 +200,7 @@ &mdio { > rgmii_phy: ethernet-phy@1 { > compatible = "ethernet-phy-ieee802.3-c22"; > reg = <1>; > + phy-supply = <®_dldo4>; > }; > }; > > diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts b/arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts > index a2f2ef2b0092..c393612f44c6 100644 > --- a/arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts > +++ b/arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dts > @@ -103,7 +103,6 @@ &ehci2 { > &emac { > pinctrl-names = "default"; > pinctrl-0 = <&emac_rgmii_pins>; > - phy-supply = <®_gmac_3v3>; > phy-handle = <&ext_rgmii_phy>; > phy-mode = "rgmii"; > > @@ -114,6 +113,7 @@ &external_mdio { > ext_rgmii_phy: ethernet-phy@1 { > compatible = "ethernet-phy-ieee802.3-c22"; > reg = <7>; > + phy-supply = <®_gmac_3v3>; > }; > }; > > diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi-r1.dts b/arch/arm/boot/dts/sun8i-h3-nanopi-r1.dts > index 26e2e6172e0d..70bde396856b 100644 > --- a/arch/arm/boot/dts/sun8i-h3-nanopi-r1.dts > +++ b/arch/arm/boot/dts/sun8i-h3-nanopi-r1.dts > @@ -80,7 +80,6 @@ &ehci2 { > &emac { > pinctrl-names = "default"; > pinctrl-0 = <&emac_rgmii_pins>; > - phy-supply = <®_gmac_3v3>; > phy-handle = <&ext_rgmii_phy>; > phy-mode = "rgmii-id"; > status = "okay"; > @@ -90,6 +89,7 @@ &external_mdio { > ext_rgmii_phy: ethernet-phy@7 { > compatible = "ethernet-phy-ieee802.3-c22"; > reg = <7>; > + phy-supply = <®_gmac_3v3>; > }; > }; > > diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts > index d05fa679dcd3..c6dcf1af3298 100644 > --- a/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts > +++ b/arch/arm/boot/dts/sun8i-h3-orangepi-plus.dts > @@ -83,7 +83,6 @@ &ehci3 { > &emac { > pinctrl-names = "default"; > pinctrl-0 = <&emac_rgmii_pins>; > - phy-supply = <®_gmac_3v3>; > phy-handle = <&ext_rgmii_phy>; > phy-mode = "rgmii-id"; > > @@ -94,6 +93,7 @@ &external_mdio { > ext_rgmii_phy: ethernet-phy@1 { > compatible = "ethernet-phy-ieee802.3-c22"; > reg = <0>; > + phy-supply = <®_gmac_3v3>; > }; > }; > > diff --git a/arch/arm/boot/dts/sun8i-h3-orangepi-plus2e.dts b/arch/arm/boot/dts/sun8i-h3-orangepi-plus2e.dts > index b6ca45d18e51..61eb8c003186 100644 > --- a/arch/arm/boot/dts/sun8i-h3-orangepi-plus2e.dts > +++ b/arch/arm/boot/dts/sun8i-h3-orangepi-plus2e.dts > @@ -65,7 +65,6 @@ reg_gmac_3v3: gmac-3v3 { > &emac { > pinctrl-names = "default"; > pinctrl-0 = <&emac_rgmii_pins>; > - phy-supply = <®_gmac_3v3>; > phy-handle = <&ext_rgmii_phy>; > phy-mode = "rgmii-id"; > status = "okay"; > @@ -75,5 +74,6 @@ &external_mdio { > ext_rgmii_phy: ethernet-phy@1 { > compatible = "ethernet-phy-ieee802.3-c22"; > reg = <1>; > + phy-supply = <®_gmac_3v3>; > }; > }; > diff --git a/arch/arm/boot/dts/sun8i-h3-zeropi.dts b/arch/arm/boot/dts/sun8i-h3-zeropi.dts > index 7d3e7323b661..54174ef18823 100644 > --- a/arch/arm/boot/dts/sun8i-h3-zeropi.dts > +++ b/arch/arm/boot/dts/sun8i-h3-zeropi.dts > @@ -65,13 +65,13 @@ &external_mdio { > ext_rgmii_phy: ethernet-phy@7 { > compatible = "ethernet-phy-ieee802.3-c22"; > reg = <7>; > + phy-supply = <®_gmac_3v3>; > }; > }; > > &emac { > pinctrl-names = "default"; > pinctrl-0 = <&emac_rgmii_pins>; > - phy-supply = <®_gmac_3v3>; > phy-handle = <&ext_rgmii_phy>; > phy-mode = "rgmii-id"; > > diff --git a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts > index a6a1087a0c9b..b1f269bbd479 100644 > --- a/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts > +++ b/arch/arm/boot/dts/sun8i-r40-bananapi-m2-ultra.dts > @@ -130,7 +130,6 @@ &gmac { > pinctrl-0 = <&gmac_rgmii_pins>; > phy-handle = <&phy1>; > phy-mode = "rgmii-id"; > - phy-supply = <®_dc1sw>; > status = "okay"; > }; > > @@ -138,6 +137,7 @@ &gmac_mdio { > phy1: ethernet-phy@1 { > compatible = "ethernet-phy-ieee802.3-c22"; > reg = <1>; > + phy-supply = <®_dc1sw>; > }; > }; > > diff --git a/arch/arm/boot/dts/sun8i-r40-oka40i-c.dts b/arch/arm/boot/dts/sun8i-r40-oka40i-c.dts > index 0bd1336206b8..c43476b426df 100644 > --- a/arch/arm/boot/dts/sun8i-r40-oka40i-c.dts > +++ b/arch/arm/boot/dts/sun8i-r40-oka40i-c.dts > @@ -93,7 +93,6 @@ &gmac { > pinctrl-0 = <&gmac_rgmii_pins>; > phy-handle = <&phy1>; > phy-mode = "rgmii-id"; > - phy-supply = <®_dcdc1>; > status = "okay"; > }; > > @@ -101,6 +100,7 @@ &gmac_mdio { > phy1: ethernet-phy@1 { > compatible = "ethernet-phy-ieee802.3-c22"; > reg = <1>; > + phy-supply = <®_dcdc1>; > }; > }; > > diff --git a/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts b/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts > index 47954551f573..050a649d7bda 100644 > --- a/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts > +++ b/arch/arm/boot/dts/sun8i-v40-bananapi-m2-berry.dts > @@ -121,7 +121,6 @@ &gmac { > pinctrl-0 = <&gmac_rgmii_pins>; > phy-handle = <&phy1>; > phy-mode = "rgmii-id"; > - phy-supply = <®_dc1sw>; > status = "okay"; > }; > > @@ -129,6 +128,7 @@ &gmac_mdio { > phy1: ethernet-phy@1 { > compatible = "ethernet-phy-ieee802.3-c22"; > reg = <1>; > + phy-supply = <®_dc1sw>; > }; > }; > > diff --git a/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts b/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts > index c8ca8cb7f5c9..ab9bf4bf7343 100644 > --- a/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts > +++ b/arch/arm/boot/dts/sun9i-a80-cubieboard4.dts > @@ -130,7 +130,6 @@ &gmac { > pinctrl-0 = <&gmac_rgmii_pins>; > phy-handle = <&phy1>; > phy-mode = "rgmii-id"; > - phy-supply = <®_cldo1>; > status = "okay"; > }; > > @@ -142,6 +141,7 @@ &i2c3 { > > &mdio { > phy1: ethernet-phy@1 { > + phy-supply = <®_cldo1>; > reg = <1>; > }; > }; > diff --git a/arch/arm/boot/dts/sun9i-a80-optimus.dts b/arch/arm/boot/dts/sun9i-a80-optimus.dts > index 5c3580d712e4..48219b8049b1 100644 > --- a/arch/arm/boot/dts/sun9i-a80-optimus.dts > +++ b/arch/arm/boot/dts/sun9i-a80-optimus.dts > @@ -125,13 +125,13 @@ &gmac { > pinctrl-0 = <&gmac_rgmii_pins>; > phy-handle = <&phy1>; > phy-mode = "rgmii-id"; > - phy-supply = <®_cldo1>; > status = "okay"; > }; > > &mdio { > phy1: ethernet-phy@1 { > reg = <1>; > + phy-supply = <®_cldo1>; > }; > }; > > diff --git a/arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi b/arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi > index d03f5853ef7b..65f0a3c2af3f 100644 > --- a/arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi > +++ b/arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi > @@ -125,7 +125,6 @@ &ehci2 { > &emac { > pinctrl-names = "default"; > pinctrl-0 = <&emac_rgmii_pins>; > - phy-supply = <®_gmac_3v3>; > phy-handle = <&ext_rgmii_phy>; > phy-mode = "rgmii-id"; > > @@ -136,6 +135,7 @@ &external_mdio { > ext_rgmii_phy: ethernet-phy@1 { > compatible = "ethernet-phy-ieee802.3-c22"; > reg = <1>; > + phy-supply = <®_gmac_3v3>; > }; > }; >