arm64: dts: mt7986: add thermal and efuse
authorDaniel Golle <daniel@makrotopia.org>
Tue, 30 May 2023 20:12:33 +0000 (22:12 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Thu, 15 Jun 2023 11:14:58 +0000 (13:14 +0200)
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>
arch/arm64/boot/dts/mediatek/mt7986a.dtsi

index aa9e679..ad4fd77 100644 (file)
                        status = "disabled";
                };
 
+               auxadc: adc@1100d000 {
+                       compatible = "mediatek,mt7986-auxadc";
+                       reg = <0 0x1100d000 0 0x1000>;
+                       clocks = <&infracfg CLK_INFRA_ADC_26M_CK>;
+                       clock-names = "main";
+                       #io-channel-cells = <1>;
+                       status = "disabled";
+               };
+
                ssusb: usb@11200000 {
                        compatible = "mediatek,mt7986-xhci",
                                     "mediatek,mtk-xhci";
                        status = "disabled";
                };
 
+               thermal: thermal@1100c800 {
+                       #thermal-sensor-cells = <1>;
+                       compatible = "mediatek,mt7986-thermal";
+                       reg = <0 0x1100c800 0 0x800>;
+                       interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
+                       clocks = <&infracfg CLK_INFRA_THERM_CK>,
+                                <&infracfg CLK_INFRA_ADC_26M_CK>,
+                                <&infracfg CLK_INFRA_ADC_FRC_CK>;
+                       clock-names = "therm", "auxadc", "adc_32k";
+                       mediatek,auxadc = <&auxadc>;
+                       mediatek,apmixedsys = <&apmixedsys>;
+                       nvmem-cells = <&thermal_calibration>;
+                       nvmem-cell-names = "calibration-data";
+               };
+
                pcie: pcie@11280000 {
                        compatible = "mediatek,mt7986-pcie",
                                     "mediatek,mt8192-pcie";
                        };
                };
 
+               efuse: efuse@11d00000 {
+                       compatible = "mediatek,mt7986-efuse", "mediatek,efuse";
+                       reg = <0 0x11d00000 0 0x1000>;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       thermal_calibration: calib@274 {
+                               reg = <0x274 0xc>;
+                       };
+               };
+
                usb_phy: t-phy@11e10000 {
                        compatible = "mediatek,mt7986-tphy",
                                     "mediatek,generic-tphy-v2";
                        memory-region = <&wmcpu_emi>;
                };
        };
-
 };