pm8350c.dtsi 1.3 KB

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