1 // SPDX-License-Identifier: BSD-3-Clause 1 // SPDX-License-Identifier: BSD-3-Clause 2 /* 2 /* 3 * Copyright (c) 2020, Konrad Dybcio <konrad.dy 3 * Copyright (c) 2020, Konrad Dybcio <konrad.dybcio@somainline.org> 4 */ 4 */ 5 5 6 #include "msm8994.dtsi" 6 #include "msm8994.dtsi" 7 #include "pm8994.dtsi" 7 #include "pm8994.dtsi" 8 #include "pmi8994.dtsi" 8 #include "pmi8994.dtsi" 9 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/input/gpio-keys.h> 10 #include <dt-bindings/input/gpio-keys.h> 11 11 12 / { 12 / { 13 /* required for bootloader to select c 13 /* required for bootloader to select correct board */ 14 14 15 /* 15 /* 16 * We support MSM8994 v2 (0x20000) and 16 * We support MSM8994 v2 (0x20000) and v2.1 (0x20001). 17 * The V1 chip (0x0 and 0x10000) is si 17 * The V1 chip (0x0 and 0x10000) is significantly different 18 * and requires driver-side changes (i 18 * and requires driver-side changes (including CPR, be warned!!). 19 * Besides that, it's very rare. 19 * Besides that, it's very rare. 20 */ 20 */ 21 qcom,msm-id = <207 0x20000>, <207 0x20 21 qcom,msm-id = <207 0x20000>, <207 0x20001>; 22 /* We only use pm8994+pmi8994. */ 22 /* We only use pm8994+pmi8994. */ 23 qcom,pmic-id = <0x10009 0x1000a 0x00 0 23 qcom,pmic-id = <0x10009 0x1000a 0x00 0x00>; 24 /* This property is shared across all 24 /* This property is shared across all kitakami devices. */ 25 qcom,board-id = <8 0>; 25 qcom,board-id = <8 0>; 26 26 27 /* Kitakami firmware doesn't support P 27 /* Kitakami firmware doesn't support PSCI */ 28 /delete-node/ psci; 28 /delete-node/ psci; 29 29 30 gpio-keys { !! 30 gpio_keys { 31 compatible = "gpio-keys"; 31 compatible = "gpio-keys"; >> 32 #address-cells = <1>; >> 33 #size-cells = <0>; 32 autorepeat; 34 autorepeat; 33 35 34 button-0 { !! 36 button@0 { 35 label = "Volume Down"; 37 label = "Volume Down"; 36 gpios = <&pm8994_gpios 38 gpios = <&pm8994_gpios 2 GPIO_ACTIVE_LOW>; 37 linux,input-type = <1> 39 linux,input-type = <1>; 38 linux,code = <KEY_VOLU 40 linux,code = <KEY_VOLUMEDOWN>; 39 wakeup-source; 41 wakeup-source; 40 debounce-interval = <1 42 debounce-interval = <15>; 41 }; 43 }; 42 44 43 button-1 { !! 45 button@1 { 44 label = "Volume Up"; 46 label = "Volume Up"; 45 gpios = <&pm8994_gpios 47 gpios = <&pm8994_gpios 3 GPIO_ACTIVE_LOW>; 46 linux,input-type = <1> 48 linux,input-type = <1>; 47 linux,code = <KEY_VOLU 49 linux,code = <KEY_VOLUMEUP>; 48 wakeup-source; 50 wakeup-source; 49 debounce-interval = <1 51 debounce-interval = <15>; 50 }; 52 }; 51 53 52 button-2 { !! 54 button@2 { 53 label = "Camera Snapsh 55 label = "Camera Snapshot"; 54 gpios = <&pm8994_gpios 56 gpios = <&pm8994_gpios 4 GPIO_ACTIVE_LOW>; 55 linux,input-type = <1> 57 linux,input-type = <1>; 56 linux,code = <KEY_CAME 58 linux,code = <KEY_CAMERA>; 57 wakeup-source; 59 wakeup-source; 58 debounce-interval = <1 60 debounce-interval = <15>; 59 }; 61 }; 60 62 61 button-3 { !! 63 button@3 { 62 label = "Camera Focus" 64 label = "Camera Focus"; 63 gpios = <&pm8994_gpios 65 gpios = <&pm8994_gpios 5 GPIO_ACTIVE_LOW>; 64 linux,input-type = <1> 66 linux,input-type = <1>; 65 linux,code = <KEY_VOLU 67 linux,code = <KEY_VOLUMEUP>; 66 wakeup-source; 68 wakeup-source; 67 debounce-interval = <1 69 debounce-interval = <15>; 68 }; 70 }; 69 }; 71 }; 70 72 71 reserved-memory { 73 reserved-memory { 72 /* This is for getting crash l 74 /* This is for getting crash logs using Android downstream kernels */ 73 ramoops@1fe00000 { 75 ramoops@1fe00000 { 74 compatible = "ramoops" 76 compatible = "ramoops"; 75 reg = <0 0x1fe00000 0 77 reg = <0 0x1fe00000 0 0x200000>; 76 console-size = <0x1000 78 console-size = <0x100000>; 77 record-size = <0x10000 79 record-size = <0x10000>; 78 ftrace-size = <0x10000 80 ftrace-size = <0x10000>; 79 pmsg-size = <0x80000>; 81 pmsg-size = <0x80000>; 80 }; 82 }; 81 83 82 fb_region: fb@40000000 { !! 84 fb_region: fb_region@40000000 { 83 reg = <0 0x40000000 0 85 reg = <0 0x40000000 0 0x1000000>; 84 no-map; 86 no-map; 85 }; 87 }; 86 88 87 tzapp: memory@c7800000 { 89 tzapp: memory@c7800000 { 88 reg = <0 0xc7800000 0 90 reg = <0 0xc7800000 0 0x1900000>; 89 no-map; 91 no-map; 90 }; 92 }; 91 }; 93 }; 92 }; 94 }; 93 95 94 &blsp1_spi1 { 96 &blsp1_spi1 { 95 status = "okay"; 97 status = "okay"; 96 98 97 /* FPC fingerprint reader */ 99 /* FPC fingerprint reader */ 98 }; 100 }; 99 101 100 /* I2C1 is disabled on this board */ 102 /* I2C1 is disabled on this board */ 101 103 102 &blsp1_i2c2 { 104 &blsp1_i2c2 { 103 status = "okay"; 105 status = "okay"; 104 clock-frequency = <355000>; 106 clock-frequency = <355000>; 105 107 106 /* NXP PN547 NFC */ 108 /* NXP PN547 NFC */ 107 }; 109 }; 108 110 109 &blsp1_i2c6 { 111 &blsp1_i2c6 { 110 status = "okay"; 112 status = "okay"; 111 clock-frequency = <355000>; 113 clock-frequency = <355000>; 112 114 113 touchscreen: rmi4-i2c-dev@2c { 115 touchscreen: rmi4-i2c-dev@2c { 114 compatible = "syna,rmi4-i2c"; 116 compatible = "syna,rmi4-i2c"; 115 reg = <0x2c>; 117 reg = <0x2c>; 116 #address-cells = <1>; 118 #address-cells = <1>; 117 #size-cells = <0>; 119 #size-cells = <0>; 118 120 119 interrupt-parent = <&tlmm>; 121 interrupt-parent = <&tlmm>; 120 interrupts = <42 IRQ_TYPE_EDGE 122 interrupts = <42 IRQ_TYPE_EDGE_FALLING>; 121 123 122 pinctrl-names = "default"; 124 pinctrl-names = "default"; 123 pinctrl-0 = <&ts_int_active &t 125 pinctrl-0 = <&ts_int_active &ts_reset_active>; 124 126 125 vdd-supply = <&pm8994_l22>; 127 vdd-supply = <&pm8994_l22>; 126 vio-supply = <&pm8994_s4>; 128 vio-supply = <&pm8994_s4>; 127 129 128 syna,reset-delay-ms = <220>; 130 syna,reset-delay-ms = <220>; 129 syna,startup-delay-ms = <220>; 131 syna,startup-delay-ms = <220>; 130 132 131 rmi4-f01@1 { 133 rmi4-f01@1 { 132 reg = <0x01>; 134 reg = <0x01>; 133 syna,nosleep-mode = <1 135 syna,nosleep-mode = <1>; 134 }; 136 }; 135 137 136 rmi4-f11@11 { 138 rmi4-f11@11 { 137 reg = <0x11>; 139 reg = <0x11>; 138 syna,sensor-type = <1> 140 syna,sensor-type = <1>; 139 }; 141 }; 140 }; 142 }; 141 }; 143 }; 142 144 143 &blsp1_uart2 { 145 &blsp1_uart2 { 144 status = "okay"; 146 status = "okay"; 145 }; 147 }; 146 148 147 &blsp2_i2c5 { 149 &blsp2_i2c5 { 148 status = "okay"; 150 status = "okay"; 149 clock-frequency = <355000>; 151 clock-frequency = <355000>; 150 152 151 /* sii8620 HDMI/MHL bridge */ 153 /* sii8620 HDMI/MHL bridge */ 152 }; 154 }; 153 155 154 &blsp2_uart2 { 156 &blsp2_uart2 { 155 status = "okay"; 157 status = "okay"; 156 }; 158 }; 157 159 158 /* 160 /* 159 * Kitakami bootloader only turns cont_splash 161 * Kitakami bootloader only turns cont_splash on when it detects 160 * specific downstream MDSS/backlight nodes in 162 * specific downstream MDSS/backlight nodes in the active DTB. 161 * One way to use that framebuffer is to load 163 * One way to use that framebuffer is to load a secondary instance of 162 * LK with the downstream DTB appended and the 164 * LK with the downstream DTB appended and then, only from there, load 163 * mainline Linux. 165 * mainline Linux. 164 */ 166 */ 165 &cont_splash_mem { 167 &cont_splash_mem { 166 reg = <0 0x03401000 0 0x2200000>; !! 168 reg = <0 0x3401000 0 0x2200000>; 167 }; 169 }; 168 170 169 &pmi8994_spmi_regulators { 171 &pmi8994_spmi_regulators { 170 /* 172 /* 171 * Yeah, this one *is* managed by RPMP 173 * Yeah, this one *is* managed by RPMPD, but also needs 172 * to be hacked up as a-o due to the G 174 * to be hacked up as a-o due to the GPU device only accepting a single 173 * power domain.. which still isn't en 175 * power domain.. which still isn't enough and forces us to bind 174 * OXILI_CX and OXILI_GX together! 176 * OXILI_CX and OXILI_GX together! 175 */ 177 */ 176 vdd_gfx: s2 { !! 178 vdd_gfx: s2@1700 { >> 179 reg = <0x1700 0x100>; 177 regulator-name = "VDD_GFX"; 180 regulator-name = "VDD_GFX"; 178 regulator-min-microvolt = <980 181 regulator-min-microvolt = <980000>; 179 regulator-max-microvolt = <980 182 regulator-max-microvolt = <980000>; 180 183 181 /* hack until we rig up the gp 184 /* hack until we rig up the gpu consumer */ 182 regulator-always-on; 185 regulator-always-on; 183 }; 186 }; 184 }; 187 }; 185 188 186 &rpm_requests { 189 &rpm_requests { 187 /* PMI8994 should probe first, because 190 /* PMI8994 should probe first, because pmi8994_bby supplies some of PM8994's regulators */ 188 pmi8994_regulators: regulators-0 { !! 191 pmi8994_regulators: pmi8994-regulators { 189 compatible = "qcom,rpm-pmi8994 192 compatible = "qcom,rpm-pmi8994-regulators"; 190 193 191 vdd_s1-supply = <&vph_pwr>; 194 vdd_s1-supply = <&vph_pwr>; 192 vdd_bst_byp-supply = <&vph_pwr 195 vdd_bst_byp-supply = <&vph_pwr>; 193 196 194 pmi8994_s1: s1 { 197 pmi8994_s1: s1 { 195 regulator-min-microvol 198 regulator-min-microvolt = <1025000>; 196 regulator-max-microvol 199 regulator-max-microvolt = <1025000>; 197 }; 200 }; 198 201 199 /* S2 & S3 - VDD_GFX */ 202 /* S2 & S3 - VDD_GFX */ 200 203 201 pmi8994_bby: boost-bypass { 204 pmi8994_bby: boost-bypass { 202 regulator-min-microvol 205 regulator-min-microvolt = <3150000>; 203 regulator-max-microvol 206 regulator-max-microvolt = <3600000>; 204 }; 207 }; 205 }; 208 }; 206 209 207 pm8994_regulators: regulators-1 { !! 210 pm8994_regulators: pm8994-regulators { 208 compatible = "qcom,rpm-pm8994- 211 compatible = "qcom,rpm-pm8994-regulators"; 209 212 210 vdd_s3-supply = <&vph_pwr>; 213 vdd_s3-supply = <&vph_pwr>; 211 vdd_s4-supply = <&vph_pwr>; 214 vdd_s4-supply = <&vph_pwr>; 212 vdd_s5-supply = <&vph_pwr>; 215 vdd_s5-supply = <&vph_pwr>; 213 vdd_s6-supply = <&vph_pwr>; 216 vdd_s6-supply = <&vph_pwr>; 214 vdd_s7-supply = <&vph_pwr>; 217 vdd_s7-supply = <&vph_pwr>; 215 vdd_l1-supply = <&pmi8994_s1>; 218 vdd_l1-supply = <&pmi8994_s1>; 216 vdd_l2_l26_l28-supply = <&pm89 219 vdd_l2_l26_l28-supply = <&pm8994_s3>; 217 vdd_l3_l11-supply = <&pm8994_s 220 vdd_l3_l11-supply = <&pm8994_s3>; 218 vdd_l4_l27_l31-supply = <&pm89 221 vdd_l4_l27_l31-supply = <&pm8994_s3>; 219 vdd_l6_l12_l32-supply = <&pm89 222 vdd_l6_l12_l32-supply = <&pm8994_s5>; 220 vdd_l8_l16_l30-supply = <&vph_ 223 vdd_l8_l16_l30-supply = <&vph_pwr>; 221 vdd_l9_l10_l18_l22-supply = <& 224 vdd_l9_l10_l18_l22-supply = <&pmi8994_bby>; 222 vdd_l13_l19_l23_l24-supply = < 225 vdd_l13_l19_l23_l24-supply = <&pmi8994_bby>; 223 vdd_l14_l15-supply = <&pm8994_ 226 vdd_l14_l15-supply = <&pm8994_s5>; 224 vdd_l17_l29-supply = <&pmi8994 227 vdd_l17_l29-supply = <&pmi8994_bby>; 225 vdd_l20_l21-supply = <&pmi8994 228 vdd_l20_l21-supply = <&pmi8994_bby>; 226 vdd_l25-supply = <&pm8994_s3>; 229 vdd_l25-supply = <&pm8994_s3>; 227 vdd_lvs1_2-supply = <&pm8994_s 230 vdd_lvs1_2-supply = <&pm8994_s4>; 228 231 229 /* S1, S2, S6 and S12 are mana 232 /* S1, S2, S6 and S12 are managed by RPMPD */ 230 233 231 pm8994_s3: s3 { 234 pm8994_s3: s3 { 232 regulator-min-microvol 235 regulator-min-microvolt = <1300000>; 233 regulator-max-microvol 236 regulator-max-microvolt = <1300000>; 234 }; 237 }; 235 238 236 pm8994_s4: s4 { 239 pm8994_s4: s4 { 237 regulator-min-microvol 240 regulator-min-microvolt = <1800000>; 238 regulator-max-microvol 241 regulator-max-microvolt = <1800000>; 239 regulator-system-load 242 regulator-system-load = <325000>; 240 regulator-allow-set-lo 243 regulator-allow-set-load; 241 regulator-always-on; 244 regulator-always-on; 242 }; 245 }; 243 246 244 pm8994_s5: s5 { 247 pm8994_s5: s5 { 245 regulator-min-microvol 248 regulator-min-microvolt = <2150000>; 246 regulator-max-microvol 249 regulator-max-microvolt = <2150000>; 247 }; 250 }; 248 251 249 pm8994_s7: s7 { 252 pm8994_s7: s7 { 250 regulator-min-microvol 253 regulator-min-microvolt = <1000000>; 251 regulator-max-microvol 254 regulator-max-microvolt = <1000000>; 252 }; 255 }; 253 256 254 /* 257 /* 255 * S8 - SPMI-managed VDD_APC0 258 * S8 - SPMI-managed VDD_APC0 256 * S9, S10 and S11 (the main o 259 * S9, S10 and S11 (the main one) - SPMI-managed VDD_APC1 257 */ 260 */ 258 261 259 pm8994_l1: l1 { 262 pm8994_l1: l1 { 260 regulator-min-microvol 263 regulator-min-microvolt = <1000000>; 261 regulator-max-microvol 264 regulator-max-microvolt = <1000000>; 262 }; 265 }; 263 266 264 pm8994_l2: l2 { 267 pm8994_l2: l2 { 265 regulator-min-microvol 268 regulator-min-microvolt = <1250000>; 266 regulator-max-microvol 269 regulator-max-microvolt = <1250000>; 267 regulator-system-load 270 regulator-system-load = <10000>; 268 regulator-allow-set-lo 271 regulator-allow-set-load; 269 }; 272 }; 270 273 271 pm8994_l3: l3 { 274 pm8994_l3: l3 { 272 regulator-min-microvol 275 regulator-min-microvolt = <1100000>; 273 regulator-max-microvol 276 regulator-max-microvolt = <1100000>; 274 regulator-boot-on; 277 regulator-boot-on; 275 }; 278 }; 276 279 277 pm8994_l4: l4 { 280 pm8994_l4: l4 { 278 regulator-min-microvol 281 regulator-min-microvolt = <1225000>; 279 regulator-max-microvol 282 regulator-max-microvolt = <1225000>; 280 }; 283 }; 281 284 282 /* L5 is inaccessible from RPM 285 /* L5 is inaccessible from RPM */ 283 286 284 pm8994_l6: l6 { 287 pm8994_l6: l6 { 285 regulator-min-microvol 288 regulator-min-microvolt = <1800000>; 286 regulator-max-microvol 289 regulator-max-microvolt = <1800000>; 287 }; 290 }; 288 291 289 /* L7 is inaccessible from RPM 292 /* L7 is inaccessible from RPM */ 290 293 291 pm8994_l8: l8 { 294 pm8994_l8: l8 { 292 regulator-min-microvol 295 regulator-min-microvolt = <1800000>; 293 regulator-max-microvol 296 regulator-max-microvolt = <1800000>; 294 }; 297 }; 295 298 296 pm8994_l9: l9 { 299 pm8994_l9: l9 { 297 regulator-min-microvol 300 regulator-min-microvolt = <1800000>; 298 regulator-max-microvol 301 regulator-max-microvolt = <1800000>; 299 }; 302 }; 300 303 301 pm8994_l10: l10 { 304 pm8994_l10: l10 { 302 regulator-min-microvol 305 regulator-min-microvolt = <1800000>; 303 regulator-max-microvol 306 regulator-max-microvolt = <1800000>; 304 }; 307 }; 305 308 306 pm8994_l11: l11 { 309 pm8994_l11: l11 { 307 regulator-min-microvol 310 regulator-min-microvolt = <1200000>; 308 regulator-max-microvol 311 regulator-max-microvolt = <1200000>; 309 }; 312 }; 310 313 311 pm8994_l12: l12 { 314 pm8994_l12: l12 { 312 regulator-min-microvol 315 regulator-min-microvolt = <1800000>; 313 regulator-max-microvol 316 regulator-max-microvolt = <1800000>; 314 regulator-system-load 317 regulator-system-load = <10000>; 315 regulator-allow-set-lo 318 regulator-allow-set-load; 316 }; 319 }; 317 320 318 pm8994_l13: l13 { 321 pm8994_l13: l13 { 319 regulator-min-microvol 322 regulator-min-microvolt = <1800000>; 320 regulator-max-microvol 323 regulator-max-microvolt = <2950000>; 321 }; 324 }; 322 325 323 pm8994_l14: l14 { 326 pm8994_l14: l14 { 324 regulator-min-microvol 327 regulator-min-microvolt = <1800000>; 325 regulator-max-microvol 328 regulator-max-microvolt = <1800000>; 326 regulator-system-load 329 regulator-system-load = <10000>; 327 regulator-allow-set-lo 330 regulator-allow-set-load; 328 regulator-boot-on; 331 regulator-boot-on; 329 }; 332 }; 330 333 331 pm8994_l15: l15 { 334 pm8994_l15: l15 { 332 regulator-min-microvol 335 regulator-min-microvolt = <1800000>; 333 regulator-max-microvol 336 regulator-max-microvolt = <1800000>; 334 }; 337 }; 335 338 336 pm8994_l16: l16 { 339 pm8994_l16: l16 { 337 regulator-min-microvol 340 regulator-min-microvolt = <2700000>; 338 regulator-max-microvol 341 regulator-max-microvolt = <2700000>; 339 }; 342 }; 340 343 341 pm8994_l17: l17 { 344 pm8994_l17: l17 { 342 regulator-min-microvol 345 regulator-min-microvolt = <2200000>; 343 regulator-max-microvol 346 regulator-max-microvolt = <2200000>; 344 regulator-boot-on; 347 regulator-boot-on; 345 }; 348 }; 346 349 347 pm8994_l18: l18 { 350 pm8994_l18: l18 { 348 regulator-min-microvol 351 regulator-min-microvolt = <2850000>; 349 regulator-max-microvol 352 regulator-max-microvolt = <2850000>; 350 regulator-always-on; 353 regulator-always-on; 351 regulator-boot-on; 354 regulator-boot-on; 352 }; 355 }; 353 356 354 pm8994_l19: l19 { 357 pm8994_l19: l19 { 355 regulator-min-microvol 358 regulator-min-microvolt = <2850000>; 356 regulator-max-microvol 359 regulator-max-microvolt = <2850000>; 357 regulator-boot-on; 360 regulator-boot-on; 358 }; 361 }; 359 362 360 pm8994_l20: l20 { 363 pm8994_l20: l20 { 361 regulator-min-microvol 364 regulator-min-microvolt = <2950000>; 362 regulator-max-microvol 365 regulator-max-microvolt = <2950000>; 363 regulator-system-load 366 regulator-system-load = <570000>; 364 regulator-allow-set-lo 367 regulator-allow-set-load; 365 }; 368 }; 366 369 367 pm8994_l21: l21 { 370 pm8994_l21: l21 { 368 regulator-min-microvol 371 regulator-min-microvolt = <2950000>; 369 regulator-max-microvol 372 regulator-max-microvolt = <2950000>; 370 regulator-system-load 373 regulator-system-load = <800000>; 371 regulator-allow-set-lo 374 regulator-allow-set-load; 372 }; 375 }; 373 376 374 pm8994_l22: l22 { 377 pm8994_l22: l22 { 375 regulator-min-microvol 378 regulator-min-microvolt = <3000000>; 376 regulator-max-microvol 379 regulator-max-microvolt = <3000000>; 377 regulator-boot-on; 380 regulator-boot-on; 378 }; 381 }; 379 382 380 pm8994_l23: l23 { 383 pm8994_l23: l23 { 381 regulator-min-microvol 384 regulator-min-microvolt = <2800000>; 382 regulator-max-microvol 385 regulator-max-microvolt = <2800000>; 383 regulator-always-on; 386 regulator-always-on; 384 regulator-boot-on; 387 regulator-boot-on; 385 }; 388 }; 386 389 387 pm8994_l24: l24 { 390 pm8994_l24: l24 { 388 regulator-min-microvol 391 regulator-min-microvolt = <3075000>; 389 regulator-max-microvol 392 regulator-max-microvolt = <3150000>; 390 }; 393 }; 391 394 392 pm8994_l25: l25 { 395 pm8994_l25: l25 { 393 regulator-min-microvol 396 regulator-min-microvolt = <1000000>; 394 regulator-max-microvol 397 regulator-max-microvolt = <1000000>; 395 regulator-boot-on; 398 regulator-boot-on; 396 }; 399 }; 397 400 398 pm8994_l26: l26 { 401 pm8994_l26: l26 { 399 regulator-min-microvol 402 regulator-min-microvolt = <987500>; 400 regulator-max-microvol 403 regulator-max-microvolt = <987500>; 401 }; 404 }; 402 405 403 pm8994_l27: l27 { 406 pm8994_l27: l27 { 404 regulator-min-microvol 407 regulator-min-microvolt = <1200000>; 405 regulator-max-microvol 408 regulator-max-microvolt = <1200000>; 406 regulator-boot-on; 409 regulator-boot-on; 407 }; 410 }; 408 411 409 pm8994_l28: l28 { 412 pm8994_l28: l28 { 410 regulator-min-microvol 413 regulator-min-microvolt = <1000000>; 411 regulator-max-microvol 414 regulator-max-microvolt = <1000000>; 412 regulator-system-load 415 regulator-system-load = <10000>; 413 regulator-allow-set-lo 416 regulator-allow-set-load; 414 }; 417 }; 415 418 416 pm8994_l29: l29 { 419 pm8994_l29: l29 { 417 regulator-min-microvol 420 regulator-min-microvolt = <2700000>; 418 regulator-max-microvol 421 regulator-max-microvolt = <2700000>; 419 regulator-boot-on; 422 regulator-boot-on; 420 }; 423 }; 421 424 422 pm8994_l30: l30 { 425 pm8994_l30: l30 { 423 regulator-min-microvol 426 regulator-min-microvolt = <1800000>; 424 regulator-max-microvol 427 regulator-max-microvolt = <1800000>; 425 regulator-boot-on; 428 regulator-boot-on; 426 }; 429 }; 427 430 428 pm8994_l31: l31 { 431 pm8994_l31: l31 { 429 regulator-min-microvol 432 regulator-min-microvolt = <1200000>; 430 regulator-max-microvol 433 regulator-max-microvolt = <1200000>; 431 regulator-system-load 434 regulator-system-load = <10000>; 432 regulator-allow-set-lo 435 regulator-allow-set-load; 433 }; 436 }; 434 437 435 pm8994_l32: l32 { 438 pm8994_l32: l32 { 436 regulator-min-microvol 439 regulator-min-microvolt = <1800000>; 437 regulator-max-microvol 440 regulator-max-microvolt = <1800000>; 438 }; 441 }; 439 442 440 pm8994_lvs1: lvs1 { 443 pm8994_lvs1: lvs1 { 441 regulator-boot-on; 444 regulator-boot-on; 442 }; 445 }; 443 pm8994_lvs2: lvs2 { 446 pm8994_lvs2: lvs2 { 444 regulator-boot-on; 447 regulator-boot-on; 445 }; 448 }; 446 }; 449 }; 447 }; 450 }; 448 451 449 &sdhc1 { 452 &sdhc1 { 450 /* 453 /* 451 * There is an issue with the eMMC cau 454 * There is an issue with the eMMC causing permanent 452 * damage to the card if a quirk isn't 455 * damage to the card if a quirk isn't addressed. 453 * Until it's fixed, disable the MMC s 456 * Until it's fixed, disable the MMC so as not to brick 454 * devices. 457 * devices. 455 */ 458 */ 456 status = "disabled"; 459 status = "disabled"; 457 460 458 /* 461 /* 459 * Downstream pushes 2.95V to the sdhc 462 * Downstream pushes 2.95V to the sdhci device, 460 * but upstream driver REALLY wants to 463 * but upstream driver REALLY wants to make vmmc 1.8v 461 * cause of the hs400-1_8v mode. MMC w 464 * cause of the hs400-1_8v mode. MMC works fine without 462 * that regulator, so let's not use it 465 * that regulator, so let's not use it for now. 463 * vqmmc is also disabled cause driver 466 * vqmmc is also disabled cause driver stll complains. 464 * 467 * 465 * vmmc-supply = <&pm8994_l20>; 468 * vmmc-supply = <&pm8994_l20>; 466 * vqmmc-supply = <&pm8994_s4>; 469 * vqmmc-supply = <&pm8994_s4>; 467 */ 470 */ 468 }; 471 }; 469 472 470 &sdhc2 { 473 &sdhc2 { 471 status = "okay"; 474 status = "okay"; 472 475 473 cd-gpios = <&tlmm 100 GPIO_ACTIVE_HIGH !! 476 cd-gpios = <&tlmm 100 0>; 474 vmmc-supply = <&pm8994_l21>; 477 vmmc-supply = <&pm8994_l21>; 475 vqmmc-supply = <&pm8994_l13>; 478 vqmmc-supply = <&pm8994_l13>; 476 }; 479 }; 477 480 478 &tlmm { 481 &tlmm { 479 ts_int_active: ts-int-active-state { !! 482 ts_int_active: ts-int-active { 480 pins = "gpio42"; 483 pins = "gpio42"; 481 function = "gpio"; << 482 drive-strength = <2>; 484 drive-strength = <2>; 483 bias-disable; 485 bias-disable; >> 486 input-enable; 484 }; 487 }; 485 488 486 ts_reset_active: ts-reset-active-state !! 489 ts_reset_active: ts-reset-active { 487 pins = "gpio109"; 490 pins = "gpio109"; 488 function = "gpio"; << 489 drive-strength = <2>; 491 drive-strength = <2>; 490 bias-disable; 492 bias-disable; 491 output-low; 493 output-low; 492 }; 494 }; 493 }; 495 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.