pm8916.dtsi 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. #include <dt-bindings/iio/qcom,spmi-vadc.h>
  2. #include <dt-bindings/interrupt-controller/irq.h>
  3. #include <dt-bindings/spmi/spmi.h>
  4. &spmi_bus {
  5. usid0: pm8916@0 {
  6. compatible = "qcom,spmi-pmic";
  7. reg = <0x0 SPMI_USID>;
  8. #address-cells = <1>;
  9. #size-cells = <0>;
  10. rtc@6000 {
  11. compatible = "qcom,pm8941-rtc";
  12. reg = <0x6000 0x6100>;
  13. reg-names = "rtc", "alarm";
  14. interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
  15. };
  16. pwrkey@800 {
  17. compatible = "qcom,pm8941-pwrkey";
  18. reg = <0x800>;
  19. interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
  20. debounce = <15625>;
  21. bias-pull-up;
  22. };
  23. pm8916_gpios: gpios@c000 {
  24. compatible = "qcom,pm8916-gpio";
  25. reg = <0xc000 0x400>;
  26. gpio-controller;
  27. #gpio-cells = <2>;
  28. interrupts = <0 0xc0 0 IRQ_TYPE_NONE>,
  29. <0 0xc1 0 IRQ_TYPE_NONE>,
  30. <0 0xc2 0 IRQ_TYPE_NONE>,
  31. <0 0xc3 0 IRQ_TYPE_NONE>;
  32. };
  33. pm8916_mpps: mpps@a000 {
  34. compatible = "qcom,pm8916-mpp";
  35. reg = <0xa000 0x400>;
  36. gpio-controller;
  37. #gpio-cells = <2>;
  38. interrupts = <0 0xa0 0 IRQ_TYPE_NONE>,
  39. <0 0xa1 0 IRQ_TYPE_NONE>,
  40. <0 0xa2 0 IRQ_TYPE_NONE>,
  41. <0 0xa3 0 IRQ_TYPE_NONE>;
  42. };
  43. pm8916_temp: temp-alarm@2400 {
  44. compatible = "qcom,spmi-temp-alarm";
  45. reg = <0x2400 0x100>;
  46. interrupts = <0 0x24 0 IRQ_TYPE_EDGE_RISING>;
  47. io-channels = <&pm8916_vadc VADC_DIE_TEMP>;
  48. io-channel-names = "thermal";
  49. #thermal-sensor-cells = <0>;
  50. };
  51. pm8916_vadc: vadc@3100 {
  52. compatible = "qcom,spmi-vadc";
  53. reg = <0x3100 0x100>;
  54. interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
  55. #address-cells = <1>;
  56. #size-cells = <0>;
  57. #io-channel-cells = <1>;
  58. usb_in {
  59. reg = <VADC_USBIN>;
  60. qcom,pre-scaling = <1 10>;
  61. };
  62. vph_pwr {
  63. reg = <VADC_VSYS>;
  64. qcom,pre-scaling = <1 3>;
  65. };
  66. die_temp {
  67. reg = <VADC_DIE_TEMP>;
  68. };
  69. ref_625mv {
  70. reg = <VADC_REF_625MV>;
  71. };
  72. ref_1250v {
  73. reg = <VADC_REF_1250MV>;
  74. };
  75. ref_gnd {
  76. reg = <VADC_GND_REF>;
  77. };
  78. ref_vdd {
  79. reg = <VADC_VDD_VADC>;
  80. };
  81. };
  82. };
  83. usid1: pm8916@1 {
  84. compatible = "qcom,spmi-pmic";
  85. reg = <0x1 SPMI_USID>;
  86. #address-cells = <1>;
  87. #size-cells = <0>;
  88. };
  89. };