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

arm64: dts: renesas: spider-cpu: Enable eMMC0

This enables the on-board eMMC on the Spider board. Switch SW3 has to be
in the default (neutral) position. Other settings will not be supported
upstream!

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Link: https://lore.kernel.org/r/20220711134656.277730-4-wsa+renesas@sang-engineering.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

authored by

Wolfram Sang and committed by
Geert Uytterhoeven
1ada3e53 6a24768c

+45
+45
arch/arm64/boot/dts/renesas/r8a779f0-spider-cpu.dtsi
··· 21 21 device_type = "memory"; 22 22 reg = <0x4 0x80000000 0x0 0x80000000>; 23 23 }; 24 + 25 + reg_1p8v: regulator-1p8v { 26 + compatible = "regulator-fixed"; 27 + regulator-name = "fixed-1.8V"; 28 + regulator-min-microvolt = <1800000>; 29 + regulator-max-microvolt = <1800000>; 30 + regulator-boot-on; 31 + regulator-always-on; 32 + }; 33 + 34 + reg_3p3v: regulator-3p3v { 35 + compatible = "regulator-fixed"; 36 + regulator-name = "fixed-3.3V"; 37 + regulator-min-microvolt = <3300000>; 38 + regulator-max-microvolt = <3300000>; 39 + regulator-boot-on; 40 + regulator-always-on; 41 + }; 24 42 }; 25 43 26 44 &extal_clk { ··· 64 46 }; 65 47 }; 66 48 49 + /* 50 + * This board also has a microSD slot which we will not support upstream 51 + * because we cannot directly switch voltages in software. 52 + */ 53 + &mmc0 { 54 + pinctrl-0 = <&mmc_pins>; 55 + pinctrl-1 = <&mmc_pins>; 56 + pinctrl-names = "default", "state_uhs"; 57 + 58 + vmmc-supply = <&reg_3p3v>; 59 + vqmmc-supply = <&reg_1p8v>; 60 + mmc-hs200-1_8v; 61 + mmc-hs400-1_8v; 62 + bus-width = <8>; 63 + no-sd; 64 + no-sdio; 65 + non-removable; 66 + full-pwr-cycle-in-suspend; 67 + status = "okay"; 68 + }; 69 + 67 70 &pfc { 68 71 pinctrl-0 = <&scif_clk_pins>; 69 72 pinctrl-names = "default"; ··· 92 53 i2c4_pins: i2c4 { 93 54 groups = "i2c4"; 94 55 function = "i2c4"; 56 + }; 57 + 58 + mmc_pins: mmc { 59 + groups = "mmc_data8", "mmc_ctrl", "mmc_ds"; 60 + function = "mmc"; 61 + power-source = <1800>; 95 62 }; 96 63 97 64 scif0_pins: scif0 {