Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp354035pxu; Wed, 25 Nov 2020 05:05:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJyuM4Uz5EU6QFJYODhNIkhflXsIvSeYKfdazkuwOjf+N2nSa5X7gOoxKmytRBJR7w+NCclG X-Received: by 2002:a17:906:660b:: with SMTP id b11mr3157594ejp.190.1606309532279; Wed, 25 Nov 2020 05:05:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606309532; cv=none; d=google.com; s=arc-20160816; b=ktQY32UlLKiMsaEu9f8OB7BZU00/ksSCRro07+Cw/3Ts6oaTyF6N2+0OFx9CXnJANI Sg3pBva5uti/6p/UAUybR+7wKoNAcrJJLx2x7L6zZBTMzHh+Vx62kOAj4el1xYwFJNpv nv3uf2DylVLTvGtTxEBl0VhK+T2eiHymkS3mHNgq7Xn+5zEGGKL8zrsV2lmmGOoUZ9sA vHnAeLHeMjafmtzAmgcc9Ip1gwFCnrbK9Hyij7oPFfVmB5pi2i3qve9j8BEB2hRXQlvG lb0H1xKt9jK2FD9ph7/Fszg8cbQL6VMDlnBF/gddBJ9FOeagaG8cZvCIyJdIUWbfD4G3 wpaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=NtHiA+bKwa8vPkBX+vxMZkUkPISyO6AD14ehvap9hI8=; b=dE+8wxp25UWPcqeQrxjtbV3QcxYekrUXwonbyUfdHK3txTPiEznhmDJ6Yr/CjZyuc1 42vrw2a+RD4KydfG6x1I21CH9vzFZDbJtfgqbGQdQSGYu2EOwwRp/JShklLe6IOtwe63 iC5j0MCn80bfN93cf/po0wqx06+tdRoDEIZD+JKyeMOMfSWPWDRFJ2of45aP3+GbdXqL mfq2tZXfX51ZAJb6uma7GB1qxTMJhturloPmk2UpvSd/8LDuSqhPQknG6DzXRR0W3YKd z4lqFlJIuaBifb/sEm8+mci+J8sdZQf4q6jFvtxv8E1J5Ay5irboSWG0nid1yvOhSxgS 7lwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pj13si1229877ejb.224.2020.11.25.05.05.08; Wed, 25 Nov 2020 05:05:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729560AbgKYNCC (ORCPT + 99 others); Wed, 25 Nov 2020 08:02:02 -0500 Received: from relmlor2.renesas.com ([210.160.252.172]:48489 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729535AbgKYNCB (ORCPT ); Wed, 25 Nov 2020 08:02:01 -0500 X-IronPort-AV: E=Sophos;i="5.78,368,1599490800"; d="scan'208";a="63639443" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie6.idc.renesas.com with ESMTP; 25 Nov 2020 22:02:00 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 05D1A4338022; Wed, 25 Nov 2020 22:01:58 +0900 (JST) From: Lad Prabhakar To: Geert Uytterhoeven , Magnus Damm , Rob Herring , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Biju Das , Prabhakar , Lad Prabhakar Subject: [PATCH v2 2/2] ARM: dts: r8a7742-iwg21d-q7-dbcm-ca: Add support for 8-bit ov7725 sensors Date: Wed, 25 Nov 2020 13:01:48 +0000 Message-Id: <20201125130148.28724-3-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201125130148.28724-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20201125130148.28724-1-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The 8-bit ov7725 sensors can also be connected to the camera daughter board. This patch creates a separate dtsi file for ov7725 sensors and is included in r8a7742-iwg21d-q7-dbcm-ca.dts (which is commented out as by default ov5640 is enabled) Signed-off-by: Lad Prabhakar Reviewed-by: Biju Das --- .../boot/dts/r8a7742-iwg21d-q7-dbcm-ca.dts | 2 + .../dts/r8a7742-iwg21d-q7-dbcm-ov7725.dtsi | 77 +++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 arch/arm/boot/dts/r8a7742-iwg21d-q7-dbcm-ov7725.dtsi diff --git a/arch/arm/boot/dts/r8a7742-iwg21d-q7-dbcm-ca.dts b/arch/arm/boot/dts/r8a7742-iwg21d-q7-dbcm-ca.dts index a632b08a8dbb..6216a6b0f927 100644 --- a/arch/arm/boot/dts/r8a7742-iwg21d-q7-dbcm-ca.dts +++ b/arch/arm/boot/dts/r8a7742-iwg21d-q7-dbcm-ca.dts @@ -29,7 +29,9 @@ #define MCLK_CAM4 mclk_cam4 #define VIN3_EP vin3ep +/* Comment the below according to connected cameras */ #include "r8a7742-iwg21d-q7-dbcm-ov5640.dtsi" +/* #include "r8a7742-iwg21d-q7-dbcm-ov7725.dtsi" */ / { model = "iWave Systems RZ/G1H Qseven development platform with camera add-on"; diff --git a/arch/arm/boot/dts/r8a7742-iwg21d-q7-dbcm-ov7725.dtsi b/arch/arm/boot/dts/r8a7742-iwg21d-q7-dbcm-ov7725.dtsi new file mode 100644 index 000000000000..28b509942702 --- /dev/null +++ b/arch/arm/boot/dts/r8a7742-iwg21d-q7-dbcm-ov7725.dtsi @@ -0,0 +1,77 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * This include file ties VIN interfaces with ov7725 sensors on + * iWave-RZ/G1H Qseven board development platform connected with + * camera daughter board. + * + * Copyright (C) 2020 Renesas Electronics Corp. + */ + +#define VIN0_REMOTE_EP ov7725_0 +#define VIN1_REMOTE_EP ov7725_1 +#define VIN2_REMOTE_EP ov7725_2 +#define VIN3_REMOTE_EP ov7725_3 + +&CAM1_PARENT_I2C { + ov7725@21 { + compatible = "ovti,ov7725"; + reg = <0x21>; + clocks = <&MCLK_CAM1>; + + port { + ov7725_0: endpoint { + bus-width = <8>; + bus-type = <6>; + remote-endpoint = <&VIN0_EP>; + }; + }; + }; +}; + +&CAM2_PARENT_I2C { + ov7725@21 { + compatible = "ovti,ov7725"; + reg = <0x21>; + clocks = <&MCLK_CAM2>; + + port { + ov7725_1: endpoint { + bus-width = <8>; + bus-type = <6>; + remote-endpoint = <&VIN1_EP>; + }; + }; + }; +}; + +&CAM3_PARENT_I2C { + ov7725@21 { + compatible = "ovti,ov7725"; + reg = <0x21>; + clocks = <&MCLK_CAM3>; + + port { + ov7725_2: endpoint { + bus-width = <8>; + bus-type = <6>; + remote-endpoint = <&VIN2_EP>; + }; + }; + }; +}; + +&CAM4_PARENT_I2C { + ov7725@21 { + compatible = "ovti,ov7725"; + reg = <0x21>; + clocks = <&MCLK_CAM4>; + + port { + ov7725_3: endpoint { + bus-width = <8>; + bus-type = <6>; + remote-endpoint = <&VIN3_EP>; + }; + }; + }; +}; -- 2.17.1