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