ARM: dtsi: r8a7745: iwg22m: Add eMMC support
cover ARM: dtsi: r8a7745: iwg22m: Add eMMC support
This series adds eMMC support to r8a7745 SoC and iW-RainboW-G22M-SM SoM.
Testing has been made on top of Renesas's devel branch.
The patches contained in this series depend on the following patches:
[1/2] ARM: dts: iwg22m: Add iWave RZG1E SODIMM SOM - https://patchwork.kernel.org/patch/9901619/
[2/2] ARM: dts: iwg22d-sodimm: Add support for iWave G22D-SODIMM board - https://patchwork.kernel.org/patch/9901623/
dt-bindings: mmc: sh_mmcif: Document r8a7745 DT bindings - https://patchwork.kernel.org/patch/9902199/
Regards,
Fabrizio Castro (2):
ARM: dts: r8a7745: Add MMC interface support
ARM: dtsi: iwg22m: Add eMMC support
arch/arm/boot/dts/r8a7745-iwg22m.dtsi | 26 ++++++++++++++++++++++++++ arch/arm/boot/dts/r8a7745.dtsi | 16 ++++++++++++++++ 2 files changed, 42 insertions(+)
Signature · 1 line
2.7.4
PATCH 1/2 ARM: dts: r8a7745: Add MMC interface support
Add MMC interface support for r8a7745 SoC.
--- arch/arm/boot/dts/r8a7745.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
arch/arm/boot/dts/r8a7745.dtsi +16 -0
@@ -508,6 +508,22 @@ #size-cells = <0>; status = "disabled"; }; + + mmcif0: mmc at ee200000 { + compatible = "renesas,mmcif-r8a7745", + "renesas,sh-mmcif"; + reg = <0 0xee200000 0 0x80>; + interrupts = <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cpg CPG_MOD 315>; + dmas = <&dmac0 0xd1>, <&dmac0 0xd2>, + <&dmac1 0xd1>, <&dmac1 0xd2>; + dma-names = "tx", "rx", "tx", "rx"; + power-domains = <&sysc R8A7745_PD_ALWAYS_ON>; + resets = <&cpg 315>; + reg-io-width = <4>; + max-frequency = <97500000>; + status = "disabled"; + }; }; /* External root clock */
Signature · 1 line
2.7.4
PATCH 2/2 ARM: dtsi: iwg22m: Add eMMC support
In reply to Fabrizio CastroAdd eMMC support for iW-RainboW-G22M-SM.
--- arch/arm/boot/dts/r8a7745-iwg22m.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+)
arch/arm/boot/dts/r8a7745-iwg22m.dtsi +26 -0
@@ -17,8 +17,34 @@ device_type = "memory"; reg = <0 0x40000000 0 0x20000000>; }; + + reg_3p3v: 3p3v { + compatible = "regulator-fixed"; + regulator-name = "3P3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + }; }; &extal_clk { clock-frequency = <20000000>; }; + +&pfc { + mmcif0_pins: mmc { + groups = "mmc_data8", "mmc_ctrl"; + function = "mmc"; + }; +}; + +&mmcif0 { + pinctrl-0 = <&mmcif0_pins>; + pinctrl-names = "default"; + + vmmc-supply = <®_3p3v>; + bus-width = <8>; + non-removable; + status = "okay"; +};
Signature · 1 line
2.7.4
Simon Horman
Appliedcover ARM: dtsi: r8a7745: iwg22m: Add eMMC support
In reply to Fabrizio CastroQuoted 8 lines · Fabrizio Castro
This series adds eMMC support to r8a7745 SoC and iW-RainboW-G22M-SM SoM.
Testing has been made on top of Renesas's devel branch.
The patches contained in this series depend on the following patches:
[1/2] ARM: dts: iwg22m: Add iWave RZG1E SODIMM SOM - https://patchwork.kernel.org/patch/9901619/
[2/2] ARM: dts: iwg22d-sodimm: Add support for iWave G22D-SODIMM board - https://patchwork.kernel.org/patch/9901623/
dt-bindings: mmc:sh_mmcif: Document r8a7745 DT bindings - https://patchwork.kernel.org/patch/9902199/
Thanks, applied for v4.15.