]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
arm64: dts: mediatek: mt8186: add lvts definitions
authorNicolas Pitre <npitre@baylibre.com>
Mon, 3 Jun 2024 10:50:50 +0000 (12:50 +0200)
committerAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tue, 6 Aug 2024 08:05:43 +0000 (10:05 +0200)
Values extracted from vendor source tree.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
Link: https://lore.kernel.org/r/20240402032729.2736685-8-nico@fluxnic.net
[Angelo: Fixed validation and quality issues]
Signed-off-by: Julien Panis <jpanis@baylibre.com>
Link: https://lore.kernel.org/r/20240603-mtk-thermal-mt818x-dtsi-v7-3-8c8e3c7a3643@baylibre.com
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
arch/arm64/boot/dts/mediatek/mt8186.dtsi

index d63a9defe73e1743abb36609c7c4d2141b0189a7..0f18525202fb43d4f5b6a12beefa891ed449371b 100644 (file)
                        status = "disabled";
                };
 
+               lvts: thermal-sensor@1100b000 {
+                       compatible = "mediatek,mt8186-lvts";
+                       reg = <0 0x1100b000 0 0x1000>;
+                       interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH 0>;
+                       clocks = <&infracfg_ao CLK_INFRA_AO_THERM>;
+                       resets = <&infracfg_ao MT8186_INFRA_THERMAL_CTRL_RST>;
+                       nvmem-cells = <&lvts_efuse_data1 &lvts_efuse_data2>;
+                       nvmem-cell-names = "lvts-calib-data-1", "lvts-calib-data-2";
+                       #thermal-sensor-cells = <1>;
+               };
+
                pwm0: pwm@1100e000 {
                        compatible = "mediatek,mt8186-disp-pwm", "mediatek,mt8183-disp-pwm";
                        reg = <0 0x1100e000 0 0x1000>;
                        #address-cells = <1>;
                        #size-cells = <1>;
 
+                       lvts_efuse_data1: lvts1-calib@1cc {
+                               reg = <0x1cc 0x14>;
+                       };
+
+                       lvts_efuse_data2: lvts2-calib@2f8 {
+                               reg = <0x2f8 0x14>;
+                       };
+
                        gpu_speedbin: gpu-speedbin@59c {
                                reg = <0x59c 0x4>;
                                bits = <0 3>;