pm8150l.dtsi 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. // SPDX-License-Identifier: BSD-3-Clause
  2. /*
  3. * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2019, Linaro Limited
  5. */
  6. #include <dt-bindings/iio/qcom,spmi-vadc.h>
  7. #include <dt-bindings/interrupt-controller/irq.h>
  8. #include <dt-bindings/spmi/spmi.h>
  9. / {
  10. thermal-zones {
  11. pm8150l-thermal {
  12. polling-delay-passive = <100>;
  13. polling-delay = <0>;
  14. thermal-sensors = <&pm8150l_temp>;
  15. trips {
  16. trip0 {
  17. temperature = <95000>;
  18. hysteresis = <0>;
  19. type = "passive";
  20. };
  21. trip1 {
  22. temperature = <115000>;
  23. hysteresis = <0>;
  24. type = "hot";
  25. };
  26. trip2 {
  27. temperature = <145000>;
  28. hysteresis = <0>;
  29. type = "critical";
  30. };
  31. };
  32. };
  33. };
  34. };
  35. &spmi_bus {
  36. pmic@4 {
  37. compatible = "qcom,pm8150l", "qcom,spmi-pmic";
  38. reg = <0x4 SPMI_USID>;
  39. #address-cells = <1>;
  40. #size-cells = <0>;
  41. pon@800 {
  42. compatible = "qcom,pm8916-pon";
  43. reg = <0x0800>;
  44. status = "disabled";
  45. };
  46. pm8150l_temp: temp-alarm@2400 {
  47. compatible = "qcom,spmi-temp-alarm";
  48. reg = <0x2400>;
  49. interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
  50. io-channels = <&pm8150l_adc ADC5_DIE_TEMP>;
  51. io-channel-names = "thermal";
  52. #thermal-sensor-cells = <0>;
  53. };
  54. pm8150l_adc: adc@3100 {
  55. compatible = "qcom,spmi-adc5";
  56. reg = <0x3100>;
  57. #address-cells = <1>;
  58. #size-cells = <0>;
  59. #io-channel-cells = <1>;
  60. interrupts = <0x4 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
  61. ref-gnd@0 {
  62. reg = <ADC5_REF_GND>;
  63. qcom,pre-scaling = <1 1>;
  64. label = "ref_gnd";
  65. };
  66. vref-1p25@1 {
  67. reg = <ADC5_1P25VREF>;
  68. qcom,pre-scaling = <1 1>;
  69. label = "vref_1p25";
  70. };
  71. die-temp@6 {
  72. reg = <ADC5_DIE_TEMP>;
  73. qcom,pre-scaling = <1 1>;
  74. label = "die_temp";
  75. };
  76. };
  77. pm8150l_adc_tm: adc-tm@3500 {
  78. compatible = "qcom,spmi-adc-tm5";
  79. reg = <0x3500>;
  80. interrupts = <0x4 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
  81. #thermal-sensor-cells = <1>;
  82. #address-cells = <1>;
  83. #size-cells = <0>;
  84. status = "disabled";
  85. };
  86. pm8150l_gpios: gpio@c000 {
  87. compatible = "qcom,pm8150l-gpio", "qcom,spmi-gpio";
  88. reg = <0xc000>;
  89. gpio-controller;
  90. gpio-ranges = <&pm8150l_gpios 0 0 12>;
  91. #gpio-cells = <2>;
  92. interrupt-controller;
  93. #interrupt-cells = <2>;
  94. };
  95. };
  96. pmic@5 {
  97. compatible = "qcom,pm8150l", "qcom,spmi-pmic";
  98. reg = <0x5 SPMI_USID>;
  99. #address-cells = <1>;
  100. #size-cells = <0>;
  101. pm8150l_lpg: pwm {
  102. compatible = "qcom,pm8150l-lpg";
  103. #address-cells = <1>;
  104. #size-cells = <0>;
  105. #pwm-cells = <2>;
  106. status = "disabled";
  107. };
  108. };
  109. };