1// SPDX-License-Identifier: BSD-3-Clause 2/* 3 * Copyright (c) 2021, Linaro Limited 4 */ 5 6#include <dt-bindings/input/input.h> 7#include <dt-bindings/interrupt-controller/irq.h> 8#include <dt-bindings/spmi/spmi.h> 9 10/ { 11 thermal-zones { 12 pmm8155au-2-thermal { 13 polling-delay-passive = <100>; 14 15 thermal-sensors = <&pmm8155au_2_temp>; 16 17 trips { 18 trip0 { 19 temperature = <95000>; 20 hysteresis = <0>; 21 type = "passive"; 22 }; 23 24 trip1 { 25 temperature = <115000>; 26 hysteresis = <0>; 27 type = "hot"; 28 }; 29 30 trip2 { 31 temperature = <145000>; 32 hysteresis = <0>; 33 type = "critical"; 34 }; 35 }; 36 }; 37 }; 38}; 39 40&spmi_bus { 41 pmic@4 { 42 compatible = "qcom,pmm8155au", "qcom,spmi-pmic"; 43 reg = <0x4 SPMI_USID>; 44 #address-cells = <1>; 45 #size-cells = <0>; 46 47 pon@800 { 48 compatible = "qcom,pm8916-pon"; 49 reg = <0x0800>; 50 51 status = "disabled"; 52 }; 53 54 pmm8155au_2_temp: temp-alarm@2400 { 55 compatible = "qcom,spmi-temp-alarm"; 56 reg = <0x2400>; 57 interrupts = <0x4 0x24 0x0 IRQ_TYPE_EDGE_BOTH>; 58 io-channels = <&pmm8155au_2_adc ADC5_DIE_TEMP>; 59 io-channel-names = "thermal"; 60 #thermal-sensor-cells = <0>; 61 }; 62 63 pmm8155au_2_adc: adc@3100 { 64 compatible = "qcom,spmi-adc5"; 65 reg = <0x3100>; 66 #address-cells = <1>; 67 #size-cells = <0>; 68 #io-channel-cells = <1>; 69 interrupts = <0x4 0x31 0x0 IRQ_TYPE_EDGE_RISING>; 70 71 channel@0 { 72 reg = <ADC5_REF_GND>; 73 qcom,pre-scaling = <1 1>; 74 label = "ref_gnd"; 75 }; 76 77 channel@1 { 78 reg = <ADC5_1P25VREF>; 79 qcom,pre-scaling = <1 1>; 80 label = "vref_1p25"; 81 }; 82 83 channel@6 { 84 reg = <ADC5_DIE_TEMP>; 85 qcom,pre-scaling = <1 1>; 86 label = "die_temp"; 87 }; 88 }; 89 90 pmm8155au_2_gpios: gpio@c000 { 91 compatible = "qcom,pmm8155au-gpio", "qcom,spmi-gpio"; 92 reg = <0xc000>; 93 gpio-controller; 94 #gpio-cells = <2>; 95 gpio-ranges = <&pmm8155au_2_gpios 0 0 10>; 96 interrupt-controller; 97 #interrupt-cells = <2>; 98 }; 99 }; 100 101 pmic@5 { 102 compatible = "qcom,pmm8155au", "qcom,spmi-pmic"; 103 reg = <0x5 SPMI_USID>; 104 #address-cells = <1>; 105 #size-cells = <0>; 106 }; 107}; 108