Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: rockchip: add the sdmmc for kylin board

Although We can add the sdmmc node, shouldn't enable it.
Since the sdmmc is reusing the same pin with uart2.
Unfortunately, the uart2 is used by the debug port, so that will cause
the debug information can't display on console if enabling the sdmmc.

As we have supported the sdmmc (sd card) on hardware for kylin board.
So, maybe we can have the sdmmc node in kylin dts, not to enable it.

Anyway, you only need add the okay status if someone want to enable the
sdmmc.

e.g.
if you use the adb to debug with android os.
You can add the
status = "okay" to enable the sdmmc for sd card working.
The default status is disabling it.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>

authored by

Caesar Wang and committed by
Heiko Stuebner
6cff705b 4a9d0b03

+17
+17
arch/arm/boot/dts/rk3036-kylin.dts
··· 331 331 sd-uhs-sdr104; 332 332 }; 333 333 334 + &sdmmc { 335 + bus-width = <4>; 336 + cap-mmc-highspeed; 337 + cap-sd-highspeed; 338 + card-detect-delay = <200>; 339 + disable-wp; 340 + num-slots = <1>; 341 + pinctrl-names = "default"; 342 + pinctrl-0 = <&sdmmc_clk>, <&sdmmc_cmd>, <&sdmmc_cd>, <&sdmmc_bus4>; 343 + }; 344 + 334 345 &uart0 { 335 346 status = "okay"; 336 347 }; ··· 368 357 sdio { 369 358 bt_wake_h: bt-wake-h { 370 359 rockchip,pins = <2 8 RK_FUNC_GPIO &pcfg_pull_default>; 360 + }; 361 + }; 362 + 363 + sdmmc { 364 + sdmmc_pwr: sdmmc-pwr { 365 + rockchip,pins = <2 28 RK_FUNC_GPIO &pcfg_pull_none>; 371 366 }; 372 367 }; 373 368