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 { 13 polling-delay-passive = <250>; 14 polling-delay = <1000>; 15 16 thermal-sensors = <&pm8998_temp>; 17 18 trips { 19 pm8998_alert0: pm8998-alert0 { 20 temperature = <105000>; 21 hysteresis = <2000>; 22 type = "passive"; 23 }; 24 pm8998_crit: pm8998-crit { 25 temperature = <125000>; 26 hysteresis = <2000>; 27 type = "critical"; 28 }; 29 }; 30 }; 31 }; 32}; 33 34&spmi_bus { 35 pm8998_lsid0: pmic@0 { 36 compatible = "qcom,pm8998", "qcom,spmi-pmic"; 37 reg = <0x0 SPMI_USID>; 38 #address-cells = <1>; 39 #size-cells = <0>; 40 41 pm8998_pon: pon@800 { 42 compatible = "qcom,pm8916-pon"; 43 44 reg = <0x800>; 45 mode-bootloader = <0x2>; 46 mode-recovery = <0x1>; 47 48 pwrkey { 49 compatible = "qcom,pm8941-pwrkey"; 50 interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; 51 debounce = <15625>; 52 bias-pull-up; 53 linux,code = <KEY_POWER>; 54 }; 55 }; 56 57 pm8998_temp: temp-alarm@2400 { 58 compatible = "qcom,spmi-temp-alarm"; 59 reg = <0x2400>; 60 interrupts = <0x0 0x24 0x0 IRQ_TYPE_EDGE_RISING>; 61 #thermal-sensor-cells = <0>; 62 }; 63 64 pm8998_coincell: coincell@2800 { 65 compatible = "qcom,pm8941-coincell"; 66 reg = <0x2800>; 67 68 status = "disabled"; 69 }; 70 71 pm8998_adc: adc@3100 { 72 compatible = "qcom,spmi-adc-rev2"; 73 reg = <0x3100>; 74 interrupts = <0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; 75 #address-cells = <1>; 76 #size-cells = <0>; 77 #io-channel-cells = <1>; 78 79 adc-chan@ADC5_DIE_TEMP { 80 reg = <ADC5_DIE_TEMP>; 81 label = "die_temp"; 82 }; 83 }; 84 85 rtc@6000 { 86 compatible = "qcom,pm8941-rtc"; 87 reg = <0x6000>, <0x6100>; 88 reg-names = "rtc", "alarm"; 89 interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; 90 }; 91 92 pm8998_gpio: gpios@c000 { 93 compatible = "qcom,pm8998-gpio", "qcom,spmi-gpio"; 94 reg = <0xc000>; 95 gpio-controller; 96 #gpio-cells = <2>; 97 interrupts = <0 0xc0 0 IRQ_TYPE_NONE>, 98 <0 0xc1 0 IRQ_TYPE_NONE>, 99 <0 0xc2 0 IRQ_TYPE_NONE>, 100 <0 0xc3 0 IRQ_TYPE_NONE>, 101 <0 0xc4 0 IRQ_TYPE_NONE>, 102 <0 0xc5 0 IRQ_TYPE_NONE>, 103 <0 0xc6 0 IRQ_TYPE_NONE>, 104 <0 0xc7 0 IRQ_TYPE_NONE>, 105 <0 0xc8 0 IRQ_TYPE_NONE>, 106 <0 0xc9 0 IRQ_TYPE_NONE>, 107 <0 0xca 0 IRQ_TYPE_NONE>, 108 <0 0xcb 0 IRQ_TYPE_NONE>, 109 <0 0xcc 0 IRQ_TYPE_NONE>, 110 <0 0xcd 0 IRQ_TYPE_NONE>, 111 <0 0xce 0 IRQ_TYPE_NONE>, 112 <0 0xcf 0 IRQ_TYPE_NONE>, 113 <0 0xd0 0 IRQ_TYPE_NONE>, 114 <0 0xd1 0 IRQ_TYPE_NONE>, 115 <0 0xd2 0 IRQ_TYPE_NONE>, 116 <0 0xd3 0 IRQ_TYPE_NONE>, 117 <0 0xd4 0 IRQ_TYPE_NONE>, 118 <0 0xd5 0 IRQ_TYPE_NONE>, 119 <0 0xd6 0 IRQ_TYPE_NONE>, 120 <0 0xd7 0 IRQ_TYPE_NONE>, 121 <0 0xd8 0 IRQ_TYPE_NONE>, 122 <0 0xd9 0 IRQ_TYPE_NONE>; 123 }; 124 125 }; 126 127 pm8998_lsid1: pmic@1 { 128 compatible = "qcom,pm8998", "qcom,spmi-pmic"; 129 reg = <0x1 SPMI_USID>; 130 #address-cells = <1>; 131 #size-cells = <0>; 132 }; 133}; 134