| 1 |
// SPDX-License-Identifier: GPL-2.0 |
| 2 |
/* |
| 3 |
* Device Tree Source for the V3H Starter Kit board |
| 4 |
* |
| 5 |
* Copyright (C) 2018 Renesas Electronics Corp. |
| 6 |
* Copyright (C) 2018 Cogent Embedded, Inc. |
| 7 |
*/ |
| 8 |
|
| 9 |
/dts-v1/; |
| 10 |
#include "r8a77980.dtsi" |
| 11 |
#include <dt-bindings/gpio/gpio.h> |
| 12 |
|
| 13 |
/ { |
| 14 |
model = "Renesas V3H Starter Kit board"; |
| 15 |
compatible = "renesas,v3hsk", "renesas,r8a77980"; |
| 16 |
|
| 17 |
aliases { |
| 18 |
i2c0 = &i2c0; |
| 19 |
i2c1 = &i2c1; |
| 20 |
i2c2 = &i2c2; |
| 21 |
i2c3 = &i2c3; |
| 22 |
i2c4 = &i2c4; |
| 23 |
i2c5 = &i2c5; |
| 24 |
serial0 = &scif0; |
| 25 |
ethernet0 = &gether; |
| 26 |
}; |
| 27 |
|
| 28 |
chosen { |
| 29 |
stdout-path = "serial0:115200n8"; |
| 30 |
}; |
| 31 |
|
| 32 |
hdmi-out { |
| 33 |
compatible = "hdmi-connector"; |
| 34 |
type = "a"; |
| 35 |
|
| 36 |
port { |
| 37 |
hdmi_con: endpoint { |
| 38 |
remote-endpoint = <&adv7511_out>; |
| 39 |
}; |
| 40 |
}; |
| 41 |
}; |
| 42 |
|
| 43 |
lvds-decoder { |
| 44 |
compatible = "thine,thc63lvd1024"; |
| 45 |
vcc-supply = <&vcc3v3_d5>; |
| 46 |
|
| 47 |
ports { |
| 48 |
#address-cells = <1>; |
| 49 |
#size-cells = <0>; |
| 50 |
|
| 51 |
port@0 { |
| 52 |
reg = <0>; |
| 53 |
thc63lvd1024_in: endpoint { |
| 54 |
remote-endpoint = <&lvds0_out>; |
| 55 |
}; |
| 56 |
}; |
| 57 |
|
| 58 |
port@2 { |
| 59 |
reg = <2>; |
| 60 |
thc63lvd1024_out: endpoint { |
| 61 |
remote-endpoint = <&adv7511_in>; |
| 62 |
}; |
| 63 |
}; |
| 64 |
}; |
| 65 |
}; |
| 66 |
|
| 67 |
memory@48000000 { |
| 68 |
device_type = "memory"; |
| 69 |
/* first 128MB is reserved for secure area. */ |
| 70 |
reg = <0 0x48000000 0 0x78000000>; |
| 71 |
}; |
| 72 |
|
| 73 |
osc1_clk: osc1-clock { |
| 74 |
compatible = "fixed-clock"; |
| 75 |
#clock-cells = <0>; |
| 76 |
clock-frequency = <148500000>; |
| 77 |
}; |
| 78 |
|
| 79 |
vcc1v8_d4: regulator-0 { |
| 80 |
compatible = "regulator-fixed"; |
| 81 |
regulator-name = "VCC1V8_D4"; |
| 82 |
regulator-min-microvolt = <1800000>; |
| 83 |
regulator-max-microvolt = <1800000>; |
| 84 |
regulator-boot-on; |
| 85 |
regulator-always-on; |
| 86 |
}; |
| 87 |
|
| 88 |
vcc3v3_d5: regulator-1 { |
| 89 |
compatible = "regulator-fixed"; |
| 90 |
regulator-name = "VCC3V3_D5"; |
| 91 |
regulator-min-microvolt = <3300000>; |
| 92 |
regulator-max-microvolt = <3300000>; |
| 93 |
regulator-boot-on; |
| 94 |
regulator-always-on; |
| 95 |
}; |
| 96 |
}; |
| 97 |
|
| 98 |
&du { |
| 99 |
clocks = <&cpg CPG_MOD 724>, |
| 100 |
<&osc1_clk>; |
| 101 |
clock-names = "du.0", "dclkin.0"; |
| 102 |
status = "okay"; |
| 103 |
}; |
| 104 |
|
| 105 |
&extal_clk { |
| 106 |
clock-frequency = <16666666>; |
| 107 |
}; |
| 108 |
|
| 109 |
&extalr_clk { |
| 110 |
clock-frequency = <32768>; |
| 111 |
}; |
| 112 |
|
| 113 |
&gether { |
| 114 |
pinctrl-0 = <&gether_pins>; |
| 115 |
pinctrl-names = "default"; |
| 116 |
|
| 117 |
phy-mode = "rgmii"; |
| 118 |
phy-handle = <&phy0>; |
| 119 |
renesas,no-ether-link; |
| 120 |
status = "okay"; |
| 121 |
|
| 122 |
phy0: ethernet-phy@0 { |
| 123 |
compatible = "ethernet-phy-id0022.1622", |
| 124 |
"ethernet-phy-ieee802.3-c22"; |
| 125 |
rxc-skew-ps = <1500>; |
| 126 |
reg = <0>; |
| 127 |
interrupts-extended = <&gpio4 23 IRQ_TYPE_LEVEL_LOW>; |
| 128 |
reset-gpios = <&gpio4 22 GPIO_ACTIVE_LOW>; |
| 129 |
}; |
| 130 |
}; |
| 131 |
|
| 132 |
&i2c0 { |
| 133 |
pinctrl-0 = <&i2c0_pins>; |
| 134 |
pinctrl-names = "default"; |
| 135 |
|
| 136 |
status = "okay"; |
| 137 |
clock-frequency = <400000>; |
| 138 |
|
| 139 |
hdmi@39 { |
| 140 |
compatible = "adi,adv7511w"; |
| 141 |
reg = <0x39>; |
| 142 |
interrupts-extended = <&gpio1 20 IRQ_TYPE_LEVEL_LOW>; |
| 143 |
avdd-supply = <&vcc1v8_d4>; |
| 144 |
dvdd-supply = <&vcc1v8_d4>; |
| 145 |
pvdd-supply = <&vcc1v8_d4>; |
| 146 |
bgvdd-supply = <&vcc1v8_d4>; |
| 147 |
dvdd-3v-supply = <&vcc3v3_d5>; |
| 148 |
|
| 149 |
adi,input-depth = <8>; |
| 150 |
adi,input-colorspace = "rgb"; |
| 151 |
adi,input-clock = "1x"; |
| 152 |
|
| 153 |
ports { |
| 154 |
#address-cells = <1>; |
| 155 |
#size-cells = <0>; |
| 156 |
|
| 157 |
port@0 { |
| 158 |
reg = <0>; |
| 159 |
adv7511_in: endpoint { |
| 160 |
remote-endpoint = <&thc63lvd1024_out>; |
| 161 |
}; |
| 162 |
}; |
| 163 |
|
| 164 |
port@1 { |
| 165 |
reg = <1>; |
| 166 |
adv7511_out: endpoint { |
| 167 |
remote-endpoint = <&hdmi_con>; |
| 168 |
}; |
| 169 |
}; |
| 170 |
}; |
| 171 |
}; |
| 172 |
}; |
| 173 |
|
| 174 |
&lvds0 { |
| 175 |
status = "okay"; |
| 176 |
|
| 177 |
ports { |
| 178 |
port@1 { |
| 179 |
lvds0_out: endpoint { |
| 180 |
remote-endpoint = <&thc63lvd1024_in>; |
| 181 |
}; |
| 182 |
}; |
| 183 |
}; |
| 184 |
}; |
| 185 |
|
| 186 |
&pfc { |
| 187 |
gether_pins: gether { |
| 188 |
groups = "gether_mdio_a", "gether_rgmii", |
| 189 |
"gether_txcrefclk", "gether_txcrefclk_mega"; |
| 190 |
function = "gether"; |
| 191 |
}; |
| 192 |
|
| 193 |
i2c0_pins: i2c0 { |
| 194 |
groups = "i2c0"; |
| 195 |
function = "i2c0"; |
| 196 |
}; |
| 197 |
|
| 198 |
qspi0_pins: qspi0 { |
| 199 |
groups = "qspi0_ctrl", "qspi0_data4"; |
| 200 |
function = "qspi0"; |
| 201 |
}; |
| 202 |
|
| 203 |
scif0_pins: scif0 { |
| 204 |
groups = "scif0_data"; |
| 205 |
function = "scif0"; |
| 206 |
}; |
| 207 |
|
| 208 |
scif_clk_pins: scif_clk { |
| 209 |
groups = "scif_clk_b"; |
| 210 |
function = "scif_clk"; |
| 211 |
}; |
| 212 |
}; |
| 213 |
|
| 214 |
&rpc { |
| 215 |
pinctrl-0 = <&qspi0_pins>; |
| 216 |
pinctrl-names = "default"; |
| 217 |
|
| 218 |
status = "okay"; |
| 219 |
|
| 220 |
flash@0 { |
| 221 |
compatible = "spansion,s25fs512s", "jedec,spi-nor"; |
| 222 |
reg = <0>; |
| 223 |
spi-max-frequency = <50000000>; |
| 224 |
spi-rx-bus-width = <4>; |
| 225 |
|
| 226 |
partitions { |
| 227 |
compatible = "fixed-partitions"; |
| 228 |
#address-cells = <1>; |
| 229 |
#size-cells = <1>; |
| 230 |
|
| 231 |
bootparam@0 { |
| 232 |
reg = <0x00000000 0x040000>; |
| 233 |
read-only; |
| 234 |
}; |
| 235 |
cr7@40000 { |
| 236 |
reg = <0x00040000 0x080000>; |
| 237 |
read-only; |
| 238 |
}; |
| 239 |
cert-header-sa3@c0000 { |
| 240 |
reg = <0x000c0000 0x080000>; |
| 241 |
read-only; |
| 242 |
}; |
| 243 |
bl2@140000 { |
| 244 |
reg = <0x00140000 0x040000>; |
| 245 |
read-only; |
| 246 |
}; |
| 247 |
cert-header-sa6@180000 { |
| 248 |
reg = <0x00180000 0x040000>; |
| 249 |
read-only; |
| 250 |
}; |
| 251 |
bl31@1c0000 { |
| 252 |
reg = <0x001c0000 0x460000>; |
| 253 |
read-only; |
| 254 |
}; |
| 255 |
uboot@640000 { |
| 256 |
reg = <0x00640000 0x0c0000>; |
| 257 |
read-only; |
| 258 |
}; |
| 259 |
uboot-env@700000 { |
| 260 |
reg = <0x00700000 0x040000>; |
| 261 |
read-only; |
| 262 |
}; |
| 263 |
dtb@740000 { |
| 264 |
reg = <0x00740000 0x080000>; |
| 265 |
}; |
| 266 |
kernel@7c0000 { |
| 267 |
reg = <0x007c0000 0x1400000>; |
| 268 |
}; |
| 269 |
user@1bc0000 { |
| 270 |
reg = <0x01bc0000 0x2440000>; |
| 271 |
}; |
| 272 |
}; |
| 273 |
}; |
| 274 |
}; |
| 275 |
|
| 276 |
&rwdt { |
| 277 |
timeout-sec = <60>; |
| 278 |
status = "okay"; |
| 279 |
}; |
| 280 |
|
| 281 |
&scif0 { |
| 282 |
pinctrl-0 = <&scif0_pins>, <&scif_clk_pins>; |
| 283 |
pinctrl-names = "default"; |
| 284 |
bootph-all; |
| 285 |
|
| 286 |
status = "okay"; |
| 287 |
}; |
| 288 |
|
| 289 |
&scif_clk { |
| 290 |
clock-frequency = <14745600>; |
| 291 |
}; |
| 292 |
|
| 293 |
/* Firmware should reserve it but sadly doesn't */ |
| 294 |
&swdt { |
| 295 |
status = "reserved"; |
| 296 |
}; |