xref: /linux/scripts/dtc/include-prefixes/arm64/renesas/r8a774c0-cat874.dts (revision 2fe743c27f064d637df7f989333c153f8d4b0e65)
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
12/ {
13	model = "Silicon Linux RZ/G2E 96board platform (CAT874)";
14	compatible = "si-linux,cat874", "renesas,r8a774c0";
15
16	aliases {
17		serial0 = &scif2;
18	};
19
20	chosen {
21		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
22		stdout-path = "serial0:115200n8";
23	};
24
25	leds {
26		compatible = "gpio-leds";
27
28		led0 {
29			gpios = <&gpio5 19 GPIO_ACTIVE_HIGH>;
30			label = "LED0";
31		};
32
33		led1 {
34			gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
35			label = "LED1";
36		};
37
38		led2 {
39			gpios = <&gpio4 10 GPIO_ACTIVE_HIGH>;
40			label = "LED2";
41		};
42
43		led3 {
44			gpios = <&gpio6 4 GPIO_ACTIVE_HIGH>;
45			label = "LED3";
46		};
47	};
48
49	memory@48000000 {
50		device_type = "memory";
51		/* first 128MB is reserved for secure area. */
52		reg = <0x0 0x48000000 0x0 0x78000000>;
53	};
54
55	vcc_sdhi0: regulator-vcc-sdhi0 {
56		compatible = "regulator-fixed";
57
58		regulator-name = "SDHI0 Vcc";
59		regulator-min-microvolt = <3300000>;
60		regulator-max-microvolt = <3300000>;
61		regulator-always-on;
62		regulator-boot-on;
63	};
64
65	vccq_sdhi0: regulator-vccq-sdhi0 {
66		compatible = "regulator-gpio";
67
68		regulator-name = "SDHI0 VccQ";
69		regulator-min-microvolt = <1800000>;
70		regulator-max-microvolt = <3300000>;
71
72		gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
73		gpios-states = <1>;
74		states = <3300000 1
75			  1800000 0>;
76	};
77};
78
79&extal_clk {
80	clock-frequency = <48000000>;
81};
82
83&i2c1 {
84	pinctrl-0 = <&i2c1_pins>;
85	pinctrl-names = "default";
86
87	status = "okay";
88	clock-frequency = <400000>;
89
90	rtc@32 {
91		compatible = "epson,rx8571";
92		reg = <0x32>;
93	};
94};
95
96&pcie_bus_clk {
97	clock-frequency = <100000000>;
98};
99
100&pciec0 {
101	/* Map all possible DDR as inbound ranges */
102	dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x80000000>;
103};
104
105&pfc {
106	i2c1_pins: i2c1 {
107		groups = "i2c1_b";
108		function = "i2c1";
109	};
110
111	scif2_pins: scif2 {
112		groups = "scif2_data_a";
113		function = "scif2";
114	};
115
116	sdhi0_pins: sd0 {
117		groups = "sdhi0_data4", "sdhi0_ctrl";
118		function = "sdhi0";
119		power-source = <3300>;
120	};
121
122	sdhi0_pins_uhs: sd0_uhs {
123		groups = "sdhi0_data4", "sdhi0_ctrl";
124		function = "sdhi0";
125		power-source = <1800>;
126	};
127};
128
129&rwdt {
130	timeout-sec = <60>;
131	status = "okay";
132};
133
134&scif2 {
135	pinctrl-0 = <&scif2_pins>;
136	pinctrl-names = "default";
137
138	status = "okay";
139};
140
141&sdhi0 {
142	pinctrl-0 = <&sdhi0_pins>;
143	pinctrl-1 = <&sdhi0_pins_uhs>;
144	pinctrl-names = "default", "state_uhs";
145
146	vmmc-supply = <&vcc_sdhi0>;
147	vqmmc-supply = <&vccq_sdhi0>;
148	cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
149	bus-width = <4>;
150	sd-uhs-sdr50;
151	sd-uhs-sdr104;
152	status = "okay";
153};
154