xref: /linux/scripts/dtc/include-prefixes/arm64/renesas/r8a774c0-cat874.dts (revision ad68fa5fe8c12262cf4156b8e0726117aa3be8c8)
1d828266bSBiju Das// SPDX-License-Identifier: GPL-2.0
2d828266bSBiju Das/*
3d828266bSBiju Das * Device Tree Source for the Silicon Linux RZ/G2E 96board platform (CAT874)
4d828266bSBiju Das *
5d828266bSBiju Das * Copyright (C) 2019 Renesas Electronics Corp.
6d828266bSBiju Das */
7d828266bSBiju Das
8d828266bSBiju Das/dts-v1/;
9d828266bSBiju Das#include "r8a774c0.dtsi"
10a102b93eSBiju Das#include <dt-bindings/gpio/gpio.h>
11d828266bSBiju Das
12d828266bSBiju Das/ {
13d828266bSBiju Das	model = "Silicon Linux RZ/G2E 96board platform (CAT874)";
14d828266bSBiju Das	compatible = "si-linux,cat874", "renesas,r8a774c0";
15d828266bSBiju Das
16d828266bSBiju Das	aliases {
17d828266bSBiju Das		serial0 = &scif2;
18d828266bSBiju Das	};
19d828266bSBiju Das
20d828266bSBiju Das	chosen {
21d828266bSBiju Das		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
22d828266bSBiju Das		stdout-path = "serial0:115200n8";
23d828266bSBiju Das	};
24d828266bSBiju Das
25dc0b4394SFabrizio Castro	leds {
26dc0b4394SFabrizio Castro		compatible = "gpio-leds";
27dc0b4394SFabrizio Castro
28dc0b4394SFabrizio Castro		led0 {
29dc0b4394SFabrizio Castro			gpios = <&gpio5 19 GPIO_ACTIVE_HIGH>;
30dc0b4394SFabrizio Castro			label = "LED0";
31dc0b4394SFabrizio Castro		};
32dc0b4394SFabrizio Castro
33dc0b4394SFabrizio Castro		led1 {
34dc0b4394SFabrizio Castro			gpios = <&gpio3 14 GPIO_ACTIVE_HIGH>;
35dc0b4394SFabrizio Castro			label = "LED1";
36dc0b4394SFabrizio Castro		};
37dc0b4394SFabrizio Castro
38dc0b4394SFabrizio Castro		led2 {
39dc0b4394SFabrizio Castro			gpios = <&gpio4 10 GPIO_ACTIVE_HIGH>;
40dc0b4394SFabrizio Castro			label = "LED2";
41dc0b4394SFabrizio Castro		};
42dc0b4394SFabrizio Castro
43dc0b4394SFabrizio Castro		led3 {
44dc0b4394SFabrizio Castro			gpios = <&gpio6 4 GPIO_ACTIVE_HIGH>;
45dc0b4394SFabrizio Castro			label = "LED3";
46dc0b4394SFabrizio Castro		};
47dc0b4394SFabrizio Castro	};
48dc0b4394SFabrizio Castro
49d828266bSBiju Das	memory@48000000 {
50d828266bSBiju Das		device_type = "memory";
51d828266bSBiju Das		/* first 128MB is reserved for secure area. */
52d828266bSBiju Das		reg = <0x0 0x48000000 0x0 0x78000000>;
53d828266bSBiju Das	};
54a102b93eSBiju Das
55a102b93eSBiju Das	vcc_sdhi0: regulator-vcc-sdhi0 {
56a102b93eSBiju Das		compatible = "regulator-fixed";
57a102b93eSBiju Das
58a102b93eSBiju Das		regulator-name = "SDHI0 Vcc";
59a102b93eSBiju Das		regulator-min-microvolt = <3300000>;
60a102b93eSBiju Das		regulator-max-microvolt = <3300000>;
61a102b93eSBiju Das		regulator-always-on;
62a102b93eSBiju Das		regulator-boot-on;
63a102b93eSBiju Das	};
64a102b93eSBiju Das
65a102b93eSBiju Das	vccq_sdhi0: regulator-vccq-sdhi0 {
66a102b93eSBiju Das		compatible = "regulator-gpio";
67a102b93eSBiju Das
68a102b93eSBiju Das		regulator-name = "SDHI0 VccQ";
69a102b93eSBiju Das		regulator-min-microvolt = <1800000>;
70a102b93eSBiju Das		regulator-max-microvolt = <3300000>;
71a102b93eSBiju Das
72a102b93eSBiju Das		gpios = <&gpio3 13 GPIO_ACTIVE_HIGH>;
73a102b93eSBiju Das		gpios-states = <1>;
74a102b93eSBiju Das		states = <3300000 1
75a102b93eSBiju Das			  1800000 0>;
76a102b93eSBiju Das	};
77d828266bSBiju Das};
78d828266bSBiju Das
79*ad68fa5fSFabrizio Castro&ehci0 {
80*ad68fa5fSFabrizio Castro	dr_mode = "host";
81*ad68fa5fSFabrizio Castro	status = "okay";
82*ad68fa5fSFabrizio Castro};
83*ad68fa5fSFabrizio Castro
84d828266bSBiju Das&extal_clk {
85d828266bSBiju Das	clock-frequency = <48000000>;
86d828266bSBiju Das};
87d828266bSBiju Das
8807e72397SBiju Das&i2c1 {
8907e72397SBiju Das	pinctrl-0 = <&i2c1_pins>;
9007e72397SBiju Das	pinctrl-names = "default";
9107e72397SBiju Das
9207e72397SBiju Das	status = "okay";
9307e72397SBiju Das	clock-frequency = <400000>;
9407e72397SBiju Das
9507e72397SBiju Das	rtc@32 {
9607e72397SBiju Das		compatible = "epson,rx8571";
9707e72397SBiju Das		reg = <0x32>;
9807e72397SBiju Das	};
9907e72397SBiju Das};
10007e72397SBiju Das
101*ad68fa5fSFabrizio Castro&ohci0 {
102*ad68fa5fSFabrizio Castro	dr_mode = "host";
103*ad68fa5fSFabrizio Castro	status = "okay";
104*ad68fa5fSFabrizio Castro};
105*ad68fa5fSFabrizio Castro
106aaf6c75cSBiju Das&pcie_bus_clk {
107aaf6c75cSBiju Das	clock-frequency = <100000000>;
108aaf6c75cSBiju Das};
109aaf6c75cSBiju Das
110aaf6c75cSBiju Das&pciec0 {
111aaf6c75cSBiju Das	/* Map all possible DDR as inbound ranges */
112aaf6c75cSBiju Das	dma-ranges = <0x42000000 0 0x40000000 0 0x40000000 0 0x80000000>;
113aaf6c75cSBiju Das};
114aaf6c75cSBiju Das
1154cf1f6ceSBiju Das&pfc {
11607e72397SBiju Das	i2c1_pins: i2c1 {
11707e72397SBiju Das		groups = "i2c1_b";
11807e72397SBiju Das		function = "i2c1";
11907e72397SBiju Das	};
12007e72397SBiju Das
1214cf1f6ceSBiju Das	scif2_pins: scif2 {
1224cf1f6ceSBiju Das		groups = "scif2_data_a";
1234cf1f6ceSBiju Das		function = "scif2";
1244cf1f6ceSBiju Das	};
125a102b93eSBiju Das
126a102b93eSBiju Das	sdhi0_pins: sd0 {
127a102b93eSBiju Das		groups = "sdhi0_data4", "sdhi0_ctrl";
128a102b93eSBiju Das		function = "sdhi0";
129a102b93eSBiju Das		power-source = <3300>;
130a102b93eSBiju Das	};
131a102b93eSBiju Das
132a102b93eSBiju Das	sdhi0_pins_uhs: sd0_uhs {
133a102b93eSBiju Das		groups = "sdhi0_data4", "sdhi0_ctrl";
134a102b93eSBiju Das		function = "sdhi0";
135a102b93eSBiju Das		power-source = <1800>;
136a102b93eSBiju Das	};
1374cf1f6ceSBiju Das};
1384cf1f6ceSBiju Das
13979223ca1SFabrizio Castro&rwdt {
14079223ca1SFabrizio Castro	timeout-sec = <60>;
14179223ca1SFabrizio Castro	status = "okay";
14279223ca1SFabrizio Castro};
14379223ca1SFabrizio Castro
144d828266bSBiju Das&scif2 {
1454cf1f6ceSBiju Das	pinctrl-0 = <&scif2_pins>;
1464cf1f6ceSBiju Das	pinctrl-names = "default";
1474cf1f6ceSBiju Das
148d828266bSBiju Das	status = "okay";
149d828266bSBiju Das};
150a102b93eSBiju Das
151a102b93eSBiju Das&sdhi0 {
152a102b93eSBiju Das	pinctrl-0 = <&sdhi0_pins>;
153a102b93eSBiju Das	pinctrl-1 = <&sdhi0_pins_uhs>;
154a102b93eSBiju Das	pinctrl-names = "default", "state_uhs";
155a102b93eSBiju Das
156a102b93eSBiju Das	vmmc-supply = <&vcc_sdhi0>;
157a102b93eSBiju Das	vqmmc-supply = <&vccq_sdhi0>;
158a102b93eSBiju Das	cd-gpios = <&gpio3 12 GPIO_ACTIVE_LOW>;
159a102b93eSBiju Das	bus-width = <4>;
160a102b93eSBiju Das	sd-uhs-sdr50;
161a102b93eSBiju Das	sd-uhs-sdr104;
162a102b93eSBiju Das	status = "okay";
163a102b93eSBiju Das};
164*ad68fa5fSFabrizio Castro
165*ad68fa5fSFabrizio Castro&usb2_phy0 {
166*ad68fa5fSFabrizio Castro	renesas,no-otg-pins;
167*ad68fa5fSFabrizio Castro	status = "okay";
168*ad68fa5fSFabrizio Castro};
169