| 1 |
// SPDX-License-Identifier: GPL-2.0 |
| 2 |
/* |
| 3 |
* Device Tree Source for the Silicon Linux RZ/G2E 96board platform (CAT874) |
| 4 |
* |
| 5 |
* Copyright (C) 2019 Renesas Electronics Corp. |
| 6 |
*/ |
| 7 |
|
| 8 |
/dts-v1/; |
| 9 |
#include "r8a774c0.dtsi" |
| 10 |
#include <dt-bindings/gpio/gpio.h> |
| 11 |
#include <dt-bindings/display/tda998x.h> |
| 12 |
|
| 13 |
/ { |
| 14 |
model = "Silicon Linux RZ/G2E 96board platform (CAT874)"; |
| 15 |
compatible = "si-linux,cat874", "renesas,r8a774c0"; |
| 16 |
|
| 17 |
aliases { |
| 18 |
serial0 = &scif2; |
| 19 |
serial1 = &hscif2; |
| 20 |
mmc0 = &sdhi0; |
| 21 |
mmc1 = &sdhi3; |
| 22 |
}; |
| 23 |
|
| 24 |
chosen { |
| 25 |
bootargs = "ignore_loglevel rw root=/dev/nfs ip=on"; |
| 26 |
stdout-path = "serial0:115200n8"; |
| 27 |
}; |
| 28 |
|
| 29 |
hdmi-out { |
| 30 |
compatible = "hdmi-connector"; |
| 31 |
type = "a"; |
| 32 |
|
| 33 |
port { |
| 34 |
hdmi_con_out: endpoint { |
| 35 |
remote-endpoint = <&tda19988_out>; |
| 36 |
}; |
| 37 |
}; |
| 38 |
}; |
| 39 |
|
| 40 |
leds { |
| 41 |
compatible = "gpio-leds"; |
| 42 |
|
| 43 |
led0 { |
| 44 |
gpios = <&gpio5 19 GPIO_ACTIVE_HIGH>; |
| 45 |
label = "LED0"; |
| 46 |
}; |
| 47 |
|
| 48 |
led1 { |
| 49 |
gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>; |
| 50 |
label = "LED1"; |
| 51 |
}; |
| 52 |
|
| 53 |
led2 { |
| 54 |
gpios = <&gpio4 10 GPIO_ACTIVE_HIGH>; |
| 55 |
label = "LED2"; |
| 56 |
}; |
| 57 |
|
| 58 |
led3 { |
| 59 |
gpios = <&gpio6 4 GPIO_ACTIVE_HIGH>; |
| 60 |
label = "LED3"; |
| 61 |
}; |
| 62 |
}; |
| 63 |
|
| 64 |
memory@48000000 { |
| 65 |
device_type = "memory"; |
| 66 |
/* first 128MB is reserved for secure area. */ |
| 67 |
reg = <0x0 0x48000000 0x0 0x78000000>; |
| 68 |
}; |
| 69 |
|
| 70 |
reg_12p0v: regulator-12p0v { |
| 71 |
compatible = "regulator-fixed"; |
| 72 |
regulator-name = "D12.0V"; |
| 73 |
regulator-min-microvolt = <12000000>; |
| 74 |
regulator-max-microvolt = <12000000>; |
| 75 |
regulator-boot-on; |
| 76 |
regulator-always-on; |
| 77 |
}; |
| 78 |
|
| 79 |
sound: sound { |
| 80 |
compatible = "simple-audio-card"; |
| 81 |
|
| 82 |
simple-audio-card,name = "CAT874 HDMI sound"; |
| 83 |
simple-audio-card,format = "i2s"; |
| 84 |
simple-audio-card,bitclock-master = <&sndcpu>; |
| 85 |
simple-audio-card,frame-master = <&sndcpu>; |
| 86 |
|
| 87 |
sndcodec: simple-audio-card,codec { |
| 88 |
sound-dai = <&tda19988>; |
| 89 |
}; |
| 90 |
|
| 91 |
sndcpu: simple-audio-card,cpu { |
| 92 |
sound-dai = <&rcar_sound>; |
| 93 |
}; |
| 94 |
}; |
| 95 |
|
| 96 |
vcc_sdhi0: regulator-vcc-sdhi0 { |
| 97 |
compatible = "regulator-fixed"; |
| 98 |
|
| 99 |
regulator-name = "SDHI0 Vcc"; |
| 100 |
regulator-min-microvolt = <3300000>; |
| 101 |
regulator-max-microvolt = <3300000>; |
| 102 |
regulator-always-on; |
| 103 |
regulator-boot-on; |
| 104 |
}; |
| 105 |
|
| 106 |
vccq_sdhi0: regulator-vccq-sdhi0 { |
| 107 |
compatible = "regulator-gpio"; |
| 108 |
|
| 109 |
regulator-name = "SDHI0 VccQ"; |
| 110 |
regulator-min-microvolt = <1800000>; |
| 111 |
regulator-max-microvolt = <3300000>; |
| 112 |
|
| 113 |
gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>; |
| 114 |
gpios-states = <1>; |
| 115 |
states = <3300000 1>, <1800000 0>; |
| 116 |
}; |
| 117 |
|
| 118 |
wlan_en_reg: fixedregulator { |
| 119 |
compatible = "regulator-fixed"; |
| 120 |
regulator-name = "wlan-en-regulator"; |
| 121 |
regulator-min-microvolt = <1800000>; |
| 122 |
regulator-max-microvolt = <1800000>; |
| 123 |
startup-delay-us = <70000>; |
| 124 |
|
| 125 |
gpio = <&gpio2 25 GPIO_ACTIVE_HIGH>; |
| 126 |
enable-active-high; |
| 127 |
}; |
| 128 |
|
| 129 |
x13_clk: x13 { |
| 130 |
compatible = "fixed-clock"; |
| 131 |
#clock-cells = <0>; |
| 132 |
clock-frequency = <74250000>; |
| 133 |
}; |
| 134 |
|
| 135 |
connector { |
| 136 |
compatible = "usb-c-connector"; |
| 137 |
label = "USB-C"; |
| 138 |
data-role = "dual"; |
| 139 |
|
| 140 |
ports { |
| 141 |
#address-cells = <1>; |
| 142 |
#size-cells = <0>; |
| 143 |
port@0 { |
| 144 |
reg = <0>; |
| 145 |
hs_ep: endpoint { |
| 146 |
remote-endpoint = <&usb3_hs_ep>; |
| 147 |
}; |
| 148 |
}; |
| 149 |
port@1 { |
| 150 |
reg = <1>; |
| 151 |
ss_ep: endpoint { |
| 152 |
remote-endpoint = <&hd3ss3220_in_ep>; |
| 153 |
}; |
| 154 |
}; |
| 155 |
}; |
| 156 |
}; |
| 157 |
}; |
| 158 |
|
| 159 |
&audio_clk_a { |
| 160 |
clock-frequency = <22579200>; |
| 161 |
}; |
| 162 |
|
| 163 |
&du { |
| 164 |
pinctrl-0 = <&du_pins>; |
| 165 |
pinctrl-names = "default"; |
| 166 |
status = "okay"; |
| 167 |
|
| 168 |
clocks = <&cpg CPG_MOD 724>, |
| 169 |
<&cpg CPG_MOD 723>, |
| 170 |
<&x13_clk>; |
| 171 |
clock-names = "du.0", "du.1", "dclkin.0"; |
| 172 |
|
| 173 |
ports { |
| 174 |
port@0 { |
| 175 |
du_out_rgb: endpoint { |
| 176 |
remote-endpoint = <&tda19988_in>; |
| 177 |
}; |
| 178 |
}; |
| 179 |
}; |
| 180 |
}; |
| 181 |
|
| 182 |
&ehci0 { |
| 183 |
dr_mode = "host"; |
| 184 |
status = "okay"; |
| 185 |
}; |
| 186 |
|
| 187 |
&extal_clk { |
| 188 |
clock-frequency = <48000000>; |
| 189 |
}; |
| 190 |
|
| 191 |
&hscif2 { |
| 192 |
pinctrl-0 = <&hscif2_pins>; |
| 193 |
pinctrl-names = "default"; |
| 194 |
|
| 195 |
uart-has-rtscts; |
| 196 |
status = "okay"; |
| 197 |
|
| 198 |
bluetooth { |
| 199 |
compatible = "ti,wl1837-st"; |
| 200 |
enable-gpios = <&gpio4 6 GPIO_ACTIVE_HIGH>; |
| 201 |
}; |
| 202 |
}; |
| 203 |
|
| 204 |
&i2c0 { |
| 205 |
status = "okay"; |
| 206 |
clock-frequency = <100000>; |
| 207 |
|
| 208 |
hd3ss3220@47 { |
| 209 |
compatible = "ti,hd3ss3220"; |
| 210 |
reg = <0x47>; |
| 211 |
interrupts-extended = <&gpio6 3 IRQ_TYPE_LEVEL_LOW>; |
| 212 |
|
| 213 |
ports { |
| 214 |
#address-cells = <1>; |
| 215 |
#size-cells = <0>; |
| 216 |
port@0 { |
| 217 |
reg = <0>; |
| 218 |
hd3ss3220_in_ep: endpoint { |
| 219 |
remote-endpoint = <&ss_ep>; |
| 220 |
}; |
| 221 |
}; |
| 222 |
port@1 { |
| 223 |
reg = <1>; |
| 224 |
hd3ss3220_out_ep: endpoint { |
| 225 |
remote-endpoint = <&usb3_role_switch>; |
| 226 |
}; |
| 227 |
}; |
| 228 |
}; |
| 229 |
}; |
| 230 |
|
| 231 |
tda19988: tda19988@70 { |
| 232 |
compatible = "nxp,tda998x"; |
| 233 |
reg = <0x70>; |
| 234 |
interrupts-extended = <&gpio1 1 IRQ_TYPE_LEVEL_LOW>; |
| 235 |
|
| 236 |
video-ports = <0x234501>; |
| 237 |
|
| 238 |
#sound-dai-cells = <0>; |
| 239 |
audio-ports = <TDA998x_I2S 0x03>; |
| 240 |
clocks = <&rcar_sound 1>; |
| 241 |
|
| 242 |
ports { |
| 243 |
#address-cells = <1>; |
| 244 |
#size-cells = <0>; |
| 245 |
|
| 246 |
port@0 { |
| 247 |
reg = <0>; |
| 248 |
tda19988_in: endpoint { |
| 249 |
remote-endpoint = <&du_out_rgb>; |
| 250 |
}; |
| 251 |
}; |
| 252 |
|
| 253 |
port@1 { |
| 254 |
reg = <1>; |
| 255 |
tda19988_out: endpoint { |
| 256 |
remote-endpoint = <&hdmi_con_out>; |
| 257 |
}; |
| 258 |
}; |
| 259 |
}; |
| 260 |
}; |
| 261 |
}; |
| 262 |
|
| 263 |
&i2c1 { |
| 264 |
pinctrl-0 = <&i2c1_pins>; |
| 265 |
pinctrl-names = "default"; |
| 266 |
|
| 267 |
status = "okay"; |
| 268 |
clock-frequency = <400000>; |
| 269 |
|
| 270 |
rtc@32 { |
| 271 |
compatible = "epson,rx8571"; |
| 272 |
reg = <0x32>; |
| 273 |
}; |
| 274 |
}; |
| 275 |
|
| 276 |
&lvds0 { |
| 277 |
status = "okay"; |
| 278 |
|
| 279 |
clocks = <&cpg CPG_MOD 727>, <&x13_clk>, <&extal_clk>; |
| 280 |
clock-names = "fck", "dclkin.0", "extal"; |
| 281 |
}; |
| 282 |
|
| 283 |
&ohci0 { |
| 284 |
dr_mode = "host"; |
| 285 |
status = "okay"; |
| 286 |
}; |
| 287 |
|
| 288 |
&pcie_bus_clk { |
| 289 |
clock-frequency = <100000000>; |
| 290 |
}; |
| 291 |
|
| 292 |
&pciec0 { |
| 293 |
/* Map all possible DDR as inbound ranges */ |
| 294 |
dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x80000000>; |
| 295 |
}; |
| 296 |
|
| 297 |
&pfc { |
| 298 |
du_pins: du { |
| 299 |
groups = "du_rgb888", "du_clk_out_0", "du_sync", "du_disp", |
| 300 |
"du_clk_in_0"; |
| 301 |
function = "du"; |
| 302 |
}; |
| 303 |
|
| 304 |
hscif2_pins: hscif2 { |
| 305 |
groups = "hscif2_data_a", "hscif2_ctrl_a"; |
| 306 |
function = "hscif2"; |
| 307 |
}; |
| 308 |
|
| 309 |
i2c1_pins: i2c1 { |
| 310 |
groups = "i2c1_b"; |
| 311 |
function = "i2c1"; |
| 312 |
}; |
| 313 |
|
| 314 |
scif2_pins: scif2 { |
| 315 |
groups = "scif2_data_a"; |
| 316 |
function = "scif2"; |
| 317 |
}; |
| 318 |
|
| 319 |
sdhi0_pins: sd0 { |
| 320 |
groups = "sdhi0_data4", "sdhi0_ctrl"; |
| 321 |
function = "sdhi0"; |
| 322 |
power-source = <3300>; |
| 323 |
}; |
| 324 |
|
| 325 |
sdhi0_pins_uhs: sd0_uhs { |
| 326 |
groups = "sdhi0_data4", "sdhi0_ctrl"; |
| 327 |
function = "sdhi0"; |
| 328 |
power-source = <1800>; |
| 329 |
}; |
| 330 |
|
| 331 |
sdhi3_pins: sd3 { |
| 332 |
groups = "sdhi3_data4", "sdhi3_ctrl"; |
| 333 |
function = "sdhi3"; |
| 334 |
power-source = <1800>; |
| 335 |
}; |
| 336 |
|
| 337 |
sound_clk_pins: sound_clk { |
| 338 |
groups = "audio_clkout1_a"; |
| 339 |
function = "audio_clk"; |
| 340 |
}; |
| 341 |
|
| 342 |
sound_pins: sound { |
| 343 |
groups = "ssi01239_ctrl", "ssi0_data"; |
| 344 |
function = "ssi"; |
| 345 |
}; |
| 346 |
|
| 347 |
usb30_pins: usb30 { |
| 348 |
groups = "usb30", "usb30_id"; |
| 349 |
function = "usb30"; |
| 350 |
}; |
| 351 |
}; |
| 352 |
|
| 353 |
&rcar_sound { |
| 354 |
pinctrl-0 = <&sound_pins>, <&sound_clk_pins>; |
| 355 |
pinctrl-names = "default"; |
| 356 |
|
| 357 |
/* Single DAI */ |
| 358 |
#sound-dai-cells = <0>; |
| 359 |
|
| 360 |
/* audio_clkout0/1/2/3 */ |
| 361 |
#clock-cells = <1>; |
| 362 |
clock-frequency = <11289600>; |
| 363 |
|
| 364 |
status = "okay"; |
| 365 |
|
| 366 |
rcar_sound,dai { |
| 367 |
dai0 { |
| 368 |
playback = <&ssi0>, <&src0>, <&dvc0>; |
| 369 |
}; |
| 370 |
}; |
| 371 |
}; |
| 372 |
|
| 373 |
&rwdt { |
| 374 |
timeout-sec = <60>; |
| 375 |
status = "okay"; |
| 376 |
}; |
| 377 |
|
| 378 |
&scif2 { |
| 379 |
pinctrl-0 = <&scif2_pins>; |
| 380 |
pinctrl-names = "default"; |
| 381 |
bootph-all; |
| 382 |
|
| 383 |
status = "okay"; |
| 384 |
}; |
| 385 |
|
| 386 |
&sdhi0 { |
| 387 |
pinctrl-0 = <&sdhi0_pins>; |
| 388 |
pinctrl-1 = <&sdhi0_pins_uhs>; |
| 389 |
pinctrl-names = "default", "state_uhs"; |
| 390 |
|
| 391 |
vmmc-supply = <&vcc_sdhi0>; |
| 392 |
vqmmc-supply = <&vccq_sdhi0>; |
| 393 |
cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>; |
| 394 |
bus-width = <4>; |
| 395 |
sd-uhs-sdr50; |
| 396 |
sd-uhs-sdr104; |
| 397 |
status = "okay"; |
| 398 |
}; |
| 399 |
|
| 400 |
&sdhi3 { |
| 401 |
status = "okay"; |
| 402 |
pinctrl-0 = <&sdhi3_pins>; |
| 403 |
pinctrl-names = "default"; |
| 404 |
|
| 405 |
vmmc-supply = <&wlan_en_reg>; |
| 406 |
bus-width = <4>; |
| 407 |
non-removable; |
| 408 |
cap-power-off-card; |
| 409 |
keep-power-in-suspend; |
| 410 |
|
| 411 |
#address-cells = <1>; |
| 412 |
#size-cells = <0>; |
| 413 |
wlcore: wlcore@2 { |
| 414 |
compatible = "ti,wl1837"; |
| 415 |
reg = <2>; |
| 416 |
interrupts-extended = <&gpio1 0 IRQ_TYPE_LEVEL_HIGH>; |
| 417 |
}; |
| 418 |
}; |
| 419 |
|
| 420 |
&usb2_phy0 { |
| 421 |
renesas,no-otg-pins; |
| 422 |
status = "okay"; |
| 423 |
}; |
| 424 |
|
| 425 |
&usb3_peri0 { |
| 426 |
companion = <&xhci0>; |
| 427 |
status = "okay"; |
| 428 |
usb-role-switch; |
| 429 |
|
| 430 |
ports { |
| 431 |
#address-cells = <1>; |
| 432 |
#size-cells = <0>; |
| 433 |
port@0 { |
| 434 |
reg = <0>; |
| 435 |
usb3_hs_ep: endpoint { |
| 436 |
remote-endpoint = <&hs_ep>; |
| 437 |
}; |
| 438 |
}; |
| 439 |
port@1 { |
| 440 |
reg = <1>; |
| 441 |
usb3_role_switch: endpoint { |
| 442 |
remote-endpoint = <&hd3ss3220_out_ep>; |
| 443 |
}; |
| 444 |
}; |
| 445 |
}; |
| 446 |
}; |
| 447 |
|
| 448 |
&xhci0 { |
| 449 |
pinctrl-0 = <&usb30_pins>; |
| 450 |
pinctrl-names = "default"; |
| 451 |
|
| 452 |
status = "okay"; |
| 453 |
}; |