boards: arm64: rcar: add board-specific configuration for MMC node

Add pin control group for UHS modes for H3ULCB, Salvator XS M3
boards to appropriate dts files. Both 'uhs' and 'default' pins
states have the same properties for eMMC, e.g. 1.8V.

Signed-off-by: Mykola Kvach <mykola_kvach@epam.com>
This commit is contained in:
Mykola Kvach 2023-07-12 09:57:55 +03:00 committed by Anas Nashif
parent b8f7fc3cc3
commit 618b667f81
6 changed files with 138 additions and 0 deletions

View file

@ -58,6 +58,8 @@ hardware features:
+-----------+------------------------------+--------------------------------+
| UART | uart | serial port-polling |
+-----------+------------------------------+--------------------------------+
| MMC | renesas_rcar_mmc | DMA and SCC |
+-----------+------------------------------+--------------------------------+
Other hardware features have not been enabled yet for this board.

View file

@ -14,4 +14,48 @@
scif2_data_a_rx_default: scif2_data_a_rx_default {
pin = <PIN_RX2_A FUNC_RX2_A>;
};
emmc2_clk: emmc2_clk {
pin = <PIN_SD2_CLK FUNC_SD2_CLK>;
};
emmc2_cmd: emmc2_cmd {
pin = <PIN_SD2_CMD FUNC_SD2_CMD>;
};
emmc2_data0: emmc2_data0 {
pin = <PIN_SD2_DATA0 FUNC_SD2_DAT0>;
};
emmc2_data1: emmc2_data1 {
pin = <PIN_SD2_DATA1 FUNC_SD2_DAT1>;
};
emmc2_data2: emmc2_data2 {
pin = <PIN_SD2_DATA2 FUNC_SD2_DAT2>;
};
emmc2_data3: emmc2_data3 {
pin = <PIN_SD2_DATA3 FUNC_SD2_DAT3>;
};
emmc2_data4: emmc2_data4 {
pin = <PIN_SD1_DATA0 FUNC_SD2_DAT4>;
};
emmc2_data5: emmc2_data5 {
pin = <PIN_SD1_DATA1 FUNC_SD2_DAT5>;
};
emmc2_data6: emmc2_data6 {
pin = <PIN_SD1_DATA2 FUNC_SD2_DAT6>;
};
emmc2_data7: emmc2_data7 {
pin = <PIN_SD1_DATA3 FUNC_SD2_DAT7>;
};
emmc2_ds: emmc2_ds {
pin = <PIN_SD2_DS FUNC_SD2_DS>;
};
};

View file

@ -23,6 +23,11 @@
device_type = "mmio-sram";
reg = <0x0 0x48000000 0x0 DT_SIZE_M(512)>;
};
/* These aliases are provided for compatibility with samples */
aliases {
sdhc0 = &emmc2;
};
};
&scif2 {
@ -30,3 +35,21 @@
pinctrl-names = "default";
status = "okay";
};
&emmc2 {
pinctrl-0 = <&emmc2_clk &emmc2_cmd &emmc2_ds
&emmc2_data0 &emmc2_data1 &emmc2_data2 &emmc2_data3
&emmc2_data4 &emmc2_data5 &emmc2_data6 &emmc2_data7>;
pinctrl-1 = <&emmc2_clk &emmc2_cmd &emmc2_ds
&emmc2_data0 &emmc2_data1 &emmc2_data2 &emmc2_data3
&emmc2_data4 &emmc2_data5 &emmc2_data6 &emmc2_data7>;
pinctrl-names = "default", "uhs";
disk {
compatible = "zephyr,mmc-disk";
status = "disabled";
};
bus-width = <8>;
mmc-hs200-1_8v;
mmc-hs400-1_8v;
non-removable;
};

View file

@ -43,6 +43,8 @@ hardware features:
+-----------+------------------------------+--------------------------------+
| UART | uart | serial port-polling |
+-----------+------------------------------+--------------------------------+
| MMC | renesas_rcar_mmc | DMA and SCC |
+-----------+------------------------------+--------------------------------+
Other hardware features have not been enabled yet for this board.

View file

@ -14,4 +14,48 @@
scif2_data_a_rx_default: scif2_data_a_rx_default {
pin = <PIN_RX2_A FUNC_RX2_A>;
};
emmc2_clk: emmc2_clk {
pin = <PIN_SD2_CLK FUNC_SD2_CLK>;
};
emmc2_cmd: emmc2_cmd {
pin = <PIN_SD2_CMD FUNC_SD2_CMD>;
};
emmc2_data0: emmc2_data0 {
pin = <PIN_SD2_DATA0 FUNC_SD2_DAT0>;
};
emmc2_data1: emmc2_data1 {
pin = <PIN_SD2_DATA1 FUNC_SD2_DAT1>;
};
emmc2_data2: emmc2_data2 {
pin = <PIN_SD2_DATA2 FUNC_SD2_DAT2>;
};
emmc2_data3: emmc2_data3 {
pin = <PIN_SD2_DATA3 FUNC_SD2_DAT3>;
};
emmc2_data4: emmc2_data4 {
pin = <PIN_SD1_DATA0 FUNC_SD2_DAT4>;
};
emmc2_data5: emmc2_data5 {
pin = <PIN_SD1_DATA1 FUNC_SD2_DAT5>;
};
emmc2_data6: emmc2_data6 {
pin = <PIN_SD1_DATA2 FUNC_SD2_DAT6>;
};
emmc2_data7: emmc2_data7 {
pin = <PIN_SD1_DATA3 FUNC_SD2_DAT7>;
};
emmc2_ds: emmc2_ds {
pin = <PIN_SD2_DS FUNC_SD2_DS>;
};
};

View file

@ -19,6 +19,11 @@
zephyr,shell-uart = &scif2;
};
/* These aliases are provided for compatibility with samples */
aliases {
sdhc0 = &emmc2;
};
ram: memory@48000000 {
device_type = "mmio-sram";
reg = <0x0 0x48000000 0x0 DT_SIZE_M(512)>;
@ -30,3 +35,21 @@
pinctrl-names = "default";
status = "okay";
};
&emmc2 {
pinctrl-0 = <&emmc2_clk &emmc2_cmd &emmc2_ds
&emmc2_data0 &emmc2_data1 &emmc2_data2 &emmc2_data3
&emmc2_data4 &emmc2_data5 &emmc2_data6 &emmc2_data7>;
pinctrl-1 = <&emmc2_clk &emmc2_cmd &emmc2_ds
&emmc2_data0 &emmc2_data1 &emmc2_data2 &emmc2_data3
&emmc2_data4 &emmc2_data5 &emmc2_data6 &emmc2_data7>;
pinctrl-names = "default", "uhs";
disk {
compatible = "zephyr,mmc-disk";
status = "disabled";
};
bus-width = <8>;
mmc-hs200-1_8v;
mmc-hs400-1_8v;
non-removable;
};