ARM: dts: imx6sl: Use nvmem interface to get fuse data
authorAnson Huang <Anson.Huang@nxp.com>
Thu, 14 May 2020 01:08:48 +0000 (09:08 +0800)
committerShawn Guo <shawnguo@kernel.org>
Wed, 20 May 2020 02:21:00 +0000 (10:21 +0800)
Although ocotp clock is always ON for i.MX6SL, OCOTP can be
accessed directly, but since i.MX6SL nvmem interface is supported,
and fsl,tempmon-data is deprecated, use it instead of getting fuse
data by reading ocotp directly, this makes all i.MX6 SoCs aligned.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/boot/dts/imx6sl.dtsi

index 8230b45..fcb84fe 100644 (file)
@@ -98,7 +98,8 @@
                interrupts = <0 49 IRQ_TYPE_LEVEL_HIGH>;
                interrupt-parent = <&gpc>;
                fsl,tempmon = <&anatop>;
-               fsl,tempmon-data = <&ocotp>;
+               nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>;
+               nvmem-cell-names = "calib", "temp_grade";
                clocks = <&clks IMX6SL_CLK_PLL3_USB_OTG>;
        };
 
                                cpu_speed_grade: speed-grade@10 {
                                        reg = <0x10 4>;
                                };
+
+                               tempmon_calib: calib@38 {
+                                       reg = <0x38 4>;
+                               };
+
+                               tempmon_temp_grade: temp-grade@20 {
+                                       reg = <0x20 4>;
+                               };
                        };
 
                        audmux: audmux@21d8000 {