pmr735a.dtsi 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // SPDX-License-Identifier: BSD-3-Clause
  2. /*
  3. * Copyright (c) 2021, Linaro Limited
  4. */
  5. #include <dt-bindings/interrupt-controller/irq.h>
  6. #include <dt-bindings/spmi/spmi.h>
  7. &spmi_bus {
  8. pmr735a: pmic@4 {
  9. compatible = "qcom,pmr735a", "qcom,spmi-pmic";
  10. reg = <0x4 SPMI_USID>;
  11. #address-cells = <1>;
  12. #size-cells = <0>;
  13. pmr735a_temp_alarm: temp-alarm@a00 {
  14. compatible = "qcom,spmi-temp-alarm";
  15. reg = <0xa00>;
  16. interrupts = <0x4 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
  17. #thermal-sensor-cells = <0>;
  18. };
  19. pmr735a_gpios: gpio@8800 {
  20. compatible = "qcom,pmr735a-gpio", "qcom,spmi-gpio";
  21. reg = <0x8800>;
  22. gpio-controller;
  23. gpio-ranges = <&pmr735a_gpios 0 0 4>;
  24. #gpio-cells = <2>;
  25. interrupt-controller;
  26. #interrupt-cells = <2>;
  27. };
  28. };
  29. };
  30. / {
  31. thermal-zones {
  32. pmr735a_thermal: pmr735a-thermal {
  33. polling-delay-passive = <100>;
  34. polling-delay = <0>;
  35. thermal-sensors = <&pmr735a_temp_alarm>;
  36. trips {
  37. pmr735a_trip0: trip0 {
  38. temperature = <95000>;
  39. hysteresis = <0>;
  40. type = "passive";
  41. };
  42. pmr735a_crit: pmr735a-crit {
  43. temperature = <115000>;
  44. hysteresis = <0>;
  45. type = "critical";
  46. };
  47. };
  48. };
  49. };
  50. };