Skip to contentSkip to conversation

arm64: dts: mt8173: add node for thermal calibration

PATCH New Dawei Chien 1 participant 1 message Feb 5, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: mt8173: add node for thermal calibration

Add this for supporting thermal calibration by e-fuse data.

---
Because MTK thermal/efuse patches hadn't landed on mainline, this patch must base on following patchset:
https://lkml.org/lkml/2015/11/17/251
https://lkml.org/lkml/2015/11/19/169
https://lkml.org/lkml/2015/11/30/239
https://lkml.org/lkml/2015/12/16/195

---
 arch/arm64/boot/dts/mediatek/mt8173.dtsi |    7 +++++++
 1 file changed, 7 insertions(+)
arch/arm64/boot/dts/mediatek/mt8173.dtsi +7 -0
index ffcca66..0c9d17e 100644
@@ -391,6 +391,11 @@
 		efuse: efuse at 10206000 {
 			compatible = "mediatek,mt8173-efuse";
 			reg = <0 0x10206000 0 0x1000>;
+			#address-cells = <1>;
+			#size-cells = <1>;
+			thermal_calibration: calib at 528 {
+				reg = <0x528 0xc>;
+			};
 		};
 
 		apmixedsys: clock-controller at 10209000 {
@@ -744,6 +749,8 @@
 			resets = <&pericfg MT8173_PERI_THERM_SW_RST>;
 			mediatek,auxadc = <&auxadc>;
 			mediatek,apmixedsys = <&apmixedsys>;
+			nvmem-cells = <&thermal_calibration>;
+			nvmem-cell-names = "calibration-data";
 		};
 	};
 };
Signature · 1 line
1.7.9.5