xref: /linux/arch/arm/boot/dts/renesas/r7s72100-rskrza1.dts (revision 0ea5c948cb64bab5bc7a5516774eb8536f05aa0d)
1724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2724ba675SRob Herring/*
3724ba675SRob Herring * Device Tree Source for the RZ/A1H RSK board
4724ba675SRob Herring *
5724ba675SRob Herring * Copyright (C) 2016 Renesas Electronics
6724ba675SRob Herring */
7724ba675SRob Herring
8724ba675SRob Herring/dts-v1/;
9724ba675SRob Herring#include "r7s72100.dtsi"
10724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
11724ba675SRob Herring#include <dt-bindings/input/input.h>
12724ba675SRob Herring#include <dt-bindings/pinctrl/r7s72100-pinctrl.h>
13724ba675SRob Herring
14724ba675SRob Herring/ {
15724ba675SRob Herring	model = "RSKRZA1";
16724ba675SRob Herring	compatible = "renesas,rskrza1", "renesas,r7s72100";
17724ba675SRob Herring
18724ba675SRob Herring	aliases {
19724ba675SRob Herring		serial0 = &scif2;
20724ba675SRob Herring	};
21724ba675SRob Herring
22724ba675SRob Herring	chosen {
23724ba675SRob Herring		bootargs = "ignore_loglevel";
24724ba675SRob Herring		stdout-path = "serial0:115200n8";
25724ba675SRob Herring	};
26724ba675SRob Herring
27724ba675SRob Herring	memory@8000000 {
28724ba675SRob Herring		device_type = "memory";
29724ba675SRob Herring		reg = <0x08000000 0x02000000>;
30724ba675SRob Herring	};
31724ba675SRob Herring
32*98537eb7SGeert Uytterhoeven	flash@18000000 {
33*98537eb7SGeert Uytterhoeven		compatible = "mtd-rom";
34*98537eb7SGeert Uytterhoeven		reg = <0x18000000 0x08000000>;
35*98537eb7SGeert Uytterhoeven		clocks = <&mstp9_clks R7S72100_CLK_SPIBSC0>;
36*98537eb7SGeert Uytterhoeven		power-domains = <&cpg_clocks>;
37*98537eb7SGeert Uytterhoeven		bank-width = <4>;
38*98537eb7SGeert Uytterhoeven		device-width = <1>;
39*98537eb7SGeert Uytterhoeven		#address-cells = <1>;
40*98537eb7SGeert Uytterhoeven		#size-cells = <1>;
41*98537eb7SGeert Uytterhoeven
42*98537eb7SGeert Uytterhoeven		partitions {
43*98537eb7SGeert Uytterhoeven			compatible = "fixed-partitions";
44*98537eb7SGeert Uytterhoeven			#address-cells = <1>;
45*98537eb7SGeert Uytterhoeven			#size-cells = <1>;
46*98537eb7SGeert Uytterhoeven
47*98537eb7SGeert Uytterhoeven			partition@0 {
48*98537eb7SGeert Uytterhoeven				label = "uboot";
49*98537eb7SGeert Uytterhoeven				reg = <0x00000000 0x00080000>;
50*98537eb7SGeert Uytterhoeven			};
51*98537eb7SGeert Uytterhoeven
52*98537eb7SGeert Uytterhoeven			partition@80000 {
53*98537eb7SGeert Uytterhoeven				label = "uboot-env";
54*98537eb7SGeert Uytterhoeven				reg = <0x00080000 0x00040000>;
55*98537eb7SGeert Uytterhoeven			};
56*98537eb7SGeert Uytterhoeven
57*98537eb7SGeert Uytterhoeven			partition@c0000 {
58*98537eb7SGeert Uytterhoeven				label = "dt";
59*98537eb7SGeert Uytterhoeven				reg = <0x000c0000 0x00040000>;
60*98537eb7SGeert Uytterhoeven			};
61*98537eb7SGeert Uytterhoeven
62*98537eb7SGeert Uytterhoeven			partition@100000 {
63*98537eb7SGeert Uytterhoeven				label = "kernel";
64*98537eb7SGeert Uytterhoeven				reg = <0x00100000 0x00280000>;
65*98537eb7SGeert Uytterhoeven			};
66*98537eb7SGeert Uytterhoeven
67*98537eb7SGeert Uytterhoeven			partition@400000 {
68*98537eb7SGeert Uytterhoeven				label = "rootfs";
69*98537eb7SGeert Uytterhoeven				reg = <0x00400000 0x01c00000>;
70*98537eb7SGeert Uytterhoeven			};
71*98537eb7SGeert Uytterhoeven		};
72*98537eb7SGeert Uytterhoeven	};
73*98537eb7SGeert Uytterhoeven
74724ba675SRob Herring	keyboard {
75724ba675SRob Herring		compatible = "gpio-keys";
76724ba675SRob Herring
77724ba675SRob Herring		pinctrl-names = "default";
78724ba675SRob Herring		pinctrl-0 = <&keyboard_pins>;
79724ba675SRob Herring
80724ba675SRob Herring		key-1 {
81724ba675SRob Herring			interrupt-parent = <&irqc>;
82724ba675SRob Herring			interrupts = <3 IRQ_TYPE_EDGE_BOTH>;
83724ba675SRob Herring			linux,code = <KEY_1>;
84724ba675SRob Herring			label = "SW1";
85724ba675SRob Herring			wakeup-source;
86724ba675SRob Herring		};
87724ba675SRob Herring
88724ba675SRob Herring		key-2 {
89724ba675SRob Herring			interrupt-parent = <&irqc>;
90724ba675SRob Herring			interrupts = <2 IRQ_TYPE_EDGE_BOTH>;
91724ba675SRob Herring			linux,code = <KEY_2>;
92724ba675SRob Herring			label = "SW2";
93724ba675SRob Herring			wakeup-source;
94724ba675SRob Herring		};
95724ba675SRob Herring
96724ba675SRob Herring		key-3 {
97724ba675SRob Herring			interrupt-parent = <&irqc>;
98724ba675SRob Herring			interrupts = <5 IRQ_TYPE_EDGE_BOTH>;
99724ba675SRob Herring			linux,code = <KEY_3>;
100724ba675SRob Herring			label = "SW3";
101724ba675SRob Herring			wakeup-source;
102724ba675SRob Herring		};
103724ba675SRob Herring	};
104724ba675SRob Herring
105724ba675SRob Herring	leds {
106724ba675SRob Herring		compatible = "gpio-leds";
107724ba675SRob Herring
108724ba675SRob Herring		led0 {
109724ba675SRob Herring			gpios = <&port7 1 GPIO_ACTIVE_LOW>;
110724ba675SRob Herring		};
111724ba675SRob Herring
112724ba675SRob Herring		led1 {
113724ba675SRob Herring			gpios = <&io_expander1 0 GPIO_ACTIVE_LOW>;
114724ba675SRob Herring		};
115724ba675SRob Herring
116724ba675SRob Herring		led2 {
117724ba675SRob Herring			gpios = <&io_expander1 1 GPIO_ACTIVE_LOW>;
118724ba675SRob Herring		};
119724ba675SRob Herring
120724ba675SRob Herring		led3 {
121724ba675SRob Herring			gpios = <&io_expander1 2 GPIO_ACTIVE_LOW>;
122724ba675SRob Herring		};
123724ba675SRob Herring	};
124724ba675SRob Herring};
125724ba675SRob Herring
126724ba675SRob Herring&extal_clk {
127724ba675SRob Herring	clock-frequency = <13330000>;
128724ba675SRob Herring};
129724ba675SRob Herring
130724ba675SRob Herring&i2c3 {
131724ba675SRob Herring	pinctrl-names = "default";
132724ba675SRob Herring	pinctrl-0 = <&i2c3_pins>;
133724ba675SRob Herring	status = "okay";
134724ba675SRob Herring
135724ba675SRob Herring	clock-frequency = <400000>;
136724ba675SRob Herring
137724ba675SRob Herring	io_expander1: gpio@20 {
138724ba675SRob Herring		compatible = "onnn,cat9554";
139724ba675SRob Herring		reg = <0x20>;
140724ba675SRob Herring		gpio-controller;
141724ba675SRob Herring		#gpio-cells = <2>;
142724ba675SRob Herring	};
143724ba675SRob Herring
144724ba675SRob Herring	io_expander2: gpio@21 {
145724ba675SRob Herring		compatible = "onnn,cat9554";
146724ba675SRob Herring		reg = <0x21>;
147724ba675SRob Herring		gpio-controller;
148724ba675SRob Herring		#gpio-cells = <2>;
149724ba675SRob Herring	};
150724ba675SRob Herring
151724ba675SRob Herring	eeprom@50 {
152724ba675SRob Herring		compatible = "renesas,r1ex24016", "atmel,24c16";
153724ba675SRob Herring		reg = <0x50>;
154724ba675SRob Herring		pagesize = <16>;
155724ba675SRob Herring	};
156724ba675SRob Herring};
157724ba675SRob Herring
158*98537eb7SGeert Uytterhoeven&bsc {
159*98537eb7SGeert Uytterhoeven	flash@0 {
160*98537eb7SGeert Uytterhoeven		compatible = "cfi-flash";
161*98537eb7SGeert Uytterhoeven		reg = <0x00000000 0x4000000>;
162*98537eb7SGeert Uytterhoeven		bank-width = <2>;
163*98537eb7SGeert Uytterhoeven
164*98537eb7SGeert Uytterhoeven		partitions {
165*98537eb7SGeert Uytterhoeven			compatible = "fixed-partitions";
166*98537eb7SGeert Uytterhoeven			#address-cells = <1>;
167*98537eb7SGeert Uytterhoeven			#size-cells = <1>;
168*98537eb7SGeert Uytterhoeven
169*98537eb7SGeert Uytterhoeven			partition@0 {
170*98537eb7SGeert Uytterhoeven				label = "apps";
171*98537eb7SGeert Uytterhoeven				reg = <0x00000000 0x01000000>;
172*98537eb7SGeert Uytterhoeven			};
173*98537eb7SGeert Uytterhoeven
174*98537eb7SGeert Uytterhoeven			partition@1000000 {
175*98537eb7SGeert Uytterhoeven				label = "data";
176*98537eb7SGeert Uytterhoeven				reg = <0x01000000 0x03000000>;
177*98537eb7SGeert Uytterhoeven			};
178*98537eb7SGeert Uytterhoeven		};
179*98537eb7SGeert Uytterhoeven	};
180*98537eb7SGeert Uytterhoeven};
181*98537eb7SGeert Uytterhoeven
182724ba675SRob Herring&usb_x1_clk {
183724ba675SRob Herring	clock-frequency = <48000000>;
184724ba675SRob Herring};
185724ba675SRob Herring
186724ba675SRob Herring&rtc_x1_clk {
187724ba675SRob Herring	clock-frequency = <32768>;
188724ba675SRob Herring};
189724ba675SRob Herring
190724ba675SRob Herring&pinctrl {
191724ba675SRob Herring	/* RIIC ch3 (Port Expander, EEPROM (MAC Addr), Audio Codec) */
192724ba675SRob Herring	i2c3_pins: i2c3 {
193724ba675SRob Herring		pinmux = <RZA1_PINMUX(1, 6, 1)>,	/* RIIC3SCL */
194724ba675SRob Herring			 <RZA1_PINMUX(1, 7, 1)>;	/* RIIC3SDA */
195724ba675SRob Herring	};
196724ba675SRob Herring
197724ba675SRob Herring	keyboard_pins: keyboard {
198724ba675SRob Herring		pinmux = <RZA1_PINMUX(1, 9, 3)>,	/* IRQ3 */
199724ba675SRob Herring			 <RZA1_PINMUX(1, 8, 3)>,	/* IRQ2 */
200724ba675SRob Herring			 <RZA1_PINMUX(1, 11, 3)>;	/* IRQ5 */
201724ba675SRob Herring	};
202724ba675SRob Herring
203724ba675SRob Herring	/* Serial Console */
204724ba675SRob Herring	scif2_pins: serial2 {
205724ba675SRob Herring		pinmux = <RZA1_PINMUX(3, 0, 6)>,	/* TxD2 */
206724ba675SRob Herring			 <RZA1_PINMUX(3, 2, 4)>;	/* RxD2 */
207724ba675SRob Herring	};
208724ba675SRob Herring
209724ba675SRob Herring	/* Ethernet */
210724ba675SRob Herring	ether_pins: ether {
211724ba675SRob Herring		/* Ethernet on Ports 1,2,3,5 */
212724ba675SRob Herring		pinmux = <RZA1_PINMUX(1, 14, 4)>,	/* ET_COL   */
213724ba675SRob Herring			 <RZA1_PINMUX(5, 9, 2)>,	/* ET_MDC   */
214724ba675SRob Herring			 <RZA1_PINMUX(3, 3, 2)>,	/* ET_MDIO  */
215724ba675SRob Herring			 <RZA1_PINMUX(3, 4, 2)>,	/* ET_RXCLK */
216724ba675SRob Herring			 <RZA1_PINMUX(3, 5, 2)>,	/* ET_RXER  */
217724ba675SRob Herring			 <RZA1_PINMUX(3, 6, 2)>,	/* ET_RXDV  */
218724ba675SRob Herring			 <RZA1_PINMUX(2, 0, 2)>,	/* ET_TXCLK */
219724ba675SRob Herring			 <RZA1_PINMUX(2, 1, 2)>,	/* ET_TXER  */
220724ba675SRob Herring			 <RZA1_PINMUX(2, 2, 2)>,	/* ET_TXEN  */
221724ba675SRob Herring			 <RZA1_PINMUX(2, 3, 2)>,	/* ET_CRS   */
222724ba675SRob Herring			 <RZA1_PINMUX(2, 4, 2)>,	/* ET_TXD0  */
223724ba675SRob Herring			 <RZA1_PINMUX(2, 5, 2)>,	/* ET_TXD1  */
224724ba675SRob Herring			 <RZA1_PINMUX(2, 6, 2)>,	/* ET_TXD2  */
225724ba675SRob Herring			 <RZA1_PINMUX(2, 7, 2)>,	/* ET_TXD3  */
226724ba675SRob Herring			 <RZA1_PINMUX(2, 8, 2)>,	/* ET_RXD0  */
227724ba675SRob Herring			 <RZA1_PINMUX(2, 9, 2)>,	/* ET_RXD1  */
228724ba675SRob Herring			 <RZA1_PINMUX(2, 10, 2)>,	/* ET_RXD2  */
229724ba675SRob Herring			 <RZA1_PINMUX(2, 11, 2)>;	/* ET_RXD3  */
230724ba675SRob Herring	};
231724ba675SRob Herring
232724ba675SRob Herring	/* SDHI ch1 on CN1 */
233724ba675SRob Herring	sdhi1_pins: sdhi1 {
234724ba675SRob Herring		pinmux = <RZA1_PINMUX(3, 8, 7)>,	/* SD_CD_1 */
235724ba675SRob Herring			 <RZA1_PINMUX(3, 9, 7)>,	/* SD_WP_1 */
236724ba675SRob Herring			 <RZA1_PINMUX(3, 10, 7)>,	/* SD_D1_1 */
237724ba675SRob Herring			 <RZA1_PINMUX(3, 11, 7)>,	/* SD_D0_1 */
238724ba675SRob Herring			 <RZA1_PINMUX(3, 12, 7)>,	/* SD_CLK_1 */
239724ba675SRob Herring			 <RZA1_PINMUX(3, 13, 7)>,	/* SD_CMD_1 */
240724ba675SRob Herring			 <RZA1_PINMUX(3, 14, 7)>,	/* SD_D3_1 */
241724ba675SRob Herring			 <RZA1_PINMUX(3, 15, 7)>;	/* SD_D2_1 */
242724ba675SRob Herring	};
243724ba675SRob Herring};
244724ba675SRob Herring
245724ba675SRob Herring&mtu2 {
246724ba675SRob Herring	status = "okay";
247724ba675SRob Herring};
248724ba675SRob Herring
249724ba675SRob Herring&ether {
250724ba675SRob Herring	pinctrl-names = "default";
251724ba675SRob Herring	pinctrl-0 = <&ether_pins>;
252724ba675SRob Herring	status = "okay";
253724ba675SRob Herring	renesas,no-ether-link;
254724ba675SRob Herring	phy-handle = <&phy0>;
255724ba675SRob Herring	phy0: ethernet-phy@0 {
256724ba675SRob Herring		compatible = "ethernet-phy-idb824.2814",
257724ba675SRob Herring			     "ethernet-phy-ieee802.3-c22";
258724ba675SRob Herring		reg = <0>;
259724ba675SRob Herring	};
260724ba675SRob Herring};
261724ba675SRob Herring
262724ba675SRob Herring&sdhi1 {
263724ba675SRob Herring	pinctrl-names = "default";
264724ba675SRob Herring	pinctrl-0 = <&sdhi1_pins>;
265724ba675SRob Herring	bus-width = <4>;
266724ba675SRob Herring	status = "okay";
267724ba675SRob Herring};
268724ba675SRob Herring
269724ba675SRob Herring&ostm0 {
270724ba675SRob Herring	status = "okay";
271724ba675SRob Herring};
272724ba675SRob Herring
273724ba675SRob Herring&ostm1 {
274724ba675SRob Herring	status = "okay";
275724ba675SRob Herring};
276724ba675SRob Herring
277724ba675SRob Herring&rtc {
278724ba675SRob Herring	status = "okay";
279724ba675SRob Herring};
280724ba675SRob Herring
281724ba675SRob Herring&scif2 {
282724ba675SRob Herring	pinctrl-names = "default";
283724ba675SRob Herring	pinctrl-0 = <&scif2_pins>;
284724ba675SRob Herring	status = "okay";
285724ba675SRob Herring};
286