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";
95 pinctrl-0 = <&i2c1_pins>;
96 pinctrl-names = "default";
98 /* status set to "okay" when needed by camera configuration below */
99 clock-frequency = <400000>;
103 pinctrl-0 = <&i2c3_pins>;
104 pinctrl-names = "default";
106 /* status set to "okay" when needed by camera configuration below */
107 clock-frequency = <400000>;
112 groups = "can0_data_d";
117 groups = "eth_mdio", "eth_rmii";
121 hscif0_pins: hscif0 {
122 groups = "hscif0_data", "hscif0_ctrl";
137 groups = "scif0_data";
142 groups = "scif1_data";
146 scifb1_pins: scifb1 {
147 groups = "scifb1_data";
151 vin0_8bit_pins: vin0 {
152 groups = "vin0_data8", "vin0_clk", "vin0_sync";
156 vin1_8bit_pins: vin1 {
157 groups = "vin1_data8_b", "vin1_clk_b", "vin1_sync_b";
162 groups = "vin2_g8", "vin2_clk";
167 groups = "vin3_data8", "vin3_clk", "vin3_sync";
173 /* Pins shared with VIN2, keep status disabled */
178 pinctrl-0 = <&scif0_pins>;
179 pinctrl-names = "default";
184 pinctrl-0 = <&scif1_pins>;
185 pinctrl-names = "default";
190 pinctrl-0 = <&scifb1_pins>;
191 pinctrl-names = "default";
194 rts-gpios = <&gpio4 21 GPIO_ACTIVE_LOW>;
195 cts-gpios = <&gpio4 17 GPIO_ACTIVE_LOW>;
199 * Below configuration ties VINx endpoints to ov5640/ov7725 camera endpoints
201 * (un)comment the #include statements to change configuration
204 /* 8bit CMOS Camera 1 (J13) */
205 #define CAM_PARENT_I2C i2c0
206 #define MCLK_CAM mclk_cam1
207 #define CAM_EP cam0ep
208 #define VIN_EP vin0ep
210 #include "r8a7742-iwg21d-q7-dbcm-ov5640-single.dtsi"
211 //#include "r8a7742-iwg21d-q7-dbcm-ov7725-single.dtsi"
216 * Set SW2 switch on the SOM to 'ON'
217 * Set SW1 switch on camera board to 'OFF' as we are using 8bit mode
220 pinctrl-0 = <&vin0_8bit_pins>;
221 pinctrl-names = "default";
225 remote-endpoint = <&cam0ep>;
231 #endif /* CAM_ENABLED */
233 #undef CAM_PARENT_I2C
238 /* 8bit CMOS Camera 2 (J14) */
239 #define CAM_PARENT_I2C i2c1
240 #define MCLK_CAM mclk_cam2
241 #define CAM_EP cam1ep
242 #define VIN_EP vin1ep
244 #include "r8a7742-iwg21d-q7-dbcm-ov5640-single.dtsi"
245 //#include "r8a7742-iwg21d-q7-dbcm-ov7725-single.dtsi"
249 /* Set SW1 switch on the SOM to 'ON' */
251 pinctrl-0 = <&vin1_8bit_pins>;
252 pinctrl-names = "default";
256 remote-endpoint = <&cam1ep>;
263 #endif /* CAM_ENABLED */
265 #undef CAM_PARENT_I2C
270 /* 8bit CMOS Camera 3 (J12) */
271 #define CAM_PARENT_I2C i2c2
272 #define MCLK_CAM mclk_cam3
273 #define CAM_EP cam2ep
274 #define VIN_EP vin2ep
276 #include "r8a7742-iwg21d-q7-dbcm-ov5640-single.dtsi"
277 //#include "r8a7742-iwg21d-q7-dbcm-ov7725-single.dtsi"
282 pinctrl-0 = <&vin2_pins>;
283 pinctrl-names = "default";
287 remote-endpoint = <&cam2ep>;
294 #endif /* CAM_ENABLED */
296 #undef CAM_PARENT_I2C
301 /* 8bit CMOS Camera 4 (J11) */
302 #define CAM_PARENT_I2C i2c3
303 #define MCLK_CAM mclk_cam4
304 #define CAM_EP cam3ep
305 #define VIN_EP vin3ep
307 #include "r8a7742-iwg21d-q7-dbcm-ov5640-single.dtsi"
308 //#include "r8a7742-iwg21d-q7-dbcm-ov7725-single.dtsi"
313 pinctrl-0 = <&vin3_pins>;
314 pinctrl-names = "default";
318 remote-endpoint = <&cam3ep>;
324 #endif /* CAM_ENABLED */
326 #undef CAM_PARENT_I2C