mediatek: copy patches-6.1 to patches-6.6
[openwrt/staging/stintel.git] / target / linux / mediatek / patches-6.6 / 016-v6.5-arm64-dts-mt7986-add-thermal-and-efuse.patch
1 From 40a5a767d698ef7a71f8be851ea18b0a7a8b47bd Mon Sep 17 00:00:00 2001
2 From: Daniel Golle <daniel@makrotopia.org>
3 Date: Tue, 30 May 2023 22:12:33 +0200
4 Subject: [PATCH 16/19] arm64: dts: mt7986: add thermal and efuse
5
6 Add thermal related nodes to mt7986 devicetree.
7
8 Signed-off-by: Daniel Golle <daniel@makrotopia.org>
9 Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
10 Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
11 Link: https://lore.kernel.org/r/20230530201235.22330-3-linux@fw-web.de
12 Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
13 ---
14 arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 36 ++++++++++++++++++++++-
15 1 file changed, 35 insertions(+), 1 deletion(-)
16
17 --- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
18 +++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
19 @@ -337,6 +337,15 @@
20 status = "disabled";
21 };
22
23 + auxadc: adc@1100d000 {
24 + compatible = "mediatek,mt7986-auxadc";
25 + reg = <0 0x1100d000 0 0x1000>;
26 + clocks = <&infracfg CLK_INFRA_ADC_26M_CK>;
27 + clock-names = "main";
28 + #io-channel-cells = <1>;
29 + status = "disabled";
30 + };
31 +
32 ssusb: usb@11200000 {
33 compatible = "mediatek,mt7986-xhci",
34 "mediatek,mtk-xhci";
35 @@ -375,6 +384,21 @@
36 status = "disabled";
37 };
38
39 + thermal: thermal@1100c800 {
40 + #thermal-sensor-cells = <1>;
41 + compatible = "mediatek,mt7986-thermal";
42 + reg = <0 0x1100c800 0 0x800>;
43 + interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
44 + clocks = <&infracfg CLK_INFRA_THERM_CK>,
45 + <&infracfg CLK_INFRA_ADC_26M_CK>,
46 + <&infracfg CLK_INFRA_ADC_FRC_CK>;
47 + clock-names = "therm", "auxadc", "adc_32k";
48 + mediatek,auxadc = <&auxadc>;
49 + mediatek,apmixedsys = <&apmixedsys>;
50 + nvmem-cells = <&thermal_calibration>;
51 + nvmem-cell-names = "calibration-data";
52 + };
53 +
54 pcie: pcie@11280000 {
55 compatible = "mediatek,mt7986-pcie",
56 "mediatek,mt8192-pcie";
57 @@ -426,6 +450,17 @@
58 };
59 };
60
61 + efuse: efuse@11d00000 {
62 + compatible = "mediatek,mt7986-efuse", "mediatek,efuse";
63 + reg = <0 0x11d00000 0 0x1000>;
64 + #address-cells = <1>;
65 + #size-cells = <1>;
66 +
67 + thermal_calibration: calib@274 {
68 + reg = <0x274 0xc>;
69 + };
70 + };
71 +
72 usb_phy: t-phy@11e10000 {
73 compatible = "mediatek,mt7986-tphy",
74 "mediatek,generic-tphy-v2";
75 @@ -567,5 +602,4 @@
76 memory-region = <&wmcpu_emi>;
77 };
78 };
79 -
80 };