ipq40xx: use existing labels for I2C nodes
authorRobert Marko <robimarko@gmail.com>
Tue, 7 May 2024 11:59:24 +0000 (13:59 +0200)
committerRobert Marko <robimarko@gmail.com>
Thu, 9 May 2024 08:11:44 +0000 (10:11 +0200)
Some boards are still defininig I2C nodes under soc instead of using the
existing upstream labels to reference them so convert them.

Link: https://github.com/openwrt/openwrt/pull/15415
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4019-e2600ac.dtsi
target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4019-wpj419.dts
target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4029-ap-365.dts
target/linux/ipq40xx/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq4029-aruba-glenmorangie.dtsi

index 42648c9b0017890047a41b17f97c8dad05377aff..e67d1ba7a8ec8ae01d76a51a6b548bfb6f48e949 100644 (file)
                        qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
                };
 
-               i2c@78b7000 { /* BLSP1 QUP2 */
-                       pinctrl-0 = <&i2c_0_pins>;
-                       pinctrl-names = "default";
-
-                       status = "okay";
-               };
-
                leds {
                        compatible = "gpio-leds";
 
        status = "okay";
 };
 
+&blsp1_i2c3 { /* BLSP1 QUP2 */
+       pinctrl-0 = <&i2c_0_pins>;
+       pinctrl-names = "default";
+       status = "okay";
+};
+
 &usb3 {
        status = "okay";
 };
index 082b209bf8e56796baf21bae300b6b7e633cd848..74985b4b4366fa7f83a1411431c4d77711555f95 100644 (file)
                        qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
                };
 
-               i2c_0: i2c@78b7000 {
-                       pinctrl-0 = <&i2c_0_pins>;
-                       pinctrl-names = "default";
-                       status = "okay";
-               };
-
                pcie0: pci@40000000 {
                        status = "okay";
                        perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
        status = "okay";
 };
 
+&blsp1_i2c3 {
+       pinctrl-0 = <&i2c_0_pins>;
+       pinctrl-names = "default";
+       status = "okay";
+};
+
 &watchdog {
        status = "okay";
 };
index 3477dace7274242d07c6ab207c5e77e5841e2ba3..6df788a745efcc4680335b5a4a98125b8fe9e542 100644 (file)
@@ -67,7 +67,7 @@
        };
 };
 
-&i2c_0 {
+&blsp1_i2c3 {
        power-monitor@40 {
                /* No driver */
                compatible = "isl,isl28022";
index 991b93671b2abb71542b4a5705bf2b441ebfb37b..a9fe56f537e7f20277319fc4e87b7bf1398ff2b5 100644 (file)
                        reg = <0x1957000 0x100>;
                        qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
                };
-
-               i2c_0: i2c@78b7000 {
-                       pinctrl-0 = <&i2c_0_pins>;
-                       pinctrl-names = "default";
-                       status = "okay";
-
-                       tpm@29 {
-                               /* No Driver */
-                               compatible = "atmel,at97sc3203";
-                               reg = <0x29>;
-                               read-only;
-                       };
-               };
        };
 
        keys {
        status = "okay";
 };
 
+&blsp1_i2c3 {
+       pinctrl-0 = <&i2c_0_pins>;
+       pinctrl-names = "default";
+       status = "okay";
+
+       tpm@29 {
+               /* No Driver */
+               compatible = "atmel,at97sc3203";
+               reg = <0x29>;
+               read-only;
+       };
+};
+
 &cryptobam {
        status = "okay";
 };