Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp1124052rdf; Wed, 22 Nov 2023 06:18:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IEVurlTUpGpOtmwkkbh8DZ+06zWpXT4Mob8sa6HK6prPy5uyFhetNNXFqo5cpJDceJyxldf X-Received: by 2002:a05:6a21:2c83:b0:189:c99a:7d5e with SMTP id ua3-20020a056a212c8300b00189c99a7d5emr1924877pzb.21.1700662679936; Wed, 22 Nov 2023 06:17:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700662679; cv=none; d=google.com; s=arc-20160816; b=DgT2jSzXCu/I0qsBHx/CtY9c63HuAf0+Kx4yYH/2RaZYDLeErpjwuVJZYSDmostyIn HmHqUUA+Od72ABG2QmF0NbZPXjze28BoxI0EX5HQZ3T8Be5YhP4aYHHc0HXi4DJBIv8q 3OFXj52+LS9lXZdlMSZpOLUdFyt9uTdRhz7pMeL8H10dZIU1EkzNmMaSabRWxxcARpGr tNcpSzIkj1nCbayz6TWj528CoEtucSyIxu0jBtoXqTSzWg4DLAm6SvHNQjNZV7QZ/zuc KVFBRdEl5JgHsM4mHZzrL14fPoqJ0zC9sjuwQIjoBms8BoE+wTuqL60rpBoxceSV6OsS GEag== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=DzA/25uN5wEHeddxB+b44Ua3OPhRo09SkW9tdsJYkfE=; fh=PHVbIgf+UxIdrbueJ5cOSpcsisIa90hQUxmE2wscmBk=; b=ZsscCcNhZ5fRpR9IvDBZYRjGmChwjZ1P3KM+/0vNfqBtPqAEBTczTwSOenOC2owKNl 0L02KzsDtud8dJoFchWcHtK+fq+B/L8m2+vvCbGe8QrgsoDUfBxVjHOEHaMRVA0Ci/iF ZegackK1kE7ECzANvwXNwRI5cuK7VKBDfIgC3f8u8FJaxYfdhHELUwUy1t40kVeSTBvq BdbclJ5pThgvFoZX65UU0Oa2PabsfrZN8qSE2la6H7TI4s8eSFI9mVxoDo5uk70CPa8I ngRaGgEcHG8+okA8YvLSS5RuCfLCqlO5vy70hpGOPkhyKH0h9tfrA2Q3lzAaS8uJYyTY af0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="aZPdm/qn"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id fc23-20020a056a002e1700b006c1222c5eaasi13175890pfb.175.2023.11.22.06.17.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 06:17:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="aZPdm/qn"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 4B614807104D; Wed, 22 Nov 2023 06:15:28 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235124AbjKVOOy (ORCPT + 99 others); Wed, 22 Nov 2023 09:14:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230419AbjKVOOw (ORCPT ); Wed, 22 Nov 2023 09:14:52 -0500 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E05AA101; Wed, 22 Nov 2023 06:14:47 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 52A0AE0010; Wed, 22 Nov 2023 14:14:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1700662486; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=DzA/25uN5wEHeddxB+b44Ua3OPhRo09SkW9tdsJYkfE=; b=aZPdm/qnKT4vHHeCbilETxDxF9SwMH6ueiAipJ7b63xFfQH9rqI21GVTCr8QI04kgoCJ/g fTGal0Crdf5XZeiK7/Kn/td5H5rCY8Hy8/N/kmzFYj+PULRSqMvn6dTCPZA9hoMhC4xYZu rbMiy/xqOcS6RmSevr228STo0n7SCchmxieDJufyOu7S06wS93m+yjY2Xa4smLwIb1xVGC 2AHijxMHa7mc8oNjkr1x3HAvoym4NnUTwMFgedipT3NcOkPKMQqa5Wn5GWMidnF/aDG2H4 EHO0B8FUBvV0STzlRyIkoLmd4EXNuGieh4I1LAYujZYCfBemIhNdLw+sRNJU8g== From: Paul Kocialkowski To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Maxime Ripard , Laurent Pinchart , Michael Turquette , Stephen Boyd , Paul Kocialkowski Subject: [PATCH v7 0/7] Allwinner A31/A83T MIPI CSI-2 and A31 ISP / Platform Support Date: Wed, 22 Nov 2023 15:14:18 +0100 Message-ID: <20231122141426.329694-1-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: paul.kocialkowski@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 22 Nov 2023 06:15:28 -0800 (PST) This series adds platform support for the V3s/V3/S3 MIPI CSI-2 and ISP units as well the as A83T MIPI CSI-2 unit in the respective device-trees. Overlays for the BananaPi M3 cameras are also provided as actual users of the camera pipeline on A83T. The corresponding drivers and dt bindings were merged a long time ago but this series was never actually picked up. It seems more than ready to be merged! Changes since v6: - Rebased on top of the latest media tree, renamed dts to dtso for overlays. Changes since v5: - Added BananaPi M3 camera sensor support as device-tree overlays; - Cleaned-up OV8865 regulator definitions; - Always declared the internal links between CSI and MIPI CSI-2 on A83T in device-tree. Changes since v4: - Removed mbus bindings patch: an equivalent change was merged; - Added collected tags; - Rebased on latest media tree. Changes since v3: - Reordered v3s mbus compatible in binding; - Added collected tag; - Removed rejected interconnects fix. Changes since all-in-one v2: - Corrected mbus index used for the interconnects; - Used extended mbus binding and exported the DRAM clock for that; - Reworked the description of the core openfirmware change to give more insight about the situation. Paul Kocialkowski (7): clk: sunxi-ng: v3s: Export MBUS and DRAM clocks to the public header ARM: dts: sun8i: v3s: Add mbus node to represent the interconnect ARM: dts: sun8i: v3s: Add nodes for MIPI CSI-2 support ARM: dts: sun8i: v3s: Add support for the ISP ARM: dts: sun8i: a83t: Add MIPI CSI-2 controller node ARM: dts: sun8i-a83t: Add BananaPi M3 OV5640 camera overlay ARM: dts: sun8i-a83t: Add BananaPi M3 OV8865 camera overlay arch/arm/boot/dts/allwinner/Makefile | 2 + .../sun8i-a83t-bananapi-m3-camera-ov5640.dtso | 117 +++++++++++++++++ .../sun8i-a83t-bananapi-m3-camera-ov8865.dtso | 109 ++++++++++++++++ arch/arm/boot/dts/allwinner/sun8i-a83t.dtsi | 43 +++++++ arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi | 121 ++++++++++++++++++ drivers/clk/sunxi-ng/ccu-sun8i-v3s.h | 4 - include/dt-bindings/clock/sun8i-v3s-ccu.h | 4 +- 7 files changed, 394 insertions(+), 6 deletions(-) create mode 100644 arch/arm/boot/dts/allwinner/sun8i-a83t-bananapi-m3-camera-ov5640.dtso create mode 100644 arch/arm/boot/dts/allwinner/sun8i-a83t-bananapi-m3-camera-ov8865.dtso -- 2.42.1