1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 3 * Spreadtrum SC2731 PMIC dts file 4 * 5 * Copyright (C) 2018, Spreadtrum Communicatio 6 */ 7 8 &adi_bus { 9 sc2731_pmic: pmic@0 { 10 compatible = "sprd,sc2731"; 11 reg = <0>; 12 spi-max-frequency = <26000000> 13 interrupts = <GIC_SPI 31 IRQ_T 14 interrupt-controller; 15 #interrupt-cells = <1>; 16 #address-cells = <1>; 17 #size-cells = <0>; 18 19 charger@0 { 20 compatible = "sprd,sc2 21 reg = <0x0>; 22 monitored-battery = <& 23 }; 24 25 led-controller@200 { 26 compatible = "sprd,sc2 27 reg = <0x200>; 28 #address-cells = <1>; 29 #size-cells = <0>; 30 31 led@0 { 32 label = "red"; 33 reg = <0x0>; 34 }; 35 36 led@1 { 37 label = "green 38 reg = <0x1>; 39 }; 40 41 led@2 { 42 label = "blue" 43 reg = <0x2>; 44 }; 45 }; 46 47 rtc@280 { 48 compatible = "sprd,sc2 49 reg = <0x280>; 50 interrupt-parent = <&s 51 interrupts = <2>; 52 }; 53 54 pmic_eic: gpio@300 { 55 compatible = "sprd,sc2 56 reg = <0x300>; 57 interrupt-parent = <&s 58 interrupts = <5>; 59 gpio-controller; 60 #gpio-cells = <2>; 61 interrupt-controller; 62 #interrupt-cells = <2> 63 }; 64 65 efuse@380 { 66 compatible = "sprd,sc2 67 reg = <0x380>; 68 #address-cells = <1>; 69 #size-cells = <1>; 70 hwlocks = <&hwlock 12> 71 72 fgu_calib: calib@6 { 73 reg = <0x6 0x2 74 bits = <0 9>; 75 }; 76 77 adc_big_scale: calib@2 78 reg = <0x24 0x 79 }; 80 81 adc_small_scale: calib 82 reg = <0x26 0x 83 }; 84 }; 85 86 pmic_adc: adc@480 { 87 compatible = "sprd,sc2 88 reg = <0x480>; 89 interrupt-parent = <&s 90 interrupts = <0>; 91 #io-channel-cells = <1 92 hwlocks = <&hwlock 4>; 93 nvmem-cell-names = "bi 94 nvmem-cells = <&adc_bi 95 }; 96 97 fuel-gauge@a00 { 98 compatible = "sprd,sc2 99 reg = <0xa00>; 100 bat-detect-gpio = <&pm 101 io-channels = <&pmic_a 102 io-channel-names = "ba 103 monitored-battery = <& 104 nvmem-cell-names = "fg 105 nvmem-cells = <&fgu_ca 106 interrupt-parent = <&s 107 interrupts = <4>; 108 }; 109 110 vibrator@ec8 { 111 compatible = "sprd,sc2 112 reg = <0xec8>; 113 }; 114 115 regulators { 116 compatible = "sprd,sc2 117 118 vddarm0: BUCK_CPU0 { 119 regulator-name 120 regulator-min- 121 regulator-max- 122 regulator-ramp 123 regulator-alwa 124 }; 125 126 vddarm1: BUCK_CPU1 { 127 regulator-name 128 regulator-min- 129 regulator-max- 130 regulator-ramp 131 regulator-alwa 132 }; 133 134 dcdcrf: BUCK_RF { 135 regulator-name 136 regulator-min- 137 regulator-max- 138 regulator-ramp 139 regulator-enab 140 regulator-alwa 141 }; 142 143 vddcama0: LDO_CAMA0 { 144 regulator-name 145 regulator-min- 146 regulator-max- 147 regulator-enab 148 }; 149 150 vddcama1: LDO_CAMA1 { 151 regulator-name 152 regulator-min- 153 regulator-max- 154 regulator-enab 155 regulator-ramp 156 }; 157 158 vddcammot: LDO_CAMMOT 159 regulator-name 160 regulator-min- 161 regulator-max- 162 regulator-enab 163 regulator-ramp 164 }; 165 166 vddvldo: LDO_VLDO { 167 regulator-name 168 regulator-min- 169 regulator-max- 170 regulator-enab 171 regulator-ramp 172 }; 173 174 vddemmccore: LDO_EMMCC 175 regulator-name 176 regulator-min- 177 regulator-max- 178 regulator-enab 179 regulator-ramp 180 regulator-boot 181 }; 182 183 vddsdcore: LDO_SDCORE 184 regulator-name 185 regulator-min- 186 regulator-max- 187 regulator-enab 188 regulator-ramp 189 }; 190 191 vddsdio: LDO_SDIO { 192 regulator-name 193 regulator-min- 194 regulator-max- 195 regulator-enab 196 regulator-ramp 197 }; 198 199 vddwifipa: LDO_WIFIPA 200 regulator-name 201 regulator-min- 202 regulator-max- 203 regulator-enab 204 regulator-ramp 205 }; 206 207 vddusb33: LDO_USB33 { 208 regulator-name 209 regulator-min- 210 regulator-max- 211 regulator-enab 212 regulator-ramp 213 }; 214 215 vddcamd0: LDO_CAMD0 { 216 regulator-name 217 regulator-min- 218 regulator-max- 219 regulator-enab 220 regulator-ramp 221 }; 222 223 vddcamd1: LDO_CAMD1 { 224 regulator-name 225 regulator-min- 226 regulator-max- 227 regulator-enab 228 regulator-ramp 229 }; 230 231 vddcon: LDO_CON { 232 regulator-name 233 regulator-min- 234 regulator-max- 235 regulator-enab 236 regulator-ramp 237 }; 238 239 vddcamio: LDO_CAMIO { 240 regulator-name 241 regulator-min- 242 regulator-max- 243 regulator-enab 244 regulator-ramp 245 }; 246 247 vddsram: LDO_SRAM { 248 regulator-name 249 regulator-min- 250 regulator-max- 251 regulator-enab 252 regulator-ramp 253 regulator-alwa 254 }; 255 }; 256 }; 257 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.