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