.. | .. |
---|
38 | 38 | execute tuning when needed. If not specified, the host will do tuning |
---|
39 | 39 | for 360 times, namely tuning for each degree. |
---|
40 | 40 | |
---|
| 41 | +* pinctrl-names: should be "default" or "normal" combined with "idle". For |
---|
| 42 | + SDIO or eMMC devices, recommend to use "default". For SD/MMC cards, recommend |
---|
| 43 | + to use "normal" combined with "idle" to prevent power leak if vqmmc can't be |
---|
| 44 | + powered off. "normal" state is the same as "default" state, but "idle" state |
---|
| 45 | + should define the clk/cmd/data line to be pulled down or pulled none. |
---|
| 46 | + |
---|
41 | 47 | Example: |
---|
42 | 48 | |
---|
43 | 49 | rkdwmmc0@12200000 { |
---|
.. | .. |
---|
47 | 53 | #address-cells = <1>; |
---|
48 | 54 | #size-cells = <0>; |
---|
49 | 55 | }; |
---|
| 56 | + |
---|
| 57 | + /* "default" pinctrl */ |
---|
| 58 | + &rkdwmmc0{ |
---|
| 59 | + ... |
---|
| 60 | + pinctrl-names = "default" |
---|
| 61 | + pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_det &sdmmc0_bus4>; |
---|
| 62 | + ... |
---|
| 63 | + }; |
---|
| 64 | + |
---|
| 65 | + /* "normal" combined with "idle" pinctrl */ |
---|
| 66 | + sdmmc_idle_gpios: sdmmc-idle-gpios { |
---|
| 67 | + rockchip,pins = |
---|
| 68 | + <3 RK_PA2 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
| 69 | + <3 RK_PA3 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
| 70 | + <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
| 71 | + <3 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
| 72 | + <3 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>, |
---|
| 73 | + <3 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>; |
---|
| 74 | + }; |
---|
| 75 | + |
---|
| 76 | + &rkdwmmc0{ |
---|
| 77 | + ... |
---|
| 78 | + pinctrl-names = "normal", "idle"; |
---|
| 79 | + pinctrl-0 = <&sdmmc0_clk &sdmmc0_cmd &sdmmc0_det &sdmmc0_bus4>; |
---|
| 80 | + pinctrl-1 = <&sdmmc_idle_gpios &sdmmc0_det>; |
---|
| 81 | + ... |
---|
| 82 | + } |
---|