qcom-pmx55.dtsi 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. // SPDX-License-Identifier: BSD-3-Clause
  2. /*
  3. * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2020, Linaro Limited
  5. */
  6. #include <dt-bindings/iio/qcom,spmi-vadc.h>
  7. #include <dt-bindings/interrupt-controller/irq.h>
  8. #include <dt-bindings/spmi/spmi.h>
  9. &spmi_bus {
  10. pmic@8 {
  11. compatible = "qcom,pmx55", "qcom,spmi-pmic";
  12. reg = <0x8 SPMI_USID>;
  13. #address-cells = <1>;
  14. #size-cells = <0>;
  15. pon@800 {
  16. compatible = "qcom,pm8916-pon";
  17. reg = <0x0800>;
  18. status = "disabled";
  19. };
  20. pmx55_temp: temp-alarm@2400 {
  21. compatible = "qcom,spmi-temp-alarm";
  22. reg = <0x2400>;
  23. interrupts = <0x8 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
  24. io-channels = <&pmx55_adc ADC5_DIE_TEMP>;
  25. io-channel-names = "thermal";
  26. #thermal-sensor-cells = <0>;
  27. };
  28. pmx55_adc: adc@3100 {
  29. compatible = "qcom,spmi-adc5";
  30. reg = <0x3100>;
  31. #address-cells = <1>;
  32. #size-cells = <0>;
  33. #io-channel-cells = <1>;
  34. interrupts = <0x8 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
  35. ref-gnd@0 {
  36. reg = <ADC5_REF_GND>;
  37. qcom,pre-scaling = <1 1>;
  38. label = "ref_gnd";
  39. };
  40. vref-1p25@1 {
  41. reg = <ADC5_1P25VREF>;
  42. qcom,pre-scaling = <1 1>;
  43. label = "vref_1p25";
  44. };
  45. die-temp@6 {
  46. reg = <ADC5_DIE_TEMP>;
  47. qcom,pre-scaling = <1 1>;
  48. label = "die_temp";
  49. };
  50. chg-temp@9 {
  51. reg = <ADC5_CHG_TEMP>;
  52. qcom,pre-scaling = <1 1>;
  53. label = "chg_temp";
  54. };
  55. };
  56. pmx55_gpios: gpio@c000 {
  57. compatible = "qcom,pmx55-gpio", "qcom,spmi-gpio";
  58. reg = <0xc000>;
  59. gpio-controller;
  60. gpio-ranges = <&pmx55_gpios 0 0 11>;
  61. #gpio-cells = <2>;
  62. interrupt-controller;
  63. #interrupt-cells = <2>;
  64. };
  65. };
  66. pmic@9 {
  67. compatible = "qcom,pmx55", "qcom,spmi-pmic";
  68. reg = <0x9 SPMI_USID>;
  69. #address-cells = <1>;
  70. #size-cells = <0>;
  71. };
  72. };