xref: /linux/scripts/dtc/include-prefixes/arm64/renesas/r8a77970-eagle.dts (revision bb8d20331f051a920df21aaf263a189e2ede20e6)
11a48290eSSergei Shtylyov/*
21a48290eSSergei Shtylyov * Device Tree Source for the Eagle board
31a48290eSSergei Shtylyov *
41a48290eSSergei Shtylyov * Copyright (C) 2016-2017 Renesas Electronics Corp.
51a48290eSSergei Shtylyov * Copyright (C) 2017 Cogent Embedded, Inc.
61a48290eSSergei Shtylyov *
71a48290eSSergei Shtylyov * This file is licensed under the terms of the GNU General Public License
81a48290eSSergei Shtylyov * version 2.  This program is licensed "as is" without any warranty of any
91a48290eSSergei Shtylyov * kind, whether express or implied.
101a48290eSSergei Shtylyov */
111a48290eSSergei Shtylyov
121a48290eSSergei Shtylyov/dts-v1/;
131a48290eSSergei Shtylyov#include "r8a77970.dtsi"
141a48290eSSergei Shtylyov
151a48290eSSergei Shtylyov/ {
161a48290eSSergei Shtylyov	model = "Renesas Eagle board based on r8a77970";
171a48290eSSergei Shtylyov	compatible = "renesas,eagle", "renesas,r8a77970";
181a48290eSSergei Shtylyov
191a48290eSSergei Shtylyov	aliases {
201a48290eSSergei Shtylyov		serial0 = &scif0;
2138525608SSergei Shtylyov		ethernet0 = &avb;
221a48290eSSergei Shtylyov	};
231a48290eSSergei Shtylyov
241a48290eSSergei Shtylyov	chosen {
2538525608SSergei Shtylyov		bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
261a48290eSSergei Shtylyov		stdout-path = "serial0:115200n8";
271a48290eSSergei Shtylyov	};
281a48290eSSergei Shtylyov
291a48290eSSergei Shtylyov	memory@48000000 {
301a48290eSSergei Shtylyov		device_type = "memory";
311a48290eSSergei Shtylyov		/* first 128MB is reserved for secure area. */
321a48290eSSergei Shtylyov		reg = <0x0 0x48000000 0x0 0x38000000>;
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	d3p3: regulator-fixed {
473c3d1672SJacopo Mondi		compatible = "regulator-fixed";
483c3d1672SJacopo Mondi		regulator-name = "fixed-3.3V";
493c3d1672SJacopo Mondi		regulator-min-microvolt = <3300000>;
503c3d1672SJacopo Mondi		regulator-max-microvolt = <3300000>;
513c3d1672SJacopo Mondi		regulator-boot-on;
523c3d1672SJacopo Mondi		regulator-always-on;
533c3d1672SJacopo Mondi	};
543c3d1672SJacopo Mondi
553c3d1672SJacopo Mondi	lvds-decoder {
563c3d1672SJacopo Mondi		compatible = "thine,thc63lvd1024";
573c3d1672SJacopo Mondi
583c3d1672SJacopo Mondi		vcc-supply = <&d3p3>;
593c3d1672SJacopo Mondi
603c3d1672SJacopo Mondi		ports {
613c3d1672SJacopo Mondi			#address-cells = <1>;
623c3d1672SJacopo Mondi			#size-cells = <0>;
633c3d1672SJacopo Mondi
643c3d1672SJacopo Mondi			port@0 {
653c3d1672SJacopo Mondi				reg = <0>;
663c3d1672SJacopo Mondi				thc63lvd1024_in: endpoint {
673c3d1672SJacopo Mondi					remote-endpoint = <&lvds0_out>;
683c3d1672SJacopo Mondi				};
693c3d1672SJacopo Mondi			};
703c3d1672SJacopo Mondi
713c3d1672SJacopo Mondi			port@2 {
723c3d1672SJacopo Mondi				reg = <2>;
733c3d1672SJacopo Mondi				thc63lvd1024_out: endpoint {
743c3d1672SJacopo Mondi					remote-endpoint = <&adv7511_in>;
753c3d1672SJacopo Mondi				};
763c3d1672SJacopo Mondi			};
773c3d1672SJacopo Mondi		};
783c3d1672SJacopo Mondi	};
791a48290eSSergei Shtylyov};
801a48290eSSergei Shtylyov
81d0ff035fSGeert Uytterhoeven&avb {
821119cffeSSergei Shtylyov	pinctrl-0 = <&avb_pins>;
831119cffeSSergei Shtylyov	pinctrl-names = "default";
841119cffeSSergei Shtylyov
85d0ff035fSGeert Uytterhoeven	renesas,no-ether-link;
86d0ff035fSGeert Uytterhoeven	phy-handle = <&phy0>;
87e5daa084SJacopo Mondi	phy-mode = "rgmii-id";
88d0ff035fSGeert Uytterhoeven	status = "okay";
89d0ff035fSGeert Uytterhoeven
90d0ff035fSGeert Uytterhoeven	phy0: ethernet-phy@0 {
91d0ff035fSGeert Uytterhoeven		rxc-skew-ps = <1500>;
92d0ff035fSGeert Uytterhoeven		reg = <0>;
9351671b26SSergei Shtylyov		interrupt-parent = <&gpio1>;
9451671b26SSergei Shtylyov		interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
95d0ff035fSGeert Uytterhoeven	};
96d0ff035fSGeert Uytterhoeven};
97d0ff035fSGeert Uytterhoeven
98*bb8d2033SSergei Shtylyov&canfd {
99*bb8d2033SSergei Shtylyov	pinctrl-0 = <&canfd0_pins>;
100*bb8d2033SSergei Shtylyov	pinctrl-names = "default";
101*bb8d2033SSergei Shtylyov	status = "okay";
102*bb8d2033SSergei Shtylyov
103*bb8d2033SSergei Shtylyov	channel0 {
104*bb8d2033SSergei Shtylyov		status = "okay";
105*bb8d2033SSergei Shtylyov	};
106*bb8d2033SSergei Shtylyov};
107*bb8d2033SSergei Shtylyov
1081a48290eSSergei Shtylyov&extal_clk {
1091a48290eSSergei Shtylyov	clock-frequency = <16666666>;
1101a48290eSSergei Shtylyov};
1111a48290eSSergei Shtylyov
1121a48290eSSergei Shtylyov&extalr_clk {
1131a48290eSSergei Shtylyov	clock-frequency = <32768>;
1141a48290eSSergei Shtylyov};
1151a48290eSSergei Shtylyov
1167859eb31SSergei Shtylyov&i2c0 {
1177859eb31SSergei Shtylyov	pinctrl-0 = <&i2c0_pins>;
1187859eb31SSergei Shtylyov	pinctrl-names = "default";
1197859eb31SSergei Shtylyov
1207859eb31SSergei Shtylyov	status = "okay";
1217859eb31SSergei Shtylyov	clock-frequency = <400000>;
1227859eb31SSergei Shtylyov
1237859eb31SSergei Shtylyov	io_expander: gpio@20 {
1247859eb31SSergei Shtylyov		compatible = "onnn,pca9654";
1257859eb31SSergei Shtylyov		reg = <0x20>;
1267859eb31SSergei Shtylyov		gpio-controller;
1277859eb31SSergei Shtylyov		#gpio-cells = <2>;
1287859eb31SSergei Shtylyov	};
1293c3d1672SJacopo Mondi
1303c3d1672SJacopo Mondi	hdmi@39 {
1313c3d1672SJacopo Mondi		compatible = "adi,adv7511w";
1323c3d1672SJacopo Mondi		reg = <0x39>;
1333c3d1672SJacopo Mondi		interrupt-parent = <&gpio1>;
1343c3d1672SJacopo Mondi		interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
1353c3d1672SJacopo Mondi
1363c3d1672SJacopo Mondi		adi,input-depth = <8>;
1373c3d1672SJacopo Mondi		adi,input-colorspace = "rgb";
1383c3d1672SJacopo Mondi		adi,input-clock = "1x";
1393c3d1672SJacopo Mondi		adi,input-style = <1>;
1403c3d1672SJacopo Mondi		adi,input-justification = "evenly";
1413c3d1672SJacopo Mondi
1423c3d1672SJacopo Mondi		ports {
1433c3d1672SJacopo Mondi			#address-cells = <1>;
1443c3d1672SJacopo Mondi			#size-cells = <0>;
1453c3d1672SJacopo Mondi
1463c3d1672SJacopo Mondi			port@0 {
1473c3d1672SJacopo Mondi				reg = <0>;
1483c3d1672SJacopo Mondi				adv7511_in: endpoint {
1493c3d1672SJacopo Mondi					remote-endpoint = <&thc63lvd1024_out>;
1503c3d1672SJacopo Mondi				};
1513c3d1672SJacopo Mondi			};
1523c3d1672SJacopo Mondi
1533c3d1672SJacopo Mondi			port@1 {
1543c3d1672SJacopo Mondi				reg = <1>;
1553c3d1672SJacopo Mondi				adv7511_out: endpoint {
1563c3d1672SJacopo Mondi					remote-endpoint = <&hdmi_con_out>;
1573c3d1672SJacopo Mondi				};
1583c3d1672SJacopo Mondi			};
1593c3d1672SJacopo Mondi		};
1603c3d1672SJacopo Mondi	};
1617859eb31SSergei Shtylyov};
1627859eb31SSergei Shtylyov
16331bded67SSergei Shtylyov&pfc {
1641119cffeSSergei Shtylyov	avb_pins: avb0 {
1651119cffeSSergei Shtylyov		groups = "avb0_mdio", "avb0_rgmii", "avb0_txcrefclk";
1661119cffeSSergei Shtylyov		function = "avb0";
1671119cffeSSergei Shtylyov	};
1681119cffeSSergei Shtylyov
169*bb8d2033SSergei Shtylyov	canfd0_pins: canfd0 {
170*bb8d2033SSergei Shtylyov		groups = "canfd0_data_a";
171*bb8d2033SSergei Shtylyov		function = "canfd0";
172*bb8d2033SSergei Shtylyov	};
173*bb8d2033SSergei Shtylyov
1747859eb31SSergei Shtylyov	i2c0_pins: i2c0 {
1757859eb31SSergei Shtylyov		groups = "i2c0";
1767859eb31SSergei Shtylyov		function = "i2c0";
1777859eb31SSergei Shtylyov	};
1787859eb31SSergei Shtylyov
17931bded67SSergei Shtylyov	scif0_pins: scif0 {
18031bded67SSergei Shtylyov		groups = "scif0_data";
18131bded67SSergei Shtylyov		function = "scif0";
18231bded67SSergei Shtylyov	};
18331bded67SSergei Shtylyov};
18431bded67SSergei Shtylyov
185fd363f54SGeert Uytterhoeven&rwdt {
186fd363f54SGeert Uytterhoeven	timeout-sec = <60>;
187fd363f54SGeert Uytterhoeven	status = "okay";
188fd363f54SGeert Uytterhoeven};
189fd363f54SGeert Uytterhoeven
1901a48290eSSergei Shtylyov&scif0 {
19131bded67SSergei Shtylyov	pinctrl-0 = <&scif0_pins>;
19231bded67SSergei Shtylyov	pinctrl-names = "default";
19331bded67SSergei Shtylyov
1941a48290eSSergei Shtylyov	status = "okay";
1951a48290eSSergei Shtylyov};
1963c3d1672SJacopo Mondi
1973c3d1672SJacopo Mondi&du {
1983c3d1672SJacopo Mondi	status = "okay";
1993c3d1672SJacopo Mondi};
2003c3d1672SJacopo Mondi
2013c3d1672SJacopo Mondi&lvds0 {
2023c3d1672SJacopo Mondi	status = "okay";
2033c3d1672SJacopo Mondi
2043c3d1672SJacopo Mondi	ports {
2053c3d1672SJacopo Mondi		port@1 {
2063c3d1672SJacopo Mondi			lvds0_out: endpoint {
2073c3d1672SJacopo Mondi				remote-endpoint = <&thc63lvd1024_in>;
2083c3d1672SJacopo Mondi			};
2093c3d1672SJacopo Mondi		};
2103c3d1672SJacopo Mondi	};
2113c3d1672SJacopo Mondi};
212