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 button-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 button-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 event-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 /* << 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 { 64 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_a"; 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 }; 194 }; 301 }; 195 }; 302 196 303 &blsp_uart2 { !! 197 &blsp1_uart2 { 304 status = "okay"; 198 status = "okay"; 305 }; 199 }; 306 200 307 &gpu { !! 201 &dsi0 { 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 }; << 328 }; << 329 << 330 &mdss { << 331 status = "okay"; << 332 }; << 333 << 334 &mdss_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>; >> 254 regulator-max-microvolt = <1300000>; >> 255 }; >> 256 >> 257 s4 { >> 258 regulator-min-microvolt = <1800000>; >> 259 regulator-max-microvolt = <2100000>; >> 260 }; >> 261 >> 262 l1 { >> 263 regulator-min-microvolt = <1225000>; >> 264 regulator-max-microvolt = <1225000>; >> 265 }; >> 266 >> 267 l2 { >> 268 regulator-min-microvolt = <1200000>; >> 269 regulator-max-microvolt = <1200000>; >> 270 }; >> 271 >> 272 l4 { >> 273 regulator-min-microvolt = <2050000>; >> 274 regulator-max-microvolt = <2050000>; >> 275 }; >> 276 >> 277 l5 { >> 278 regulator-min-microvolt = <1800000>; >> 279 regulator-max-microvolt = <1800000>; >> 280 }; >> 281 >> 282 l6 { >> 283 regulator-min-microvolt = <1800000>; >> 284 regulator-max-microvolt = <1800000>; >> 285 }; >> 286 >> 287 l7 { >> 288 regulator-min-microvolt = <1800000>; >> 289 regulator-max-microvolt = <1800000>; >> 290 }; >> 291 >> 292 l8 { >> 293 regulator-min-microvolt = <2850000>; >> 294 regulator-max-microvolt = <2900000>; >> 295 }; >> 296 >> 297 l9 { >> 298 regulator-min-microvolt = <3300000>; >> 299 regulator-max-microvolt = <3300000>; >> 300 }; >> 301 >> 302 l10 { >> 303 regulator-min-microvolt = <2700000>; >> 304 regulator-max-microvolt = <2800000>; >> 305 }; >> 306 >> 307 l11 { >> 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>; >> 342 }; >> 343 >> 344 l18 { >> 345 regulator-min-microvolt = <2700000>; >> 346 regulator-max-microvolt = <2700000>; >> 347 }; 418 }; 348 }; 419 349 420 &tlmm { !! 350 &msmgpio { 421 accel_int_default: accel-int-default-s !! 351 accel_int_default: accel-int-default { 422 pins = "gpio115"; 352 pins = "gpio115"; 423 function = "gpio"; 353 function = "gpio"; 424 354 425 drive-strength = <2>; 355 drive-strength = <2>; 426 bias-disable; 356 bias-disable; 427 }; 357 }; 428 358 429 fg_alert_default: fg-alert-default-sta !! 359 fg_alert_default: fg-alert-default { 430 pins = "gpio121"; 360 pins = "gpio121"; 431 function = "gpio"; 361 function = "gpio"; 432 362 433 drive-strength = <2>; 363 drive-strength = <2>; 434 bias-disable; 364 bias-disable; 435 }; 365 }; 436 366 437 gpio_keys_default: gpio-keys-default-s !! 367 gpio_keys_default: gpio-keys-default { 438 pins = "gpio107", "gpio109"; 368 pins = "gpio107", "gpio109"; 439 function = "gpio"; 369 function = "gpio"; 440 370 441 drive-strength = <2>; 371 drive-strength = <2>; 442 bias-pull-up; 372 bias-pull-up; 443 }; 373 }; 444 374 445 gpio_hall_sensor_default: gpio-hall-se !! 375 gpio_hall_sensor_default: gpio-hall-sensor-default { 446 pins = "gpio52"; 376 pins = "gpio52"; 447 function = "gpio"; 377 function = "gpio"; 448 378 449 drive-strength = <2>; 379 drive-strength = <2>; 450 bias-disable; 380 bias-disable; 451 }; 381 }; 452 382 453 mdss_default: mdss-default-state { !! 383 mdss { 454 pins = "gpio25"; !! 384 mdss_default: mdss-default { 455 function = "gpio"; !! 385 pins = "gpio25"; >> 386 function = "gpio"; 456 387 457 drive-strength = <8>; !! 388 drive-strength = <8>; 458 bias-disable; !! 389 bias-disable; 459 }; !! 390 }; 460 mdss_sleep: mdss-sleep-state { !! 391 mdss_sleep: mdss-sleep { 461 pins = "gpio25"; !! 392 pins = "gpio25"; 462 function = "gpio"; !! 393 function = "gpio"; 463 394 464 drive-strength = <2>; !! 395 drive-strength = <2>; 465 bias-pull-down; !! 396 bias-pull-down; >> 397 }; 466 }; 398 }; 467 399 468 motor_en_default: motor-en-default-sta !! 400 muic_i2c_default: muic-i2c-default { 469 pins = "gpio76"; !! 401 pins = "gpio105", "gpio106"; 470 function = "gpio"; 402 function = "gpio"; 471 403 472 drive-strength = <2>; 404 drive-strength = <2>; 473 bias-disable; 405 bias-disable; 474 }; 406 }; 475 407 476 motor_pwm_default: motor-pwm-default-s !! 408 muic_int_default: muic-int-default { 477 pins = "gpio50"; !! 409 pins = "gpio12"; 478 function = "gcc_gp2_clk_a"; << 479 }; << 480 << 481 muic_i2c_default: muic-i2c-default-sta << 482 pins = "gpio105", "gpio106"; << 483 function = "gpio"; 410 function = "gpio"; 484 411 485 drive-strength = <2>; 412 drive-strength = <2>; 486 bias-disable; 413 bias-disable; 487 }; 414 }; 488 415 489 muic_int_default: muic-int-default-sta !! 416 nfc_default: nfc-default { 490 pins = "gpio12"; !! 417 pins = "gpio20", "gpio49"; 491 function = "gpio"; 418 function = "gpio"; 492 419 493 drive-strength = <2>; 420 drive-strength = <2>; 494 bias-disable; 421 bias-disable; 495 }; << 496 << 497 nfc_default: nfc-default-state { << 498 nfc-pins { << 499 pins = "gpio20", "gpio << 500 function = "gpio"; << 501 422 502 drive-strength = <2>; !! 423 irq { 503 bias-disable; << 504 }; << 505 << 506 irq-pins { << 507 pins = "gpio21"; 424 pins = "gpio21"; 508 function = "gpio"; 425 function = "gpio"; 509 426 510 drive-strength = <2>; 427 drive-strength = <2>; 511 bias-pull-down; 428 bias-pull-down; 512 }; 429 }; 513 }; 430 }; 514 431 515 nfc_i2c_default: nfc-i2c-default-state !! 432 nfc_i2c_default: nfc-i2c-default { 516 pins = "gpio0", "gpio1"; 433 pins = "gpio0", "gpio1"; 517 function = "gpio"; 434 function = "gpio"; 518 435 519 drive-strength = <2>; 436 drive-strength = <2>; 520 bias-disable; 437 bias-disable; 521 }; 438 }; 522 439 523 pmic_int_default: pmic-int-default-sta !! 440 tkey_default: tkey-default { 524 pins = "gpio62"; << 525 function = "gpio"; << 526 drive-strength = <2>; << 527 bias-disable; << 528 }; << 529 << 530 sdc2_cd_default: sdc2-cd-default-state << 531 pins = "gpio38"; << 532 function = "gpio"; << 533 drive-strength = <2>; << 534 bias-disable; << 535 }; << 536 << 537 tkey_default: tkey-default-state { << 538 pins = "gpio98"; 441 pins = "gpio98"; 539 function = "gpio"; 442 function = "gpio"; 540 443 541 drive-strength = <2>; 444 drive-strength = <2>; 542 bias-disable; 445 bias-disable; 543 }; 446 }; 544 447 545 tkey_i2c_default: tkey-i2c-default-sta !! 448 tkey_i2c_default: tkey-i2c-default { 546 pins = "gpio16", "gpio17"; 449 pins = "gpio16", "gpio17"; 547 function = "gpio"; 450 function = "gpio"; 548 451 549 drive-strength = <2>; 452 drive-strength = <2>; 550 bias-disable; 453 bias-disable; 551 }; 454 }; 552 455 553 tsp_en_default: tsp-en-default-state { !! 456 tsp_en_default: tsp-en-default { 554 pins = "gpio73"; 457 pins = "gpio73"; 555 function = "gpio"; 458 function = "gpio"; 556 459 557 drive-strength = <2>; 460 drive-strength = <2>; 558 bias-disable; 461 bias-disable; 559 }; 462 }; 560 463 561 ts_int_default: ts-int-default-state { !! 464 ts_int_default: ts-int-default { 562 pins = "gpio13"; 465 pins = "gpio13"; 563 function = "gpio"; 466 function = "gpio"; 564 467 565 drive-strength = <2>; 468 drive-strength = <2>; 566 bias-disable; 469 bias-disable; 567 }; 470 }; 568 }; 471 }; 569 472 570 &pm8916_gpios { 473 &pm8916_gpios { 571 nfc_clk_req: nfc-clk-req-state { 474 nfc_clk_req: nfc-clk-req-state { 572 pins = "gpio2"; 475 pins = "gpio2"; 573 function = "func1"; 476 function = "func1"; 574 477 575 input-enable; 478 input-enable; 576 bias-disable; 479 bias-disable; 577 power-source = <PM8916_GPIO_L2 480 power-source = <PM8916_GPIO_L2>; 578 }; 481 }; 579 }; 482 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.