Rename realtek,ledsel to align with realtek,led-data used in the repository

This commit is contained in:
retro98boy
2025-08-30 14:35:51 +08:00
committed by Rolf Leggewie
parent fce02fad25
commit 81a0c75fec
11 changed files with 14 additions and 14 deletions

View File

@@ -18,7 +18,7 @@
rtl8211f: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0x1>;
realtek,ledsel = <0xae00>;
realtek,led-data = <0xae00>;
};
};
};

View File

@@ -257,7 +257,7 @@
reset-assert-us = <10000>;
reset-deassert-us = <30000>;
reset-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
realtek,ledsel = <0x820b>;
realtek,led-data = <0x820b>;
};
};
};

View File

@@ -421,7 +421,7 @@
interrupts = <RK_PC3 IRQ_TYPE_LEVEL_LOW>;
pinctrl-names = "default";
pinctrl-0 = <&gmac_int>;
realtek,ledsel = <0xae00>;
realtek,led-data = <0xae00>;
};
};
@@ -430,7 +430,7 @@
pinctrl-0 = <&pcie_reset_h>;
reset-gpios = <&gpio4 RK_PC6 GPIO_ACTIVE_HIGH>;
status = "okay";
pcie@0,0 {
reg = <0x00000000 0 0 0 0>;
#address-cells = <3>;
@@ -439,7 +439,7 @@
r8169: pcie@1,0 {
reg = <0x000000 0 0 0 0>;
local-mac-address = [ 00 00 00 00 00 00 ];
realtek,ledsel = <0x870>;
realtek,led-data = <0x870>;
};
};
};

View File

@@ -30,7 +30,7 @@ index 5ed2818ba..7d2fba956 100644
+ struct device *d = tp_to_dev(tp);
+ u32 val;
+
+ if (!of_property_read_u32(d->of_node, "realtek,ledsel", &val))
+ if (!of_property_read_u32(d->of_node, "realtek,led-data", &val))
+ RTL_W16(tp, LED_CTRL, val);
+}
+

View File

@@ -21,7 +21,7 @@ index 166f6a728..f2a2a907a 100644
+ struct device *dev = &phydev->mdio.dev;
+ u32 val;
+
+ if (!of_property_read_u32(dev->of_node, "realtek,ledsel", &val))
+ if (!of_property_read_u32(dev->of_node, "realtek,led-data", &val))
+ phy_write_paged(phydev, 0xd04, 0x10, val);
+}
+

View File

@@ -75,7 +75,7 @@ index fb1f65c86..553a9e599 100644
- reset-deassert-us = <100000>;
- reset-gpios = <&gpio4 RK_PC2 GPIO_ACTIVE_LOW>;
+ pinctrl-0 = <&gmac_int>;
+ realtek,ledsel = <0xae00>;
+ realtek,led-data = <0xae00>;
};
};
@@ -92,7 +92,7 @@ index fb1f65c86..553a9e599 100644
+ r8169: pcie@1,0 {
+ reg = <0x000000 0 0 0 0>;
+ local-mac-address = [ 00 00 00 00 00 00 ];
+ realtek,ledsel = <0x870>;
+ realtek,led-data = <0x870>;
+ };
+ };
};

View File

@@ -18,7 +18,7 @@
rtl8211f: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0x1>;
realtek,ledsel = <0xae00>;
realtek,led-data = <0xae00>;
};
};
};

View File

@@ -257,7 +257,7 @@
reset-assert-us = <10000>;
reset-deassert-us = <30000>;
reset-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
realtek,ledsel = <0x820b>;
realtek,led-data = <0x820b>;
};
};
};

View File

@@ -30,7 +30,7 @@ index 43170500d..973934934 100644
+ struct device *d = tp_to_dev(tp);
+ u32 val;
+
+ if (!of_property_read_u32(d->of_node, "realtek,ledsel", &val))
+ if (!of_property_read_u32(d->of_node, "realtek,led-data", &val))
+ RTL_W16(tp, LED_CTRL, val);
+}
+

View File

@@ -21,7 +21,7 @@ index dd0d67514..4743f99b3 100644
+ struct device *dev = &phydev->mdio.dev;
+ u32 val;
+
+ if (!of_property_read_u32(dev->of_node, "realtek,ledsel", &val))
+ if (!of_property_read_u32(dev->of_node, "realtek,led-data", &val))
+ phy_write_paged(phydev, 0xd04, 0x10, val);
+}
+

View File

@@ -357,7 +357,7 @@ index 00000000..cf667415
+ reset-assert-us = <10000>;
+ reset-deassert-us = <30000>;
+ reset-gpios = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
+ realtek,ledsel = <0x820b>;
+ realtek,led-data = <0x820b>;
+ };
+ };
+};