pmk8350.dtsi 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. // SPDX-License-Identifier: BSD-3-Clause
  2. /*
  3. * Copyright (c) 2021, Linaro Limited
  4. */
  5. #include <dt-bindings/input/input.h>
  6. #include <dt-bindings/input/linux-event-codes.h>
  7. #include <dt-bindings/interrupt-controller/irq.h>
  8. #include <dt-bindings/spmi/spmi.h>
  9. &spmi_bus {
  10. pmk8350: pmic@0 {
  11. compatible = "qcom,pmk8350", "qcom,spmi-pmic";
  12. reg = <0x0 SPMI_USID>;
  13. #address-cells = <1>;
  14. #size-cells = <0>;
  15. pmk8350_pon: pon@1300 {
  16. compatible = "qcom,pmk8350-pon";
  17. reg = <0x1300>, <0x800>;
  18. reg-names = "hlos", "pbs";
  19. pon_pwrkey: pwrkey {
  20. compatible = "qcom,pmk8350-pwrkey";
  21. interrupts = <0x0 0x13 0x7 IRQ_TYPE_EDGE_BOTH>;
  22. linux,code = <KEY_POWER>;
  23. status = "disabled";
  24. };
  25. pon_resin: resin {
  26. compatible = "qcom,pmk8350-resin";
  27. interrupts = <0x0 0x13 0x6 IRQ_TYPE_EDGE_BOTH>;
  28. status = "disabled";
  29. };
  30. };
  31. pmk8350_vadc: adc@3100 {
  32. compatible = "qcom,spmi-adc7";
  33. reg = <0x3100>;
  34. #address-cells = <1>;
  35. #size-cells = <0>;
  36. interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
  37. #io-channel-cells = <1>;
  38. };
  39. pmk8350_adc_tm: adc-tm@3400 {
  40. compatible = "qcom,spmi-adc-tm5-gen2";
  41. reg = <0x3400>;
  42. interrupts = <0x0 0x34 0x0 IRQ_TYPE_EDGE_RISING>;
  43. #address-cells = <1>;
  44. #size-cells = <0>;
  45. #thermal-sensor-cells = <1>;
  46. status = "disabled";
  47. };
  48. pmk8350_rtc: rtc@6100 {
  49. compatible = "qcom,pmk8350-rtc";
  50. reg = <0x6100>, <0x6200>;
  51. reg-names = "rtc", "alarm";
  52. interrupts = <0x0 0x62 0x1 IRQ_TYPE_EDGE_RISING>;
  53. status = "disabled";
  54. };
  55. pmk8350_gpios: gpio@b000 {
  56. compatible = "qcom,pmk8350-gpio", "qcom,spmi-gpio";
  57. reg = <0xb000>;
  58. gpio-controller;
  59. gpio-ranges = <&pmk8350_gpios 0 0 4>;
  60. #gpio-cells = <2>;
  61. interrupt-controller;
  62. #interrupt-cells = <2>;
  63. };
  64. };
  65. };