Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp201702pxu; Tue, 6 Oct 2020 04:30:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDHsvm4JShHLK/Gu5mbgUET1Dx9pnaYmAwENUM8Jy/DbYwV+dbaZbfViawjkxFS4JiAdVI X-Received: by 2002:a50:9ec6:: with SMTP id a64mr4802919edf.382.1601983844293; Tue, 06 Oct 2020 04:30:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601983844; cv=none; d=google.com; s=arc-20160816; b=fQZFbdmshk11MNeJnpVXfY1ToDDzlLoTu4W6f0UIWQRubl5Ddy0vs867eQgh05MNcy ZFrWJ2oE0urHsEJHOllPaoCTScNEwGiWxhdyq/WlX3M5CahWwGKT9HkccDd4NE81qt/f ZJK2d4knP+6O5vQl5VbzlUHoD5yVm57mESNwMRvkGst5xLcMhtKehFsXfiPppxfC0j92 v4f3+eoJIFes+NBivu1h0yQ4s9I2ivYzIrZoA3lhgeklCyl5nRKsopFACn8s+PsA6Oi3 HrlqWrd2dOQzuiubL8AAeR9UnpNfTZ9shwLFGIsmET2MoUcKuBcmGfAv0SZkGgRYuaQL TeGw== 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=+bpcn8aE6ycSe5t/3ai4Qjz1hUndARNszyaAb4Ss4Bg=; b=o5r2cFM8eYPdfhbaMjL/OQEIhN/r5z1Axhp1UDP0XzoHYBwxukyLTGt0UDO4G8W6pi gC21Ij3J2rnGnq0JbCXehVlX5jfgJC8EClGEoBrWiY/x28ZKtE/8gk1V5bGImywlSC4b IMQcRFll5vKf+RlZcAIBj8N3ws8OK+jO0DpgtaAOiu4jWqXaFKUqj2tbiXi2KQyFHFqf 1h9hYqeZSIzbvPuDEVm/rOZlBQj5AubbT79fXZU8V8Zy0S6zrjBDf/W4xR7Oe7nl8v2V DoEY5opK6Go2YVuny+1Af1VpRf5fGT8JxUIx+hMxF0xAD50TbCQIJunzK+YhHL8N/+o7 gpug== 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 a42si2717330edf.535.2020.10.06.04.30.21; Tue, 06 Oct 2020 04:30:44 -0700 (PDT) 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 S1726165AbgJFL1S (ORCPT + 99 others); Tue, 6 Oct 2020 07:27:18 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:39282 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725891AbgJFL1P (ORCPT ); Tue, 6 Oct 2020 07:27:15 -0400 X-IronPort-AV: E=Sophos;i="5.77,342,1596466800"; d="scan'208";a="59050097" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 06 Oct 2020 20:27:14 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 5F94942CD75D; Tue, 6 Oct 2020 20:27:12 +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, Prabhakar , Biju Das , Lad Prabhakar Subject: [PATCH 1/4] arm64: dts: renesas: aistarvision-mipi-adapter-2.1: Add parent macro for each sensor Date: Tue, 6 Oct 2020 12:26:58 +0100 Message-Id: <20201006112701.11800-2-prabhakar.mahadev-lad.rj@bp.renesas.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201006112701.11800-1-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <20201006112701.11800-1-prabhakar.mahadev-lad.rj@bp.renesas.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For HiHope RZ/G2H the OV5645 sensor is populated on i2c2 whereas the imx219 sensor is populated on i2c3 so add support for handling such cases by adding a parent macro for each sensor. Also update r8a774c0-ek874-mipi-2.1.dts to incorporate the changes. Signed-off-by: Lad Prabhakar Reviewed-by: Biju Das --- .../arm64/boot/dts/renesas/aistarvision-mipi-adapter-2.1.dtsi | 4 +++- arch/arm64/boot/dts/renesas/r8a774c0-ek874-mipi-2.1.dts | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/aistarvision-mipi-adapter-2.1.dtsi b/arch/arm64/boot/dts/renesas/aistarvision-mipi-adapter-2.1.dtsi index dac6ff49020f..7ce986f0a06f 100644 --- a/arch/arm64/boot/dts/renesas/aistarvision-mipi-adapter-2.1.dtsi +++ b/arch/arm64/boot/dts/renesas/aistarvision-mipi-adapter-2.1.dtsi @@ -61,7 +61,7 @@ }; }; -&MIPI_PARENT_I2C { +&MIPI_OV5645_PARENT_I2C { ov5645: ov5645@3c { compatible = "ovti,ov5645"; reg = <0x3c>; @@ -77,7 +77,9 @@ }; }; }; +}; +&MIPI_IMX219_PARENT_I2C { imx219: imx219@10 { compatible = "sony,imx219"; reg = <0x10>; diff --git a/arch/arm64/boot/dts/renesas/r8a774c0-ek874-mipi-2.1.dts b/arch/arm64/boot/dts/renesas/r8a774c0-ek874-mipi-2.1.dts index f0829e905506..e7b4a929bb17 100644 --- a/arch/arm64/boot/dts/renesas/r8a774c0-ek874-mipi-2.1.dts +++ b/arch/arm64/boot/dts/renesas/r8a774c0-ek874-mipi-2.1.dts @@ -8,7 +8,8 @@ /dts-v1/; #include "r8a774c0-ek874.dts" -#define MIPI_PARENT_I2C i2c3 +#define MIPI_OV5645_PARENT_I2C i2c3 +#define MIPI_IMX219_PARENT_I2C i2c3 #include "aistarvision-mipi-adapter-2.1.dtsi" / { -- 2.17.1