Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2768706pxb; Thu, 3 Feb 2022 14:01:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJzyvrBGj841zqS/IJdcKMva81AiJ79ZPfOV5OhlRDOMKUIzqTuFrEzaZWWMBUHI8ok2eiF8 X-Received: by 2002:a05:6a00:841:: with SMTP id q1mr157927pfk.21.1643925693737; Thu, 03 Feb 2022 14:01:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643925693; cv=none; d=google.com; s=arc-20160816; b=UYm6Aly5HwtB5z1qWYiH3a4JIs88wWO5gcb6dWQB2GTDaaiX/dKLrK9a32hDJ4rtDv i+szaveY2EsJNI7CG6D76OV/KrLpSq09066K7gYi1XYgsZdVWyTDAShtKCpbdBg2jk5l 1jBQgniJSTxv2tgw3t2ua2PR5D0O6HggkOVzJE1W640qNFSYWs9US6DJBXVVt2EEhZ2t 3+550ILihrKmO5H0Qd1yiA5KOottHprDosR7/QOso52xox4xBjnjlauirOWPRc0Zgo7O 7b9P3L75G8Gn/FrMdD0XGnPrC7b26fBBocQbqM19/jAPTJxDtBNZzbeHnZcLqtL6arSt +uvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=uNQIcwmD6eoL9wBDA3n9WzmB5UVethOiyBgMys3bKHc=; b=wcfS48GHBE5qeQaD5m8I1vnIklsCJOT1M+Xti2S3uH/D18fvL7lNghHLQdV38k267e J1/60APeubVXpfbdImYtt5d/XMH69QVuH1MC8vp0PPjOENlkmBsF5oWBSNhuGwsBJOy/ GFxjS8sqE2b2PxKRJcfggjbq6TONfFQMw5Z5N1e69PA6VA90oRaeI5bSe1t1zjE4e5AQ ssz5BL1wC6mYgtaBh5m34UfRrGAdKNpyHDftc0p6+WOhTNyYidmmztamtra2Equ0BCPN eOlaeq8uYrre3zHhS4CKWyYw0XJdC9RFeO7KUUlENfwoPQerxeDnY1u6arbVGcDMIqs2 zW6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=gvoBHIOr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o9si8352plc.601.2022.02.03.14.01.21; Thu, 03 Feb 2022 14:01:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=gvoBHIOr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353410AbiBCRvd (ORCPT + 99 others); Thu, 3 Feb 2022 12:51:33 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:59048 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353089AbiBCRua (ORCPT ); Thu, 3 Feb 2022 12:50:30 -0500 Received: from tatooine.ideasonboard.com (unknown [IPv6:2a01:e0a:169:7140:5173:4d3f:4ddc:2012]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 91859D88; Thu, 3 Feb 2022 18:50:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1643910625; bh=pOuthGxGMpzOZMVoj+0IAETXXuv85t6W6FbwTwO/s1Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gvoBHIOrb/XbhdH4kXqJrsQ4wD1Df0hSyANBC/gh0eA7o1oenwUYnTX0j1eEf90Kl FCRB8eH79XReML2mk35ugUdb+j1DU2xN72tNHP3MwT8mTWTaI5TobeyX2aMY4X21TK FMpCJpOxs3VziHfyw3pqa9EFKYwW6I3DWmU/I6Z4= From: Jean-Michel Hautbois To: jeanmichel.hautbois@ideasonboard.com Cc: dave.stevenson@raspberrypi.com, devicetree@vger.kernel.org, kernel-list@raspberrypi.com, laurent.pinchart@ideasonboard.com, linux-arm-kernel@lists.infradead.org, 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: [RFC PATCH v4 03/12] dt-bindings: media: Add bindings for bcm2835-unicam Date: Thu, 3 Feb 2022 18:50:00 +0100 Message-Id: <20220203175009.558868-4-jeanmichel.hautbois@ideasonboard.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220203175009.558868-1-jeanmichel.hautbois@ideasonboard.com> References: <20220203175009.558868-1-jeanmichel.hautbois@ideasonboard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 + + port: + additionalProperties: false + $ref: /schemas/graph.yaml#/$defs/port-base + + properties: + endpoint: + $ref: /schemas/media/video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: true + link-frequencies: true + + required: + - data-lanes + - link-frequencies + + required: + - endpoint + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - power-domains + - brcm,num-data-lanes + - port + +additionalProperties: False + +examples: + - | + #include + #include + #include + csi1: csi@7e801000 { + compatible = "brcm,bcm2835-unicam"; + reg = <0x7e801000 0x800>, + <0x7e802004 0x4>; + interrupts = ; + clocks = <&clocks BCM2835_CLOCK_CAM1>, + <&firmware_clocks 4>; + clock-names = "lp", "vpu"; + power-domains = <&power RPI_POWER_DOMAIN_UNICAM1>; + brcm,num-data-lanes = <2>; + port { + csi1_ep: endpoint { + remote-endpoint = <&imx219_0>; + data-lanes = <1 2>; + link-frequencies = /bits/ 64 <456000000>; + }; + }; + }; +... -- 2.32.0