Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: dts: r8a7742-iwg21d-q7-dbcm-ca: Add support for 8-bit ov7725 sensors

The 8-bit ov7725 sensors can also be connected to the camera daughter
board.

This patch creates a separate dtsi file to describe an ov7725 sensor,
and includes it multiple times in r8a7742-iwg21d-q7-dbcm-ca.dts. The
user can (un)comment #include statements depending on the cameras
connected.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
[geert: describe a single camera in the .dtsi, include multiple times]
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://lore.kernel.org/r/20210122113424.2833127-3-geert+renesas@glider.be

authored by

Lad Prabhakar and committed by
Geert Uytterhoeven
22650045 97ed7c0a

+34 -1
+5 -1
arch/arm/boot/dts/r8a7742-iwg21d-q7-dbcm-ca.dts
··· 198 198 /* 199 199 * Below configuration ties VINx endpoints to ov5640/ov7725 camera endpoints 200 200 * 201 - * Uncomment the #include statements to change configuration 201 + * (un)comment the #include statements to change configuration 202 202 */ 203 203 204 204 /* 8bit CMOS Camera 1 (J13) */ ··· 208 208 #define VIN_EP vin0ep 209 209 #undef CAM_ENABLED 210 210 #include "r8a7742-iwg21d-q7-dbcm-ov5640-single.dtsi" 211 + //#include "r8a7742-iwg21d-q7-dbcm-ov7725-single.dtsi" 211 212 212 213 #ifdef CAM_ENABLED 213 214 &vin0 { ··· 242 241 #define VIN_EP vin1ep 243 242 #undef CAM_ENABLED 244 243 #include "r8a7742-iwg21d-q7-dbcm-ov5640-single.dtsi" 244 + //#include "r8a7742-iwg21d-q7-dbcm-ov7725-single.dtsi" 245 245 246 246 #ifdef CAM_ENABLED 247 247 &vin1 { ··· 274 272 #define VIN_EP vin2ep 275 273 #undef CAM_ENABLED 276 274 #include "r8a7742-iwg21d-q7-dbcm-ov5640-single.dtsi" 275 + //#include "r8a7742-iwg21d-q7-dbcm-ov7725-single.dtsi" 277 276 278 277 #ifdef CAM_ENABLED 279 278 &vin2 { ··· 305 302 #define VIN_EP vin3ep 306 303 #undef CAM_ENABLED 307 304 #include "r8a7742-iwg21d-q7-dbcm-ov5640-single.dtsi" 305 + //#include "r8a7742-iwg21d-q7-dbcm-ov7725-single.dtsi" 308 306 309 307 #ifdef CAM_ENABLED 310 308 &vin3 {
+29
arch/arm/boot/dts/r8a7742-iwg21d-q7-dbcm-ov7725-single.dtsi
··· 1 + // SPDX-License-Identifier: GPL-2.0 2 + /* 3 + * This include file ties a VIN interface with a single ov7725 sensor on 4 + * the iWave-RZ/G1H Qseven board development platform connected with the 5 + * camera daughter board. 6 + * 7 + * Copyright (C) 2020 Renesas Electronics Corp. 8 + */ 9 + 10 + #define CAM_ENABLED 1 11 + 12 + &CAM_PARENT_I2C { 13 + status = "okay"; 14 + 15 + ov7725@21 { 16 + compatible = "ovti,ov7725"; 17 + reg = <0x21>; 18 + clocks = <&MCLK_CAM>; 19 + status = "okay"; 20 + 21 + port { 22 + CAM_EP: endpoint { 23 + bus-width = <8>; 24 + bus-type = <6>; 25 + remote-endpoint = <&VIN_EP>; 26 + }; 27 + }; 28 + }; 29 + };