pm8150.dtsi 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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/input/input.h>
  7. #include <dt-bindings/interrupt-controller/irq.h>
  8. #include <dt-bindings/spmi/spmi.h>
  9. #include <dt-bindings/iio/qcom,spmi-vadc.h>
  10. / {
  11. thermal-zones {
  12. pm8150-thermal {
  13. polling-delay-passive = <100>;
  14. polling-delay = <0>;
  15. thermal-sensors = <&pm8150_temp>;
  16. trips {
  17. trip0 {
  18. temperature = <95000>;
  19. hysteresis = <0>;
  20. type = "passive";
  21. };
  22. trip1 {
  23. temperature = <115000>;
  24. hysteresis = <0>;
  25. type = "hot";
  26. };
  27. trip2 {
  28. temperature = <145000>;
  29. hysteresis = <0>;
  30. type = "critical";
  31. };
  32. };
  33. };
  34. };
  35. };
  36. &spmi_bus {
  37. pm8150_0: pmic@0 {
  38. compatible = "qcom,pm8150", "qcom,spmi-pmic";
  39. reg = <0x0 SPMI_USID>;
  40. #address-cells = <1>;
  41. #size-cells = <0>;
  42. pon: pon@800 {
  43. compatible = "qcom,pm8998-pon";
  44. reg = <0x0800>;
  45. mode-bootloader = <0x2>;
  46. mode-recovery = <0x1>;
  47. pon_pwrkey: pwrkey {
  48. compatible = "qcom,pm8941-pwrkey";
  49. interrupts = <0x0 0x8 0x0 IRQ_TYPE_EDGE_BOTH>;
  50. debounce = <15625>;
  51. bias-pull-up;
  52. linux,code = <KEY_POWER>;
  53. status = "disabled";
  54. };
  55. pon_resin: resin {
  56. compatible = "qcom,pm8941-resin";
  57. interrupts = <0x0 0x8 0x1 IRQ_TYPE_EDGE_BOTH>;
  58. debounce = <15625>;
  59. bias-pull-up;
  60. status = "disabled";
  61. };
  62. };
  63. pm8150_temp: temp-alarm@2400 {
  64. compatible = "qcom,spmi-temp-alarm";
  65. reg = <0x2400>;
  66. interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
  67. io-channels = <&pm8150_adc ADC5_DIE_TEMP>;
  68. io-channel-names = "thermal";
  69. #thermal-sensor-cells = <0>;
  70. };
  71. pm8150_adc: adc@3100 {
  72. compatible = "qcom,spmi-adc5";
  73. reg = <0x3100>;
  74. #address-cells = <1>;
  75. #size-cells = <0>;
  76. #io-channel-cells = <1>;
  77. interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
  78. ref-gnd@0 {
  79. reg = <ADC5_REF_GND>;
  80. qcom,pre-scaling = <1 1>;
  81. label = "ref_gnd";
  82. };
  83. vref-1p25@1 {
  84. reg = <ADC5_1P25VREF>;
  85. qcom,pre-scaling = <1 1>;
  86. label = "vref_1p25";
  87. };
  88. die-temp@6 {
  89. reg = <ADC5_DIE_TEMP>;
  90. qcom,pre-scaling = <1 1>;
  91. label = "die_temp";
  92. };
  93. };
  94. pm8150_adc_tm: adc-tm@3500 {
  95. compatible = "qcom,spmi-adc-tm5";
  96. reg = <0x3500>;
  97. interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
  98. #thermal-sensor-cells = <1>;
  99. #address-cells = <1>;
  100. #size-cells = <0>;
  101. status = "disabled";
  102. };
  103. rtc@6000 {
  104. compatible = "qcom,pm8941-rtc";
  105. reg = <0x6000>;
  106. reg-names = "rtc", "alarm";
  107. interrupts = <0x0 0x61 0x1 IRQ_TYPE_NONE>;
  108. };
  109. pm8150_gpios: gpio@c000 {
  110. compatible = "qcom,pm8150-gpio", "qcom,spmi-gpio";
  111. reg = <0xc000>;
  112. gpio-controller;
  113. gpio-ranges = <&pm8150_gpios 0 0 10>;
  114. #gpio-cells = <2>;
  115. interrupt-controller;
  116. #interrupt-cells = <2>;
  117. };
  118. };
  119. pmic@1 {
  120. compatible = "qcom,pm8150", "qcom,spmi-pmic";
  121. reg = <0x1 SPMI_USID>;
  122. #address-cells = <1>;
  123. #size-cells = <0>;
  124. };
  125. };