]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: renesas: r8a779h0: Remove #address- and #size-cells from AVB[0-2]
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Tue, 7 Jan 2025 16:01:26 +0000 (17:01 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 21 Feb 2025 15:22:59 +0000 (16:22 +0100)
When describing the PHYs connected to AVB1 and AVB2, mdio nodes will be
needed to describe the connections, and each mdio node will need to
contain these two properties instead.  This will make the #address-cells
and #size-cells described in the base SoC include file redundant and
they will produce warnings, remove them.

In an effort to keep all three AVB nodes style consistent add an mdio
node to AVB0 already described and rename the phy node to better
describe the PHY that is connected to AVB0 before adding more PHYs.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/20250107160127.528933-2-niklas.soderlund+renesas@ragnatech.se
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts
arch/arm64/boot/dts/renesas/r8a779h0.dtsi

index 18fd52f55de5b75b30c539563b107b6bd9a5f561..f3a744e17d48046b6711445a9359c50dc293b899 100644 (file)
 &avb0 {
        pinctrl-0 = <&avb0_pins>;
        pinctrl-names = "default";
-       phy-handle = <&phy0>;
+       phy-handle = <&avb0_phy>;
        tx-internal-delay-ps = <2000>;
        status = "okay";
 
-       phy0: ethernet-phy@0 {
-               compatible = "ethernet-phy-id0022.1622",
-                            "ethernet-phy-ieee802.3-c22";
-               rxc-skew-ps = <1500>;
-               reg = <0>;
-               interrupts-extended = <&gpio7 5 IRQ_TYPE_LEVEL_LOW>;
-               reset-gpios = <&gpio7 10 GPIO_ACTIVE_LOW>;
+       mdio {
+               #address-cells = <1>;
+               #size-cells = <0>;
+
+               avb0_phy: ethernet-phy@0 {
+                       compatible = "ethernet-phy-id0022.1622",
+                               "ethernet-phy-ieee802.3-c22";
+                               rxc-skew-ps = <1500>;
+                               reg = <0>;
+                               interrupts-extended = <&gpio7 5 IRQ_TYPE_LEVEL_LOW>;
+                               reset-gpios = <&gpio7 10 GPIO_ACTIVE_LOW>;
+               };
        };
 };
 
index d0c01c0fdda2ff7946e4818f942db00b361d6f60..a7f100f2f4f06d7e7baf392331af39d7d43564c7 100644 (file)
                        rx-internal-delay-ps = <0>;
                        tx-internal-delay-ps = <0>;
                        iommus = <&ipmmu_hc 0>;
-                       #address-cells = <1>;
-                       #size-cells = <0>;
                        status = "disabled";
                };
 
                        rx-internal-delay-ps = <0>;
                        tx-internal-delay-ps = <0>;
                        iommus = <&ipmmu_hc 1>;
-                       #address-cells = <1>;
-                       #size-cells = <0>;
                        status = "disabled";
                };
 
                        rx-internal-delay-ps = <0>;
                        tx-internal-delay-ps = <0>;
                        iommus = <&ipmmu_hc 2>;
-                       #address-cells = <1>;
-                       #size-cells = <0>;
                        status = "disabled";
                };