0001 // SPDX-License-Identifier: BSD-3-Clause
0002 /*
0003 * Copyright (c) 2021, Linaro Limited
0004 */
0005
0006 #include <dt-bindings/interrupt-controller/irq.h>
0007 #include <dt-bindings/spmi/spmi.h>
0008
0009 / {
0010 thermal-zones {
0011 pm8350_thermal: pm8350c-thermal {
0012 polling-delay-passive = <100>;
0013 polling-delay = <0>;
0014 thermal-sensors = <&pm8350_temp_alarm>;
0015
0016 trips {
0017 pm8350_trip0: trip0 {
0018 temperature = <95000>;
0019 hysteresis = <0>;
0020 type = "passive";
0021 };
0022
0023 pm8350_crit: pm8350c-crit {
0024 temperature = <115000>;
0025 hysteresis = <0>;
0026 type = "critical";
0027 };
0028 };
0029 };
0030 };
0031 };
0032
0033 &spmi_bus {
0034 pm8350: pmic@1 {
0035 compatible = "qcom,pm8350", "qcom,spmi-pmic";
0036 reg = <0x1 SPMI_USID>;
0037 #address-cells = <1>;
0038 #size-cells = <0>;
0039
0040 pm8350_temp_alarm: temp-alarm@a00 {
0041 compatible = "qcom,spmi-temp-alarm";
0042 reg = <0xa00>;
0043 interrupts = <0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
0044 #thermal-sensor-cells = <0>;
0045 };
0046
0047 pm8350_gpios: gpio@8800 {
0048 compatible = "qcom,pm8350-gpio", "qcom,spmi-gpio";
0049 reg = <0x8800>;
0050 gpio-controller;
0051 gpio-ranges = <&pm8350_gpios 0 0 10>;
0052 #gpio-cells = <2>;
0053 interrupt-controller;
0054 #interrupt-cells = <2>;
0055 };
0056 };
0057 };