pm8953.dtsi 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. // SPDX-License-Identifier: BSD-3-Clause
  2. /* Copyright (c) 2022, The Linux Foundation. All rights reserved. */
  3. #include <dt-bindings/iio/qcom,spmi-vadc.h>
  4. #include <dt-bindings/interrupt-controller/irq.h>
  5. #include <dt-bindings/input/linux-event-codes.h>
  6. #include <dt-bindings/spmi/spmi.h>
  7. &spmi_bus {
  8. pmic@0 {
  9. compatible = "qcom,pm8953", "qcom,spmi-pmic";
  10. reg = <0 SPMI_USID>;
  11. #address-cells = <1>;
  12. #size-cells = <0>;
  13. pm8953_pon: pon@800 {
  14. compatible = "qcom,pm8916-pon";
  15. reg = <0x800>;
  16. mode-bootloader = <0x2>;
  17. mode-recovery = <0x1>;
  18. pwrkey {
  19. compatible = "qcom,pm8941-pwrkey";
  20. interrupts = <0x00 0x08 0 IRQ_TYPE_EDGE_BOTH>;
  21. debounce = <15625>;
  22. bias-pull-up;
  23. linux,code = <KEY_POWER>;
  24. };
  25. pm8953_resin: resin {
  26. compatible = "qcom,pm8941-resin";
  27. interrupts = <0x00 0x08 1 IRQ_TYPE_EDGE_BOTH>;
  28. debounce = <15625>;
  29. bias-pull-up;
  30. status = "disabled";
  31. };
  32. };
  33. temp-alarm@2400 {
  34. compatible = "qcom,spmi-temp-alarm";
  35. reg = <0x2400>;
  36. interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>;
  37. io-channels = <&pm8953_vadc VADC_DIE_TEMP>;
  38. io-channel-names = "thermal";
  39. #thermal-sensor-cells = <0>;
  40. };
  41. pm8953_vadc: adc@3100 {
  42. compatible = "qcom,spmi-vadc";
  43. reg = <0x3100>;
  44. interrupts = <0x00 0x31 0x00 0x01>;
  45. #address-cells = <1>;
  46. #size-cells = <0>;
  47. #io-channel-cells = <1>;
  48. adc-chan@8 {
  49. reg = <VADC_DIE_TEMP>;
  50. };
  51. adc-chan@9 {
  52. reg = <VADC_REF_625MV>;
  53. };
  54. adc-chan@a {
  55. reg = <VADC_REF_1250MV>;
  56. };
  57. adc-chan@c {
  58. reg = <VADC_SPARE1>;
  59. };
  60. adc-chan@e {
  61. reg = <VADC_GND_REF>;
  62. };
  63. adc-chan@f {
  64. reg = <VADC_VDD_VADC>;
  65. };
  66. };
  67. rtc@6000 {
  68. compatible = "qcom,pm8941-rtc";
  69. reg = <0x6000>, <0x6100>;
  70. reg-names = "rtc", "alarm";
  71. interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
  72. };
  73. };
  74. pmic@1 {
  75. compatible = "qcom,pm8953", "qcom,spmi-pmic";
  76. reg = <1 SPMI_USID>;
  77. #address-cells = <1>;
  78. #size-cells = <0>;
  79. };
  80. };