1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
|
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
/*
* Device Tree Source for Yuridenki-Shokai the Kakip board
*
* Copyright (C) 2024 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
*/
/dts-v1/;
#include <dt-bindings/pinctrl/renesas,r9a09g057-pinctrl.h>
#include <dt-bindings/gpio/gpio.h>
#include "r9a09g057.dtsi"
/ {
model = "Yuridenki-Shokai Kakip Board based on r9a09g057h48";
compatible = "yuridenki,kakip", "renesas,r9a09g057h48", "renesas,r9a09g057";
aliases {
serial0 = &scif;
mmc0 = &sdhi0;
};
chosen {
stdout-path = "serial0:115200n8";
};
memory@48000000 {
device_type = "memory";
/* first 128MB is reserved for secure area. */
reg = <0x0 0x48000000 0x1 0xF8000000>;
};
reg_3p3v: regulator-3v3 {
compatible = "regulator-fixed";
regulator-name = "fixed-3.3V";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-boot-on;
regulator-always-on;
};
vqmmc_sdhi0: regulator-vccq-sdhi0 {
compatible = "regulator-gpio";
regulator-name = "SDHI0 VccQ";
gpios = <&pinctrl RZV2H_GPIO(A, 0) GPIO_ACTIVE_HIGH>;
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <3300000>;
gpios-states = <0>;
states = <3300000 0>, <1800000 1>;
};
};
&ostm0 {
status = "okay";
};
&ostm1 {
status = "okay";
};
&ostm2 {
status = "okay";
};
&ostm3 {
status = "okay";
};
&ostm4 {
status = "okay";
};
&ostm5 {
status = "okay";
};
&ostm6 {
status = "okay";
};
&ostm7 {
status = "okay";
};
&pinctrl {
scif_pins: scif {
pins = "SCIF_RXD", "SCIF_TXD";
};
sd0-pwr-en-hog {
gpio-hog;
gpios = <RZV2H_GPIO(A, 1) GPIO_ACTIVE_HIGH>;
output-high;
line-name = "sd0_pwr_en";
};
sdhi0_pins: sd0 {
sd0-clk {
pins = "SD0CLK";
renesas,output-impedance = <3>;
slew-rate = <0>;
};
sd0-data {
pins = "SD0DAT0", "SD0DAT1", "SD0DAT2", "SD0DAT3", "SD0CMD";
input-enable;
renesas,output-impedance = <3>;
slew-rate = <0>;
};
sd0-mux {
pinmux = <RZV2H_PORT_PINMUX(A, 5, 15)>; /* SD0_CD */
};
};
};
&qextal_clk {
clock-frequency = <24000000>;
};
&scif {
pinctrl-0 = <&scif_pins>;
pinctrl-names = "default";
status = "okay";
};
&sdhi0 {
pinctrl-0 = <&sdhi0_pins>;
pinctrl-names = "default";
vmmc-supply = <®_3p3v>;
vqmmc-supply = <&vqmmc_sdhi0>;
bus-width = <4>;
status = "okay";
};
|