linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: dts: imx6qdl: Use nvmem interface to get fuse data
@ 2020-05-14  1:08 Anson Huang
  2020-05-14  1:08 ` [PATCH 2/2] ARM: dts: imx6sl: " Anson Huang
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Anson Huang @ 2020-05-14  1:08 UTC (permalink / raw)
  To: robh+dt, shawnguo, s.hauer, kernel, festevam, devicetree,
	linux-arm-kernel, linux-kernel
  Cc: Linux-imx

Although ocotp clock is always ON for i.MX6QDL, OCOTP can be
accessed directly, but since i.MX6QDL 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>
---
 arch/arm/boot/dts/imx6qdl.dtsi | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi
index 98da446..1763c2b 100644
--- a/arch/arm/boot/dts/imx6qdl.dtsi
+++ b/arch/arm/boot/dts/imx6qdl.dtsi
@@ -74,7 +74,8 @@
 		interrupt-parent = <&gpc>;
 		interrupts = <0 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 IMX6QDL_CLK_PLL3_USB_OTG>;
 		#thermal-sensor-cells = <0>;
 	};
@@ -1171,6 +1172,14 @@
 				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>;
+				};
 			};
 
 			tzasc@21d0000 { /* TZASC1 */
-- 
2.7.4


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 2/2] ARM: dts: imx6sl: Use nvmem interface to get fuse data
  2020-05-14  1:08 [PATCH 1/2] ARM: dts: imx6qdl: Use nvmem interface to get fuse data Anson Huang
@ 2020-05-14  1:08 ` Anson Huang
  2020-05-18  8:45   ` Aisheng Dong
  2020-05-18  8:44 ` [PATCH 1/2] ARM: dts: imx6qdl: " Aisheng Dong
  2020-05-20  2:21 ` Shawn Guo
  2 siblings, 1 reply; 5+ messages in thread
From: Anson Huang @ 2020-05-14  1:08 UTC (permalink / raw)
  To: robh+dt, shawnguo, s.hauer, kernel, festevam, devicetree,
	linux-arm-kernel, linux-kernel
  Cc: Linux-imx

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>
---
 arch/arm/boot/dts/imx6sl.dtsi | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/imx6sl.dtsi b/arch/arm/boot/dts/imx6sl.dtsi
index 8230b45..fcb84fe 100644
--- a/arch/arm/boot/dts/imx6sl.dtsi
+++ b/arch/arm/boot/dts/imx6sl.dtsi
@@ -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>;
 	};
 
@@ -961,6 +962,14 @@
 				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 {
-- 
2.7.4


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH 1/2] ARM: dts: imx6qdl: Use nvmem interface to get fuse data
  2020-05-14  1:08 [PATCH 1/2] ARM: dts: imx6qdl: Use nvmem interface to get fuse data Anson Huang
  2020-05-14  1:08 ` [PATCH 2/2] ARM: dts: imx6sl: " Anson Huang
@ 2020-05-18  8:44 ` Aisheng Dong
  2020-05-20  2:21 ` Shawn Guo
  2 siblings, 0 replies; 5+ messages in thread
From: Aisheng Dong @ 2020-05-18  8:44 UTC (permalink / raw)
  To: Anson Huang, robh+dt, shawnguo, s.hauer, kernel, festevam,
	devicetree, linux-arm-kernel, linux-kernel
  Cc: dl-linux-imx

> From: Anson Huang <Anson.Huang@nxp.com>
> Sent: Thursday, May 14, 2020 9:09 AM
> 
> Although ocotp clock is always ON for i.MX6QDL, OCOTP can be accessed
> directly, but since i.MX6QDL 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>

Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>

Regards
Aisheng

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH 2/2] ARM: dts: imx6sl: Use nvmem interface to get fuse data
  2020-05-14  1:08 ` [PATCH 2/2] ARM: dts: imx6sl: " Anson Huang
@ 2020-05-18  8:45   ` Aisheng Dong
  0 siblings, 0 replies; 5+ messages in thread
From: Aisheng Dong @ 2020-05-18  8:45 UTC (permalink / raw)
  To: Anson Huang, robh+dt, shawnguo, s.hauer, kernel, festevam,
	devicetree, linux-arm-kernel, linux-kernel
  Cc: dl-linux-imx

> From: Anson Huang <Anson.Huang@nxp.com>
> Sent: Thursday, May 14, 2020 9:09 AM
> 
> 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>

Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>

Regards
Aisheng

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] ARM: dts: imx6qdl: Use nvmem interface to get fuse data
  2020-05-14  1:08 [PATCH 1/2] ARM: dts: imx6qdl: Use nvmem interface to get fuse data Anson Huang
  2020-05-14  1:08 ` [PATCH 2/2] ARM: dts: imx6sl: " Anson Huang
  2020-05-18  8:44 ` [PATCH 1/2] ARM: dts: imx6qdl: " Aisheng Dong
@ 2020-05-20  2:21 ` Shawn Guo
  2 siblings, 0 replies; 5+ messages in thread
From: Shawn Guo @ 2020-05-20  2:21 UTC (permalink / raw)
  To: Anson Huang
  Cc: robh+dt, s.hauer, kernel, festevam, devicetree, linux-arm-kernel,
	linux-kernel, Linux-imx

On Thu, May 14, 2020 at 09:08:47AM +0800, Anson Huang wrote:
> Although ocotp clock is always ON for i.MX6QDL, OCOTP can be
> accessed directly, but since i.MX6QDL 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>

Applied both, thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-05-20  2:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-14  1:08 [PATCH 1/2] ARM: dts: imx6qdl: Use nvmem interface to get fuse data Anson Huang
2020-05-14  1:08 ` [PATCH 2/2] ARM: dts: imx6sl: " Anson Huang
2020-05-18  8:45   ` Aisheng Dong
2020-05-18  8:44 ` [PATCH 1/2] ARM: dts: imx6qdl: " Aisheng Dong
2020-05-20  2:21 ` Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).