1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device Tree Source for the iWave-RZG1E SODIMM carrier board + HDMI daughter
4 * board
5 *
6 * Copyright (C) 2017 Renesas Electronics Corp.
7 */
8
9#include "r8a7745-iwg22d-sodimm.dts"
10
11/ {
12	model = "iWave RainboW-G22D-SODIMM RZ/G1E based board with HDMI add-on";
13	compatible = "iwave,g22d", "iwave,g22m", "renesas,r8a7745";
14
15	aliases {
16		serial0 = &scif1;
17		serial4 = &scif5;
18		serial6 = &hscif2;
19	};
20
21	cec_clock: cec-clock {
22		compatible = "fixed-clock";
23		#clock-cells = <0>;
24		clock-frequency = <12000000>;
25	};
26
27	hdmi-out {
28		compatible = "hdmi-connector";
29		type = "a";
30
31		port {
32			hdmi_con: endpoint {
33				remote-endpoint = <&adv7511_out>;
34			};
35		};
36	};
37};
38
39&du {
40	pinctrl-0 = <&du0_pins>;
41	pinctrl-names = "default";
42
43	status = "okay";
44
45	ports {
46		port@0 {
47			endpoint {
48				remote-endpoint = <&adv7511_in>;
49			};
50		};
51	};
52};
53
54&can1 {
55	pinctrl-0 = <&can1_pins>;
56	pinctrl-names = "default";
57
58	status = "okay";
59};
60
61&hscif2 {
62	pinctrl-0 = <&hscif2_pins>;
63	pinctrl-names = "default";
64
65	status = "okay";
66};
67
68&i2c1 {
69	pinctrl-0 = <&i2c1_pins>;
70	pinctrl-names = "default";
71
72	status = "okay";
73	clock-frequency = <400000>;
74
75	hdmi@39 {
76		compatible = "adi,adv7511w";
77		reg = <0x39>;
78		interrupt-parent = <&gpio1>;
79		interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
80		clocks = <&cec_clock>;
81		clock-names = "cec";
82		pd-gpios = <&gpio2 24 GPIO_ACTIVE_HIGH>;
83
84		adi,input-depth = <8>;
85		adi,input-colorspace = "rgb";
86		adi,input-clock = "1x";
87
88		ports {
89			#address-cells = <1>;
90			#size-cells = <0>;
91
92			port@0 {
93				reg = <0>;
94				adv7511_in: endpoint {
95					remote-endpoint = <&du_out_rgb0>;
96				};
97			};
98
99			port@1 {
100				reg = <1>;
101				adv7511_out: endpoint {
102					remote-endpoint = <&hdmi_con>;
103				};
104			};
105		};
106	};
107};
108
109&lcd_panel {
110	status = "disabled";
111
112	/delete-node/ port;
113};
114
115&pfc {
116	can1_pins: can1 {
117		groups = "can1_data_b";
118		function = "can1";
119	};
120
121	du0_pins: du0 {
122		groups = "du0_rgb888", "du0_sync", "du0_disp", "du0_clk0_out";
123		function = "du0";
124	};
125
126	hscif2_pins: hscif2 {
127		groups = "hscif2_data";
128		function = "hscif2";
129	};
130
131	i2c1_pins: i2c1 {
132		groups = "i2c1_d";
133		function = "i2c1";
134	};
135
136	scif1_pins: scif1 {
137		groups = "scif1_data";
138		function = "scif1";
139	};
140
141	scif5_pins: scif5 {
142		groups = "scif5_data_d";
143		function = "scif5";
144	};
145};
146
147&scif1 {
148	pinctrl-0 = <&scif1_pins>;
149	pinctrl-names = "default";
150
151	status = "okay";
152};
153
154&scif5 {
155	pinctrl-0 = <&scif5_pins>;
156	pinctrl-names = "default";
157
158	status = "okay";
159};
160