1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Device Tree Source for the iWave-RZ-G1M/N Daughter Board Camera Module
4 *
5 * Copyright (C) 2017 Renesas Electronics Corp.
6 */
7
8/ {
9	aliases {
10		serial1 = &scif1;
11		serial4 = &hscif1;
12	};
13
14	cec_clock: cec-clock {
15		compatible = "fixed-clock";
16		#clock-cells = <0>;
17		clock-frequency = <12000000>;
18	};
19
20	hdmi-out {
21		compatible = "hdmi-connector";
22		type = "a";
23
24		port {
25			hdmi_con_out: endpoint {
26				remote-endpoint = <&adv7511_out>;
27			};
28		};
29	};
30};
31
32&can1 {
33	pinctrl-0 = <&can1_pins>;
34	pinctrl-names = "default";
35
36	status = "okay";
37};
38
39&du {
40	pinctrl-0 = <&du_pins>;
41	pinctrl-names = "default";
42
43	ports {
44		port@0 {
45			endpoint {
46				remote-endpoint = <&adv7511_in>;
47			};
48		};
49	};
50};
51
52&hscif1 {
53	pinctrl-0 = <&hscif1_pins>;
54	pinctrl-names = "default";
55
56	uart-has-rtscts;
57	status = "okay";
58};
59
60&i2c5 {
61	status = "okay";
62	clock-frequency = <400000>;
63
64	hdmi@39 {
65		compatible = "adi,adv7511w";
66		reg = <0x39>;
67		interrupt-parent = <&gpio0>;
68		interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
69		clocks = <&cec_clock>;
70		clock-names = "cec";
71
72		adi,input-depth = <8>;
73		adi,input-colorspace = "rgb";
74		adi,input-clock = "1x";
75
76		ports {
77			#address-cells = <1>;
78			#size-cells = <0>;
79
80			port@0 {
81				reg = <0>;
82				adv7511_in: endpoint {
83					remote-endpoint = <&du_out_rgb>;
84				};
85			};
86
87			port@1 {
88				reg = <1>;
89				adv7511_out: endpoint {
90					remote-endpoint = <&hdmi_con_out>;
91				};
92			};
93		};
94	};
95};
96
97&pfc {
98	can1_pins: can1 {
99		groups = "can1_data_d";
100		function = "can1";
101	};
102
103	du_pins: du {
104		groups = "du_rgb888", "du_sync", "du_oddf", "du_clk_out_0";
105		function = "du";
106	};
107
108	hscif1_pins: hscif1 {
109		groups = "hscif1_data_c", "hscif1_ctrl_c";
110		function = "hscif1";
111	};
112
113	scif1_pins: scif1 {
114		groups = "scif1_data_d";
115		function = "scif1";
116	};
117};
118
119&scif1 {
120	pinctrl-0 = <&scif1_pins>;
121	pinctrl-names = "default";
122
123	status = "okay";
124};
125