pm8350b.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. / {
  8. thermal-zones {
  9. pm8350b_thermal: pm8350b-thermal {
  10. polling-delay-passive = <100>;
  11. polling-delay = <0>;
  12. thermal-sensors = <&pm8350b_temp_alarm>;
  13. trips {
  14. pm8350b_trip0: trip0 {
  15. temperature = <95000>;
  16. hysteresis = <0>;
  17. type = "passive";
  18. };
  19. pm8350b_crit: pm8350c-crit {
  20. temperature = <115000>;
  21. hysteresis = <0>;
  22. type = "critical";
  23. };
  24. };
  25. };
  26. };
  27. };
  28. &spmi_bus {
  29. pm8350b: pmic@3 {
  30. compatible = "qcom,pm8350b", "qcom,spmi-pmic";
  31. reg = <0x3 SPMI_USID>;
  32. #address-cells = <1>;
  33. #size-cells = <0>;
  34. pm8350b_temp_alarm: temp-alarm@a00 {
  35. compatible = "qcom,spmi-temp-alarm";
  36. reg = <0xa00>;
  37. interrupts = <0x3 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
  38. #thermal-sensor-cells = <0>;
  39. };
  40. pm8350b_gpios: gpio@8800 {
  41. compatible = "qcom,pm8350b-gpio", "qcom,spmi-gpio";
  42. reg = <0x8800>;
  43. gpio-controller;
  44. gpio-ranges = <&pm8350b_gpios 0 0 8>;
  45. #gpio-cells = <2>;
  46. interrupt-controller;
  47. #interrupt-cells = <2>;
  48. };
  49. };
  50. };