1// SPDX-License-Identifier: BSD-3-Clause 2/* 3 * Copyright (c) 2019, The Linux Foundation. All rights reserved. 4 */ 5 6#include <dt-bindings/iio/qcom,spmi-vadc.h> 7#include <dt-bindings/input/linux-event-codes.h> 8#include <dt-bindings/interrupt-controller/irq.h> 9#include <dt-bindings/spmi/spmi.h> 10#include <dt-bindings/thermal/thermal.h> 11 12/ { 13 thermal-zones { 14 pm6150_thermal: pm6150-thermal { 15 polling-delay-passive = <100>; 16 polling-delay = <0>; 17 thermal-sensors = <&pm6150_temp>; 18 19 trips { 20 pm6150_trip0: trip0 { 21 temperature = <95000>; 22 hysteresis = <0>; 23 type = "passive"; 24 }; 25 26 pm6150_crit: crit { 27 temperature = <115000>; 28 hysteresis = <0>; 29 type = "critical"; 30 }; 31 }; 32 }; 33 }; 34}; 35 36&spmi_bus { 37 pm6150_lsid0: pmic@0 { 38 compatible = "qcom,pm6150", "qcom,spmi-pmic"; 39 reg = <0x0 SPMI_USID>; 40 #address-cells = <1>; 41 #size-cells = <0>; 42 43 pm6150_pon: pon@800 { 44 compatible = "qcom,pm8998-pon"; 45 reg = <0x800>; 46 mode-bootloader = <0x2>; 47 mode-recovery = <0x1>; 48 49 pm6150_pwrkey: pwrkey { 50 compatible = "qcom,pm8941-pwrkey"; 51 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; 52 debounce = <15625>; 53 bias-pull-up; 54 linux,code = <KEY_POWER>; 55 }; 56 }; 57 58 pm6150_temp: temp-alarm@2400 { 59 compatible = "qcom,spmi-temp-alarm"; 60 reg = <0x2400>; 61 interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>; 62 io-channels = <&pm6150_adc ADC5_DIE_TEMP>; 63 io-channel-names = "thermal"; 64 #thermal-sensor-cells = <0>; 65 }; 66 67 pm6150_adc: adc@3100 { 68 compatible = "qcom,spmi-adc5"; 69 reg = <0x3100>; 70 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; 71 #address-cells = <1>; 72 #size-cells = <0>; 73 #io-channel-cells = <1>; 74 75 adc-chan@6 { 76 reg = <ADC5_DIE_TEMP>; 77 label = "die_temp"; 78 }; 79 }; 80 81 pm6150_adc_tm: adc-tm@3500 { 82 compatible = "qcom,spmi-adc-tm5"; 83 reg = <0x3500>; 84 interrupts = <0x0 0x35 0x0 IRQ_TYPE_EDGE_RISING>; 85 #thermal-sensor-cells = <1>; 86 #address-cells = <1>; 87 #size-cells = <0>; 88 status = "disabled"; 89 }; 90 91 pm6150_gpios: gpio@c000 { 92 compatible = "qcom,pm6150-gpio", "qcom,spmi-gpio"; 93 reg = <0xc000>; 94 gpio-controller; 95 gpio-ranges = <&pm6150_gpios 0 0 10>; 96 #gpio-cells = <2>; 97 interrupt-controller; 98 #interrupt-cells = <2>; 99 }; 100 }; 101 102 pm6150_lsid1: pmic@1 { 103 compatible = "qcom,pm6150", "qcom,spmi-pmic"; 104 reg = <0x1 SPMI_USID>; 105 #address-cells = <1>; 106 #size-cells = <0>; 107 }; 108}; 109