Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: imx6sl: Use nvmem interface to get fuse data

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>

authored by

Anson Huang and committed by
Shawn Guo
d7e1c2b0 d8a6511d

+10 -1
+10 -1
arch/arm/boot/dts/imx6sl.dtsi
··· 98 98 interrupts = <0 49 IRQ_TYPE_LEVEL_HIGH>; 99 99 interrupt-parent = <&gpc>; 100 100 fsl,tempmon = <&anatop>; 101 - fsl,tempmon-data = <&ocotp>; 101 + nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>; 102 + nvmem-cell-names = "calib", "temp_grade"; 102 103 clocks = <&clks IMX6SL_CLK_PLL3_USB_OTG>; 103 104 }; 104 105 ··· 961 960 962 961 cpu_speed_grade: speed-grade@10 { 963 962 reg = <0x10 4>; 963 + }; 964 + 965 + tempmon_calib: calib@38 { 966 + reg = <0x38 4>; 967 + }; 968 + 969 + tempmon_temp_grade: temp-grade@20 { 970 + reg = <0x20 4>; 964 971 }; 965 972 }; 966 973