Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp4108659pxa; Mon, 10 Aug 2020 00:24:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8P/O27Kh15WXRhvD8OnmOUKtb9hXAVSqkbDTRCbX4fYULwWXAodfs82bmnRSrEAQeZ2eL X-Received: by 2002:a50:ba8c:: with SMTP id x12mr20420985ede.319.1597044262652; Mon, 10 Aug 2020 00:24:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597044262; cv=none; d=google.com; s=arc-20160816; b=dwIVROhLq2V5AKQe6Spi5pSAexSj2RJvXeD6dUhprB8gj4Cew0cpCC4sAhliipm2p1 73u/N7gAG3PwzvHlGWa6I+ndyVMnUfdi5JTB8zB0BSwhZpqiGR8YFfEXD4dk1Hnonv5q gBdmwrUtDi7geu3G6k9Wd988JRWAD9Ib2sekYO0ZVgdq4z3YNiLxQ2NM4c/TKLnzCpEU Ocjm0x80W5G1dQYfVcU5GWbcSYm15NpQgKxQLfTv+kVnCD+l9U8cMAAKVVFdau8QgOdK vyFQXQO+9TNVbrBnDav22qFARc+sW0WmEHUYSLg8+WeZXB739WE2W/ZMJXHD2fowWcit CAyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ANR7+RLPKBGxOqXxxUQUqxXFiaO4oBpzGIQRW0WVM/k=; b=VCx4k1nBAgS2LiUwO3VdDmvzhs8uTtZY19pWQaGS24o7Jwgumlu9pfXtKcxT8haEfS 8uaK0j2SJzFU7Jj4m9tesj4PgLiv2EvprX2Mhwuhou//wAQGaMxmxlwB8mGnIaFoaXud R7a/V9Zr+6vHt6O6KLYYTO0jjMcNdp/vilm7+rNLeiqBcoAOGQsv3CFqxmohNz2HAtxH PpgFrvLKr+v+rtu/GaWXpvpVodq+VgdGVnJDBl1v/89Kl4l+FqqzK8Q/IRwBUZkyhXPy LznZjeRjoRbSWCCQbaT/LhBCZrZPVX03FKXwLs2sv2TrqH6iOnkflKjFfELl5LVQrduB HYyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Uw4kJBVy; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id df23si8825596edb.406.2020.08.10.00.24.00; Mon, 10 Aug 2020 00:24:22 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Uw4kJBVy; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726368AbgHJHXU (ORCPT + 99 others); Mon, 10 Aug 2020 03:23:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725857AbgHJHXT (ORCPT ); Mon, 10 Aug 2020 03:23:19 -0400 Received: from mail-yb1-xb41.google.com (mail-yb1-xb41.google.com [IPv6:2607:f8b0:4864:20::b41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BCA8C061756; Mon, 10 Aug 2020 00:23:19 -0700 (PDT) Received: by mail-yb1-xb41.google.com with SMTP id g3so1637642ybc.3; Mon, 10 Aug 2020 00:23:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ANR7+RLPKBGxOqXxxUQUqxXFiaO4oBpzGIQRW0WVM/k=; b=Uw4kJBVyINzL3H5dzKs85M7fDr0bvtu6awqtjBDuZIsjYfXLKFhgADett+saqb9aWG lyKe2Q0105n9PALpQnBOd/YtWCPBlrIMiVMcnkcllbhg6fO9/pxlu9E1+jMiLBY5wyLe BfRubpIMVYZHSrT/ymfkm2fVIN7zGKHGNuGOMA5snbKSpjld1Sv2i/Oovf1uId1qFImM +saHUMOOHqMwf8ccSSn1nPO9oF+SiqIU28rQdNxjMID2L+db27qW0R4HzMAPi0NctH7y kRBS5gsT10qOYlelQYDNd88uTHZoip41ZkxzknYpJCAe+2Kcm9404zS9/lE8ippXel0e ZIQA== 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=ANR7+RLPKBGxOqXxxUQUqxXFiaO4oBpzGIQRW0WVM/k=; b=FMZsQKO9JCm41Lk0fB3DwOsoFnYsckM65mYspIHuxr5q0dpW9TAEe+t5NgcT1Bb1rJ yarniw1NLNbYt7GHepsAOEqf8cJ0PWLF+HdZpryiWSb9ngW7UOkIGhl9ei2v9vOyJ6ps H8WQIAL0vM8PIJCZZbqLA4uIO+BK2xl2UnqQzBJ5jRkRzFw/MiKKYh5LGYbZAtrkLJ8K 7mGYWR4fhm8LLtgFIX1iJdd+if3Xjn+AWPwE2Q5ympDcH0P3eNMvcSnLyIMo2YnHNxRV pTsSndKXvUjpDDKzLuYnXl8d2pjcjAKubIwcXoWke/wG468pFqsuQ8637l1YJsNpZBpU 2yiQ== X-Gm-Message-State: AOAM530v58M4OQPIagA3qUhz8vPi6Jw4qevrFFtG3OEeg1muZVy9s2Ah 2doHjzFSLUFxzYQy/naaQUjFgoZ1eM4NMvBEII0= X-Received: by 2002:a25:6ad6:: with SMTP id f205mr38529089ybc.76.1597044198696; Mon, 10 Aug 2020 00:23:18 -0700 (PDT) MIME-Version: 1.0 References: <1596454753-13612-1-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> <1596454753-13612-2-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> <20200806143559.ha6amfa4gq2o4jbi@uno.localdomain> In-Reply-To: <20200806143559.ha6amfa4gq2o4jbi@uno.localdomain> From: "Lad, Prabhakar" Date: Mon, 10 Aug 2020 08:22:52 +0100 Message-ID: Subject: Re: [PATCH v2 1/3] dt-bindings: media: ov772x: Document endpoint properties To: Jacopo Mondi Cc: Lad Prabhakar , Mauro Carvalho Chehab , Rob Herring , Hans Verkuil , Kieran Bingham , Sakari Ailus , linux-media , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML , Biju Das , Linux-Renesas Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jacopo, Thank you for the review. On Thu, Aug 6, 2020 at 3:32 PM Jacopo Mondi wrote: > > Hi Prabhakar, > > On Mon, Aug 03, 2020 at 12:39:11PM +0100, Lad Prabhakar wrote: > > Document endpoint properties required for parallel interface > > > > Signed-off-by: Lad Prabhakar > > --- > > .../devicetree/bindings/media/i2c/ov772x.txt | 16 ++++++++++++++++ > > 1 file changed, 16 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/media/i2c/ov772x.txt b/Documentation/devicetree/bindings/media/i2c/ov772x.txt > > index 0b3ede5b8e6a..1f4153484717 100644 > > --- a/Documentation/devicetree/bindings/media/i2c/ov772x.txt > > +++ b/Documentation/devicetree/bindings/media/i2c/ov772x.txt > > @@ -21,6 +21,22 @@ subnode for its digital output video port, in accordance with the video > > interface bindings defined in Documentation/devicetree/bindings/media/ > > video-interfaces.txt. > > > > +Endpoint node required properties for parallel connection are: > > +- remote-endpoint: a phandle to the bus receiver's endpoint node. > > we allow endpoints without a remote end connected usually. They can be > filled in later, in example, with an overlay. > Agreed. > > +- bus-width: shall be set to <8> for 8 bits parallel bus > > + or <10> for 10 bits parallel bus > > +- data-shift: shall be set to <2> for 8 bits parallel bus > > + (lines 9:2 are used) or <0> for 10 bits parallel bus > > defining what is required or optional might be hard. I don't see the > driver enforcing their presence and I assume they have safe default. > Maybe make them optional and specify what the defaul value is ? > Will do. > > > +- hsync-active: active state of the HSYNC signal, 0/1 for LOW/HIGH respectively. > > + (Not required for bus-type equal 6) > > +- vsync-active: active state of the VSYNC signal, 0/1 for LOW/HIGH respectively. > > + (Not required for bus-type equal 6) > > If they're not required, they're optional, aren't they ? :) > Agreed. > > +- pclk-sample: sample data on rising (1) or falling (0) edge of the pixel clock > > + signal. (Not required for bus-type equal 6) > > Why the pclk polarity is does not apply to BT.656 ? > No it should apply. > > +- bus-type: data bus type. Possible values are: > > + 5 - Parallel > > + 6 - Bt.656 > > Are we making this required, or do we expect this to be deduced > depending on which other properties have been specified ? Sakari it > seems you would like this to become a properties that has to be > specified most of the times, right ? (I tend to agree with that FWIW), > but does it impact retro-compatibility ? > Agreed can be deduced from other properties. But shall wait for Sakari to comment. Cheers, Prabhakar > > + > > Example: > > > > &i2c0 { > > -- > > 2.17.1 > >