1 // SPDX-License-Identifier: GPL-2.0
3 * Device Tree Source for the iWave-RZ/G1H Qseven board development
4 * platform with camera daughter board
6 * Copyright (C) 2020 Renesas Electronics Corp.
10 #include "r8a7742-iwg21d-q7.dts"
13 model = "iWave Systems RZ/G1H Qseven development platform with camera add-on";
14 compatible = "iwave,g21d", "iwave,g21m", "renesas,r8a7742";
24 mclk_cam1: mclk-cam1 {
25 compatible = "fixed-clock";
27 clock-frequency = <26000000>;
30 mclk_cam2: mclk-cam2 {
31 compatible = "fixed-clock";
33 clock-frequency = <26000000>;
36 mclk_cam3: mclk-cam3 {
37 compatible = "fixed-clock";
39 clock-frequency = <26000000>;
42 mclk_cam4: mclk-cam4 {
43 compatible = "fixed-clock";
45 clock-frequency = <26000000>;
50 /* Pins shared with VIN0, keep status disabled */
55 pinctrl-0 = <&can0_pins>;
56 pinctrl-names = "default";
61 pinctrl-0 = <ðer_pins>;
62 pinctrl-names = "default";
65 renesas,ether-link-active-low;
68 phy1: ethernet-phy@1 {
70 micrel,led-mode = <1>;
75 /* Disable hogging GP0_18 to output LOW */
76 /delete-node/ qspi_en;
78 /* Hog GP0_18 to output HIGH to enable VIN2 */
81 gpios = <18 GPIO_ACTIVE_HIGH>;
83 line-name = "VIN2_EN";
88 pinctrl-0 = <&hscif0_pins>;
89 pinctrl-names = "default";
96 compatible = "ovti,ov5640";
98 clocks = <&mclk_cam1>;
107 remote-endpoint = <&vin0ep>;
114 pinctrl-0 = <&i2c1_pins>;
115 pinctrl-names = "default";
118 clock-frequency = <400000>;
121 compatible = "ovti,ov5640";
123 clocks = <&mclk_cam2>;
124 clock-names = "xclk";
132 remote-endpoint = <&vin1ep>;
140 compatible = "ovti,ov5640";
142 clocks = <&mclk_cam3>;
143 clock-names = "xclk";
151 remote-endpoint = <&vin2ep>;
158 pinctrl-0 = <&i2c3_pins>;
159 pinctrl-names = "default";
162 clock-frequency = <400000>;
165 compatible = "ovti,ov5640";
167 clocks = <&mclk_cam4>;
168 clock-names = "xclk";
176 remote-endpoint = <&vin3ep>;
184 groups = "can0_data_d";
189 groups = "eth_mdio", "eth_rmii";
193 hscif0_pins: hscif0 {
194 groups = "hscif0_data", "hscif0_ctrl";
209 groups = "scif0_data";
214 groups = "scif1_data";
218 scifb1_pins: scifb1 {
219 groups = "scifb1_data";
223 vin0_8bit_pins: vin0 {
224 groups = "vin0_data8", "vin0_clk", "vin0_sync";
228 vin1_8bit_pins: vin1 {
229 groups = "vin1_data8_b", "vin1_clk_b", "vin1_sync_b";
234 groups = "vin2_g8", "vin2_clk";
239 groups = "vin3_data8", "vin3_clk", "vin3_sync";
245 /* Pins shared with VIN2, keep status disabled */
250 pinctrl-0 = <&scif0_pins>;
251 pinctrl-names = "default";
256 pinctrl-0 = <&scif1_pins>;
257 pinctrl-names = "default";
262 pinctrl-0 = <&scifb1_pins>;
263 pinctrl-names = "default";
266 rts-gpios = <&gpio4 21 GPIO_ACTIVE_LOW>;
267 cts-gpios = <&gpio4 17 GPIO_ACTIVE_LOW>;
272 * Set SW2 switch on the SOM to 'ON'
273 * Set SW1 switch on camera board to 'OFF' as we are using 8bit mode
276 pinctrl-0 = <&vin0_8bit_pins>;
277 pinctrl-names = "default";
281 remote-endpoint = <&ov5640_0>;
289 /* Set SW1 switch on the SOM to 'ON' */
291 pinctrl-0 = <&vin1_8bit_pins>;
292 pinctrl-names = "default";
296 remote-endpoint = <&ov5640_1>;
305 pinctrl-0 = <&vin2_pins>;
306 pinctrl-names = "default";
310 remote-endpoint = <&ov5640_2>;
320 pinctrl-0 = <&vin3_pins>;
321 pinctrl-names = "default";
325 remote-endpoint = <&ov5640_3>;