xref: /linux/scripts/dtc/include-prefixes/arm64/renesas/r8a77970-eagle.dts (revision daa36ae015194beebdb66a94e493104a4c29ad81)
1cba59c25SWolfram Sang// SPDX-License-Identifier: GPL-2.0
21a48290eSSergei Shtylyov/*
31a48290eSSergei Shtylyov * Device Tree Source for the Eagle board
41a48290eSSergei Shtylyov *
51a48290eSSergei Shtylyov * Copyright (C) 2016-2017 Renesas Electronics Corp.
61a48290eSSergei Shtylyov * Copyright (C) 2017 Cogent Embedded, Inc.
71a48290eSSergei Shtylyov */
81a48290eSSergei Shtylyov
91a48290eSSergei Shtylyov/dts-v1/;
101a48290eSSergei Shtylyov#include "r8a77970.dtsi"
111a48290eSSergei Shtylyov
121a48290eSSergei Shtylyov/ {
131a48290eSSergei Shtylyov	model = "Renesas Eagle board based on r8a77970";
141a48290eSSergei Shtylyov	compatible = "renesas,eagle", "renesas,r8a77970";
151a48290eSSergei Shtylyov
161a48290eSSergei Shtylyov	aliases {
171a48290eSSergei Shtylyov		serial0 = &scif0;
1838525608SSergei Shtylyov		ethernet0 = &avb;
191a48290eSSergei Shtylyov	};
201a48290eSSergei Shtylyov
211a48290eSSergei Shtylyov	chosen {
22b31b43c9SMagnus Damm		bootargs = "ignore_loglevel rw root=/dev/nfs ip=on";
231a48290eSSergei Shtylyov		stdout-path = "serial0:115200n8";
241a48290eSSergei Shtylyov	};
251a48290eSSergei Shtylyov
2683c5cf19SYoshihiro Kaneko	d3p3: regulator-fixed {
2783c5cf19SYoshihiro Kaneko		compatible = "regulator-fixed";
2883c5cf19SYoshihiro Kaneko		regulator-name = "fixed-3.3V";
2983c5cf19SYoshihiro Kaneko		regulator-min-microvolt = <3300000>;
3083c5cf19SYoshihiro Kaneko		regulator-max-microvolt = <3300000>;
3183c5cf19SYoshihiro Kaneko		regulator-boot-on;
3283c5cf19SYoshihiro Kaneko		regulator-always-on;
331a48290eSSergei Shtylyov	};
343c3d1672SJacopo Mondi
353c3d1672SJacopo Mondi	hdmi-out {
363c3d1672SJacopo Mondi		compatible = "hdmi-connector";
373c3d1672SJacopo Mondi		type = "a";
383c3d1672SJacopo Mondi
393c3d1672SJacopo Mondi		port {
403c3d1672SJacopo Mondi			hdmi_con_out: endpoint {
413c3d1672SJacopo Mondi				remote-endpoint = <&adv7511_out>;
423c3d1672SJacopo Mondi			};
433c3d1672SJacopo Mondi		};
443c3d1672SJacopo Mondi	};
453c3d1672SJacopo Mondi
463c3d1672SJacopo Mondi	lvds-decoder {
473c3d1672SJacopo Mondi		compatible = "thine,thc63lvd1024";
483c3d1672SJacopo Mondi
493c3d1672SJacopo Mondi		vcc-supply = <&d3p3>;
503c3d1672SJacopo Mondi
513c3d1672SJacopo Mondi		ports {
523c3d1672SJacopo Mondi			#address-cells = <1>;
533c3d1672SJacopo Mondi			#size-cells = <0>;
543c3d1672SJacopo Mondi
553c3d1672SJacopo Mondi			port@0 {
563c3d1672SJacopo Mondi				reg = <0>;
573c3d1672SJacopo Mondi				thc63lvd1024_in: endpoint {
583c3d1672SJacopo Mondi					remote-endpoint = <&lvds0_out>;
593c3d1672SJacopo Mondi				};
603c3d1672SJacopo Mondi			};
613c3d1672SJacopo Mondi
623c3d1672SJacopo Mondi			port@2 {
633c3d1672SJacopo Mondi				reg = <2>;
643c3d1672SJacopo Mondi				thc63lvd1024_out: endpoint {
653c3d1672SJacopo Mondi					remote-endpoint = <&adv7511_in>;
663c3d1672SJacopo Mondi				};
673c3d1672SJacopo Mondi			};
683c3d1672SJacopo Mondi		};
693c3d1672SJacopo Mondi	};
7083c5cf19SYoshihiro Kaneko
7183c5cf19SYoshihiro Kaneko	memory@48000000 {
7283c5cf19SYoshihiro Kaneko		device_type = "memory";
7383c5cf19SYoshihiro Kaneko		/* first 128MB is reserved for secure area. */
7483c5cf19SYoshihiro Kaneko		reg = <0x0 0x48000000 0x0 0x38000000>;
7583c5cf19SYoshihiro Kaneko	};
761a48290eSSergei Shtylyov};
771a48290eSSergei Shtylyov
78d0ff035fSGeert Uytterhoeven&avb {
791119cffeSSergei Shtylyov	pinctrl-0 = <&avb_pins>;
801119cffeSSergei Shtylyov	pinctrl-names = "default";
811119cffeSSergei Shtylyov
82d0ff035fSGeert Uytterhoeven	renesas,no-ether-link;
83d0ff035fSGeert Uytterhoeven	phy-handle = <&phy0>;
84e5daa084SJacopo Mondi	phy-mode = "rgmii-id";
85d0ff035fSGeert Uytterhoeven	status = "okay";
86d0ff035fSGeert Uytterhoeven
87d0ff035fSGeert Uytterhoeven	phy0: ethernet-phy@0 {
88d0ff035fSGeert Uytterhoeven		rxc-skew-ps = <1500>;
89d0ff035fSGeert Uytterhoeven		reg = <0>;
9051671b26SSergei Shtylyov		interrupt-parent = <&gpio1>;
9151671b26SSergei Shtylyov		interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
92d0ff035fSGeert Uytterhoeven	};
93d0ff035fSGeert Uytterhoeven};
94d0ff035fSGeert Uytterhoeven
95bb8d2033SSergei Shtylyov&canfd {
96bb8d2033SSergei Shtylyov	pinctrl-0 = <&canfd0_pins>;
97bb8d2033SSergei Shtylyov	pinctrl-names = "default";
98bb8d2033SSergei Shtylyov	status = "okay";
99bb8d2033SSergei Shtylyov
100bb8d2033SSergei Shtylyov	channel0 {
101bb8d2033SSergei Shtylyov		status = "okay";
102bb8d2033SSergei Shtylyov	};
103bb8d2033SSergei Shtylyov};
104bb8d2033SSergei Shtylyov
10583c5cf19SYoshihiro Kaneko&du {
10683c5cf19SYoshihiro Kaneko	status = "okay";
10783c5cf19SYoshihiro Kaneko};
10883c5cf19SYoshihiro Kaneko
1091a48290eSSergei Shtylyov&extal_clk {
1101a48290eSSergei Shtylyov	clock-frequency = <16666666>;
1111a48290eSSergei Shtylyov};
1121a48290eSSergei Shtylyov
1131a48290eSSergei Shtylyov&extalr_clk {
1141a48290eSSergei Shtylyov	clock-frequency = <32768>;
1151a48290eSSergei Shtylyov};
1161a48290eSSergei Shtylyov
1177859eb31SSergei Shtylyov&i2c0 {
1187859eb31SSergei Shtylyov	pinctrl-0 = <&i2c0_pins>;
1197859eb31SSergei Shtylyov	pinctrl-names = "default";
1207859eb31SSergei Shtylyov
1217859eb31SSergei Shtylyov	status = "okay";
1227859eb31SSergei Shtylyov	clock-frequency = <400000>;
1237859eb31SSergei Shtylyov
1247859eb31SSergei Shtylyov	io_expander: gpio@20 {
1257859eb31SSergei Shtylyov		compatible = "onnn,pca9654";
1267859eb31SSergei Shtylyov		reg = <0x20>;
1277859eb31SSergei Shtylyov		gpio-controller;
1287859eb31SSergei Shtylyov		#gpio-cells = <2>;
1297859eb31SSergei Shtylyov	};
1303c3d1672SJacopo Mondi
1313c3d1672SJacopo Mondi	hdmi@39 {
1323c3d1672SJacopo Mondi		compatible = "adi,adv7511w";
1333c3d1672SJacopo Mondi		reg = <0x39>;
1343c3d1672SJacopo Mondi		interrupt-parent = <&gpio1>;
1353c3d1672SJacopo Mondi		interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
1363c3d1672SJacopo Mondi
1373c3d1672SJacopo Mondi		adi,input-depth = <8>;
1383c3d1672SJacopo Mondi		adi,input-colorspace = "rgb";
1393c3d1672SJacopo Mondi		adi,input-clock = "1x";
1403c3d1672SJacopo Mondi
1413c3d1672SJacopo Mondi		ports {
1423c3d1672SJacopo Mondi			#address-cells = <1>;
1433c3d1672SJacopo Mondi			#size-cells = <0>;
1443c3d1672SJacopo Mondi
1453c3d1672SJacopo Mondi			port@0 {
1463c3d1672SJacopo Mondi				reg = <0>;
1473c3d1672SJacopo Mondi				adv7511_in: endpoint {
1483c3d1672SJacopo Mondi					remote-endpoint = <&thc63lvd1024_out>;
1493c3d1672SJacopo Mondi				};
1503c3d1672SJacopo Mondi			};
1513c3d1672SJacopo Mondi
1523c3d1672SJacopo Mondi			port@1 {
1533c3d1672SJacopo Mondi				reg = <1>;
1543c3d1672SJacopo Mondi				adv7511_out: endpoint {
1553c3d1672SJacopo Mondi					remote-endpoint = <&hdmi_con_out>;
1563c3d1672SJacopo Mondi				};
1573c3d1672SJacopo Mondi			};
1583c3d1672SJacopo Mondi		};
1593c3d1672SJacopo Mondi	};
1607859eb31SSergei Shtylyov};
1617859eb31SSergei Shtylyov
16283c5cf19SYoshihiro Kaneko&lvds0 {
16383c5cf19SYoshihiro Kaneko	status = "okay";
16483c5cf19SYoshihiro Kaneko
16583c5cf19SYoshihiro Kaneko	ports {
16683c5cf19SYoshihiro Kaneko		port@1 {
16783c5cf19SYoshihiro Kaneko			lvds0_out: endpoint {
16883c5cf19SYoshihiro Kaneko				remote-endpoint = <&thc63lvd1024_in>;
16983c5cf19SYoshihiro Kaneko			};
17083c5cf19SYoshihiro Kaneko		};
17183c5cf19SYoshihiro Kaneko	};
17283c5cf19SYoshihiro Kaneko};
17383c5cf19SYoshihiro Kaneko
17431bded67SSergei Shtylyov&pfc {
1751119cffeSSergei Shtylyov	avb_pins: avb0 {
1761119cffeSSergei Shtylyov		groups = "avb0_mdio", "avb0_rgmii", "avb0_txcrefclk";
1771119cffeSSergei Shtylyov		function = "avb0";
1781119cffeSSergei Shtylyov	};
1791119cffeSSergei Shtylyov
180bb8d2033SSergei Shtylyov	canfd0_pins: canfd0 {
181bb8d2033SSergei Shtylyov		groups = "canfd0_data_a";
182bb8d2033SSergei Shtylyov		function = "canfd0";
183bb8d2033SSergei Shtylyov	};
184bb8d2033SSergei Shtylyov
1857859eb31SSergei Shtylyov	i2c0_pins: i2c0 {
1867859eb31SSergei Shtylyov		groups = "i2c0";
1877859eb31SSergei Shtylyov		function = "i2c0";
1887859eb31SSergei Shtylyov	};
1897859eb31SSergei Shtylyov
190*daa36ae0SSergei Shtylyov	qspi0_pins: qspi0 {
191*daa36ae0SSergei Shtylyov		groups = "qspi0_ctrl", "qspi0_data4";
192*daa36ae0SSergei Shtylyov		function = "qspi0";
193*daa36ae0SSergei Shtylyov	};
194*daa36ae0SSergei Shtylyov
19531bded67SSergei Shtylyov	scif0_pins: scif0 {
19631bded67SSergei Shtylyov		groups = "scif0_data";
19731bded67SSergei Shtylyov		function = "scif0";
19831bded67SSergei Shtylyov	};
19931bded67SSergei Shtylyov};
20031bded67SSergei Shtylyov
201*daa36ae0SSergei Shtylyov&rpc {
202*daa36ae0SSergei Shtylyov	pinctrl-0 = <&qspi0_pins>;
203*daa36ae0SSergei Shtylyov	pinctrl-names = "default";
204*daa36ae0SSergei Shtylyov
205*daa36ae0SSergei Shtylyov	status = "okay";
206*daa36ae0SSergei Shtylyov
207*daa36ae0SSergei Shtylyov	flash@0 {
208*daa36ae0SSergei Shtylyov		compatible = "spansion,s25fs512s", "jedec,spi-nor";
209*daa36ae0SSergei Shtylyov		reg = <0>;
210*daa36ae0SSergei Shtylyov		spi-max-frequency = <50000000>;
211*daa36ae0SSergei Shtylyov		spi-rx-bus-width = <4>;
212*daa36ae0SSergei Shtylyov
213*daa36ae0SSergei Shtylyov		partitions {
214*daa36ae0SSergei Shtylyov			compatible = "fixed-partitions";
215*daa36ae0SSergei Shtylyov			#address-cells = <1>;
216*daa36ae0SSergei Shtylyov			#size-cells = <1>;
217*daa36ae0SSergei Shtylyov
218*daa36ae0SSergei Shtylyov			bootparam@0 {
219*daa36ae0SSergei Shtylyov				reg = <0x00000000 0x040000>;
220*daa36ae0SSergei Shtylyov				read-only;
221*daa36ae0SSergei Shtylyov			};
222*daa36ae0SSergei Shtylyov			cr7@40000 {
223*daa36ae0SSergei Shtylyov				reg = <0x00040000 0x080000>;
224*daa36ae0SSergei Shtylyov				read-only;
225*daa36ae0SSergei Shtylyov			};
226*daa36ae0SSergei Shtylyov			cert_header_sa3@c0000 {
227*daa36ae0SSergei Shtylyov				reg = <0x000c0000 0x080000>;
228*daa36ae0SSergei Shtylyov				read-only;
229*daa36ae0SSergei Shtylyov			};
230*daa36ae0SSergei Shtylyov			bl2@140000 {
231*daa36ae0SSergei Shtylyov				reg = <0x00140000 0x040000>;
232*daa36ae0SSergei Shtylyov				read-only;
233*daa36ae0SSergei Shtylyov			};
234*daa36ae0SSergei Shtylyov			cert_header_sa6@180000 {
235*daa36ae0SSergei Shtylyov				reg = <0x00180000 0x040000>;
236*daa36ae0SSergei Shtylyov				read-only;
237*daa36ae0SSergei Shtylyov			};
238*daa36ae0SSergei Shtylyov			bl31@1c0000 {
239*daa36ae0SSergei Shtylyov				reg = <0x001c0000 0x460000>;
240*daa36ae0SSergei Shtylyov				read-only;
241*daa36ae0SSergei Shtylyov			};
242*daa36ae0SSergei Shtylyov			uboot@640000 {
243*daa36ae0SSergei Shtylyov				reg = <0x00640000 0x0c0000>;
244*daa36ae0SSergei Shtylyov				read-only;
245*daa36ae0SSergei Shtylyov			};
246*daa36ae0SSergei Shtylyov			uboot-env@700000 {
247*daa36ae0SSergei Shtylyov				reg = <0x00700000 0x040000>;
248*daa36ae0SSergei Shtylyov				read-only;
249*daa36ae0SSergei Shtylyov			};
250*daa36ae0SSergei Shtylyov			dtb@740000 {
251*daa36ae0SSergei Shtylyov				reg = <0x00740000 0x080000>;
252*daa36ae0SSergei Shtylyov			};
253*daa36ae0SSergei Shtylyov			kernel@7c0000 {
254*daa36ae0SSergei Shtylyov				reg = <0x007c0000 0x1400000>;
255*daa36ae0SSergei Shtylyov			};
256*daa36ae0SSergei Shtylyov			user@1bc0000 {
257*daa36ae0SSergei Shtylyov				reg = <0x01bc0000 0x2440000>;
258*daa36ae0SSergei Shtylyov			};
259*daa36ae0SSergei Shtylyov		};
260*daa36ae0SSergei Shtylyov	};
261*daa36ae0SSergei Shtylyov};
262*daa36ae0SSergei Shtylyov
263fd363f54SGeert Uytterhoeven&rwdt {
264fd363f54SGeert Uytterhoeven	timeout-sec = <60>;
265fd363f54SGeert Uytterhoeven	status = "okay";
266fd363f54SGeert Uytterhoeven};
267fd363f54SGeert Uytterhoeven
2681a48290eSSergei Shtylyov&scif0 {
26931bded67SSergei Shtylyov	pinctrl-0 = <&scif0_pins>;
27031bded67SSergei Shtylyov	pinctrl-names = "default";
27131bded67SSergei Shtylyov
2721a48290eSSergei Shtylyov	status = "okay";
2731a48290eSSergei Shtylyov};
274