| 1 |
// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
/* |
| 3 |
* Device Tree Source for the Yuridenki-Shokai Kakip board |
| 4 |
* |
| 5 |
* Copyright (C) 2024 Nobuhiro Iwamatsu <[email protected]> |
| 6 |
*/ |
| 7 |
|
| 8 |
/dts-v1/; |
| 9 |
|
| 10 |
#include <dt-bindings/pinctrl/renesas,r9a09g057-pinctrl.h> |
| 11 |
#include <dt-bindings/gpio/gpio.h> |
| 12 |
#include "r9a09g057.dtsi" |
| 13 |
|
| 14 |
/ { |
| 15 |
model = "Yuridenki-Shokai Kakip Board based on r9a09g057h48"; |
| 16 |
compatible = "yuridenki,kakip", "renesas,r9a09g057h48", "renesas,r9a09g057"; |
| 17 |
|
| 18 |
aliases { |
| 19 |
serial0 = &scif; |
| 20 |
mmc0 = &sdhi0; |
| 21 |
}; |
| 22 |
|
| 23 |
chosen { |
| 24 |
stdout-path = "serial0:115200n8"; |
| 25 |
}; |
| 26 |
|
| 27 |
memory@48000000 { |
| 28 |
device_type = "memory"; |
| 29 |
/* first 128MB is reserved for secure area. */ |
| 30 |
reg = <0x0 0x48000000 0x1 0xf8000000>; |
| 31 |
}; |
| 32 |
|
| 33 |
reg_1p8v: regulator-1p8v { |
| 34 |
compatible = "regulator-fixed"; |
| 35 |
regulator-name = "fixed-1.8V"; |
| 36 |
regulator-min-microvolt = <1800000>; |
| 37 |
regulator-max-microvolt = <1800000>; |
| 38 |
regulator-boot-on; |
| 39 |
regulator-always-on; |
| 40 |
}; |
| 41 |
|
| 42 |
reg_3p3v: regulator-3v3 { |
| 43 |
compatible = "regulator-fixed"; |
| 44 |
regulator-name = "fixed-3.3V"; |
| 45 |
regulator-min-microvolt = <3300000>; |
| 46 |
regulator-max-microvolt = <3300000>; |
| 47 |
regulator-boot-on; |
| 48 |
regulator-always-on; |
| 49 |
}; |
| 50 |
|
| 51 |
vqmmc_sdhi0: regulator-vccq-sdhi0 { |
| 52 |
compatible = "regulator-gpio"; |
| 53 |
regulator-name = "SDHI0 VccQ"; |
| 54 |
gpios = <&pinctrl RZV2H_GPIO(A, 0) GPIO_ACTIVE_HIGH>; |
| 55 |
regulator-min-microvolt = <1800000>; |
| 56 |
regulator-max-microvolt = <3300000>; |
| 57 |
gpios-states = <0>; |
| 58 |
states = <3300000 0>, <1800000 1>; |
| 59 |
}; |
| 60 |
}; |
| 61 |
|
| 62 |
&ostm0 { |
| 63 |
status = "okay"; |
| 64 |
}; |
| 65 |
|
| 66 |
&ostm1 { |
| 67 |
status = "okay"; |
| 68 |
}; |
| 69 |
|
| 70 |
&ostm2 { |
| 71 |
status = "okay"; |
| 72 |
}; |
| 73 |
|
| 74 |
&ostm3 { |
| 75 |
status = "okay"; |
| 76 |
}; |
| 77 |
|
| 78 |
&ostm4 { |
| 79 |
status = "okay"; |
| 80 |
}; |
| 81 |
|
| 82 |
&ostm5 { |
| 83 |
status = "okay"; |
| 84 |
}; |
| 85 |
|
| 86 |
&ostm6 { |
| 87 |
status = "okay"; |
| 88 |
}; |
| 89 |
|
| 90 |
&ostm7 { |
| 91 |
status = "okay"; |
| 92 |
}; |
| 93 |
|
| 94 |
&pinctrl { |
| 95 |
scif_pins: scif { |
| 96 |
pins = "SCIF_RXD", "SCIF_TXD"; |
| 97 |
}; |
| 98 |
|
| 99 |
sd0-pwr-en-hog { |
| 100 |
gpio-hog; |
| 101 |
gpios = <RZV2H_GPIO(A, 1) GPIO_ACTIVE_HIGH>; |
| 102 |
output-high; |
| 103 |
line-name = "sd0_pwr_en"; |
| 104 |
}; |
| 105 |
|
| 106 |
sdhi0_pins: sd0 { |
| 107 |
sd0-clk { |
| 108 |
pins = "SD0CLK"; |
| 109 |
renesas,output-impedance = <3>; |
| 110 |
slew-rate = <0>; |
| 111 |
}; |
| 112 |
|
| 113 |
sd0-data { |
| 114 |
pins = "SD0DAT0", "SD0DAT1", "SD0DAT2", "SD0DAT3", "SD0CMD"; |
| 115 |
input-enable; |
| 116 |
renesas,output-impedance = <3>; |
| 117 |
slew-rate = <0>; |
| 118 |
}; |
| 119 |
|
| 120 |
sd0-mux { |
| 121 |
pinmux = <RZV2H_PORT_PINMUX(A, 5, 15)>; /* SD0_CD */ |
| 122 |
}; |
| 123 |
}; |
| 124 |
|
| 125 |
xspi_pins: xspi0 { |
| 126 |
ctrl { |
| 127 |
pins = "XSPI0_RESET0N", "XSPI0_CS0N", "XSPI0_CKP"; |
| 128 |
output-enable; |
| 129 |
}; |
| 130 |
|
| 131 |
io { |
| 132 |
pins = "XSPI0_IO0", "XSPI0_IO1", "XSPI0_IO2", "XSPI0_IO3"; |
| 133 |
renesas,output-impedance = <3>; |
| 134 |
}; |
| 135 |
}; |
| 136 |
}; |
| 137 |
|
| 138 |
&qextal_clk { |
| 139 |
clock-frequency = <24000000>; |
| 140 |
}; |
| 141 |
|
| 142 |
&scif { |
| 143 |
pinctrl-0 = <&scif_pins>; |
| 144 |
pinctrl-names = "default"; |
| 145 |
|
| 146 |
status = "okay"; |
| 147 |
}; |
| 148 |
|
| 149 |
&sdhi0 { |
| 150 |
pinctrl-0 = <&sdhi0_pins>; |
| 151 |
pinctrl-names = "default"; |
| 152 |
vmmc-supply = <®_3p3v>; |
| 153 |
vqmmc-supply = <&vqmmc_sdhi0>; |
| 154 |
bus-width = <4>; |
| 155 |
|
| 156 |
status = "okay"; |
| 157 |
}; |
| 158 |
|
| 159 |
&xspi { |
| 160 |
pinctrl-0 = <&xspi_pins>; |
| 161 |
pinctrl-names = "default"; |
| 162 |
assigned-clocks = <&cpg CPG_CORE R9A09G057_SPI_CLK_SPI>; |
| 163 |
assigned-clock-rates = <133333334>; |
| 164 |
status = "okay"; |
| 165 |
|
| 166 |
flash@0 { |
| 167 |
/* W25Q256JWPIM */ |
| 168 |
compatible = "jedec,spi-nor"; |
| 169 |
reg = <0>; |
| 170 |
vcc-supply = <®_1p8v>; |
| 171 |
m25p,fast-read; |
| 172 |
spi-tx-bus-width = <4>; |
| 173 |
spi-rx-bus-width = <4>; |
| 174 |
}; |
| 175 |
}; |