ARM: dts: imx: Make tempmon node as child of anatop node
authorAnson Huang <Anson.Huang@nxp.com>
Wed, 20 May 2020 06:30:16 +0000 (14:30 +0800)
committerShawn Guo <shawnguo@kernel.org>
Mon, 13 Jul 2020 10:44:42 +0000 (18:44 +0800)
i.MX6/7 SoCs' temperature sensor is inside anatop module from HW
perspective, so it should be a child node of anatop.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6qdl.dtsi
arch/arm/boot/dts/imx6sl.dtsi
arch/arm/boot/dts/imx6sll.dtsi
arch/arm/boot/dts/imx6sx.dtsi
arch/arm/boot/dts/imx6ul.dtsi
arch/arm/boot/dts/imx7s.dtsi

index 32114cf6acee145c2a63f93e1cf77d39ffee844a..642054bbb89b5bda6b381f9c36620fe1b21d4631 100644 (file)
                };
        };
 
-       tempmon: tempmon {
-               compatible = "fsl,imx6q-tempmon";
-               interrupt-parent = <&gpc>;
-               interrupts = <0 49 IRQ_TYPE_LEVEL_HIGH>;
-               fsl,tempmon = <&anatop>;
-               nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>;
-               nvmem-cell-names = "calib", "temp_grade";
-               clocks = <&clks IMX6QDL_CLK_PLL3_USB_OTG>;
-               #thermal-sensor-cells = <0>;
-       };
-
        ldb: ldb {
                #address-cells = <1>;
                #size-cells = <0>;
                                        anatop-min-voltage = <725000>;
                                        anatop-max-voltage = <1450000>;
                                };
+
+                               tempmon: tempmon {
+                                       compatible = "fsl,imx6q-tempmon";
+                                       interrupt-parent = <&gpc>;
+                                       interrupts = <0 49 IRQ_TYPE_LEVEL_HIGH>;
+                                       fsl,tempmon = <&anatop>;
+                                       nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>;
+                                       nvmem-cell-names = "calib", "temp_grade";
+                                       clocks = <&clks IMX6QDL_CLK_PLL3_USB_OTG>;
+                                       #thermal-sensor-cells = <0>;
+                               };
                        };
 
                        usbphy1: usbphy@20c9000 {
index 911d8cf77f2c6ed942cfcd2431605604025a676e..d8efc0ab2ac9b5fe4ebadd9d341a21e45043d983 100644 (file)
                };
        };
 
-       tempmon: tempmon {
-               compatible = "fsl,imx6q-tempmon";
-               interrupts = <0 49 IRQ_TYPE_LEVEL_HIGH>;
-               interrupt-parent = <&gpc>;
-               fsl,tempmon = <&anatop>;
-               nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>;
-               nvmem-cell-names = "calib", "temp_grade";
-               clocks = <&clks IMX6SL_CLK_PLL3_USB_OTG>;
-       };
-
        pmu {
                compatible = "arm,cortex-a9-pmu";
                interrupt-parent = <&gpc>;
                                        anatop-min-voltage = <725000>;
                                        anatop-max-voltage = <1450000>;
                                };
+
+                               tempmon: tempmon {
+                                       compatible = "fsl,imx6q-tempmon";
+                                       interrupts = <0 49 IRQ_TYPE_LEVEL_HIGH>;
+                                       interrupt-parent = <&gpc>;
+                                       fsl,tempmon = <&anatop>;
+                                       nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>;
+                                       nvmem-cell-names = "calib", "temp_grade";
+                                       clocks = <&clks IMX6SL_CLK_PLL3_USB_OTG>;
+                               };
                        };
 
                        usbphy1: usbphy@20c9000 {
index edd3abb9a9f19f8ff3fa531a9422ce22d47cda7c..bf7f048fd87f97817984579b99154058b5eb2935 100644 (file)
                clock-output-names = "ipp_di1";
        };
 
-       tempmon: temperature-sensor {
-               compatible = "fsl,imx6sll-tempmon", "fsl,imx6sx-tempmon";
-               interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
-               interrupt-parent = <&gpc>;
-               fsl,tempmon = <&anatop>;
-               nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>;
-               nvmem-cell-names = "calib", "temp_grade";
-               clocks = <&clks IMX6SLL_CLK_PLL3_USB_OTG>;
-       };
-
        soc {
                #address-cells = <1>;
                #size-cells = <1>;
                                        anatop-max-voltage = <3400000>;
                                        anatop-enable-bit = <0>;
                                };
