pm8150b.dtsi 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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. pm8150b-thermal {
  12. polling-delay-passive = <100>;
  13. polling-delay = <0>;
  14. thermal-sensors = <&pm8150b_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@2 {
  37. compatible = "qcom,pm8150b", "qcom,spmi-pmic";
  38. reg = <0x2 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. pm8150b_vbus: dcdc@1100 {
  47. compatible = "qcom,pm8150b-vbus-reg";
  48. status = "disabled";
  49. reg = <0x1100>;
  50. };
  51. pm8150b_temp: temp-alarm@2400 {
  52. compatible = "qcom,spmi-temp-alarm";
  53. reg = <0x2400>;
  54. interrupts = <0x2 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
  55. io-channels = <&pm8150b_adc ADC5_DIE_TEMP>;
  56. io-channel-names = "thermal";
  57. #thermal-sensor-cells = <0>;
  58. };
  59. pm8150b_adc: adc@3100 {
  60. compatible = "qcom,spmi-adc5";
  61. reg = <0x3100>;
  62. #address-cells = <1>;
  63. #size-cells = <0>;
  64. #io-channel-cells = <1>;
  65. interrupts = <0x2 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
  66. ref-gnd@0 {
  67. reg = <ADC5_REF_GND>;
  68. qcom,pre-scaling = <1 1>;
  69. label = "ref_gnd";
  70. };
  71. vref-1p25@1 {
  72. reg = <ADC5_1P25VREF>;
  73. qcom,pre-scaling = <1 1>;
  74. label = "vref_1p25";
  75. };
  76. die-temp@6 {
  77. reg = <ADC5_DIE_TEMP>;
  78. qcom,pre-scaling = <1 1>;
  79. label = "die_temp";
  80. };
  81. chg-temp@9 {
  82. reg = <ADC5_CHG_TEMP>;
  83. qcom,pre-scaling = <1 1>;
  84. label = "chg_temp";
  85. };
  86. };
  87. pm8150b_adc_tm: adc-tm@3500 {
  88. compatible = "qcom,spmi-adc-tm5";
  89. reg = <0x3500>;
  90. interrupts = <0x2 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
  91. #thermal-sensor-cells = <1>;
  92. #address-cells = <1>;
  93. #size-cells = <0>;
  94. status = "disabled";
  95. };
  96. pm8150b_gpios: gpio@c000 {
  97. compatible = "qcom,pm8150b-gpio", "qcom,spmi-gpio";
  98. reg = <0xc000>;
  99. gpio-controller;
  100. gpio-ranges = <&pm8150b_gpios 0 0 12>;
  101. #gpio-cells = <2>;
  102. interrupt-controller;
  103. #interrupt-cells = <2>;
  104. };
  105. };
  106. pmic@3 {
  107. compatible = "qcom,pm8150b", "qcom,spmi-pmic";
  108. reg = <0x3 SPMI_USID>;
  109. #address-cells = <1>;
  110. #size-cells = <0>;
  111. pm8150b_lpg: pwm {
  112. compatible = "qcom,pm8150b-lpg";
  113. #address-cells = <1>;
  114. #size-cells = <0>;
  115. #pwm-cells = <2>;
  116. status = "disabled";
  117. };
  118. };
  119. };