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/input/input.h>
0007 #include <dt-bindings/interrupt-controller/irq.h>
0008 #include <dt-bindings/spmi/spmi.h>
0009 
0010 / {
0011         thermal-zones {
0012                 pmm8155au-2-thermal {
0013                         polling-delay-passive = <100>;
0014                         polling-delay = <0>;
0015 
0016                         thermal-sensors = <&pmm8155au_2_temp>;
0017 
0018                         trips {
0019                                 trip0 {
0020                                         temperature = <95000>;
0021                                         hysteresis = <0>;
0022                                         type = "passive";
0023                                 };
0024 
0025                                 trip1 {
0026                                         temperature = <115000>;
0027                                         hysteresis = <0>;
0028                                         type = "hot";
0029                                 };
0030 
0031                                 trip2 {
0032                                         temperature = <145000>;
0033                                         hysteresis = <0>;
0034                                         type = "critical";
0035                                 };
0036                         };
0037                 };
0038         };
0039 };
0040 
0041 &spmi_bus {
0042         pmic@4 {
0043                 compatible = "qcom,pmm8155au", "qcom,spmi-pmic";
0044                 reg = <0x4 SPMI_USID>;
0045                 #address-cells = <1>;
0046                 #size-cells = <0>;
0047 
0048                 power-on@800 {
0049                         compatible = "qcom,pm8916-pon";
0050                         reg = <0x0800>;
0051 
0052                         status = "disabled";
0053                 };
0054 
0055                 pmm8155au_2_temp: temp-alarm@2400 {
0056                         compatible = "qcom,spmi-temp-alarm";
0057                         reg = <0x2400>;
0058                         interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_BOTH>;
0059                         io-channels = <&pmm8155au_2_adc ADC5_DIE_TEMP>;
0060                         io-channel-names = "thermal";
0061                         #thermal-sensor-cells = <0>;
0062                 };
0063 
0064                 pmm8155au_2_adc: adc@3100 {
0065                         compatible = "qcom,spmi-adc5";
0066                         reg = <0x3100>;
0067                         #address-cells = <1>;
0068                         #size-cells = <0>;
0069                         #io-channel-cells = <1>;
0070                         interrupts = <0x4 0x31 0x0 IRQ_TYPE_EDGE_RISING>;
0071 
0072                         ref-gnd@0 {
0073                                 reg = <ADC5_REF_GND>;
0074                                 qcom,pre-scaling = <1 1>;
0075                                 label = "ref_gnd";
0076                         };
0077 
0078                         vref-1p25@1 {
0079                                 reg = <ADC5_1P25VREF>;
0080                                 qcom,pre-scaling = <1 1>;
0081                                 label = "vref_1p25";
0082                         };
0083 
0084                         die-temp@6 {
0085                                 reg = <ADC5_DIE_TEMP>;
0086                                 qcom,pre-scaling = <1 1>;
0087                                 label = "die_temp";
0088                         };
0089                 };
0090 
0091                 pmm8155au_2_gpios: gpio@c000 {
0092                         compatible = "qcom,pmm8155au-gpio", "qcom,spmi-gpio";
0093                         reg = <0xc000>;
0094                         gpio-controller;
0095                         #gpio-cells = <2>;
0096                         gpio-ranges = <&pmm8155au_2_gpios 0 0 10>;
0097                         interrupt-controller;
0098                         #interrupt-cells = <2>;
0099                 };
0100         };
0101 
0102         pmic@5 {
0103                 compatible = "qcom,pmm8155au", "qcom,spmi-pmic";
0104                 reg = <0x5 SPMI_USID>;
0105                 #address-cells = <1>;
0106                 #size-cells = <0>;
0107         };
0108 };