016-v6.5-arm64-dts-mt7986-add-thermal-and-efuse.patch 2.3 KB

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