pm7325.dtsi 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // SPDX-License-Identifier: BSD-3-Clause
  2. // Copyright (c) 2021, The Linux Foundation. All rights reserved.
  3. #include <dt-bindings/interrupt-controller/irq.h>
  4. #include <dt-bindings/spmi/spmi.h>
  5. &spmi_bus {
  6. pm7325: pmic@1 {
  7. compatible = "qcom,pm7325", "qcom,spmi-pmic";
  8. reg = <0x1 SPMI_USID>;
  9. #address-cells = <1>;
  10. #size-cells = <0>;
  11. pm7325_temp_alarm: temp-alarm@a00 {
  12. compatible = "qcom,spmi-temp-alarm";
  13. reg = <0xa00>;
  14. interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
  15. #thermal-sensor-cells = <0>;
  16. };
  17. pm7325_gpios: gpios@8800 {
  18. compatible = "qcom,pm7325-gpio", "qcom,spmi-gpio";
  19. reg = <0x8800>;
  20. gpio-controller;
  21. gpio-ranges = <&pm7325_gpios 0 0 10>;
  22. #gpio-cells = <2>;
  23. interrupt-controller;
  24. #interrupt-cells = <2>;
  25. };
  26. };
  27. };
  28. &thermal_zones {
  29. pm7325_thermal: pm7325-thermal {
  30. polling-delay-passive = <100>;
  31. polling-delay = <0>;
  32. thermal-sensors = <&pm7325_temp_alarm>;
  33. trips {
  34. pm7325_trip0: trip0 {
  35. temperature = <95000>;
  36. hysteresis = <0>;
  37. type = "passive";
  38. };
  39. pm7325_crit: pm7325-crit {
  40. temperature = <115000>;
  41. hysteresis = <0>;
  42. type = "critical";
  43. };
  44. };
  45. };
  46. };