1 // SPDX-License-Identifier: BSD-3-Clause 2 #include <dt-bindings/iio/qcom,spmi-vadc.h> 3 #include <dt-bindings/input/linux-event-codes. 4 #include <dt-bindings/interrupt-controller/irq 5 #include <dt-bindings/spmi/spmi.h> 6 7 / { 8 thermal-zones { 9 pm8226-thermal { 10 polling-delay-passive 11 polling-delay = <0>; 12 thermal-sensors = <&pm 13 14 trips { 15 trip0 { 16 temper 17 hyster 18 type = 19 }; 20 21 trip1 { 22 temper 23 hyster 24 type = 25 }; 26 27 crit { 28 temper 29 hyster 30 type = 31 }; 32 }; 33 }; 34 }; 35 }; 36 37 &spmi_bus { 38 pm8226_0: pm8226@0 { 39 compatible = "qcom,pm8226", "q 40 reg = <0x0 SPMI_USID>; 41 #address-cells = <1>; 42 #size-cells = <0>; 43 44 pon@800 { 45 compatible = "qcom,pm8 46 reg = <0x800>; 47 48 pwrkey { 49 compatible = " 50 interrupts = < 51 debounce = <15 52 bias-pull-up; 53 linux,code = < 54 }; 55 56 pm8226_resin: resin { 57 compatible = " 58 interrupts = < 59 debounce = <15 60 bias-pull-up; 61 status = "disa 62 }; 63 }; 64 65 smbb: charger@1000 { 66 compatible = "qcom,pm8 67 reg = <0x1000>; 68 interrupts = <0x0 0x10 69 <0x0 0x10 70 <0x0 0x10 71 <0x0 0x12 72 <0x0 0x12 73 <0x0 0x13 74 <0x0 0x13 75 <0x0 0x14 76 interrupt-names = "chg 77 "chg 78 "chg 79 "bat 80 "bat 81 "chg 82 "usb 83 "dc- 84 85 status = "disabled"; 86 87 chg_otg: otg-vbus { }; 88 }; 89 90 pm8226_temp: temp-alarm@2400 { 91 compatible = "qcom,spm 92 reg = <0x2400>; 93 interrupts = <0 0x24 0 94 io-channels = <&pm8226 95 io-channel-names = "th 96 #thermal-sensor-cells 97 }; 98 99 pm8226_vadc: adc@3100 { 100 compatible = "qcom,spm 101 reg = <0x3100>; 102 interrupts = <0x0 0x31 103 #address-cells = <1>; 104 #size-cells = <0>; 105 #io-channel-cells = <1 106 107 channel@7 { 108 reg = <VADC_VS 109 qcom,pre-scali 110 label = "vph_p 111 }; 112 channel@8 { 113 reg = <VADC_DI 114 label = "die_t 115 }; 116 channel@9 { 117 reg = <VADC_RE 118 label = "ref_6 119 }; 120 channel@a { 121 reg = <VADC_RE 122 label = "ref_1 123 }; 124 channel@e { 125 reg = <VADC_GN 126 }; 127 channel@f { 128 reg = <VADC_VD 129 }; 130 }; 131 132 pm8226_iadc: adc@3600 { 133 compatible = "qcom,pm8 134 reg = <0x3600>; 135 interrupts = <0x0 0x36 136 }; 137 138 rtc@6000 { 139 compatible = "qcom,pm8 140 reg = <0x6000>, <0x610 141 reg-names = "rtc", "al 142 interrupts = <0x0 0x61 143 }; 144 145 pm8226_mpps: mpps@a000 { 146 compatible = "qcom,pm8 147 reg = <0xa000>; 148 gpio-controller; 149 #gpio-cells = <2>; 150 gpio-ranges = <&pm8226 151 interrupt-controller; 152 #interrupt-cells = <2> 153 }; 154 155 pm8226_gpios: gpio@c000 { 156 compatible = "qcom,pm8 157 reg = <0xc000>; 158 gpio-controller; 159 #gpio-cells = <2>; 160 gpio-ranges = <&pm8226 161 interrupt-controller; 162 #interrupt-cells = <2> 163 }; 164 }; 165 166 pm8226_1: pm8226@1 { 167 compatible = "qcom,pm8226", "q 168 reg = <0x1 SPMI_USID>; 169 #address-cells = <1>; 170 #size-cells = <0>; 171 172 pm8226_spmi_regulators: regula 173 compatible = "qcom,pm8 174 }; 175 176 pm8226_vib: vibrator@c000 { 177 compatible = "qcom,pm8 178 reg = <0xc000>; 179 status = "disabled"; 180 }; 181 }; 182 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.