linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V6 1/2] ARM: dts: imx7s: add temperature monitor support
@ 2018-03-02  1:59 Anson Huang
  2018-03-02  1:59 ` [PATCH V6 2/2] thermal: imx: add i.MX7 thermal sensor support Anson Huang
  2018-03-08  8:36 ` [PATCH V6 1/2] ARM: dts: imx7s: add temperature monitor support Shawn Guo
  0 siblings, 2 replies; 7+ messages in thread
From: Anson Huang @ 2018-03-02  1:59 UTC (permalink / raw)
  To: leonard.crestez, rui.zhang, edubezval, robh+dt, mark.rutland,
	shawnguo, kernel, fabio.estevam, linux
  Cc: Linux-imx, linux-pm, devicetree, linux-kernel, linux-arm-kernel

Add i.MX7 temperature monitor support.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Acked-by: Dong Aisheng <aisheng.dong@nxp.com>
Acked-by: Shawn Guo <shawnguo@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org>
---
changes since V5:
	no code change, just add Reviewed-by.
 arch/arm/boot/dts/imx7s.dtsi | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/arch/arm/boot/dts/imx7s.dtsi b/arch/arm/boot/dts/imx7s.dtsi
index 9aa2bb9..6a5c1bf 100644
--- a/arch/arm/boot/dts/imx7s.dtsi
+++ b/arch/arm/boot/dts/imx7s.dtsi
@@ -511,9 +511,29 @@
 			};
 
 			ocotp: ocotp-ctrl@30350000 {
+				#address-cells = <1>;
+				#size-cells = <1>;
 				compatible = "fsl,imx7d-ocotp", "syscon";
 				reg = <0x30350000 0x10000>;
 				clocks = <&clks IMX7D_OCOTP_CLK>;
+
+				tempmon_calib: calib@3c {
+					reg = <0x3c 0x4>;
+				};
+
+				tempmon_temp_grade: temp-grade@10 {
+					reg = <0x10 0x4>;
+				};
+			};
+
+			tempmon: tempmon {
+				compatible = "fsl,imx7d-tempmon";
+				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 IMX7D_PLL_SYS_MAIN_CLK>;
 			};
 
 			anatop: anatop@30360000 {
-- 
2.7.4

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

end of thread, other threads:[~2018-04-16  8:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-02  1:59 [PATCH V6 1/2] ARM: dts: imx7s: add temperature monitor support Anson Huang
2018-03-02  1:59 ` [PATCH V6 2/2] thermal: imx: add i.MX7 thermal sensor support Anson Huang
2018-03-13  6:13   ` Anson Huang
2018-03-13  6:51     ` Zhang Rui
2018-03-15  0:51       ` Eduardo Valentin
2018-04-16  8:44         ` Shawn Guo
2018-03-08  8:36 ` [PATCH V6 1/2] ARM: dts: imx7s: add temperature monitor support 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).