From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D46DFC433EF for ; Sat, 5 Feb 2022 02:24:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wsnd1SAMRqrTFs2EYFkIznpfxoDQLeZfzFZxbUZKejo=; b=vB0JosyniZxz0V lqDd4DQ/TTAnFG9h0PGvcxVBAnZVDTlrzD6tsNUMqIt5K/Xo50r3TTgqjihfPkO3rIJG+MDd+TtOr CkDCYnW//4wXSAiCW832/Ji8HSHPCfvNxX3eiURgRR6z0GgMWdCNmaOx+Ycip8c42O5eiYPwUbjuQ K8LznQSBn+u9XtzOQ3zP9U0ySJRrym4+02n62sloiXZdxTpdRqlC+8IvhvFHN9gSVjps3yd480Md6 zcC1h51QGLDq6b7V8hS+RZxLTCTPeXbfoMKESWF15ompdRvC3szyN7d9rgMg2lq3eQb4lVWUcGSDD JuDn0FEsa91j/5JbcG6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nGAjR-005yO1-Ox; Sat, 05 Feb 2022 02:23:21 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nGAjN-005yMb-9l; Sat, 05 Feb 2022 02:23:19 +0000 Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id A876E472; Sat, 5 Feb 2022 03:23:15 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1644027795; bh=8Gxgs/LVp8UXOT1xU7N2J6LDQ9LAZmNhrPd3LDIdlMo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NCNAtwUHtLHwGFxaEF2imjparL0hfE4rzgnfLYW6qlioSE7/xW5JH9C1IJPEBx2ru 4DT6SluBZkEN+jVpXsMh3VN9pXV0FcCvKOXCs/jOvYZaKXArGVhsjCUQym1zsKPI2B TefR05bvw6QBik7WRO50TPU5MSRMbP+xQBioJDj0= Date: Sat, 5 Feb 2022 04:22:51 +0200 From: Laurent Pinchart To: Alexander Stein Cc: jeanmichel.hautbois@ideasonboard.com, linux-arm-kernel@lists.infradead.org, dave.stevenson@raspberrypi.com, devicetree@vger.kernel.org, kernel-list@raspberrypi.com, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, lukasz@jany.st, mchehab@kernel.org, naush@raspberrypi.com, robh@kernel.org, tomi.valkeinen@ideasonboard.com, nsaenz@kernel.org, bcm-kernel-feedback-list@broadcom.com Subject: Re: (EXT) [RFC PATCH v4 03/12] dt-bindings: media: Add bindings for bcm2835-unicam Message-ID: References: <20220203175009.558868-1-jeanmichel.hautbois@ideasonboard.com> <20220203175009.558868-4-jeanmichel.hautbois@ideasonboard.com> <7954256.DvuYhMxLoT@steina-w> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <7954256.DvuYhMxLoT@steina-w> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220204_182317_524412_F79EF396 X-CRM114-Status: GOOD ( 25.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Alexander, On Fri, Feb 04, 2022 at 09:50:06AM +0100, Alexander Stein wrote: > Am Donnerstag, 3. Februar 2022, 18:50:00 CET schrieb Jean-Michel Hautbois: > > Introduce the dt-bindings documentation for bcm2835 CCP2/CSI2 Unicam > > camera interface. Also add a MAINTAINERS entry for it. > > > > Signed-off-by: Dave Stevenson > > Signed-off-by: Naushir Patuck > > Signed-off-by: Jean-Michel Hautbois > > > > --- > > v4: > > - make MAINTAINERS its own patch > > - describe the reg and clocks correctly > > - use a vendor entry for the number of data lanes > > --- > > .../bindings/media/brcm,bcm2835-unicam.yaml | 110 ++++++++++++++++++ > > 1 file changed, 110 insertions(+) > > create mode 100644 > > Documentation/devicetree/bindings/media/brcm,bcm2835-unicam.yaml > > > > diff --git > > a/Documentation/devicetree/bindings/media/brcm,bcm2835-unicam.yaml > > b/Documentation/devicetree/bindings/media/brcm,bcm2835-unicam.yaml new file > > mode 100644 > > index 000000000000..0725a0267c60 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/media/brcm,bcm2835-unicam.yaml > > @@ -0,0 +1,110 @@ > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > +%YAML 1.2 > > +--- > > +$id: http://devicetree.org/schemas/media/brcm,bcm2835-unicam.yaml# > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > + > > +title: Broadcom BCM283x Camera Interface (Unicam) > > + > > +maintainers: > > + - Raspberry Pi Kernel Maintenance > > + > > +description: |- > > + The Unicam block on BCM283x SoCs is the receiver for either > > + CSI-2 or CCP2 data from image sensors or similar devices. > > + > > + The main platform using this SoC is the Raspberry Pi family of boards. > > + On the Pi the VideoCore firmware can also control this hardware block, > > + and driving it from two different processors will cause issues. > > + To avoid this, the firmware checks the device tree configuration > > + during boot. If it finds device tree nodes starting by csi then > > + it will stop the firmware accessing the block, and it can then > > + safely be used via the device tree binding. > > + > > +properties: > > + compatible: > > + const: brcm,bcm2835-unicam > > + > > + reg: > > + items: > > + - description: Unicam block. > > + - description: Clock Manager Image (CMI) block. > > + > > + interrupts: > > + maxItems: 1 > > + > > + clocks: > > + items: > > + - description: Clock to drive the LP state machine of Unicam. > > + - description: Clock for the vpu (core clock). > > + > > + clock-names: > > + items: > > + - const: lp > > + - const: vpu > > + > > + power-domains: > > + items: > > + - description: Unicam power domain > > + > > + brcm,num-data-lanes: > > + $ref: /schemas/types.yaml#/definitions/uint32 > > + enum: [ 2, 4 ] > > + description: Number of data lanes on the csi bus > > There is already data-lanes in Documentation/devicetree/bindings/media/video- > interfaces.yaml. AFAICS these two are identical. Can't the video- > interface.yaml be used for this? I'm no expert TBH. This is the number of data lanes that the Unicam instance supports. There are two Unicam instances, and they can have 2 or 4 data lanes depending on the SoC. The data-lanes endpoint property indicates the number of lanes used on a particular board. -- Regards, Laurent Pinchart _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel