xref: /linux/scripts/dtc/include-prefixes/arm64/renesas/r8a77970-eagle.dts (revision 83c5cf19a3f2d249e180a7b45a2559dd6b514f54)
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
26*83c5cf19SYoshihiro Kaneko	d3p3: regulator-fixed {
27*83c5cf19SYoshihiro Kaneko		compatible = "regulator-fixed";
28*83c5cf19SYoshihiro Kaneko		regulator-name = "fixed-3.3V";
29*83c5cf19SYoshihiro Kaneko		regulator-min-microvolt = <3300000>;
30*83c5cf19SYoshihiro Kaneko		regulator-max-microvolt = <3300000>;
31*83c5cf19SYoshihiro Kaneko		regulator-boot-on;
32*83c5cf19SYoshihiro 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	};
70*83c5cf19SYoshihiro Kaneko
71*83c5cf19SYoshihiro Kaneko	memory@48000000 {
72*83c5cf19SYoshihiro Kaneko		device_type = "memory";
73*83c5cf19SYoshihiro Kaneko		/* first 128MB is reserved for secure area. */
74*83c5cf19SYoshihiro Kaneko		reg = <0x0 0x48000000 0x0 0x38000000>;
75*83c5cf19SYoshihiro 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
105*83c5cf19SYoshihiro Kaneko&du {
106*83c5cf19SYoshihiro Kaneko	status = "okay";
107*83c5cf19SYoshihiro Kaneko};
108*83c5cf19SYoshihiro 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		adi,input-style = <1>;
1413c3d1672SJacopo Mondi		adi,input-justification = "evenly";
1423c3d1672SJacopo Mondi
1433c3d1672SJacopo Mondi		ports {
1443c3d1672SJacopo Mondi			#address-cells = <1>;
1453c3d1672SJacopo Mondi			#size-cells = <0>;
1463c3d1672SJacopo Mondi
1473c3d1672SJacopo Mondi			port@0 {
1483c3d1672SJacopo Mondi				reg = <0>;
1493c3d1672SJacopo Mondi				adv7511_in: endpoint {
1503c3d1672SJacopo Mondi					remote-endpoint = <&thc63lvd1024_out>;
1513c3d1672SJacopo Mondi				};
1523c3d1672SJacopo Mondi			};
1533c3d1672SJacopo Mondi
1543c3d1672SJacopo Mondi			port@1 {
1553c3d1672SJacopo Mondi				reg = <1>;
1563c3d1672SJacopo Mondi				adv7511_out: endpoint {
1573c3d1672SJacopo Mondi					remote-endpoint = <&hdmi_con_out>;
1583c3d1672SJacopo Mondi				};
1593c3d1672SJacopo Mondi			};
1603c3d1672SJacopo Mondi		};
1613c3d1672SJacopo Mondi	};
1627859eb31SSergei Shtylyov};
1637859eb31SSergei Shtylyov
164*83c5cf19SYoshihiro Kaneko&lvds0 {
165*83c5cf19SYoshihiro Kaneko	status = "okay";
166*83c5cf19SYoshihiro Kaneko
167*83c5cf19SYoshihiro Kaneko	ports {
168*83c5cf19SYoshihiro Kaneko		port@1 {
169*83c5cf19SYoshihiro Kaneko			lvds0_out: endpoint {
170*83c5cf19SYoshihiro Kaneko				remote-endpoint = <&thc63lvd1024_in>;
171*83c5cf19SYoshihiro Kaneko			};
172*83c5cf19SYoshihiro Kaneko		};
173*83c5cf19SYoshihiro Kaneko	};
174*83c5cf19SYoshihiro Kaneko};
175*83c5cf19SYoshihiro Kaneko
17631bded67SSergei Shtylyov&pfc {
1771119cffeSSergei Shtylyov	avb_pins: avb0 {
1781119cffeSSergei Shtylyov		groups = "avb0_mdio", "avb0_rgmii", "avb0_txcrefclk";
1791119cffeSSergei Shtylyov		function = "avb0";
1801119cffeSSergei Shtylyov	};
1811119cffeSSergei Shtylyov
182bb8d2033SSergei Shtylyov	canfd0_pins: canfd0 {
183bb8d2033SSergei Shtylyov		groups = "canfd0_data_a";
184bb8d2033SSergei Shtylyov		function = "canfd0";
185bb8d2033SSergei Shtylyov	};
186bb8d2033SSergei Shtylyov
1877859eb31SSergei Shtylyov	i2c0_pins: i2c0 {
1887859eb31SSergei Shtylyov		groups = "i2c0";
1897859eb31SSergei Shtylyov		function = "i2c0";
1907859eb31SSergei Shtylyov	};
1917859eb31SSergei Shtylyov
19231bded67SSergei Shtylyov	scif0_pins: scif0 {
19331bded67SSergei Shtylyov		groups = "scif0_data";
19431bded67SSergei Shtylyov		function = "scif0";
19531bded67SSergei Shtylyov	};
19631bded67SSergei Shtylyov};
19731bded67SSergei Shtylyov
198fd363f54SGeert Uytterhoeven&rwdt {
199fd363f54SGeert Uytterhoeven	timeout-sec = <60>;
200fd363f54SGeert Uytterhoeven	status = "okay";
201fd363f54SGeert Uytterhoeven};
202fd363f54SGeert Uytterhoeven
2031a48290eSSergei Shtylyov&scif0 {
20431bded67SSergei Shtylyov	pinctrl-0 = <&scif0_pins>;
20531bded67SSergei Shtylyov	pinctrl-names = "default";
20631bded67SSergei Shtylyov
2071a48290eSSergei Shtylyov	status = "okay";
2081a48290eSSergei Shtylyov};
209