pm6150l.dtsi 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. // SPDX-License-Identifier: BSD-3-Clause
  2. // Copyright (c) 2019, The Linux Foundation. All rights reserved.
  3. #include <dt-bindings/iio/qcom,spmi-vadc.h>
  4. #include <dt-bindings/interrupt-controller/irq.h>
  5. #include <dt-bindings/spmi/spmi.h>
  6. &spmi_bus {
  7. pm6150l_lsid4: pmic@4 {
  8. compatible = "qcom,pm6150l", "qcom,spmi-pmic";
  9. reg = <0x4 SPMI_USID>;
  10. #address-cells = <1>;
  11. #size-cells = <0>;
  12. pm6150l_adc: adc@3100 {
  13. compatible = "qcom,spmi-adc5";
  14. reg = <0x3100>;
  15. interrupts = <0x4 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
  16. #address-cells = <1>;
  17. #size-cells = <0>;
  18. #io-channel-cells = <1>;
  19. adc-chan@0 {
  20. reg = <ADC5_REF_GND>;
  21. qcom,pre-scaling = <1 1>;
  22. label = "ref_gnd";
  23. };
  24. adc-chan@1 {
  25. reg = <ADC5_1P25VREF>;
  26. qcom,pre-scaling = <1 1>;
  27. label = "vref_1p25";
  28. };
  29. adc-chan@6 {
  30. reg = <ADC5_DIE_TEMP>;
  31. qcom,pre-scaling = <1 1>;
  32. label = "die_temp";
  33. };
  34. adc-chan@83 {
  35. reg = <ADC5_VPH_PWR>;
  36. qcom,pre-scaling = <1 3>;
  37. label = "vph_pwr";
  38. };
  39. };
  40. pm6150l_adc_tm: adc-tm@3500 {
  41. compatible = "qcom,spmi-adc-tm5";
  42. reg = <0x3500>;
  43. interrupts = <0x4 0x35 0x0 IRQ_TYPE_EDGE_RISING>;
  44. #thermal-sensor-cells = <1>;
  45. #address-cells = <1>;
  46. #size-cells = <0>;
  47. status = "disabled";
  48. };
  49. pm6150l_gpio: gpios@c000 {
  50. compatible = "qcom,pm6150l-gpio", "qcom,spmi-gpio";
  51. reg = <0xc000>;
  52. gpio-controller;
  53. gpio-ranges = <&pm6150l_gpio 0 0 12>;
  54. #gpio-cells = <2>;
  55. interrupt-controller;
  56. #interrupt-cells = <2>;
  57. };
  58. };
  59. pm6150l_lsid5: pmic@5 {
  60. compatible = "qcom,pm6150l", "qcom,spmi-pmic";
  61. reg = <0x5 SPMI_USID>;
  62. #address-cells = <1>;
  63. #size-cells = <0>;
  64. pm6150l_wled: leds@d800 {
  65. compatible = "qcom,pm6150l-wled";
  66. reg = <0xd800>, <0xd900>;
  67. interrupts = <0x5 0xd8 0x1 IRQ_TYPE_EDGE_RISING>,
  68. <0x5 0xd8 0x2 IRQ_TYPE_EDGE_RISING>;
  69. interrupt-names = "ovp", "short";
  70. label = "backlight";
  71. status = "disabled";
  72. };
  73. };
  74. };