arm64: dts: renesas: r8a779h0/gray-hawk-single: Add eMMC support
Subsystems (2)
Geert Uytterhoeven
maintainercover arm64: dts: renesas: r8a779h0/gray-hawk-single: Add eMMC support
Hi all,
This patch series adds SD/MMC support for the Renesas R-Car V4M (R8A779H0) Soc and eMMC support for the Gray Hawk Single development board.
This has been tested on Gray Hawk Single (eMMC read speed is ca. 240 MiB/s).
I intend to queue this in renesas-devel for v6.9.
As usual, I have updated my topic branch at [1].
Thanks for your comments!
Cong Dang (2):
arm64: dts: renesas: r8a779h0: Add SD/MMC node
arm64: dts: renesas: gray-hawk-single: Add eMMC support
.../dts/renesas/r8a779h0-gray-hawk-single.dts | 41 +++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a779h0.dtsi | 14 +++++++ 2 files changed, 55 insertions(+)
Signature · 12 lines
2.34.1
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus TorvaldsGeert Uytterhoeven
maintainerPATCH 1/2 arm64: dts: renesas: r8a779h0: Add SD/MMC node
From: Cong Dang <[email protected]>
Add a device node for SD/MMC on Renesas R-Car V4M (R8A779H0) SoC.
---
Changes compared to the BSP:
- Add missing SD0H clock,
- Add missing clock-names property.
--- arch/arm64/boot/dts/renesas/r8a779h0.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
arch/arm64/boot/dts/renesas/r8a779h0.dtsi +14 -0
@@ -532,6 +532,20 @@ avb2: ethernet@e6820000 { status = "disabled"; }; + mmc0: mmc@ee140000 { + compatible = "renesas,sdhi-r8a779h0", + "renesas,rcar-gen4-sdhi"; + reg = <0 0xee140000 0 0x2000>; + interrupts = <GIC_SPI 440 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 706>, + <&cpg CPG_CORE R8A779H0_CLK_SD0H>; + clock-names = "core", "clkh"; + power-domains = <&sysc R8A779H0_PD_ALWAYS_ON>; + resets = <&cpg 706>; + max-frequency = <200000000>; + status = "disabled"; + }; + gic: interrupt-controller@f1000000 { compatible = "arm,gic-v3"; #interrupt-cells = <3>;
Signature · 1 line
2.34.1
Geert Uytterhoeven
maintainerPATCH 2/2 arm64: dts: renesas: gray-hawk-single: Add eMMC support
In reply to Geert UytterhoevenFrom: Cong Dang <[email protected]>
Describe the eMMC on the Gray Hawk Single board.
---
Changes compared to the BSP:
- Apply to r8a779h0-gray-hawk-single.dts.
--- .../dts/renesas/r8a779h0-gray-hawk-single.dts | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+)
arch/arm64/boot/dts/renesas/r8a779h0-gray-hawk-single.dts +41 -0
@@ -33,6 +33,24 @@ memory@480000000 { device_type = "memory"; reg = <0x4 0x80000000 0x1 0x80000000>; }; + + reg_1p8v: regulator-1p8v { + compatible = "regulator-fixed"; + regulator-name = "fixed-1.8V"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + reg_3p3v: regulator-3p3v { + compatible = "regulator-fixed"; + regulator-name = "fixed-3.3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; }; &avb0 {
@@ -105,6 +123,23 @@ eeprom@53 { }; }; +&mmc0 { + pinctrl-0 = <&mmc_pins>; + pinctrl-1 = <&mmc_pins>; + pinctrl-names = "default", "state_uhs"; + + vmmc-supply = <®_3p3v>; + vqmmc-supply = <®_1p8v>; + mmc-hs200-1_8v; + mmc-hs400-1_8v; + bus-width = <8>; + no-sd; + no-sdio; + non-removable; + full-pwr-cycle-in-suspend; + status = "okay"; +}; + &pfc { pinctrl-0 = <&scif_clk_pins>; pinctrl-names = "default";
@@ -137,6 +172,12 @@ i2c0_pins: i2c0 { function = "i2c0"; }; + mmc_pins: mmc { + groups = "mmc_data8", "mmc_ctrl", "mmc_ds"; + function = "mmc"; + power-source = <1800>; + }; + scif_clk_pins: scif-clk { groups = "scif_clk"; function = "scif_clk";
Signature · 1 line
2.34.1