xref: /freebsd/sys/contrib/device-tree/src/arm/renesas/iwg20d-q7-dbcm-ca.dtsi (revision a90b9d0159070121c221b966469c3e36d912bf82)
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	reg_1p8v: regulator-1p8v {
32		compatible = "regulator-fixed";
33		regulator-name = "1P8V";
34		regulator-min-microvolt = <1800000>;
35		regulator-max-microvolt = <1800000>;
36		regulator-boot-on;
37		regulator-always-on;
38	};
39};
40
41&can1 {
42	pinctrl-0 = <&can1_pins>;
43	pinctrl-names = "default";
44
45	status = "okay";
46};
47
48&du {
49	pinctrl-0 = <&du_pins>;
50	pinctrl-names = "default";
51
52	ports {
53		port@0 {
54			endpoint {
55				remote-endpoint = <&adv7511_in>;
56			};
57		};
58	};
59};
60
61&hscif1 {
62	pinctrl-0 = <&hscif1_pins>;
63	pinctrl-names = "default";
64
65	uart-has-rtscts;
66	status = "okay";
67};
68
69&i2c5 {
70	status = "okay";
71	clock-frequency = <400000>;
72
73	hdmi@39 {
74		compatible = "adi,adv7511w";
75		reg = <0x39>;
76		interrupt-parent = <&gpio0>;
77		interrupts = <13 IRQ_TYPE_LEVEL_LOW>;
78		clocks = <&cec_clock>;
79		clock-names = "cec";
80
81		avdd-supply = <&reg_1p8v>;
82		dvdd-supply = <&reg_1p8v>;
83		pvdd-supply = <&reg_1p8v>;
84		dvdd-3v-supply = <&reg_3p3v>;
85		bgvdd-supply = <&reg_1p8v>;
86
87		adi,input-depth = <8>;
88		adi,input-colorspace = "rgb";
89		adi,input-clock = "1x";
90
91		ports {
92			#address-cells = <1>;
93			#size-cells = <0>;
94
95			port@0 {
96				reg = <0>;
97				adv7511_in: endpoint {
98					remote-endpoint = <&du_out_rgb>;
99				};
100			};
101
102			port@1 {
103				reg = <1>;
104				adv7511_out: endpoint {
105					remote-endpoint = <&hdmi_con_out>;
106				};
107			};
108		};
109	};
110};
111
112&pfc {
113	can1_pins: can1 {
114		groups = "can1_data_d";
115		function = "can1";
116	};
117
118	du_pins: du {
119		groups = "du_rgb888", "du_sync", "du_oddf", "du_clk_out_0";
120		function = "du";
121	};
122
123	hscif1_pins: hscif1 {
124		groups = "hscif1_data_c", "hscif1_ctrl_c";
125		function = "hscif1";
126	};
127
128	scif1_pins: scif1 {
129		groups = "scif1_data_d";
130		function = "scif1";
131	};
132};
133
134&scif1 {
135	pinctrl-0 = <&scif1_pins>;
136	pinctrl-names = "default";
137
138	status = "okay";
139};
140