1// SPDX-License-Identifier: BSD-3-Clause 2/* 3 * Copyright (c) 2022, 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 pm8280_1_thermal: pm8280-1-thermal { 13 polling-delay-passive = <100>; 14 polling-delay = <0>; 15 thermal-sensors = <&pm8280_1_temp_alarm>; 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 = "critical"; 28 }; 29 }; 30 }; 31 32 pm8280_2_thermal: pm8280-2-thermal { 33 polling-delay-passive = <100>; 34 polling-delay = <0>; 35 thermal-sensors = <&pm8280_2_temp_alarm>; 36 37 trips { 38 trip0 { 39 temperature = <95000>; 40 hysteresis = <0>; 41 type = "passive"; 42 }; 43 44 trip1 { 45 temperature = <115000>; 46 hysteresis = <0>; 47 type = "critical"; 48 }; 49 }; 50 }; 51 }; 52}; 53 54&spmi_bus { 55 pmk8280: pmic@0 { 56 compatible = "qcom,pmk8350", "qcom,spmi-pmic"; 57 reg = <0x0 SPMI_USID>; 58 #address-cells = <1>; 59 #size-cells = <0>; 60 61 pmk8280_pon: pon@1300 { 62 compatible = "qcom,pmk8350-pon"; 63 reg = <0x1300>, <0x800>; 64 reg-names = "hlos", "pbs"; 65 66 pmk8280_pon_pwrkey: pwrkey { 67 compatible = "qcom,pmk8350-pwrkey"; 68 interrupts-extended = <&spmi_bus 0x0 0x13 0x7 IRQ_TYPE_EDGE_BOTH>; 69 linux,code = <KEY_POWER>; 70 status = "disabled"; 71 }; 72 73 pmk8280_pon_resin: resin { 74 compatible = "qcom,pmk8350-resin"; 75 interrupts-extended = <&spmi_bus 0x0 0x13 0x6 IRQ_TYPE_EDGE_BOTH>; 76 status = "disabled"; 77 }; 78 }; 79 80 pmk8280_vadc: adc@3100 { 81 compatible = "qcom,spmi-adc7"; 82 reg = <0x3100>; 83 interrupts-extended = <&spmi_bus 0x0 0x31 0x0 IRQ_TYPE_EDGE_RISING>; 84 #address-cells = <1>; 85 #size-cells = <0>; 86 #io-channel-cells = <1>; 87 status = "disabled"; 88 }; 89 90 pmk8280_adc_tm: adc-tm@3400 { 91 compatible = "qcom,spmi-adc-tm5-gen2"; 92 reg = <0x3400>; 93 interrupts-extended = <&spmi_bus 0x0 0x34 0x0 IRQ_TYPE_EDGE_RISING>; 94 #address-cells = <1>; 95 #size-cells = <0>; 96 #thermal-sensor-cells = <1>; 97 status = "disabled"; 98 }; 99 }; 100 101 pmc8280_1: pmic@1 { 102 compatible = "qcom,pm8350", "qcom,spmi-pmic"; 103 reg = <0x1 SPMI_USID>; 104 #address-cells = <1>; 105 #size-cells = <0>; 106 107 pm8280_1_temp_alarm: temp-alarm@a00 { 108 compatible = "qcom,spmi-temp-alarm"; 109 reg = <0xa00>; 110 interrupts-extended = <&spmi_bus 0x1 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; 111 #thermal-sensor-cells = <0>; 112 }; 113 114 pmc8280_1_gpios: gpio@8800 { 115 compatible = "qcom,pm8350-gpio", "qcom,spmi-gpio"; 116 reg = <0x8800>; 117 gpio-controller; 118 gpio-ranges = <&pmc8280_1_gpios 0 0 10>; 119 #gpio-cells = <2>; 120 interrupt-controller; 121 #interrupt-cells = <2>; 122 }; 123 }; 124 125 pmc8280c: pmic@2 { 126 compatible = "qcom,pm8350c", "qcom,spmi-pmic"; 127 reg = <0x2 SPMI_USID>; 128 #address-cells = <1>; 129 #size-cells = <0>; 130 131 pmc8280c_gpios: gpio@8800 { 132 compatible = "qcom,pm8350c-gpio", "qcom,spmi-gpio"; 133 reg = <0x8800>; 134 gpio-controller; 135 gpio-ranges = <&pmc8280c_gpios 0 0 9>; 136 #gpio-cells = <2>; 137 interrupt-controller; 138 #interrupt-cells = <2>; 139 }; 140 141 pmc8280c_lpg: pwm { 142 compatible = "qcom,pm8350c-pwm"; 143 144 #address-cells = <1>; 145 #size-cells = <0>; 146 147 #pwm-cells = <2>; 148 149 status = "disabled"; 150 }; 151 }; 152 153 pmc8280_2: pmic@3 { 154 compatible = "qcom,pm8350", "qcom,spmi-pmic"; 155 reg = <0x3 SPMI_USID>; 156 #address-cells = <1>; 157 #size-cells = <0>; 158 159 pm8280_2_temp_alarm: temp-alarm@a00 { 160 compatible = "qcom,spmi-temp-alarm"; 161 reg = <0xa00>; 162 interrupts-extended = <&spmi_bus 0x2 0xa 0x0 IRQ_TYPE_EDGE_BOTH>; 163 #thermal-sensor-cells = <0>; 164 }; 165 166 pmc8280_2_gpios: gpio@8800 { 167 compatible = "qcom,pm8350-gpio", "qcom,spmi-gpio"; 168 reg = <0x8800>; 169 gpio-controller; 170 gpio-ranges = <&pmc8280_2_gpios 0 0 10>; 171 #gpio-cells = <2>; 172 interrupt-controller; 173 #interrupt-cells = <2>; 174 }; 175 }; 176 177 pmr735a: pmic@4 { 178 compatible = "qcom,pmr735a", "qcom,spmi-pmic"; 179 reg = <0x4 SPMI_USID>; 180 #address-cells = <1>; 181 #size-cells = <0>; 182 183 pmr735a_gpios: gpio@8800 { 184 compatible = "qcom,pmr735a-gpio", "qcom,spmi-gpio"; 185 reg = <0x8800>; 186 gpio-controller; 187 gpio-ranges = <&pmr735a_gpios 0 0 4>; 188 #gpio-cells = <2>; 189 interrupt-controller; 190 #interrupt-cells = <2>; 191 }; 192 }; 193}; 194