ARM: dts: imx7: Unify temp-grade and speed-grade nodes
authorFabio Estevam <festevam@gmail.com>
Mon, 23 Dec 2019 12:07:19 +0000 (09:07 -0300)
committerShawn Guo <shawnguo@kernel.org>
Thu, 9 Jan 2020 07:35:06 +0000 (15:35 +0800)
The following warning is seen when building with W=1:

arch/arm/boot/dts/imx7s.dtsi:551.39-553.7: Warning (unique_unit_address): /soc/aips-bus@30000000/ocotp-ctrl@30350000/temp-grade@10: duplicate unit-address (also used in node /soc/aips-bus@30000000/ocotp-ctrl@30350000/speed-grade@10)

Since temp-grade and speed-grade point to the same node, replace them by
a single one to avoid the duplicate unit-address warning.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx7d.dtsi
arch/arm/boot/dts/imx7s.dtsi

index d8acd7c..92f6d0c 100644 (file)
@@ -12,7 +12,7 @@
                        clock-frequency = <996000000>;
                        operating-points-v2 = <&cpu0_opp_table>;
                        #cooling-cells = <2>;
-                       nvmem-cells = <&cpu_speed_grade>;
+                       nvmem-cells = <&fuse_grade>;
                        nvmem-cell-names = "speed_grade";
                };
 
index 139ab9b..568d7a9 100644 (file)
                interrupt-parent = <&gpc>;
                interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
                fsl,tempmon = <&anatop>;
-               nvmem-cells = <&tempmon_calib>,
-                       <&tempmon_temp_grade>;
+               nvmem-cells = <&tempmon_calib>, <&fuse_grade>;
                nvmem-cell-names = "calib", "temp_grade";
                clocks = <&clks IMX7D_PLL_SYS_MAIN_CLK>;
        };
                                        reg = <0x3c 0x4>;
                                };
 
-                               tempmon_temp_grade: temp-grade@10 {
-                                       reg = <0x10 0x4>;
-                               };
-
-                               cpu_speed_grade: speed-grade@10 {
+                               fuse_grade: fuse-grade@10 {
                                        reg = <0x10 0x4>;
                                };
                        };