pm660l.dtsi 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. // SPDX-License-Identifier: BSD-3-Clause
  2. /*
  3. * Copyright (c) 2020, Konrad Dybcio
  4. */
  5. #include <dt-bindings/iio/qcom,spmi-vadc.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. #include <dt-bindings/thermal/thermal.h>
  10. / {
  11. thermal-zones {
  12. pm660l {
  13. polling-delay-passive = <250>;
  14. polling-delay = <1000>;
  15. thermal-sensors = <&pm660l_temp>;
  16. trips {
  17. pm660l_alert0: pm660l-alert0 {
  18. temperature = <95000>;
  19. hysteresis = <2000>;
  20. type = "passive";
  21. };
  22. pm660l_crit: pm660l-crit {
  23. temperature = <125000>;
  24. hysteresis = <2000>;
  25. type = "critical";
  26. };
  27. };
  28. };
  29. };
  30. };
  31. &spmi_bus {
  32. pmic@2 {
  33. compatible = "qcom,pm660l", "qcom,spmi-pmic";
  34. reg = <0x2 SPMI_USID>;
  35. #address-cells = <1>;
  36. #size-cells = <0>;
  37. pm660l_temp: temp-alarm@2400 {
  38. compatible = "qcom,spmi-temp-alarm";
  39. reg = <0x2400>;
  40. interrupts = <0x2 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
  41. #thermal-sensor-cells = <0>;
  42. };
  43. pm660l_gpios: gpios@c000 {
  44. compatible = "qcom,pm660l-gpio", "qcom,spmi-gpio";
  45. reg = <0xc000>;
  46. gpio-controller;
  47. gpio-ranges = <&pm660l_gpios 0 0 12>;
  48. #gpio-cells = <2>;
  49. interrupt-controller;
  50. #interrupt-cells = <2>;
  51. };
  52. };
  53. pmic@3 {
  54. compatible = "qcom,pm660l", "qcom,spmi-pmic";
  55. reg = <0x3 SPMI_USID>;
  56. #address-cells = <1>;
  57. #size-cells = <0>;
  58. pm660l_lpg: pwm {
  59. compatible = "qcom,pm660l-lpg";
  60. status = "disabled";
  61. };
  62. pm660l_wled: leds@d800 {
  63. compatible = "qcom,pm660l-wled";
  64. reg = <0xd800>, <0xd900>;
  65. interrupts = <0x3 0xd8 0x1 IRQ_TYPE_EDGE_RISING>,
  66. <0x3 0xd8 0x2 IRQ_TYPE_EDGE_RISING>;
  67. interrupt-names = "ovp", "short";
  68. label = "backlight";
  69. status = "disabled";
  70. };
  71. pm660l_spmi_regulators: regulators {
  72. compatible = "qcom,pm660l-regulators";
  73. };
  74. };
  75. };