Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1545764pxa; Thu, 6 Aug 2020 09:58:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVsyvk4Y4s54ny8bg3ZQpvv+VoVJCoo4jvyJzsdiUl6NBSzGyMM1yLR67RWfjNo9BqaEtb X-Received: by 2002:a17:907:36b:: with SMTP id rs11mr5430934ejb.544.1596733096189; Thu, 06 Aug 2020 09:58:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596733096; cv=none; d=google.com; s=arc-20160816; b=kJjzHP9OhT5eu/Q7sWkaAvD88byXbbTJ+tFonIA6fcstha1QLhFjggoa8KxL8EUfHx 8cz/O47g0qgwOY00Mqz1L+Cw5iOU/fuMAvJ4CN1jd87v6f1yuFp643o6cmhl6SxzBOjs i9y1awYhgwm400t1zqWSCXAZPw1oW7ZhfbKiN9KYwFS9WnpVQqXhqtoxfxScayJfG7iI TLxRdV1zjr5ZrtS6hFvGDgqjtnswvARLIDBk4LWh2UHf1qI7cOpQoSH7imr1Doz38onz bV2FQ2BEjA9QoD6AAukItkPbuo+a+deymd894k9IcfhW+gXMRHJUrwfGU4PlZC4LkK26 0ngw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=javYi1QPXITV1P6qqTsDkfVNf/a0gxUDnlNHCJHVCvI=; b=hvTeuX83NAY7NDjGjQqCQtPFpM6TxAqLvI+c/BEsac7pwVORRiJE5fVgBqRy0CrZnR 6dkQpGMPxtLHsw/J4qzSKnNKHLlgS2IGTHi8oNx+zADqLD3+W8spx+P2qiXBhfy+P1cQ fdCJP0lluLpWYpH9UvxwPKxaIYcoVdKW6R8ATJ8DvFUG1J7phTQk1Lf68QmTuLy0Ti6T h5fRn+gIw2ZW1UuEMkK/aSwD8RPpr5JBGtPETbXJz7BrDAo6QOGPmNxOTUCeqRhRnHTW EQFf22JwmiTf+dB8YgLiq7FLdJpUccTHdRzS6svFLBRcSI5cVLTInKGfrrVSK64EhSXv 8SPw== 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 rl26si3704114ejb.568.2020.08.06.09.57.54; Thu, 06 Aug 2020 09:58:16 -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 S1729821AbgHFQzt (ORCPT + 99 others); Thu, 6 Aug 2020 12:55:49 -0400 Received: from mslow2.mail.gandi.net ([217.70.178.242]:33314 "EHLO mslow2.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729580AbgHFQzr (ORCPT ); Thu, 6 Aug 2020 12:55:47 -0400 Received: from relay6-d.mail.gandi.net (unknown [217.70.183.198]) by mslow2.mail.gandi.net (Postfix) with ESMTP id 8EC6B3B2C33; Thu, 6 Aug 2020 14:37:42 +0000 (UTC) X-Originating-IP: 93.34.118.233 Received: from uno.localdomain (93-34-118-233.ip49.fastwebnet.it [93.34.118.233]) (Authenticated sender: jacopo@jmondi.org) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 75B25C000F; Thu, 6 Aug 2020 14:32:18 +0000 (UTC) Date: Thu, 6 Aug 2020 16:35:59 +0200 From: Jacopo Mondi To: Lad Prabhakar Cc: Mauro Carvalho Chehab , Rob Herring , Hans Verkuil , Kieran Bingham , Sakari Ailus , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Biju Das , Prabhakar , linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH v2 1/3] dt-bindings: media: ov772x: Document endpoint properties Message-ID: <20200806143559.ha6amfa4gq2o4jbi@uno.localdomain> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1596454753-13612-2-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > +- 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 ? > +- 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 ? :) > +- 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 ? > +- 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 ? > + > Example: > > &i2c0 { > -- > 2.17.1 >