1 // SPDX-License-Identifier: GPL-2.0-only 1 // SPDX-License-Identifier: GPL-2.0-only 2 2 3 #include "msm8916-pm8916.dtsi" 3 #include "msm8916-pm8916.dtsi" 4 #include "msm8916-modem-qdsp6.dtsi" << 5 << 6 #include <dt-bindings/gpio/gpio.h> 4 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/input/input.h> 5 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/interrupt-controller/irq 6 #include <dt-bindings/interrupt-controller/irq.h> 9 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h 7 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 10 #include <dt-bindings/sound/apq8016-lpass.h> << 11 8 12 / { 9 / { 13 aliases { 10 aliases { 14 mmc0 = &sdhc_1; /* eMMC */ !! 11 serial0 = &blsp1_uart2; 15 mmc1 = &sdhc_2; /* SD card */ << 16 serial0 = &blsp_uart2; << 17 }; 12 }; 18 13 19 chosen { 14 chosen { 20 stdout-path = "serial0"; 15 stdout-path = "serial0"; 21 }; 16 }; 22 17 23 reserved-memory { 18 reserved-memory { 24 /* Additional memory used by S 19 /* Additional memory used by Samsung firmware modifications */ 25 tz-apps@85500000 { 20 tz-apps@85500000 { 26 reg = <0x0 0x85500000 21 reg = <0x0 0x85500000 0x0 0xb00000>; 27 no-map; 22 no-map; 28 }; 23 }; 29 }; 24 }; 30 25 31 battery: battery { << 32 compatible = "simple-battery"; << 33 precharge-current-microamp = < << 34 precharge-upper-limit-microvol << 35 }; << 36 << 37 clk_pwm: pwm { << 38 compatible = "clk-pwm"; << 39 #pwm-cells = <2>; << 40 << 41 clocks = <&gcc GCC_GP2_CLK>; << 42 << 43 pinctrl-names = "default"; << 44 pinctrl-0 = <&motor_pwm_defaul << 45 status = "disabled"; << 46 }; << 47 << 48 gpio-keys { 26 gpio-keys { 49 compatible = "gpio-keys"; 27 compatible = "gpio-keys"; 50 28 51 pinctrl-names = "default"; 29 pinctrl-names = "default"; 52 pinctrl-0 = <&gpio_keys_defaul 30 pinctrl-0 = <&gpio_keys_default>; 53 31 54 label = "GPIO Buttons"; 32 label = "GPIO Buttons"; 55 33 56 button-volume-up { !! 34 volume-up { 57 label = "Volume Up"; 35 label = "Volume Up"; 58 gpios = <&tlmm 107 GPI !! 36 gpios = <&msmgpio 107 GPIO_ACTIVE_LOW>; 59 linux,code = <KEY_VOLU 37 linux,code = <KEY_VOLUMEUP>; 60 }; 38 }; 61 39 62 button-home { !! 40 home { 63 label = "Home"; 41 label = "Home"; 64 gpios = <&tlmm 109 GPI !! 42 gpios = <&msmgpio 109 GPIO_ACTIVE_LOW>; 65 linux,code = <KEY_HOME 43 linux,code = <KEY_HOMEPAGE>; 66 }; 44 }; 67 }; 45 }; 68 46 69 gpio-hall-sensor { 47 gpio-hall-sensor { 70 compatible = "gpio-keys"; 48 compatible = "gpio-keys"; 71 49 72 pinctrl-names = "default"; 50 pinctrl-names = "default"; 73 pinctrl-0 = <&gpio_hall_sensor 51 pinctrl-0 = <&gpio_hall_sensor_default>; 74 52 75 label = "GPIO Hall Effect Sens 53 label = "GPIO Hall Effect Sensor"; 76 54 77 event-hall-sensor { !! 55 hall-sensor { 78 label = "Hall Effect S 56 label = "Hall Effect Sensor"; 79 gpios = <&tlmm 52 GPIO !! 57 gpios = <&msmgpio 52 GPIO_ACTIVE_LOW>; 80 linux,input-type = <EV 58 linux,input-type = <EV_SW>; 81 linux,code = <SW_LID>; 59 linux,code = <SW_LID>; 82 linux,can-disable; 60 linux,can-disable; 83 }; 61 }; 84 }; 62 }; 85 63 86 /* !! 64 reg_vdd_tsp: regulator-vdd-tsp { 87 * NOTE: A5 connects GPIO 76 to a regl << 88 * driver IC but A3 connects the same << 89 * the driver. << 90 */ << 91 reg_motor_vdd: regulator-motor-vdd { << 92 compatible = "regulator-fixed" << 93 regulator-name = "motor_vdd"; << 94 regulator-min-microvolt = <300 << 95 regulator-max-microvolt = <300 << 96 << 97 gpio = <&tlmm 76 GPIO_ACTIVE_H << 98 enable-active-high; << 99 << 100 pinctrl-names = "default"; << 101 pinctrl-0 = <&motor_en_default << 102 }; << 103 << 104 reg_vdd_tsp_a: regulator-vdd-tsp-a { << 105 compatible = "regulator-fixed" 65 compatible = "regulator-fixed"; 106 regulator-name = "vdd_tsp_a"; !! 66 regulator-name = "vdd_tsp"; 107 regulator-min-microvolt = <330 67 regulator-min-microvolt = <3300000>; 108 regulator-max-microvolt = <330 68 regulator-max-microvolt = <3300000>; 109 69 110 gpio = <&tlmm 73 GPIO_ACTIVE_H !! 70 gpio = <&msmgpio 73 GPIO_ACTIVE_HIGH>; 111 enable-active-high; 71 enable-active-high; 112 72 113 pinctrl-names = "default"; 73 pinctrl-names = "default"; 114 pinctrl-0 = <&tsp_en_default>; 74 pinctrl-0 = <&tsp_en_default>; 115 }; 75 }; 116 76 117 i2c-muic { 77 i2c-muic { 118 compatible = "i2c-gpio"; 78 compatible = "i2c-gpio"; 119 sda-gpios = <&tlmm 105 (GPIO_A !! 79 sda-gpios = <&msmgpio 105 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 120 scl-gpios = <&tlmm 106 (GPIO_A !! 80 scl-gpios = <&msmgpio 106 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 121 81 122 pinctrl-names = "default"; 82 pinctrl-names = "default"; 123 pinctrl-0 = <&muic_i2c_default 83 pinctrl-0 = <&muic_i2c_default>; 124 84 125 #address-cells = <1>; 85 #address-cells = <1>; 126 #size-cells = <0>; 86 #size-cells = <0>; 127 87 128 muic: extcon@25 { 88 muic: extcon@25 { 129 compatible = "siliconm 89 compatible = "siliconmitus,sm5502-muic"; 130 90 131 reg = <0x25>; 91 reg = <0x25>; 132 interrupt-parent = <&t !! 92 interrupt-parent = <&msmgpio>; 133 interrupts = <12 IRQ_T 93 interrupts = <12 IRQ_TYPE_EDGE_FALLING>; 134 94 135 pinctrl-names = "defau 95 pinctrl-names = "default"; 136 pinctrl-0 = <&muic_int 96 pinctrl-0 = <&muic_int_default>; 137 << 138 usb_con: connector { << 139 compatible = " << 140 label = "micro << 141 type = "micro" << 142 }; << 143 }; 97 }; 144 }; 98 }; 145 99 146 i2c-tkey { 100 i2c-tkey { 147 compatible = "i2c-gpio"; 101 compatible = "i2c-gpio"; 148 sda-gpios = <&tlmm 16 (GPIO_AC !! 102 sda-gpios = <&msmgpio 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 149 scl-gpios = <&tlmm 17 (GPIO_AC !! 103 scl-gpios = <&msmgpio 17 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 150 104 151 pinctrl-names = "default"; 105 pinctrl-names = "default"; 152 pinctrl-0 = <&tkey_i2c_default 106 pinctrl-0 = <&tkey_i2c_default>; 153 107 154 #address-cells = <1>; 108 #address-cells = <1>; 155 #size-cells = <0>; 109 #size-cells = <0>; 156 110 157 touchkey: touchkey@20 { 111 touchkey: touchkey@20 { 158 /* Note: Actually an A 112 /* Note: Actually an ABOV MCU that implements same interface */ 159 compatible = "corerive 113 compatible = "coreriver,tc360-touchkey"; 160 reg = <0x20>; 114 reg = <0x20>; 161 115 162 interrupt-parent = <&t !! 116 interrupt-parent = <&msmgpio>; 163 interrupts = <98 IRQ_T 117 interrupts = <98 IRQ_TYPE_EDGE_FALLING>; 164 118 165 /* vcc/vdd-supply are 119 /* vcc/vdd-supply are board-specific */ 166 vddio-supply = <&pm891 120 vddio-supply = <&pm8916_l6>; 167 121 168 linux,keycodes = <KEY_ 122 linux,keycodes = <KEY_APPSELECT KEY_BACK>; 169 123 170 pinctrl-names = "defau 124 pinctrl-names = "default"; 171 pinctrl-0 = <&tkey_def 125 pinctrl-0 = <&tkey_default>; 172 }; 126 }; 173 }; 127 }; 174 128 175 i2c-nfc { 129 i2c-nfc { 176 compatible = "i2c-gpio"; 130 compatible = "i2c-gpio"; 177 sda-gpios = <&tlmm 0 (GPIO_ACT !! 131 sda-gpios = <&msmgpio 0 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 178 scl-gpios = <&tlmm 1 (GPIO_ACT !! 132 scl-gpios = <&msmgpio 1 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>; 179 133 180 pinctrl-names = "default"; 134 pinctrl-names = "default"; 181 pinctrl-0 = <&nfc_i2c_default> 135 pinctrl-0 = <&nfc_i2c_default>; 182 136 183 #address-cells = <1>; 137 #address-cells = <1>; 184 #size-cells = <0>; 138 #size-cells = <0>; 185 139 186 nfc@27 { 140 nfc@27 { 187 compatible = "samsung, 141 compatible = "samsung,s3fwrn5-i2c"; 188 reg = <0x27>; 142 reg = <0x27>; 189 143 190 interrupt-parent = <&t !! 144 interrupt-parent = <&msmgpio>; 191 interrupts = <21 IRQ_T 145 interrupts = <21 IRQ_TYPE_EDGE_RISING>; 192 146 193 en-gpios = <&tlmm 20 G !! 147 en-gpios = <&msmgpio 20 GPIO_ACTIVE_HIGH>; 194 wake-gpios = <&tlmm 49 !! 148 wake-gpios = <&msmgpio 49 GPIO_ACTIVE_HIGH>; 195 149 196 clocks = <&rpmcc RPM_S 150 clocks = <&rpmcc RPM_SMD_BB_CLK2_PIN>; 197 151 198 pinctrl-names = "defau 152 pinctrl-names = "default"; 199 pinctrl-0 = <&nfc_defa 153 pinctrl-0 = <&nfc_default &nfc_clk_req>; 200 }; 154 }; 201 }; 155 }; 202 << 203 vibrator: vibrator { << 204 compatible = "pwm-vibrator"; << 205 << 206 pwms = <&clk_pwm 0 100000>; << 207 pwm-names = "enable"; << 208 << 209 vcc-supply = <®_motor_vdd>; << 210 status = "disabled"; << 211 }; << 212 }; << 213 << 214 &blsp_i2c1 { << 215 status = "okay"; << 216 << 217 speaker_codec: audio-codec@34 { << 218 compatible = "nxp,tfa9895"; << 219 reg = <0x34>; << 220 vddd-supply = <&pm8916_l5>; << 221 sound-name-prefix = "Speaker"; << 222 #sound-dai-cells = <0>; << 223 }; << 224 }; 156 }; 225 157 226 &blsp_i2c2 { 158 &blsp_i2c2 { 227 status = "okay"; 159 status = "okay"; 228 160 229 accelerometer: accelerometer@10 { 161 accelerometer: accelerometer@10 { 230 compatible = "bosch,bmc150_acc 162 compatible = "bosch,bmc150_accel"; 231 reg = <0x10>; 163 reg = <0x10>; 232 interrupt-parent = <&tlmm>; !! 164 interrupt-parent = <&msmgpio>; 233 interrupts = <115 IRQ_TYPE_EDG 165 interrupts = <115 IRQ_TYPE_EDGE_RISING>; 234 166 235 vdd-supply = <&pm8916_l17>; 167 vdd-supply = <&pm8916_l17>; 236 vddio-supply = <&pm8916_l5>; 168 vddio-supply = <&pm8916_l5>; 237 169 238 pinctrl-names = "default"; 170 pinctrl-names = "default"; 239 pinctrl-0 = <&accel_int_defaul 171 pinctrl-0 = <&accel_int_default>; 240 }; 172 }; 241 173 242 magnetometer@12 { 174 magnetometer@12 { 243 compatible = "bosch,bmc150_mag 175 compatible = "bosch,bmc150_magn"; 244 reg = <0x12>; 176 reg = <0x12>; 245 177 246 vdd-supply = <&pm8916_l17>; 178 vdd-supply = <&pm8916_l17>; 247 vddio-supply = <&pm8916_l5>; 179 vddio-supply = <&pm8916_l5>; 248 }; 180 }; 249 }; 181 }; 250 182 251 &blsp_i2c4 { 183 &blsp_i2c4 { 252 status = "okay"; 184 status = "okay"; 253 185 254 fuel-gauge@35 { !! 186 battery@35 { 255 compatible = "richtek,rt5033-b 187 compatible = "richtek,rt5033-battery"; 256 reg = <0x35>; 188 reg = <0x35>; 257 interrupt-parent = <&tlmm>; !! 189 interrupt-parent = <&msmgpio>; 258 interrupts = <121 IRQ_TYPE_EDG 190 interrupts = <121 IRQ_TYPE_EDGE_BOTH>; 259 191 260 pinctrl-names = "default"; 192 pinctrl-names = "default"; 261 pinctrl-0 = <&fg_alert_default 193 pinctrl-0 = <&fg_alert_default>; 262 << 263 power-supplies = <&charger>; << 264 }; << 265 }; << 266 << 267 &blsp_i2c6 { << 268 status = "okay"; << 269 << 270 pmic@34 { << 271 compatible = "richtek,rt5033"; << 272 reg = <0x34>; << 273 << 274 interrupts-extended = <&tlmm 6 << 275 << 276 pinctrl-0 = <&pmic_int_default << 277 pinctrl-names = "default"; << 278 << 279 regulators { << 280 rt5033_reg_safe_ldo: S << 281 regulator-min- << 282 regulator-max- << 283 regulator-alwa << 284 }; << 285 << 286 /* << 287 * Needed for camera, << 288 * Define empty nodes << 289 * regulators. << 290 */ << 291 LDO {}; << 292 BUCK {}; << 293 }; << 294 << 295 charger: charger { << 296 compatible = "richtek, << 297 monitored-battery = <& << 298 richtek,usb-connector << 299 }; << 300 }; << 301 }; << 302 << 303 &blsp_uart2 { << 304 status = "okay"; << 305 }; << 306 << 307 &gpu { << 308 status = "okay"; << 309 }; << 310 << 311 /* << 312 * For some reason the speaker amplifier is co << 313 * (MI2S_2_D1) instead of the first (MI2S_2_D0 << 314 * device tree, otherwise audio will seemingly << 315 * but the speaker stays silent. << 316 * << 317 * When routing audio via QDSP6 (the default) << 318 * the definitions from &q6afedai are used. Wh << 319 * be alternatively routed directly to the LPA << 320 * The definitions for &lpass are here for com << 321 * setup with minor changes to the DT (either << 322 */ << 323 &lpass { << 324 dai-link@3 { << 325 reg = <MI2S_QUATERNARY>; << 326 qcom,playback-sd-lines = <1>; << 327 }; 194 }; 328 }; 195 }; 329 196 330 &mdss { !! 197 &blsp1_uart2 { 331 status = "okay"; 198 status = "okay"; 332 }; 199 }; 333 200 334 &mdss_dsi0 { !! 201 &dsi0 { 335 pinctrl-names = "default", "sleep"; 202 pinctrl-names = "default", "sleep"; 336 pinctrl-0 = <&mdss_default>; 203 pinctrl-0 = <&mdss_default>; 337 pinctrl-1 = <&mdss_sleep>; 204 pinctrl-1 = <&mdss_sleep>; 338 }; 205 }; 339 206 340 &mpss_mem { !! 207 &mdss { 341 reg = <0x0 0x86800000 0x0 0x5400000>; !! 208 status = "okay"; 342 }; 209 }; 343 210 344 &pm8916_resin { 211 &pm8916_resin { 345 status = "okay"; 212 status = "okay"; 346 linux,code = <KEY_VOLUMEDOWN>; 213 linux,code = <KEY_VOLUMEDOWN>; 347 }; 214 }; 348 215 349 &pm8916_rpm_regulators { !! 216 &pronto { 350 pm8916_l17: l17 { << 351 regulator-min-microvolt = <285 << 352 regulator-max-microvolt = <285 << 353 }; << 354 }; << 355 << 356 &q6afedai { << 357 dai@22 { << 358 reg = <QUATERNARY_MI2S_RX>; << 359 qcom,sd-lines = <1>; << 360 }; << 361 }; << 362 << 363 &sdhc_1 { << 364 status = "okay"; 217 status = "okay"; 365 }; 218 }; 366 219 367 &sdhc_2 { !! 220 &sdhc_1 { 368 status = "okay"; 221 status = "okay"; 369 222 370 pinctrl-names = "default", "sleep"; 223 pinctrl-names = "default", "sleep"; 371 pinctrl-0 = <&sdc2_default &sdc2_cd_de !! 224 pinctrl-0 = <&sdc1_clk_on &sdc1_cmd_on &sdc1_data_on>; 372 pinctrl-1 = <&sdc2_sleep &sdc2_cd_defa !! 225 pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>; 373 << 374 cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>; << 375 }; 226 }; 376 227 377 &sound { !! 228 &sdhc_2 { 378 model = "samsung-a2015"; !! 229 status = "okay"; 379 audio-routing = << 380 "AMIC1", "MIC BIAS External1", << 381 "AMIC2", "MIC BIAS Internal2", << 382 "AMIC3", "MIC BIAS External1"; << 383 230 384 pinctrl-0 = <&cdc_pdm_default &sec_mi2 << 385 pinctrl-1 = <&cdc_pdm_sleep &sec_mi2s_ << 386 pinctrl-names = "default", "sleep"; 231 pinctrl-names = "default", "sleep"; >> 232 pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>; >> 233 pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>; 387 234 388 sound_link_backend2: backend2-dai-link !! 235 cd-gpios = <&msmgpio 38 GPIO_ACTIVE_LOW>; 389 link-name = "Quaternary MI2S"; << 390 << 391 cpu { << 392 sound-dai = <&q6afedai << 393 }; << 394 platform { << 395 sound-dai = <&q6routin << 396 }; << 397 codec { << 398 sound-dai = <&speaker_ << 399 }; << 400 }; << 401 }; 236 }; 402 237 403 &usb { 238 &usb { 404 status = "okay"; 239 status = "okay"; 405 extcon = <&muic>, <&muic>; 240 extcon = <&muic>, <&muic>; 406 }; 241 }; 407 242 408 &usb_hs_phy { 243 &usb_hs_phy { 409 extcon = <&muic>; 244 extcon = <&muic>; 410 }; 245 }; 411 246 412 &venus { !! 247 &smd_rpm_regulators { 413 status = "okay"; !! 248 vdd_l1_l2_l3-supply = <&pm8916_s3>; 414 }; !! 249 vdd_l4_l5_l6-supply = <&pm8916_s4>; >> 250 vdd_l7-supply = <&pm8916_s4>; 415 251 416 &venus_mem { !! 252 s3 { 417 status = "okay"; !! 253 regulator-min-microvolt = <1200000>; 418 }; !! 254 regulator-max-microvolt = <1300000>; >> 255 }; 419 256 420 &tlmm { !! 257 s4 { 421 accel_int_default: accel-int-default-s !! 258 regulator-min-microvolt = <1800000>; 422 pins = "gpio115"; !! 259 regulator-max-microvolt = <2100000>; 423 function = "gpio"; !! 260 }; 424 261 425 drive-strength = <2>; !! 262 l1 { 426 bias-disable; !! 263 regulator-min-microvolt = <1225000>; >> 264 regulator-max-microvolt = <1225000>; 427 }; 265 }; 428 266 429 fg_alert_default: fg-alert-default-sta !! 267 l2 { 430 pins = "gpio121"; !! 268 regulator-min-microvolt = <1200000>; 431 function = "gpio"; !! 269 regulator-max-microvolt = <1200000>; >> 270 }; 432 271 433 drive-strength = <2>; !! 272 l4 { 434 bias-disable; !! 273 regulator-min-microvolt = <2050000>; >> 274 regulator-max-microvolt = <2050000>; 435 }; 275 }; 436 276 437 gpio_keys_default: gpio-keys-default-s !! 277 l5 { 438 pins = "gpio107", "gpio109"; !! 278 regulator-min-microvolt = <1800000>; 439 function = "gpio"; !! 279 regulator-max-microvolt = <1800000>; >> 280 }; 440 281 441 drive-strength = <2>; !! 282 l6 { 442 bias-pull-up; !! 283 regulator-min-microvolt = <1800000>; >> 284 regulator-max-microvolt = <1800000>; 443 }; 285 }; 444 286 445 gpio_hall_sensor_default: gpio-hall-se !! 287 l7 { 446 pins = "gpio52"; !! 288 regulator-min-microvolt = <1800000>; 447 function = "gpio"; !! 289 regulator-max-microvolt = <1800000>; >> 290 }; 448 291 449 drive-strength = <2>; !! 292 l8 { 450 bias-disable; !! 293 regulator-min-microvolt = <2850000>; >> 294 regulator-max-microvolt = <2900000>; 451 }; 295 }; 452 296 453 mdss_default: mdss-default-state { !! 297 l9 { 454 pins = "gpio25"; !! 298 regulator-min-microvolt = <3300000>; 455 function = "gpio"; !! 299 regulator-max-microvolt = <3300000>; >> 300 }; 456 301 457 drive-strength = <8>; !! 302 l10 { 458 bias-disable; !! 303 regulator-min-microvolt = <2700000>; >> 304 regulator-max-microvolt = <2800000>; 459 }; 305 }; 460 mdss_sleep: mdss-sleep-state { << 461 pins = "gpio25"; << 462 function = "gpio"; << 463 306 464 drive-strength = <2>; !! 307 l11 { 465 bias-pull-down; !! 308 regulator-min-microvolt = <1800000>; >> 309 regulator-max-microvolt = <2950000>; >> 310 regulator-allow-set-load; >> 311 regulator-system-load = <200000>; >> 312 }; >> 313 >> 314 l12 { >> 315 regulator-min-microvolt = <1800000>; >> 316 regulator-max-microvolt = <2950000>; >> 317 }; >> 318 >> 319 l13 { >> 320 regulator-min-microvolt = <3075000>; >> 321 regulator-max-microvolt = <3075000>; >> 322 }; >> 323 >> 324 l14 { >> 325 regulator-min-microvolt = <1800000>; >> 326 regulator-max-microvolt = <3300000>; >> 327 }; >> 328 >> 329 l15 { >> 330 regulator-min-microvolt = <1800000>; >> 331 regulator-max-microvolt = <3300000>; >> 332 }; >> 333 >> 334 l16 { >> 335 regulator-min-microvolt = <1800000>; >> 336 regulator-max-microvolt = <3300000>; >> 337 }; >> 338 >> 339 l17 { >> 340 regulator-min-microvolt = <2850000>; >> 341 regulator-max-microvolt = <2850000>; 466 }; 342 }; 467 343 468 motor_en_default: motor-en-default-sta !! 344 l18 { 469 pins = "gpio76"; !! 345 regulator-min-microvolt = <2700000>; >> 346 regulator-max-microvolt = <2700000>; >> 347 }; >> 348 }; >> 349 >> 350 &msmgpio { >> 351 accel_int_default: accel-int-default { >> 352 pins = "gpio115"; 470 function = "gpio"; 353 function = "gpio"; 471 354 472 drive-strength = <2>; 355 drive-strength = <2>; 473 bias-disable; 356 bias-disable; 474 }; 357 }; 475 358 476 motor_pwm_default: motor-pwm-default-s !! 359 fg_alert_default: fg-alert-default { 477 pins = "gpio50"; !! 360 pins = "gpio121"; 478 function = "gcc_gp2_clk_a"; !! 361 function = "gpio"; >> 362 >> 363 drive-strength = <2>; >> 364 bias-disable; 479 }; 365 }; 480 366 481 muic_i2c_default: muic-i2c-default-sta !! 367 gpio_keys_default: gpio-keys-default { 482 pins = "gpio105", "gpio106"; !! 368 pins = "gpio107", "gpio109"; 483 function = "gpio"; 369 function = "gpio"; 484 370 485 drive-strength = <2>; 371 drive-strength = <2>; 486 bias-disable; !! 372 bias-pull-up; 487 }; 373 }; 488 374 489 muic_int_default: muic-int-default-sta !! 375 gpio_hall_sensor_default: gpio-hall-sensor-default { 490 pins = "gpio12"; !! 376 pins = "gpio52"; 491 function = "gpio"; 377 function = "gpio"; 492 378 493 drive-strength = <2>; 379 drive-strength = <2>; 494 bias-disable; 380 bias-disable; 495 }; 381 }; 496 382 497 nfc_default: nfc-default-state { !! 383 mdss { 498 nfc-pins { !! 384 mdss_default: mdss-default { 499 pins = "gpio20", "gpio !! 385 pins = "gpio25"; 500 function = "gpio"; 386 function = "gpio"; 501 387 502 drive-strength = <2>; !! 388 drive-strength = <8>; 503 bias-disable; 389 bias-disable; 504 }; 390 }; 505 !! 391 mdss_sleep: mdss-sleep { 506 irq-pins { !! 392 pins = "gpio25"; 507 pins = "gpio21"; << 508 function = "gpio"; 393 function = "gpio"; 509 394 510 drive-strength = <2>; 395 drive-strength = <2>; 511 bias-pull-down; 396 bias-pull-down; 512 }; 397 }; 513 }; 398 }; 514 399 515 nfc_i2c_default: nfc-i2c-default-state !! 400 muic_i2c_default: muic-i2c-default { 516 pins = "gpio0", "gpio1"; !! 401 pins = "gpio105", "gpio106"; 517 function = "gpio"; 402 function = "gpio"; 518 403 519 drive-strength = <2>; 404 drive-strength = <2>; 520 bias-disable; 405 bias-disable; 521 }; 406 }; 522 407 523 pmic_int_default: pmic-int-default-sta !! 408 muic_int_default: muic-int-default { 524 pins = "gpio62"; !! 409 pins = "gpio12"; 525 function = "gpio"; 410 function = "gpio"; >> 411 526 drive-strength = <2>; 412 drive-strength = <2>; 527 bias-disable; 413 bias-disable; 528 }; 414 }; 529 415 530 sdc2_cd_default: sdc2-cd-default-state !! 416 nfc_default: nfc-default { 531 pins = "gpio38"; !! 417 pins = "gpio20", "gpio49"; 532 function = "gpio"; 418 function = "gpio"; >> 419 533 drive-strength = <2>; 420 drive-strength = <2>; 534 bias-disable; 421 bias-disable; >> 422 >> 423 irq { >> 424 pins = "gpio21"; >> 425 function = "gpio"; >> 426 >> 427 drive-strength = <2>; >> 428 bias-pull-down; >> 429 }; 535 }; 430 }; 536 431 537 tkey_default: tkey-default-state { !! 432 nfc_i2c_default: nfc-i2c-default { 538 pins = "gpio98"; !! 433 pins = "gpio0", "gpio1"; 539 function = "gpio"; 434 function = "gpio"; 540 435 541 drive-strength = <2>; 436 drive-strength = <2>; 542 bias-disable; 437 bias-disable; 543 }; 438 }; 544 439 545 tkey_i2c_default: tkey-i2c-default-sta !! 440 tkey_default: tkey-default { 546 pins = "gpio16", "gpio17"; !! 441 pins = "gpio98"; 547 function = "gpio"; 442 function = "gpio"; 548 443 549 drive-strength = <2>; 444 drive-strength = <2>; 550 bias-disable; 445 bias-disable; 551 }; 446 }; 552 447 553 tsp_en_default: tsp-en-default-state { !! 448 tkey_i2c_default: tkey-i2c-default { 554 pins = "gpio73"; !! 449 pins = "gpio16", "gpio17"; 555 function = "gpio"; 450 function = "gpio"; 556 451 557 drive-strength = <2>; 452 drive-strength = <2>; 558 bias-disable; 453 bias-disable; 559 }; 454 }; 560 455 561 ts_int_default: ts-int-default-state { !! 456 tsp_en_default: tsp-en-default { 562 pins = "gpio13"; !! 457 pins = "gpio73"; 563 function = "gpio"; 458 function = "gpio"; 564 459 565 drive-strength = <2>; 460 drive-strength = <2>; 566 bias-disable; 461 bias-disable; 567 }; 462 }; 568 }; 463 }; 569 464 570 &pm8916_gpios { 465 &pm8916_gpios { 571 nfc_clk_req: nfc-clk-req-state { !! 466 nfc_clk_req: nfc-clk-req { 572 pins = "gpio2"; 467 pins = "gpio2"; 573 function = "func1"; 468 function = "func1"; 574 469 575 input-enable; 470 input-enable; 576 bias-disable; 471 bias-disable; 577 power-source = <PM8916_GPIO_L2 472 power-source = <PM8916_GPIO_L2>; 578 }; 473 }; 579 }; 474 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.