pm8994.dtsi 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <dt-bindings/interrupt-controller/irq.h>
  3. #include <dt-bindings/spmi/spmi.h>
  4. #include <dt-bindings/input/linux-event-codes.h>
  5. &spmi_bus {
  6. pmic@0 {
  7. compatible = "qcom,pm8994", "qcom,spmi-pmic";
  8. reg = <0x0 SPMI_USID>;
  9. #address-cells = <1>;
  10. #size-cells = <0>;
  11. rtc@6000 {
  12. compatible = "qcom,pm8941-rtc";
  13. reg = <0x6000>, <0x6100>;
  14. reg-names = "rtc", "alarm";
  15. interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>;
  16. };
  17. pon@800 {
  18. compatible = "qcom,pm8916-pon";
  19. reg = <0x800>;
  20. mode-bootloader = <0x2>;
  21. mode-recovery = <0x1>;
  22. pwrkey {
  23. compatible = "qcom,pm8941-pwrkey";
  24. interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
  25. debounce = <15625>;
  26. bias-pull-up;
  27. linux,code = <KEY_POWER>;
  28. };
  29. };
  30. pm8994_gpios: gpios@c000 {
  31. compatible = "qcom,pm8994-gpio";
  32. reg = <0xc000>;
  33. gpio-controller;
  34. #gpio-cells = <2>;
  35. interrupts = <0 0xc0 0 IRQ_TYPE_NONE>,
  36. <0 0xc1 0 IRQ_TYPE_NONE>,
  37. <0 0xc2 0 IRQ_TYPE_NONE>,
  38. <0 0xc3 0 IRQ_TYPE_NONE>,
  39. <0 0xc4 0 IRQ_TYPE_NONE>,
  40. <0 0xc5 0 IRQ_TYPE_NONE>,
  41. <0 0xc6 0 IRQ_TYPE_NONE>,
  42. <0 0xc7 0 IRQ_TYPE_NONE>,
  43. <0 0xc8 0 IRQ_TYPE_NONE>,
  44. <0 0xc9 0 IRQ_TYPE_NONE>,
  45. <0 0xca 0 IRQ_TYPE_NONE>,
  46. <0 0xcb 0 IRQ_TYPE_NONE>,
  47. <0 0xcc 0 IRQ_TYPE_NONE>,
  48. <0 0xcd 0 IRQ_TYPE_NONE>,
  49. <0 0xce 0 IRQ_TYPE_NONE>,
  50. <0 0xcf 0 IRQ_TYPE_NONE>,
  51. <0 0xd0 0 IRQ_TYPE_NONE>,
  52. <0 0xd1 0 IRQ_TYPE_NONE>,
  53. <0 0xd2 0 IRQ_TYPE_NONE>,
  54. <0 0xd3 0 IRQ_TYPE_NONE>,
  55. <0 0xd4 0 IRQ_TYPE_NONE>,
  56. <0 0xd5 0 IRQ_TYPE_NONE>;
  57. };
  58. pm8994_mpps: mpps@a000 {
  59. compatible = "qcom,pm8994-mpp";
  60. reg = <0xa000>;
  61. gpio-controller;
  62. #gpio-cells = <2>;
  63. interrupts = <0 0xa0 0 IRQ_TYPE_NONE>,
  64. <0 0xa1 0 IRQ_TYPE_NONE>,
  65. <0 0xa2 0 IRQ_TYPE_NONE>,
  66. <0 0xa3 0 IRQ_TYPE_NONE>,
  67. <0 0xa4 0 IRQ_TYPE_NONE>,
  68. <0 0xa5 0 IRQ_TYPE_NONE>,
  69. <0 0xa6 0 IRQ_TYPE_NONE>,
  70. <0 0xa7 0 IRQ_TYPE_NONE>;
  71. };
  72. };
  73. pmic@1 {
  74. compatible = "qcom,pm8994", "qcom,spmi-pmic";
  75. reg = <0x1 SPMI_USID>;
  76. #address-cells = <1>;
  77. #size-cells = <0>;
  78. };
  79. };