ARM: dts: imx6ull: Add imx6ull-tempmon property
authorVipul Kumar <vipul_kumar@mentor.com>
Wed, 6 Mar 2019 12:51:08 +0000 (18:21 +0530)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
As per 'commit 2067b757e972 ("ARM: dts: imx6ul: Add imx6ul-tempmon")'
added tempmon property.

Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
(cherry picked from commit 56e54055c129fcbf8e4971e73e583c3f14e95da0)

arch/arm/boot/dts/imx6ull.dtsi

index e580975..189a072 100644 (file)
                                interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
                                fsl,tempmon = <&anatop>;
                                fsl,tempmon-data = <&ocotp>;
+                               nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>;
+                               nvmem-cell-names = "calib", "temp_grade";
                                clocks = <&clks IMX6UL_CLK_PLL3_USB_OTG>;
                        };
 
                        };
 
                        ocotp: ocotp-ctrl@021bc000 {
+                               #address-cells = <1>;
+                               #size-cells = <1>;
                                compatible = "fsl,imx6ull-ocotp", "syscon";
                                reg = <0x021bc000 0x4000>;
                                clocks = <&clks IMX6UL_CLK_OCOTP>;
+
+                               tempmon_calib: calib@38 {
+                                       reg = <0x38 4>;
+                               };
+
+                               tempmon_temp_grade: temp-grade@20 {
+                                       reg = <0x20 4>;
+                               };
                        };
 
                        csu: csu@021c0000 {