+
+                               tempmon: temperature-sensor {
+                                       compatible = "fsl,imx6sll-tempmon", "fsl,imx6sx-tempmon";
+                                       interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
+                                       interrupt-parent = <&gpc>;
+                                       fsl,tempmon = <&anatop>;
+                                       nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>;
+                                       nvmem-cell-names = "calib", "temp_grade";
+                                       clocks = <&clks IMX6SLL_CLK_PLL3_USB_OTG>;
+                               };
                        };
 
                        usbphy1: usb-phy@20c9000 {
index 94e3df47d1ad5722cad26cc6c26ff619d755eff4..ddcbfce10945719bf12694316367aef2267718e5 100644 (file)
                clock-output-names = "anaclk2";
        };
 
-       tempmon: tempmon {
-               compatible = "fsl,imx6sx-tempmon", "fsl,imx6q-tempmon";
-               interrupt-parent = <&gpc>;
-               interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
-               fsl,tempmon = <&anatop>;
-               nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>;
-               nvmem-cell-names = "calib", "temp_grade";
-               clocks = <&clks IMX6SX_CLK_PLL3_USB_OTG>;
-       };
-
        pmu {
                compatible = "arm,cortex-a9-pmu";
                interrupt-parent = <&gpc>;
                                        anatop-min-voltage = <725000>;
                                        anatop-max-voltage = <1450000>;
                                };
+
+                               tempmon: tempmon {
+                                       compatible = "fsl,imx6sx-tempmon", "fsl,imx6q-tempmon";
+                                       interrupt-parent = <&gpc>;
+                                       interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
+                                       fsl,tempmon = <&anatop>;
+                                       nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>;
+                                       nvmem-cell-names = "calib", "temp_grade";
+                                       clocks = <&clks IMX6SX_CLK_PLL3_USB_OTG>;
+                               };
                        };
 
                        usbphy1: usbphy@20c9000 {
index 5379a03391bd92ddff937a392264a931793042b9..6575937a59a1883872320161b7167a948e417801 100644 (file)
                clock-output-names = "ipp_di1";
        };
 
-       tempmon: tempmon {
-               compatible = "fsl,imx6ul-tempmon", "fsl,imx6sx-tempmon";
-               interrupt-parent = <&gpc>;
-               interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
-               fsl,tempmon = <&anatop>;
-               nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>;
-               nvmem-cell-names = "calib", "temp_grade";
-               clocks = <&clks IMX6UL_CLK_PLL3_USB_OTG>;
-       };
-
        pmu {
                compatible = "arm,cortex-a7-pmu";
                interrupt-parent = <&gpc>;
                                        anatop-min-voltage = <725000>;
                                        anatop-max-voltage = <1450000>;
                                };
+
+                               tempmon: tempmon {
+                                       compatible = "fsl,imx6ul-tempmon", "fsl,imx6sx-tempmon";
+                                       interrupt-parent = <&gpc>;
+                                       interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
+                                       fsl,tempmon = <&anatop>;
+                                       nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>;
+                                       nvmem-cell-names = "calib", "temp_grade";
+                                       clocks = <&clks IMX6UL_CLK_PLL3_USB_OTG>;
+                               };
                        };
 
                        usbphy1: usbphy@20c9000 {
index f6bb35d3ce51525e76ef2297ee4f80a336d29e68..ddf8b81ccba9a07c7ece277ddb8fddf33b860973 100644 (file)
                };
        };
 
-       tempmon: tempmon {
-               compatible = "fsl,imx7d-tempmon";
-               interrupt-parent = <&gpc>;
-               interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
-               fsl,tempmon = <&anatop>;
-               nvmem-cells = <&tempmon_calib>, <&fuse_grade>;
-               nvmem-cell-names = "calib", "temp_grade";
-               clocks = <&clks IMX7D_PLL_SYS_MAIN_CLK>;
-       };
-
        timer {
                compatible = "arm,armv7-timer";
                interrupt-parent = <&intc>;
                                        anatop-max-voltage = <1300000>;
                                        anatop-enable-bit = <0>;
                                };
+
+                               tempmon: tempmon {
+                                       compatible = "fsl,imx7d-tempmon";
+                                       interrupt-parent = <&gpc>;
+                                       interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
+                                       fsl,tempmon = <&anatop>;
+                                       nvmem-cells = <&tempmon_calib>, <&fuse_grade>;
+                                       nvmem-cell-names = "calib", "temp_grade";
+                                       clocks = <&clks IMX7D_PLL_SYS_MAIN_CLK>;
+                               };
                        };
 
                        snvs: snvs@30370000 {