Skip to content

Commit 0a9615d

Browse files
dangowrtmbgg
authored andcommitted
arm64: dts: mt7986: add thermal and efuse
Add thermal related nodes to mt7986 devicetree. Signed-off-by: Daniel Golle <daniel@makrotopia.org> Signed-off-by: Frank Wunderlich <frank-w@public-files.de> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20230530201235.22330-3-linux@fw-web.de Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
1 parent a4366b5 commit 0a9615d

1 file changed

Lines changed: 35 additions & 1 deletion

File tree

arch/arm64/boot/dts/mediatek/mt7986a.dtsi

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,15 @@
337337
status = "disabled";
338338
};
339339

340+
auxadc: adc@1100d000 {
341+
compatible = "mediatek,mt7986-auxadc";
342+
reg = <0 0x1100d000 0 0x1000>;
343+
clocks = <&infracfg CLK_INFRA_ADC_26M_CK>;
344+
clock-names = "main";
345+
#io-channel-cells = <1>;
346+
status = "disabled";
347+
};
348+
340349
ssusb: usb@11200000 {
341350
compatible = "mediatek,mt7986-xhci",
342351
"mediatek,mtk-xhci";
@@ -375,6 +384,21 @@
375384
status = "disabled";
376385
};
377386

387+
thermal: thermal@1100c800 {
388+
#thermal-sensor-cells = <1>;
389+
compatible = "mediatek,mt7986-thermal";
390+
reg = <0 0x1100c800 0 0x800>;
391+
interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
392+
clocks = <&infracfg CLK_INFRA_THERM_CK>,
393+
<&infracfg CLK_INFRA_ADC_26M_CK>,
394+
<&infracfg CLK_INFRA_ADC_FRC_CK>;
395+
clock-names = "therm", "auxadc", "adc_32k";
396+
mediatek,auxadc = <&auxadc>;
397+
mediatek,apmixedsys = <&apmixedsys>;
398+
nvmem-cells = <&thermal_calibration>;
399+
nvmem-cell-names = "calibration-data";
400+
};
401+
378402
pcie: pcie@11280000 {
379403
compatible = "mediatek,mt7986-pcie",
380404
"mediatek,mt8192-pcie";
@@ -426,6 +450,17 @@
426450
};
427451
};
428452

453+
efuse: efuse@11d00000 {
454+
compatible = "mediatek,mt7986-efuse", "mediatek,efuse";
455+
reg = <0 0x11d00000 0 0x1000>;
456+
#address-cells = <1>;
457+
#size-cells = <1>;
458+
459+
thermal_calibration: calib@274 {
460+
reg = <0x274 0xc>;
461+
};
462+
};
463+
429464
usb_phy: t-phy@11e10000 {
430465
compatible = "mediatek,mt7986-tphy",
431466
"mediatek,generic-tphy-v2";
@@ -567,5 +602,4 @@
567602
memory-region = <&wmcpu_emi>;
568603
};
569604
};
570-
571605
};

0 commit comments

Comments
 (0)