|
154 | 154 | }; |
155 | 155 | }; |
156 | 156 |
|
| 157 | +&gpio3 { |
| 158 | + /* |
| 159 | + * The Qseven BIOS_DISABLE signal on the RK3399-Q7 keeps the on-module |
| 160 | + * eMMC and SPI flash powered-down initially (in fact it keeps the |
| 161 | + * reset signal asserted). BIOS_DISABLE_OVERRIDE pin allows to override |
| 162 | + * that signal so that eMMC and SPI can be used regardless of the state |
| 163 | + * of the signal. |
| 164 | + */ |
| 165 | + bios-disable-override-hog { |
| 166 | + gpios = <RK_PD5 GPIO_ACTIVE_LOW>; |
| 167 | + gpio-hog; |
| 168 | + line-name = "bios_disable_override"; |
| 169 | + output-high; |
| 170 | + }; |
| 171 | +}; |
| 172 | + |
157 | 173 | &gmac { |
158 | 174 | assigned-clocks = <&cru SCLK_RMII_SRC>; |
159 | 175 | assigned-clock-parents = <&clkin_gmac>; |
|
409 | 425 |
|
410 | 426 | &i2s0 { |
411 | 427 | pinctrl-0 = <&i2s0_2ch_bus>; |
| 428 | + pinctrl-1 = <&i2s0_2ch_bus_bclk_off>; |
412 | 429 | rockchip,playback-channels = <2>; |
413 | 430 | rockchip,capture-channels = <2>; |
414 | 431 | status = "okay"; |
|
417 | 434 | /* |
418 | 435 | * As Q7 does not specify neither a global nor a RX clock for I2S these |
419 | 436 | * signals are not used. Furthermore I2S0_LRCK_RX is used as GPIO. |
420 | | - * Therefore we have to redefine the i2s0_2ch_bus definition to prevent |
421 | | - * conflicts. |
| 437 | + * Therefore we have to redefine the i2s0_2ch_bus and i2s0_2ch_bus_bclk_off |
| 438 | + * definitions to prevent conflicts. |
422 | 439 | */ |
423 | 440 | &i2s0_2ch_bus { |
424 | 441 | rockchip,pins = |
|
428 | 445 | <3 RK_PD7 1 &pcfg_pull_none>; |
429 | 446 | }; |
430 | 447 |
|
| 448 | +&i2s0_2ch_bus_bclk_off { |
| 449 | + rockchip,pins = |
| 450 | + <3 RK_PD0 RK_FUNC_GPIO &pcfg_pull_none>, |
| 451 | + <3 RK_PD2 1 &pcfg_pull_none>, |
| 452 | + <3 RK_PD3 1 &pcfg_pull_none>, |
| 453 | + <3 RK_PD7 1 &pcfg_pull_none>; |
| 454 | +}; |
| 455 | + |
431 | 456 | &io_domains { |
432 | 457 | status = "okay"; |
433 | 458 | bt656-supply = <&vcc_1v8>; |
|
449 | 474 |
|
450 | 475 | &pinctrl { |
451 | 476 | pinctrl-names = "default"; |
452 | | - pinctrl-0 = <&q7_thermal_pin>; |
| 477 | + pinctrl-0 = <&q7_thermal_pin &bios_disable_override_hog_pin>; |
453 | 478 |
|
454 | 479 | gpios { |
| 480 | + bios_disable_override_hog_pin: bios-disable-override-hog-pin { |
| 481 | + rockchip,pins = |
| 482 | + <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_down>; |
| 483 | + }; |
| 484 | + |
455 | 485 | q7_thermal_pin: q7-thermal-pin { |
456 | 486 | rockchip,pins = |
457 | 487 | <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; |
|
0 commit comments