Просмотр исходного кода

mediatek: filogic: fix mxl phy node dtc warnings

Add missing #address-cells and #size-cells to fix the
following dtc warnings:

mt7981-rfb-mxl-2p5g-phy-eth1.dtso:26.5-15: Warning (reg_format): /fragment@1/__overlay__/ethernet-phy@5:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)
mt7981-rfb-mxl-2p5g-phy-swp5.dtso:27.5-15: Warning (reg_format): /fragment@1/__overlay__/ethernet-phy@5:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1)

Signed-off-by: Shiji Yang <[email protected]>
Shiji Yang 7 месяцев назад
Родитель
Сommit
d1482e5e2d

+ 2 - 0
target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7981-rfb-mxl-2p5g-phy-eth1.dtso

@@ -18,6 +18,8 @@
 	fragment@1 {
 		target = <&mdio_bus>;
 		__overlay__ {
+			#address-cells = <1>;
+			#size-cells = <0>;
 			reset-gpios = <&pio 14 GPIO_ACTIVE_LOW>;
 			reset-delay-us = <600>;
 			reset-post-delay-us = <20000>;

+ 2 - 0
target/linux/mediatek/files-6.6/arch/arm64/boot/dts/mediatek/mt7981-rfb-mxl-2p5g-phy-swp5.dtso

@@ -19,6 +19,8 @@
 	fragment@1 {
 		target = <&mdio_bus>;
 		__overlay__ {
+			#address-cells = <1>;
+			#size-cells = <0>;
 			reset-gpios = <&pio 14 GPIO_ACTIVE_LOW>;
 			reset-delay-us = <600>;
 			reset-post-delay-us = <20000>;