Back to home page

OSCL-LXR

 
 

    


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         pm8350c: pmic@2 {
0011                 compatible = "qcom,pm8350c", "qcom,spmi-pmic";
0012                 reg = <0x2 SPMI_USID>;
0013                 #address-cells = <1>;
0014                 #size-cells = <0>;
0015 
0016                 pm8350c_temp_alarm: temp-alarm@a00 {
0017                         compatible = "qcom,spmi-temp-alarm";
0018                         reg = <0xa00>;
0019                         interrupts = <0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>;
0020                         #thermal-sensor-cells = <0>;
0021                 };
0022 
0023                 pm8350c_gpios: gpio@8800 {
0024                         compatible = "qcom,pm8350c-gpio", "qcom,spmi-gpio";
0025                         reg = <0x8800>;
0026                         gpio-controller;
0027                         gpio-ranges = <&pm8350c_gpios 0 0 9>;
0028                         #gpio-cells = <2>;
0029                         interrupt-controller;
0030                         #interrupt-cells = <2>;
0031                 };
0032 
0033                 pm8350c_pwm: pwm@e800 {
0034                         compatible = "qcom,pm8350c-pwm";
0035                         reg = <0xe800>;
0036                         #pwm-cells = <2>;
0037                         status = "disabled";
0038                 };
0039         };
0040 };
0041 
0042 / {
0043         thermal-zones {
0044                 pm8350c_thermal: pm8350c-thermal {
0045                         polling-delay-passive = <100>;
0046                         polling-delay = <0>;
0047                         thermal-sensors = <&pm8350c_temp_alarm>;
0048 
0049                         trips {
0050                                 pm8350c_trip0: trip0 {
0051                                         temperature = <95000>;
0052                                         hysteresis = <0>;
0053                                         type = "passive";
0054                                 };
0055 
0056                                 pm8350c_crit: pm8350c-crit {
0057                                         temperature = <115000>;
0058                                         hysteresis = <0>;
0059                                         type = "critical";
0060                                 };
0061                         };
0062                 };
0063         };
0064 };