pm8450.dtsi 1.1 KB

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