Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: BSD-3-Clause
0002 /*
0003  * Copyright (c) 2022, 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                 pm8450-thermal {
0012                         polling-delay-passive = <100>;
0013                         polling-delay = <0>;
0014 
0015                         thermal-sensors = <&pm8450_temp_alarm>;
0016 
0017                         trips {
0018                                 trip0 {
0019                                         temperature = <95000>;
0020                                         hysteresis = <0>;
0021                                         type = "passive";
0022                                 };
0023 
0024                                 trip1 {
0025                                         temperature = <115000>;
0026                                         hysteresis = <0>;
0027                                         type = "hot";
0028                                 };
0029                         };
0030                 };
0031         };
0032 };
0033 
0034 
0035 &spmi_bus {
0036         pm8450: pmic@7 {
0037                 compatible = "qcom,pm8450", "qcom,spmi-pmic";
0038                 reg = <0x7 SPMI_USID>;
0039                 #address-cells = <1>;
0040                 #size-cells = <0>;
0041 
0042                 pm8450_temp_alarm: temp-alarm@a00 {
0043                         compatible = "qcom,spmi-temp-alarm";
0044                         reg = <0xa00>;
0045                         interrupts = <0x7 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
0046                         #thermal-sensor-cells = <0>;
0047                 };
0048 
0049                 pm8450_gpios: gpio@8800 {
0050                         compatible = "qcom,pm8450-gpio", "qcom,spmi-gpio";
0051                         reg = <0x8800>;
0052                         gpio-controller;
0053                         gpio-ranges = <&pm8450_gpios 0 0 4>;
0054                         #gpio-cells = <2>;
0055                         interrupt-controller;
0056                         #interrupt-cells = <2>;
0057                 };
0058         };
0059 };