Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1485625pxu; Tue, 24 Nov 2020 01:10:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJx6NV0ckVPrr1g7xUY8PWJo8XlEu7V52b9E3kxnkQtD/XM7xO7ztHEzVlD2PrYK4+5uyqzZ X-Received: by 2002:a17:906:d9d0:: with SMTP id qk16mr3170907ejb.420.1606209000822; Tue, 24 Nov 2020 01:10:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606209000; cv=none; d=google.com; s=arc-20160816; b=M6tHcxNRMVNX7OyMuTSBYKlR8dUdcixy1CCj5roWJRcryyWLZP4Cw7Wg6eadQ8mUU/ 2JUbbTCxEVKTuRBpz+BH95eVYoA01+jhZ3JZZE6OGbCbmOkojumoySGHTtIrmpAyUl6a bbpTU2GCNdELNXxbybnWQNWhvCDWegBHBHGONfLmlcKgePit6c3ICNLlz9iKgMvQ7nJP t6LO1Y/Tma/je4v2pL7POf3K6fO3YAfOdxVGVoiMTniOOKeRkLvmhxQtinwIu7jPAXDo Hdw/9c62E/CWAvyaItedIaHxftqEmgIBLKkgBXwlWxu5D0pJlFJKL71bORvPP+TpCVsD zMRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=HDln+MF4Og4pxTzlbRB1WWrgmraT8A0lS+6Tk698BA0=; b=oq8E0s2oJ2NiCDfFH8VcJPv4eagge+IO/+L8FWzDhEDXtGwi8YqqxYLCHfcz9/3nnk 7BtsLRmbKybf5dMONeRCACx8aSn94+v5kRam4Go037cj2jzIbR6osNf6n5ZAo+0PKap/ 7YTALo66CRdKd3NblRsYnPzoPeRzuGxDqWNLc1DrEwLFeps04qnff2A1d0iYZBY1BLQ/ IS9KM2PmeBvtkVYpLOqrg7LAcvExsam08bO2z0MZq3rn/iDyE9Di7m7qGn7HDBYapHlH C13V3MLO5sOllZyE1XkyqHLk9DZp937GcK3cNrfgtdneloZZm6a8b8dnRtS3bxPcnG62 ZnAg== 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 a3si9741068ejd.407.2020.11.24.01.09.38; Tue, 24 Nov 2020 01:10:00 -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 S1731051AbgKXJEc (ORCPT + 99 others); Tue, 24 Nov 2020 04:04:32 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:39112 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731023AbgKXJE0 (ORCPT ); Tue, 24 Nov 2020 04:04:26 -0500 Received: by mail-oi1-f196.google.com with SMTP id f11so23034876oij.6; Tue, 24 Nov 2020 01:04:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HDln+MF4Og4pxTzlbRB1WWrgmraT8A0lS+6Tk698BA0=; b=MRc48UHgRKOdZdt0JyOtCDmirIpAyLFyjbdDIx2tbLdf8bPJEVsgKpa2ZfjtyengmI 7lBA5GWsAqBAiEMOTItMs5Uw8FOAASIo3RzTnCDWTT4udSdgzLYQlOxtW+FNh6dGiEIx 18D/hEcO6wS05MofZ1i3n6TG6pheLCyMNb3F9o75f55HwYMkLrWZre9KXoogQPdSv4qE AtqwPARU8x8sWU31nB8u1t6zJpZ7Bb3hZJ6LF7T0jq+ISdiPfsPCcOFtyG0L++jzX+0G 2UVbIpC/0gf+Kvy045EQCaqixq4HMYdWKIiFAR1eKVuQKFGYK08h26piYi4q41SsWmYg 6gqw== X-Gm-Message-State: AOAM531k/OqQnSVuVkBZCU1FPqMAkNklDPiJUUumQLdELYxHz0qYOW39 G5JskSqKdfRI6xDtFdoRSIuVd78uOHoyqmwSJ5U= X-Received: by 2002:aca:1c0f:: with SMTP id c15mr2169564oic.54.1606208665308; Tue, 24 Nov 2020 01:04:25 -0800 (PST) MIME-Version: 1.0 References: <20201120151343.24175-1-prabhakar.mahadev-lad.rj@bp.renesas.com> In-Reply-To: <20201120151343.24175-1-prabhakar.mahadev-lad.rj@bp.renesas.com> From: Geert Uytterhoeven Date: Tue, 24 Nov 2020 10:04:13 +0100 Message-ID: Subject: Re: [PATCH] ARM: dts: r8a7742-iwg21d-q7-dbcm-ca: Add OV7725 nodes To: Lad Prabhakar Cc: Magnus Damm , Rob Herring , Linux-Renesas , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux Kernel Mailing List , Biju Das , Prabhakar Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Prabhakar, On Fri, Nov 20, 2020 at 4:13 PM Lad Prabhakar wrote: > Add the ov7725 endpoint nodes to the camera daughter board. The ov7725 > sensors can be populated on I2C{0,1,2,3} buses. > > By default the VIN{0,1,2,3} are tied to OV5640{0,1,2,3} endpoints > respectively in the camera DB dts hence the remote-endpoint property in > OV7725{0,1,2,3} endpoints is commented out. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Biju Das Thanks for your patch! The camera definitions look mostly OK to me. IIUIC, these are 4 plug-in cameras, that can be used instead of the (currently described) 4 other OV5640-based plug-in cameras? In addition, the user can mix and match them, in the 4 available slots (J11-J14), which would require editing the DTS? Wouldn't it be easier to have separate DTS files for the OV7725 and OV5640 cameras, and #include them from r8a7742-iwg21d-q7-dbcm-ca.dts? /* 8bit CMOS Camera 1 (J13) */ #define MCLK_CAM &mclk_cam1 #define ... /* Comment the below according to connected cameras */ #include "ov5640.dts" //#include "ov7725.dts" #undef MCLK_CAM #undef ... [...] > --- a/arch/arm/boot/dts/r8a7742-iwg21d-q7-dbcm-ca.dts > +++ b/arch/arm/boot/dts/r8a7742-iwg21d-q7-dbcm-ca.dts > @@ -152,6 +198,30 @@ > }; > }; > }; > + > + ov7725@21 { > + status = "disabled"; This one is disabled, the three others aren't? > + compatible = "ovti,ov7725"; > + reg = <0x21>; > + clocks = <&mclk_cam3>; > + > + port { > + ov7725_2: endpoint { > + bus-width = <8>; > + bus-type = <6>; > + /* > + * uncomment remote-endpoint property to > + * tie ov7725_2 to vin2ep also make > + * sure to comment/remove remote-endpoint > + * property from ov5640_2 endpoint and > + * replace remote-endpoint property in > + * vin2ep node with > + * remote-endpoint = <&ov7725_2>; > + */ > + /* remote-endpoint = <&vin2ep>; */ > + }; > + }; > + }; > }; Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds