Back to home page

OSCL-LXR

 
 

    


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