From patchwork Mon Mar 18 15:49:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 13595500 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 B656EC54E5D for ; Mon, 18 Mar 2024 15:51:37 +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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kHyCoRFbLti1vkegjpAi2Va+KYT8KeHCWGKN4KuRzFo=; b=aMLvhI9lS7roWi GFJVsBhZyEbcEmIG45T8uv+CtDy1jGRUoNXJp3STWzsgE+rtHekwgjmSlMxYg9ODV7CizlWJer8Oc LuXTPUx8d2hyyVqt16FnclB+T8P6EHmtAHDEk51CRGVVTlW6VttgFcFSwbDzae1edRHIe4OdlkBKa ZF+OQpwAmEHJwFHJQ6pmbIXpuRGNr21Ax0x8YZF2eBRZqEFoIW/R7nPpLHQN2lWvUT5RKMq6uGdoi MZf0ZQvpWBxwi1VvAkIt6qyTV3eA9OVhwjgWeFEI2rasKJUrSYUP01/7MWxKeEeRyLT7/Qzd23Z/r x5LNXnu2HT2ide2Acbgg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rmFGp-000000096PS-3lc0; Mon, 18 Mar 2024 15:51:27 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rmFGZ-000000096He-1CZk; Mon, 18 Mar 2024 15:51:14 +0000 Received: from [127.0.1.1] (91-154-34-181.elisa-laajakaista.fi [91.154.34.181]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D0CCE1BB1; Mon, 18 Mar 2024 16:50:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1710777042; bh=9cqGmKwZifEH6rqhzO+wwC/ZEXL/+VH+UB9wjLsmb24=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=LUkqxqdZWyBYeB4UtMmsZxRc0Yh4TKpYQmkzuRWkCNyJmSWDmvsNUyPm5LFsbvtIE 7ot16zP3LlEApvDik6eAw6WE2dmLLy8pUa+CIBhVxCt0bL6P3bSPvPGYMIexJlh/A8 zKmlzLPWxAsf7Q9MuCL40T6Bw8lg8dAJ5evppEZM= From: Tomi Valkeinen Date: Mon, 18 Mar 2024 17:49:57 +0200 Subject: [PATCH 2/4] dt-bindings: media: Add bindings for raspberrypi,rp1-cfe MIME-Version: 1.0 Message-Id: <20240318-rp1-cfe-v1-2-ac6d960ff22d@ideasonboard.com> References: <20240318-rp1-cfe-v1-0-ac6d960ff22d@ideasonboard.com> In-Reply-To: <20240318-rp1-cfe-v1-0-ac6d960ff22d@ideasonboard.com> To: Mauro Carvalho Chehab , Raspberry Pi Kernel Maintenance , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Florian Fainelli , Broadcom internal kernel review list Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Naushir Patuck , Laurent Pinchart , Sakari Ailus , Jacopo Mondi , Kieran Bingham , Tomi Valkeinen X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3190; i=tomi.valkeinen@ideasonboard.com; h=from:subject:message-id; bh=9cqGmKwZifEH6rqhzO+wwC/ZEXL/+VH+UB9wjLsmb24=; b=owEBbQKS/ZANAwAIAfo9qoy8lh71AcsmYgBl+GLovjHMleKcyqpNl3qYB2Zl8zJiIsjrJjwcB 623441VsPaJAjMEAAEIAB0WIQTEOAw+ll79gQef86f6PaqMvJYe9QUCZfhi6AAKCRD6PaqMvJYe 9daID/9Vk05kVIENDX8siHbb/gXnQQ1MfV1RjpSpU+DEyq1f/tyhNkOHexkLMgZQkyqYgIABF5+ N8GEapnFWM7axkCkpQ1eZSi2if6yiGaVUPu7OwyGQoWuViPsgHh0dK9FMhvr48B77+BnSunZJqE fuUeUiFBPfMpbfRlAYuyeuzMkP9sia1JKCFILy3IDDDuJ08s1j0Dhlggd3wg2ZarwMVtYTTlCn2 4ikl7Y7twLdgJtUlm2jcDgLh9HbYX2IqLcubsEDas11JTV9hIdY2CI0mfFHc7sM8dg8fy4oy1wR FZ8zvYvkDx5DeGhUfR8BwXhH9CMhYrQXWwEsd6R+lSPka9uBM4gN7wk2a0tFoQck9C6DkDwE8vT 97utB/jjk4KICRX1Hble5RslNX0+jFRYKtudJtBOS9Y/xhP0TvMqds8FEFG3XktZvqgTbBqku0f 622c57VZ6scgvXiF4mQZrIfTevNYxjZg4J7ILJjOE6DFVLAd9E/Wet2aaEV9Zy5kDbgUJgWU+9B QbNhnenLWHpp8DHm8Qg/623qSibfCMZkdedjFRVfrrCdRHUA7/1IwfwoRBNRUwnsECaSUerWIZ0 3DPRVsEawg1e0WoOSIe2VqQNx8Gs8cAuS8TIhf6W5ZVfqTPda0WJJto/Fg6lWijGCkdC4rawa8/ RLIUgGCr7jkMdeg== X-Developer-Key: i=tomi.valkeinen@ideasonboard.com; a=openpgp; fpr=C4380C3E965EFD81079FF3A7FA3DAA8CBC961EF5 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240318_085111_575864_F6E2A300 X-CRM114-Status: GOOD ( 12.31 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add DT bindings for raspberrypi,rp1-cfe. Signed-off-by: Tomi Valkeinen --- .../bindings/media/raspberrypi,rp1-cfe.yaml | 103 +++++++++++++++++++++ 1 file changed, 103 insertions(+) diff --git a/Documentation/devicetree/bindings/media/raspberrypi,rp1-cfe.yaml b/Documentation/devicetree/bindings/media/raspberrypi,rp1-cfe.yaml new file mode 100644 index 000000000000..7b2beeaaab0e --- /dev/null +++ b/Documentation/devicetree/bindings/media/raspberrypi,rp1-cfe.yaml @@ -0,0 +1,103 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/raspberrypi,rp1-cfe.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Raspberry Pi PiSP Camera Front End + +maintainers: + - Tomi Valkeinen + - Raspberry Pi Kernel Maintenance + +description: | + The Raspberry Pi PiSP Camera Front End is a module in Raspberrypi 5's RP1 I/O + controller, that contains: + - MIPI D-PHY + - MIPI CSI-2 receiver + - Simple image processor (called PiSP Front End, or FE) + + The FE documentation is available at: + https://datasheets.raspberrypi.com/camera/raspberry-pi-image-signal-processor-specification.pdf + + The PHY and CSI-2 receiver part have no public documentation. + +properties: + compatible: + const: raspberrypi,rpi5-rp1-cfe + + reg: + items: + - description: CSI-2 registers + - description: D-PHY registers + - description: MIPI CFG (a simple top-level mux) registers + - description: FE registers + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + port: + $ref: /schemas/graph.yaml#/$defs/port-base + additionalProperties: false + description: CSI-2 RX Port + + properties: + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + properties: + data-lanes: + minItems: 1 + maxItems: 4 + + clock-lanes: + maxItems: 1 + + clock-noncontinuous: true + + required: + - clock-lanes + - data-lanes + +required: + - compatible + - reg + - interrupts + - clocks + +additionalProperties: false + +examples: + - | + #include + #include + #include + + rpi1 { + #address-cells = <2>; + #size-cells = <2>; + + csi@110000 { + compatible = "raspberrypi,rp1-cfe"; + reg = <0xc0 0x40110000 0x0 0x100>, + <0xc0 0x40114000 0x0 0x100>, + <0xc0 0x40120000 0x0 0x100>, + <0xc0 0x40124000 0x0 0x1000>; + + interrupts = ; + + clocks = <&rp1_clocks RP1_CLK_MIPI0_CFG>; + + port { + csi_ep: endpoint { + remote-endpoint = <&cam_endpoint>; + clock-lanes = <0>; + data-lanes = <1 2>; + }; + }; + }; + };