qcom-pm8226.dtsi 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. // SPDX-License-Identifier: BSD-3-Clause
  2. #include <dt-bindings/interrupt-controller/irq.h>
  3. #include <dt-bindings/spmi/spmi.h>
  4. #include <dt-bindings/iio/qcom,spmi-vadc.h>
  5. &spmi_bus {
  6. pm8226_0: pm8226@0 {
  7. compatible = "qcom,pm8226", "qcom,spmi-pmic";
  8. reg = <0x0 SPMI_USID>;
  9. #address-cells = <1>;
  10. #size-cells = <0>;
  11. pwrkey@800 {
  12. compatible = "qcom,pm8941-pwrkey";
  13. reg = <0x800>;
  14. interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
  15. debounce = <15625>;
  16. bias-pull-up;
  17. };
  18. smbb: charger@1000 {
  19. compatible = "qcom,pm8226-charger";
  20. reg = <0x1000>;
  21. interrupts = <0x0 0x10 7 IRQ_TYPE_EDGE_BOTH>,
  22. <0x0 0x10 5 IRQ_TYPE_EDGE_BOTH>,
  23. <0x0 0x10 4 IRQ_TYPE_EDGE_BOTH>,
  24. <0x0 0x12 1 IRQ_TYPE_EDGE_BOTH>,
  25. <0x0 0x12 0 IRQ_TYPE_EDGE_BOTH>,
  26. <0x0 0x13 2 IRQ_TYPE_EDGE_BOTH>,
  27. <0x0 0x13 1 IRQ_TYPE_EDGE_BOTH>,
  28. <0x0 0x14 1 IRQ_TYPE_EDGE_BOTH>;
  29. interrupt-names = "chg-done",
  30. "chg-fast",
  31. "chg-trkl",
  32. "bat-temp-ok",
  33. "bat-present",
  34. "chg-gone",
  35. "usb-valid",
  36. "dc-valid";
  37. chg_otg: otg-vbus { };
  38. };
  39. rtc@6000 {
  40. compatible = "qcom,pm8941-rtc";
  41. reg = <0x6000>, <0x6100>;
  42. reg-names = "rtc", "alarm";
  43. interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
  44. };
  45. pm8226_vadc: adc@3100 {
  46. compatible = "qcom,spmi-vadc";
  47. reg = <0x3100>;
  48. interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
  49. #address-cells = <1>;
  50. #size-cells = <0>;
  51. #io-channel-cells = <1>;
  52. adc-chan@7 {
  53. reg = <VADC_VSYS>;
  54. qcom,pre-scaling = <1 3>;
  55. label = "vph_pwr";
  56. };
  57. adc-chan@8 {
  58. reg = <VADC_DIE_TEMP>;
  59. label = "die_temp";
  60. };
  61. adc-chan@9 {
  62. reg = <VADC_REF_625MV>;
  63. label = "ref_625mv";
  64. };
  65. adc-chan@a {
  66. reg = <VADC_REF_1250MV>;
  67. label = "ref_1250mv";
  68. };
  69. adc-chan@e {
  70. reg = <VADC_GND_REF>;
  71. };
  72. adc-chan@f {
  73. reg = <VADC_VDD_VADC>;
  74. };
  75. };
  76. pm8226_mpps: mpps@a000 {
  77. compatible = "qcom,pm8226-mpp", "qcom,spmi-mpp";
  78. reg = <0xa000>;
  79. gpio-controller;
  80. #gpio-cells = <2>;
  81. gpio-ranges = <&pm8226_mpps 0 0 8>;
  82. interrupt-controller;
  83. #interrupt-cells = <2>;
  84. };
  85. };
  86. pm8226_1: pm8226@1 {
  87. compatible = "qcom,pm8226", "qcom,spmi-pmic";
  88. reg = <0x1 SPMI_USID>;
  89. #address-cells = <1>;
  90. #size-cells = <0>;
  91. pm8226_spmi_regulators: pm8226-regulators {
  92. compatible = "qcom,pm8226-regulators";
  93. };
  94. pm8226_vib: vibrator@c000 {
  95. compatible = "qcom,pm8916-vib";
  96. reg = <0xc000>;
  97. status = "disabled";
  98. };
  99. };
  100. };