From nobody Sat Jun 13 23:23:43 2026 Received: from leonov.paulk.fr (leonov.paulk.fr [185.233.101.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C122B1D63F0; Sat, 13 Jun 2026 15:27:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.233.101.22 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781364442; cv=none; b=gjqsQUJiRDhqn9+t8aSPiChmowKgCfiiujq2X0NRUy7yaRNWSoZiOYGCye2UbsY0Lwcxu95983V+xudbq7weGk8VVnpHNAenqnpsdGCIv6UDfV7Uye6s6ZDxbYsZr7GP0g7blhO3r639INrAqUZOLiyH6OvQSZaWmkiMBQH6qtI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781364442; c=relaxed/simple; bh=Loak2beHarVtJpX+qHOaWgaGxhARYe3ygz9aKU1CpvU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=B4EjkdDaL2DILm5rglTn3SibXg8QmNDAeEHMzDqdEoU0GsXUm4kTnfEb7dnq/IJiVjYHq7Yb63Hveajjj7bHXUICJoTwoTOFWoA+PH9eW2Zct6pRTzj2RCiIg8XlMhY2VAgKJ6jhMTcmmXpZSR4jYqQEoevfS156GO/acx7cxbU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sys-base.io; spf=pass smtp.mailfrom=sys-base.io; arc=none smtp.client-ip=185.233.101.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sys-base.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sys-base.io Received: from laika.paulk.fr (12.234.24.109.rev.sfr.net [109.24.234.12]) by leonov.paulk.fr (Postfix) with ESMTPS id BE4A83700300; Sat, 13 Jun 2026 15:27:10 +0000 (UTC) Received: by laika.paulk.fr (Postfix, from userid 65534) id AF449B45523; Sat, 13 Jun 2026 15:27:09 +0000 (UTC) X-Spam-Level: ** Received: from collins (unknown [192.168.1.64]) by laika.paulk.fr (Postfix) with ESMTP id A7697B4551B; Sat, 13 Jun 2026 15:26:57 +0000 (UTC) From: Paul Kocialkowski To: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Yong Deng , Paul Kocialkowski , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michael Turquette , Stephen Boyd , Brian Masney , Maxime Ripard Subject: [PATCH v10 1/6] dt-bindings: sun8i-v3s-ccu: Export MBUS and DRAM clocks to the public header Date: Sat, 13 Jun 2026 17:26:50 +0200 Message-ID: <20260613152655.212490-2-paulk@sys-base.io> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260613152655.212490-1-paulk@sys-base.io> References: <20260613152655.212490-1-paulk@sys-base.io> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" In order to declare a mbus node for the V3s, expose its associated clocks to the public header. Signed-off-by: Paul Kocialkowski Acked-by: Krzysztof Kozlowski --- include/dt-bindings/clock/sun8i-v3s-ccu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/dt-bindings/clock/sun8i-v3s-ccu.h b/include/dt-binding= s/clock/sun8i-v3s-ccu.h index c4055629c9f9..d635bffd6914 100644 --- a/include/dt-bindings/clock/sun8i-v3s-ccu.h +++ b/include/dt-bindings/clock/sun8i-v3s-ccu.h @@ -87,7 +87,7 @@ #define CLK_SPI0 55 #define CLK_USB_PHY0 56 #define CLK_USB_OHCI0 57 - +#define CLK_DRAM 58 #define CLK_DRAM_VE 59 #define CLK_DRAM_CSI 60 #define CLK_DRAM_EHCI 61 @@ -101,7 +101,7 @@ #define CLK_VE 69 #define CLK_AC_DIG 70 #define CLK_AVS 71 - +#define CLK_MBUS 72 #define CLK_MIPI_CSI 73 =20 /* Clocks not available on V3s */ --=20 2.54.0 From nobody Sat Jun 13 23:23:43 2026 Received: from leonov.paulk.fr (leonov.paulk.fr [185.233.101.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 45FE12E5B2A; Sat, 13 Jun 2026 15:27:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.233.101.22 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781364447; cv=none; b=BezCZbXoWrlNlUM+Rlbab6D96Ir05EZZynkkqZvXBRDexthosa69aHe2BAC2XqlvoFEIPFfrGsSaHoXVcnOOHeRsva6RruXWw9ImKx2JtTTN4wyr4HLCHzMbMjszPpa/4vFQjJ6tE9epYrWUy9BnycTgV2BbpggxT9Ut365Ko8c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781364447; c=relaxed/simple; bh=Ia+K5OKQ20aA0EOylQsTIY2CEYdx+V8IhQf1h2n5i+8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OXyUTCQqYUw3RSV24/hKUMjKPuDqkZY5iVJuMPX09qTST1uPiq0/mR/oZQ0al/fi7v+NJSAX2ZCau6b+TUTdnqkUXXc2s8/FBaE+EpalrRAY/q1jWz7ffTLtKK9UXSiZ+N4wFQ7bsG7fnf36dKYc8r5TqAslkMEMsBzaI8gqU2w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sys-base.io; spf=pass smtp.mailfrom=sys-base.io; arc=none smtp.client-ip=185.233.101.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sys-base.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sys-base.io Received: from laika.paulk.fr (12.234.24.109.rev.sfr.net [109.24.234.12]) by leonov.paulk.fr (Postfix) with ESMTPS id 6A5D837002F7; Sat, 13 Jun 2026 15:27:16 +0000 (UTC) Received: by laika.paulk.fr (Postfix, from userid 65534) id 634B4B45526; Sat, 13 Jun 2026 15:27:14 +0000 (UTC) X-Spam-Level: ** Received: from collins (unknown [192.168.1.64]) by laika.paulk.fr (Postfix) with ESMTP id 1C25BB4551C; Sat, 13 Jun 2026 15:26:58 +0000 (UTC) From: Paul Kocialkowski To: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Yong Deng , Paul Kocialkowski , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michael Turquette , Stephen Boyd , Brian Masney , Maxime Ripard Subject: [PATCH v10 2/6] clk: sunxi-ng: v3s: Remove exported clock definitions Date: Sat, 13 Jun 2026 17:26:51 +0200 Message-ID: <20260613152655.212490-3-paulk@sys-base.io> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260613152655.212490-1-paulk@sys-base.io> References: <20260613152655.212490-1-paulk@sys-base.io> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" V3s MBUS and DRAM clock definitions are now exported in the dt-bindings header. We can remove the duplicated definitons in the clock driver. Signed-off-by: Paul Kocialkowski --- drivers/clk/sunxi-ng/ccu-sun8i-v3s.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-v3s.h b/drivers/clk/sunxi-ng/cc= u-sun8i-v3s.h index 345cdbbab362..c933ef016570 100644 --- a/drivers/clk/sunxi-ng/ccu-sun8i-v3s.h +++ b/drivers/clk/sunxi-ng/ccu-sun8i-v3s.h @@ -39,14 +39,10 @@ =20 /* The first bunch of module clocks are exported */ =20 -#define CLK_DRAM 58 - /* All the DRAM gates are exported */ =20 /* Some more module clocks are exported */ =20 -#define CLK_MBUS 72 - /* And the GPU module clock is exported */ =20 #define CLK_PLL_DDR1 74 --=20 2.54.0 From nobody Sat Jun 13 23:23:43 2026 Received: from leonov.paulk.fr (leonov.paulk.fr [185.233.101.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EAF442F9D98; Sat, 13 Jun 2026 15:27:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.233.101.22 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781364458; cv=none; b=GIN5W/1je6ug2wcjBiA02tX9LQdfH7ty/Mfc1Hh75z9AfzLpm4fYFGWobCrLxWyz3D/+miyQ36n8sdJF1JO8ZzKEJd0waTp9/EMoNHYkXXSPXtbyhJ3sWShkVLFH10VRy95ygsrkV14RU66SRzMqKtzMqOcJro5TyVEEtBmUEE4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781364458; c=relaxed/simple; bh=/31T6WAMjIR7AN2S3ymAQtgatmirOtaIef3/rrgW8Cw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DCYWsXVKP2ks8Uyz3yV8QAyzVsF1jsiBESsnzB3L2QEDnJzVSVsTafp4AaQlBksKiz/iGmO89vVAqOhekDZOvEbS0mZB91g983JVcAJj+JqsOdhm7i6U54NYL67RN+F1WG26j29YK+qejRObeMIhLvDNRTvBI1qVe54zy7vkCx8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sys-base.io; spf=pass smtp.mailfrom=sys-base.io; arc=none smtp.client-ip=185.233.101.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sys-base.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sys-base.io Received: from laika.paulk.fr (12.234.24.109.rev.sfr.net [109.24.234.12]) by leonov.paulk.fr (Postfix) with ESMTPS id BFBE63700310; Sat, 13 Jun 2026 15:27:18 +0000 (UTC) Received: by laika.paulk.fr (Postfix, from userid 65534) id 1CC71B4552C; Sat, 13 Jun 2026 15:27:17 +0000 (UTC) X-Spam-Level: ** Received: from collins (unknown [192.168.1.64]) by laika.paulk.fr (Postfix) with ESMTP id 86935B45520; Sat, 13 Jun 2026 15:26:58 +0000 (UTC) From: Paul Kocialkowski To: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Yong Deng , Paul Kocialkowski , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michael Turquette , Stephen Boyd , Brian Masney , Maxime Ripard , Paul Kocialkowski Subject: [PATCH v10 3/6] ARM: dts: sun8i: v3s: Add mbus node to represent the interconnect Date: Sat, 13 Jun 2026 17:26:52 +0200 Message-ID: <20260613152655.212490-4-paulk@sys-base.io> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260613152655.212490-1-paulk@sys-base.io> References: <20260613152655.212490-1-paulk@sys-base.io> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Paul Kocialkowski The V3s uses the mbus interconnect to provide DRAM access for a number of blocks. The SoC can only map 2 GiB of DRAM, which is reflected in the dma-ranges property. Signed-off-by: Paul Kocialkowski Reviewed-by: Samuel Holland --- arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi b/arch/arm/boot/dts= /allwinner/sun8i-v3s.dtsi index fa54510319ac..02d6c62b3874 100644 --- a/arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi +++ b/arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi @@ -629,6 +629,21 @@ int_mii_phy: ethernet-phy@1 { }; }; =20 + mbus: dram-controller@1c62000 { + compatible =3D "allwinner,sun8i-v3s-mbus"; + reg =3D <0x01c62000 0x1000>, + <0x01c63000 0x1000>; + reg-names =3D "mbus", "dram"; + clocks =3D <&ccu CLK_MBUS>, + <&ccu CLK_DRAM>, + <&ccu CLK_BUS_DRAM>; + clock-names =3D "mbus", "dram", "bus"; + #address-cells =3D <1>; + #size-cells =3D <1>; + dma-ranges =3D <0x00000000 0x40000000 0x80000000>; + #interconnect-cells =3D <1>; + }; + spi0: spi@1c68000 { compatible =3D "allwinner,sun8i-h3-spi"; reg =3D <0x01c68000 0x1000>; --=20 2.54.0 From nobody Sat Jun 13 23:23:43 2026 Received: from leonov.paulk.fr (leonov.paulk.fr [185.233.101.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3CB2A2E5B2A; Sat, 13 Jun 2026 15:27:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.233.101.22 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781364466; cv=none; b=VRL+bsUQakJa2QRMYJ/ljdGRjElOH5W2n0jTazRPpGLF2fo5FQTRrPUluT/+ZaeeOJLWXQlQHxqmyQXqixIilqJC0LbRqHwbsQtzJefFt7kOQ62OmOZCK71W8lrK/qlfKABx6ENZD6O8a7OdzDxz6iYdy2ULRPcIHPK78HT6zCI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781364466; c=relaxed/simple; bh=eBgXTDQqXUcLwMtmkeSXGHs4lmuVYm0cunSpPPBuHqs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ixr4tTcOgTvfNptsnZ7yDhV/VevMu8BJYIIpfc7VbDgpKcwAYfXj+A5OEdG2/GReNrH1DPNsYJ+zRT9m5SE2MN47AnpjiLm1U3T98bMZlvCvhxO//VTUO62aLEf8w56hXVMtEt5FbA91oN+SocJFUhcOisSUt73ciBwrN28luqE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sys-base.io; spf=pass smtp.mailfrom=sys-base.io; arc=none smtp.client-ip=185.233.101.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sys-base.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sys-base.io Received: from laika.paulk.fr (12.234.24.109.rev.sfr.net [109.24.234.12]) by leonov.paulk.fr (Postfix) with ESMTPS id 9B0F337002F2; Sat, 13 Jun 2026 15:27:27 +0000 (UTC) Received: by laika.paulk.fr (Postfix, from userid 65534) id A1D18B45529; Sat, 13 Jun 2026 15:27:22 +0000 (UTC) X-Spam-Level: ** Received: from collins (unknown [192.168.1.64]) by laika.paulk.fr (Postfix) with ESMTP id 14C7EB45525; Sat, 13 Jun 2026 15:26:59 +0000 (UTC) From: Paul Kocialkowski To: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Yong Deng , Paul Kocialkowski , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michael Turquette , Stephen Boyd , Brian Masney , Maxime Ripard Subject: [PATCH v10 4/6] dt-bindings: sun6i-a31-mipi-dphy: Add V3s SoC compatible entry Date: Sat, 13 Jun 2026 17:26:53 +0200 Message-ID: <20260613152655.212490-5-paulk@sys-base.io> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260613152655.212490-1-paulk@sys-base.io> References: <20260613152655.212490-1-paulk@sys-base.io> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The V3s/V3/S3 comes with a rx-only D-PHY paired with the MIPI CSI-2 controller. It is compatible with the D-PHY found on the A31. Add an entry with a new compatible and the A31 compatible as fallback. Signed-off-by: Paul Kocialkowski --- .../devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi= -dphy.yaml b/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi= -dphy.yaml index 6a4fd4929959..3ca1a1c47032 100644 --- a/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dphy.y= aml +++ b/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dphy.y= aml @@ -21,6 +21,9 @@ properties: - items: - const: allwinner,sun50i-a64-mipi-dphy - const: allwinner,sun6i-a31-mipi-dphy + - items: + - const: allwinner,sun8i-v3s-mipi-dphy + - const: allwinner,sun6i-a31-mipi-dphy - items: - const: allwinner,sun20i-d1-mipi-dphy - const: allwinner,sun50i-a100-mipi-dphy --=20 2.54.0 From nobody Sat Jun 13 23:23:43 2026 Received: from leonov.paulk.fr (leonov.paulk.fr [185.233.101.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C843B2C0F81; Sat, 13 Jun 2026 15:27:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.233.101.22 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781364474; cv=none; b=ibIOM9NOCEWTrKsnKy9s5BUaktjrL9pLjtPUsz5FgkijkCyyMu1U//jSM+vOcTN/HidZ6BNSfwR93L8FFvv3ebdTZpm1DI0wF9G8NvU1kn/360b2iX3HQQBVfO6y85156fWCsCDDDR99eLFp/Ew8BoFdfMCt/FA0kUUfOpbYJ/8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781364474; c=relaxed/simple; bh=J7v1juxJKJfvsGnnX9itA5lQ2enDVV4ANG1zfgzRBg8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bQEsd5r2zcyzP3WFonremomn+nDuhPFf1VGcAx2rNeDNmxD3MyozArXs7t2THc3QeTlYWaFDvZKy0AWsxL+qbNHhv9KeIBIalOscLoPR/sOxwLAQvwpUEkccKfgrmD26UVpZsOVYlvYc+Y/vgteYYpuwuhBru6wlVFQi2s5QMxY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sys-base.io; spf=pass smtp.mailfrom=sys-base.io; arc=none smtp.client-ip=185.233.101.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sys-base.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sys-base.io Received: from laika.paulk.fr (12.234.24.109.rev.sfr.net [109.24.234.12]) by leonov.paulk.fr (Postfix) with ESMTPS id D550C3700305; Sat, 13 Jun 2026 15:27:32 +0000 (UTC) Received: by laika.paulk.fr (Postfix, from userid 65534) id 54D12B45526; Sat, 13 Jun 2026 15:27:32 +0000 (UTC) X-Spam-Level: ** Received: from collins (unknown [192.168.1.64]) by laika.paulk.fr (Postfix) with ESMTP id 85322B45521; Sat, 13 Jun 2026 15:27:03 +0000 (UTC) From: Paul Kocialkowski To: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Yong Deng , Paul Kocialkowski , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michael Turquette , Stephen Boyd , Brian Masney , Maxime Ripard , Paul Kocialkowski Subject: [PATCH v10 5/6] ARM: dts: sun8i: v3s: Add nodes for MIPI CSI-2 support Date: Sat, 13 Jun 2026 17:26:54 +0200 Message-ID: <20260613152655.212490-6-paulk@sys-base.io> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260613152655.212490-1-paulk@sys-base.io> References: <20260613152655.212490-1-paulk@sys-base.io> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Paul Kocialkowski MIPI CSI-2 is supported on the V3s with an A31-based MIPI CSI-2 bridge controller. The controller uses a separate D-PHY, which is the same that is otherwise used for MIPI DSI, but used in Rx mode. On the V3s, the CSI0 controller is dedicated to MIPI CSI-2 as it does not have access to any parallel interface pins. Add all the necessary nodes (CSI0, MIPI CSI-2 bridge and D-PHY) to support the MIPI CSI-2 interface. Note that a fwnode graph link is created between CSI0 and MIPI CSI-2 even when no sensor is connected. This will result in a probe failure for the controller as long as no sensor is connected but this is fine since no other interface is available. The interconnects property is used to inherit the proper DMA offset. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi | 73 ++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi b/arch/arm/boot/dts= /allwinner/sun8i-v3s.dtsi index 02d6c62b3874..03a1739683b1 100644 --- a/arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi +++ b/arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi @@ -671,6 +671,79 @@ gic: interrupt-controller@1c81000 { interrupts =3D ; }; =20 + csi0: camera@1cb0000 { + compatible =3D "allwinner,sun8i-v3s-csi"; + reg =3D <0x01cb0000 0x1000>; + interrupts =3D ; + clocks =3D <&ccu CLK_BUS_CSI>, + <&ccu CLK_CSI_SCLK>, + <&ccu CLK_DRAM_CSI>; + clock-names =3D "bus", "mod", "ram"; + resets =3D <&ccu RST_BUS_CSI>; + interconnects =3D <&mbus 5>; + interconnect-names =3D "dma-mem"; + status =3D "disabled"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@1 { + reg =3D <1>; + + csi0_in_mipi_csi2: endpoint { + remote-endpoint =3D <&mipi_csi2_out_csi0>; + }; + }; + }; + }; + + mipi_csi2: csi@1cb1000 { + compatible =3D "allwinner,sun8i-v3s-mipi-csi2", + "allwinner,sun6i-a31-mipi-csi2"; + reg =3D <0x01cb1000 0x1000>; + interrupts =3D ; + clocks =3D <&ccu CLK_BUS_CSI>, + <&ccu CLK_CSI_SCLK>; + clock-names =3D "bus", "mod"; + resets =3D <&ccu RST_BUS_CSI>; + status =3D "disabled"; + + phys =3D <&dphy>; + phy-names =3D "dphy"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + mipi_csi2_in: port@0 { + reg =3D <0>; + }; + + mipi_csi2_out: port@1 { + reg =3D <1>; + + mipi_csi2_out_csi0: endpoint { + remote-endpoint =3D <&csi0_in_mipi_csi2>; + }; + }; + }; + }; + + dphy: d-phy@1cb2000 { + compatible =3D "allwinner,sun8i-v3s-mipi-dphy", + "allwinner,sun6i-a31-mipi-dphy"; + reg =3D <0x01cb2000 0x1000>; + interrupts =3D ; + clocks =3D <&ccu CLK_BUS_CSI>, + <&ccu CLK_MIPI_CSI>; + clock-names =3D "bus", "mod"; + resets =3D <&ccu RST_BUS_CSI>; + allwinner,direction =3D "rx"; + status =3D "disabled"; + #phy-cells =3D <0>; + }; + csi1: camera@1cb4000 { compatible =3D "allwinner,sun8i-v3s-csi"; reg =3D <0x01cb4000 0x3000>; --=20 2.54.0 From nobody Sat Jun 13 23:23:43 2026 Received: from leonov.paulk.fr (leonov.paulk.fr [185.233.101.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A3C3D315D40; Sat, 13 Jun 2026 15:27:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.233.101.22 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781364479; cv=none; b=GAhqOqE4Oz3iAq4jv7r1eknRYWlPwhlZncbg4VcrAmx0J62qCVAc9+KWO3pQB5DVmPfdxwxUoyiPBtHCUQvWYsXQHFKOohTad1qwHASSMwiuFcBWAxXmvTsuLnoqjRbIklqcrjhsTWtOeIbrirnJ51MBQmhi6gtwxm16T9kWrlE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781364479; c=relaxed/simple; bh=zfr84u0MZSa2RLf2Ehf1cE/V1OTPYcZ45F3vYPvHTUk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aLKw3qjlQfiUj6HHJbfToTvc941LZrs6ZoHF4HWLsC5/szXJgwU06VkRCbM5OXhEhacTKrCnruXLiNQfTbn6bK7eZ81c7jzx99sBz1M36Yd7VFiz0+kH92x3Ggy5V4bvR5QG8TqRj4SippjSvAbobWLKVDF3G4NoTfyvw/TacjM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sys-base.io; spf=pass smtp.mailfrom=sys-base.io; arc=none smtp.client-ip=185.233.101.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sys-base.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sys-base.io Received: from laika.paulk.fr (12.234.24.109.rev.sfr.net [109.24.234.12]) by leonov.paulk.fr (Postfix) with ESMTPS id B9666370030D; Sat, 13 Jun 2026 15:27:35 +0000 (UTC) Received: by laika.paulk.fr (Postfix, from userid 65534) id 1C640B4552A; Sat, 13 Jun 2026 15:27:35 +0000 (UTC) X-Spam-Level: ** Received: from collins (unknown [192.168.1.64]) by laika.paulk.fr (Postfix) with ESMTP id E0CFEB45527; Sat, 13 Jun 2026 15:27:03 +0000 (UTC) From: Paul Kocialkowski To: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Cc: Yong Deng , Paul Kocialkowski , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Michael Turquette , Stephen Boyd , Brian Masney , Maxime Ripard , Paul Kocialkowski Subject: [PATCH v10 6/6] ARM: dts: sun8i: v3s: Add support for the ISP Date: Sat, 13 Jun 2026 17:26:55 +0200 Message-ID: <20260613152655.212490-7-paulk@sys-base.io> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260613152655.212490-1-paulk@sys-base.io> References: <20260613152655.212490-1-paulk@sys-base.io> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Paul Kocialkowski The V3s (and related platforms) come with an instance of the A31 ISP. Even though it is very close to the A31 ISP, it is not exactly register-compatible and a dedicated compatible only is used as a result. Just like most other blocks of the camera pipeline, the ISP uses the common CSI bus, module and ram clock as well as reset. A port connection to the ISP is added to CSI0 for convenience since CSI0 serves for MIPI CSI-2 interface support, which is likely to receive raw data that will need to be processed by the ISP to produce a final image. The interconnects property is used to inherit the proper DMA offset. Signed-off-by: Paul Kocialkowski --- arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi b/arch/arm/boot/dts= /allwinner/sun8i-v3s.dtsi index 03a1739683b1..628d5504c3ae 100644 --- a/arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi +++ b/arch/arm/boot/dts/allwinner/sun8i-v3s.dtsi @@ -695,6 +695,14 @@ csi0_in_mipi_csi2: endpoint { remote-endpoint =3D <&mipi_csi2_out_csi0>; }; }; + + port@2 { + reg =3D <2>; + + csi0_out_isp: endpoint { + remote-endpoint =3D <&isp_in_csi0>; + }; + }; }; }; =20 @@ -755,5 +763,32 @@ csi1: camera@1cb4000 { resets =3D <&ccu RST_BUS_CSI>; status =3D "disabled"; }; + + isp: isp@1cb8000 { + compatible =3D "allwinner,sun8i-v3s-isp"; + reg =3D <0x01cb8000 0x1000>; + interrupts =3D ; + clocks =3D <&ccu CLK_BUS_CSI>, + <&ccu CLK_CSI_SCLK>, + <&ccu CLK_DRAM_CSI>; + clock-names =3D "bus", "mod", "ram"; + resets =3D <&ccu RST_BUS_CSI>; + interconnects =3D <&mbus 5>; + interconnect-names =3D "dma-mem"; + status =3D "disabled"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + + isp_in_csi0: endpoint { + remote-endpoint =3D <&csi0_out_isp>; + }; + }; + }; + }; }; }; --=20 2.54.0