1/* 2 * Copyright (c) 2023 EPAM Systems 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 */ 7 8/dts-v1/; 9#include <mem.h> 10#include <arm64/renesas/r8a77951.dtsi> 11#include <zephyr/dt-bindings/gpio/gpio.h> 12#include "rcar_h3ulcb_r8a77951_a57-pinctrl.dtsi" 13 14/ { 15 model = "H3ULCB CA57"; 16 17 chosen { 18 zephyr,sram = &ram; 19 zephyr,console = &scif2; 20 zephyr,shell-uart = &scif2; 21 }; 22 23 ram: memory@48000000 { 24 device_type = "mmio-sram"; 25 reg = <0x0 0x48000000 0x0 DT_SIZE_M(512)>; 26 }; 27 28 /* These aliases are provided for compatibility with samples */ 29 aliases { 30 sdhc0 = &emmc2; 31 }; 32 33 vcc_sd0: regulator-vcc-sd0 { 34 compatible = "regulator-fixed"; 35 36 regulator-name = "SD0 Vcc"; 37 regulator-min-microvolt = <3300000>; 38 regulator-max-microvolt = <3300000>; 39 40 enable-gpios = <&gpio5 2 GPIO_ACTIVE_HIGH>; 41 }; 42 43 vccq_sd0: regulator-vccq-sd0 { 44 compatible = "regulator-gpio"; 45 46 regulator-name = "SD0 VccQ"; 47 regulator-min-microvolt = <1800000>; 48 regulator-max-microvolt = <3300000>; 49 50 gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>; 51 states = <3300000 1>, <1800000 0>; 52 53 regulator-always-on; 54 }; 55}; 56 57&gpio5 { 58 status = "okay"; 59}; 60 61&sd0 { 62 pinctrl-0 = <&sd0_clk &sd0_cmd &sd0_cd &sd0_wp 63 &sd0_data0 &sd0_data1 &sd0_data2 &sd0_data3>; 64 pinctrl-1 = <&sd0_clk_uhs &sd0_cmd_uhs &sd0_cd &sd0_wp 65 &sd0_data0_uhs &sd0_data1_uhs &sd0_data2_uhs &sd0_data3_uhs>; 66 pinctrl-names = "default", "uhs"; 67 disk { 68 compatible = "zephyr,sdmmc-disk"; 69 disk-name = "SD"; 70 status = "okay"; 71 }; 72 73 vmmc-supply = <&vcc_sd0>; 74 vqmmc-supply = <&vccq_sd0>; 75 76 bus-width = <4>; 77 mmc-sdr104-support; 78 status = "okay"; 79}; 80 81&scif2 { 82 pinctrl-0 = <&scif2_data_a_tx_default &scif2_data_a_rx_default>; 83 pinctrl-names = "default"; 84 status = "okay"; 85}; 86 87&emmc2 { 88 pinctrl-0 = <&emmc2_clk &emmc2_cmd &emmc2_ds 89 &emmc2_data0 &emmc2_data1 &emmc2_data2 &emmc2_data3 90 &emmc2_data4 &emmc2_data5 &emmc2_data6 &emmc2_data7>; 91 pinctrl-1 = <&emmc2_clk &emmc2_cmd &emmc2_ds 92 &emmc2_data0 &emmc2_data1 &emmc2_data2 &emmc2_data3 93 &emmc2_data4 &emmc2_data5 &emmc2_data6 &emmc2_data7>; 94 pinctrl-names = "default", "uhs"; 95 disk { 96 compatible = "zephyr,mmc-disk"; 97 disk-name = "SD2"; 98 status = "disabled"; 99 }; 100 bus-width = <8>; 101 mmc-hs200-1_8v; 102 mmc-hs400-1_8v; 103 non-removable; 104}; 105