1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* Copyright 2018 Google LLC. */ 3 4#include <dt-bindings/iio/qcom,spmi-vadc.h> 5#include <dt-bindings/input/linux-event-codes.h> 6#include <dt-bindings/interrupt-controller/irq.h> 7#include <dt-bindings/spmi/spmi.h> 8#include <dt-bindings/thermal/thermal.h> 9 10/ { 11 thermal-zones { 12 pm8998-thermal { 13 polling-delay-passive = <250>; 14 15 thermal-sensors = <&pm8998_temp>; 16 17 trips { 18 pm8998_alert0: pm8998-alert0 { 19 temperature = <105000>; 20 hysteresis = <2000>; 21 type = "passive"; 22 }; 23 pm8998_crit: pm8998-crit { 24 temperature = <125000>; 25 hysteresis = <2000>; 26 type = "critical"; 27 }; 28 }; 29 }; 30 }; 31}; 32 33&spmi_bus { 34 pm8998_lsid0: pmic@0 { 35 compatible = "qcom,pm8998", "qcom,spmi-pmic"; 36 reg = <0x0 SPMI_USID>; 37 #address-cells = <1>; 38 #size-cells = <0>; 39 40 pm8998_pon: pon@800 { 41 compatible = "qcom,pm8998-pon"; 42 43 reg = <0x800>; 44 mode-bootloader = <0x2>; 45 mode-recovery = <0x1>; 46 47 pm8998_pwrkey: pwrkey { 48 compatible = "qcom,pm8941-pwrkey"; 49 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; 50 debounce = <15625>; 51 bias-pull-up; 52 linux,code = <KEY_POWER>; 53 }; 54 55 pm8998_resin: resin { 56 compatible = "qcom,pm8941-resin"; 57 interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; 58 debounce = <15625>; 59 bias-pull-up; 60 status = "disabled"; 61 }; 62 }; 63 64 pm8998_temp: temp-alarm@2400 { 65 compatible = "qcom,spmi-temp-alarm"; 66 reg = <0x2400>; 67 interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>; 68 io-channels = <&pm8998_adc ADC5_DIE_TEMP>; 69 io-channel-names = "thermal"; 70 #thermal-sensor-cells = <0>; 71 }; 72 73 pm8998_coincell: charger@2800 { 74 compatible = "qcom,pm8998-coincell", "qcom,pm8941-coincell"; 75 reg = <0x2800>; 76 77 status = "disabled"; 78 }; 79 80 pm8998_adc: adc@3100 { 81 compatible = "qcom,spmi-adc-rev2"; 82 reg = <0x3100>; 83 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; 84 #address-cells = <1>; 85 #size-cells = <0>; 86 #io-channel-cells = <1>; 87 88 channel@6 { 89 reg = <ADC5_DIE_TEMP>; 90 label = "die_temp"; 91 }; 92 }; 93 94 pm8998_adc_tm: adc-tm@3400 { 95 compatible = "qcom,spmi-adc-tm-hc"; 96 reg = <0x3400>; 97 interrupts = <0x0 0x34 0x0 IRQ_TYPE_EDGE_RISING>; 98 #thermal-sensor-cells = <1>; 99 #address-cells = <1>; 100 #size-cells = <0>; 101 status = "disabled"; 102 }; 103 104 rtc@6000 { 105 compatible = "qcom,pm8941-rtc"; 106 reg = <0x6000>, <0x6100>; 107 reg-names = "rtc", "alarm"; 108 interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; 109 }; 110 111 pm8998_gpios: gpio@c000 { 112 compatible = "qcom,pm8998-gpio", "qcom,spmi-gpio"; 113 reg = <0xc000>; 114 gpio-controller; 115 gpio-ranges = <&pm8998_gpios 0 0 26>; 116 #gpio-cells = <2>; 117 interrupt-controller; 118 #interrupt-cells = <2>; 119 }; 120 121 }; 122 123 pm8998_lsid1: pmic@1 { 124 compatible = "qcom,pm8998", "qcom,spmi-pmic"; 125 reg = <0x1 SPMI_USID>; 126 #address-cells = <1>; 127 #size-cells = <0>; 128 }; 129}; 130