]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: imx: Update Fast ethernet PHY MDIO addresses to match DH i.MX8MP DHCOM rev.200
authorMarek Vasut <marex@denx.de>
Thu, 27 Jun 2024 00:13:16 +0000 (02:13 +0200)
committerFabio Estevam <festevam@gmail.com>
Sat, 6 Jul 2024 12:24:42 +0000 (09:24 -0300)
The production DH i.MX8MP DHCOM SoM rev.200 uses updated PHY MDIO addresses
for the Fast ethernet PHYs. Update the base SoM DT and SoM rev.100 backward
compatibility DTO to cater for this change.

Since the MDIO address adjustment is now also in the rev.100 SoM DTO, not
only in the rev.100 PDK3 DTO, update Makefile accordingly as well, else the
DTC would complain about the DTO overriding the 'reg' property without also
updating the node unit-address, which is not doable without duplicating the
entire PHY node in the DTO, which leads to large amount of duplication with
no gain.

Fixes: 9de599ec3d59 ("arm64: dts: imx8mp: Update i.MX8MP DHCOM SoM DT to production rev.200")
Signed-off-by: Marek Vasut <marex@denx.de>
arch/arm/dts/Makefile
arch/arm/dts/imx8mp-dhcom-som-overlay-rev100.dts
arch/arm/dts/imx8mp-dhcom-som.dtsi

index 9968e819550f0c3d10b075bd6195512924ee0194..45af76620758b7a96cefd327261d6a261c3510dd 100644 (file)
@@ -1298,6 +1298,7 @@ targets += $(dtb-y)
 # Add any required device tree compiler flags here
 DTC_FLAGS += -a 0x8
 
+DTC_FLAGS_imx8mp-dhcom-som-overlay-rev100 += -Wno-avoid_default_addr_size -Wno-reg_format
 DTC_FLAGS_imx8mp-dhcom-pdk3-overlay-rev100 += -Wno-avoid_default_addr_size -Wno-reg_format
 
 PHONY += dtbs
index 0e5d329b1499da02773aad299171bdc954d860e9..b2154d57e489e769c7f8c9f0b98df7a2f39e23a1 100644 (file)
@@ -35,6 +35,7 @@
 &ethphy0f { /* SMSC LAN8740Ai */
        pinctrl-0 = <&pinctrl_ethphy0 &pinctrl_ioexp>;
        reset-gpios = <&gpio3 20 GPIO_ACTIVE_LOW>;
+       reg = <0>;
 };
 
 &ethphy0g { /* Micrel KSZ9131RNXI */
        reset-gpios = <&gpio3 20 GPIO_ACTIVE_LOW>;
 };
 
+&ethphy1f { /* SMSC LAN8740Ai */
+       reg = <1>;
+};
+
 &i2c3 {
        adc@48 {
                compatible = "ti,tla2024";
index b504d36818b572ca66d11b744d98fb739321e075..f2d99d0585401701aeb6849fb6b740b87d32064b 100644 (file)
                #size-cells = <0>;
 
                /* Up to one of these two PHYs may be populated. */
-               ethphy0f: ethernet-phy@0 { /* SMSC LAN8740Ai */
+               ethphy0f: ethernet-phy@1 { /* SMSC LAN8740Ai */
                        compatible = "ethernet-phy-id0007.c110",
                                     "ethernet-phy-ieee802.3-c22";
                        interrupt-parent = <&gpio3>;
                        interrupts = <19 IRQ_TYPE_LEVEL_LOW>;
                        pinctrl-0 = <&pinctrl_ethphy0>;
                        pinctrl-names = "default";
-                       reg = <0>;
+                       reg = <1>;
                        reset-assert-us = <1000>;
                        reset-deassert-us = <1000>;
                        reset-gpios = <&ioexp 4 GPIO_ACTIVE_LOW>;
                #size-cells = <0>;
 
                /* Up to one PHY may be populated. */
-               ethphy1f: ethernet-phy@1 { /* SMSC LAN8740Ai */
+               ethphy1f: ethernet-phy@2 { /* SMSC LAN8740Ai */
                        compatible = "ethernet-phy-id0007.c110",
                                     "ethernet-phy-ieee802.3-c22";
                        interrupt-parent = <&gpio4>;
                        interrupts = <3 IRQ_TYPE_LEVEL_LOW>;
                        pinctrl-0 = <&pinctrl_ethphy1>;
                        pinctrl-names = "default";
-                       reg = <1>;
+                       reg = <2>;
                        reset-assert-us = <1000>;
                        reset-deassert-us = <1000>;
                        reset-gpios = <&gpio4 2 GPIO_ACTIVE_LOW>;