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 &spmi_bus {
0010 pmr735a: pmic@4 {
0011 compatible = "qcom,pmr735a", "qcom,spmi-pmic";
0012 reg = <0x4 SPMI_USID>;
0013 #address-cells = <1>;
0014 #size-cells = <0>;
0015
0016 pmr735a_temp_alarm: temp-alarm@a00 {
0017 compatible = "qcom,spmi-temp-alarm";
0018 reg = <0xa00>;
0019 interrupts = <0x4 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
0020 #thermal-sensor-cells = <0>;
0021 };
0022
0023 pmr735a_gpios: gpio@8800 {
0024 compatible = "qcom,pmr735a-gpio", "qcom,spmi-gpio";
0025 reg = <0x8800>;
0026 gpio-controller;
0027 gpio-ranges = <&pmr735a_gpios 0 0 4>;
0028 #gpio-cells = <2>;
0029 interrupt-controller;
0030 #interrupt-cells = <2>;
0031 };
0032 };
0033 };
0034
0035 / {
0036 thermal-zones {
0037 pmr735a_thermal: pmr735a-thermal {
0038 polling-delay-passive = <100>;
0039 polling-delay = <0>;
0040 thermal-sensors = <&pmr735a_temp_alarm>;
0041
0042 trips {
0043 pmr735a_trip0: trip0 {
0044 temperature = <95000>;
0045 hysteresis = <0>;
0046 type = "passive";
0047 };
0048
0049 pmr735a_crit: pmr735a-crit {
0050 temperature = <115000>;
0051 hysteresis = <0>;
0052 type = "critical";
0053 };
0054 };
0055 };
0056 };
0057 };