From patchwork Wed Sep 30 15:48:33 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nguyen Minh Tien X-Patchwork-Id: 3544 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mxe881.netcup.net (Postfix) with ESMTPS id 6F7A01C0D99 for ; Wed, 30 Sep 2026 18:07:22 +0200 (CEST) Authentication-Results: mxe881; dkim=temperror header.d=embeddedlinux.blog; spf=pass (sender IP is 172.105.105.114) smtp.mailfrom=linux-sunxi+bounces-26431-noreply=patchwork.local@lists.linux.dev smtp.helo=tor.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.105.105.114 as permitted sender) client-ip=172.105.105.114; envelope-from=linux-sunxi+bounces-26431-noreply=patchwork.local@lists.linux.dev; helo=tor.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by tor.lore.kernel.org (Postfix) with ESMTP id 5F81084470 for ; Wed, 30 Sep 2026 15:50:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4252F509F06; Wed, 30 Sep 2026 15:48:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=embeddedlinux.blog header.i=@embeddedlinux.blog header.b="LF/b6qFU" X-Original-To: linux-sunxi@lists.linux.dev Received: from mail-pj2-f11.google.com (mail-pj2-f11.google.com [74.125.227.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CC763380FEB for ; Wed, 30 Sep 2026 15:48:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.227.139 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790783334; cv=none; b=ldW9KtGyGNVPYFMAGfzw2ryo7HcC2xNGGpfgnFfH3JtjNpWODvTpcocXmf0v5u3+2Rtj/T7CF+TUknNsRQBNvvyTxMtL+xLopKp4Jm2Z7yWx6/Lc1yT2ZHGJ23478DFbXwrBmjR8pKtX5gg4AiJoFdXA75f2PZHuNoSrFuRgb2s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790783334; c=relaxed/simple; bh=8hfxOJPdIcGIvY3nw8uhTRifk/anp+VB7FLMnAUGf+w=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=KgzJ/YXepswlpANZizxhJDj0Rlu9eFo5ygm8r3NM74qGzwgh624i1dWleEB/Iwv2xgskyDwBjj7X788M9f8EfNTBTL5EGk5S1O5t2Cl9tzCAlyU6+2dZ6u5NY0lVRPbRqGOu1/5FMzIezG565Y4esut+XAlS0fq+wmH1yx2eUH0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=embeddedlinux.blog; spf=pass smtp.mailfrom=embeddedlinux.blog; dkim=pass (2048-bit key) header.d=embeddedlinux.blog header.i=@embeddedlinux.blog header.b=LF/b6qFU; arc=none smtp.client-ip=74.125.227.139 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=embeddedlinux.blog Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=embeddedlinux.blog Received: by mail-pj2-f11.google.com with SMTP id 98e67ed59e1d1-3a0aa5e2b20so1745111a91.1 for ; Wed, 30 Sep 2026 08:48:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embeddedlinux.blog; s=google; t=1790783327; x=1791388127; darn=lists.linux.dev; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=RylIL5PtKoKSEB6fKFx6teI8foZIXlgeBAHnwrC12eE=; b=LF/b6qFUxRtT0voyae23IyAgbROgcqf2YKnHE4VU8g55+rtnwjGt1bTmx5EqerlfUa VVuLaTlTGQiWYL2TdiW7CGK+RzVTGhmUUdRBfnZQlxjF/1GXoKlMtg7NTbhL965DqXxN Vrf9oCUCQsz25uiXkYs3Wo4UvDzHDxJfxIG9IPDCS07mP7HXJHmnVrHfOM5oOvWXCkTM r5Bv9qd1Awn6dJHbumNCAhS6F8dpUrHsXKHPGymeea4sapKtrRk/fyd1AkPMSsFX7mJE g5CVga5Qtgwf2bHQ+w2spBHxPpZobLra9OWwIsqwwG/pvDI9zw8KgNYjJ7kNmFXkIkzg yF0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790783327; x=1791388127; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=RylIL5PtKoKSEB6fKFx6teI8foZIXlgeBAHnwrC12eE=; b=HCFEWAMx6/yvq1CEpBpCNvAMIVHH2TetuJ0zMdPK1zUJCYMEAiz5dTnwqL3qQRQs69 ImSupbvy1X6Qlgay0OfFx/TFfktCuVCFTwVNErC2294uJfRD15biJO4Q89U+YqOvHtOE cRP6EUhwnLb24pdVNQ57emzXsF323tube0zCknrzQHEdpFVf7HpDPcVUHRIoM2jyHqLL EPxrEyjYU2gExi6YyHCTaQRe3XsCN9gD+0FmN5baYORe60cZXDi6E2+S13kZ9EolMt81 1AKTMi8sTzD3SycTSFrznXyOLZrt093+E8CodsuFBLJZ9gECXdsCQiwpoCos2aUbwpAJ GwOg== X-Forwarded-Encrypted: i=1; AKwUvBwoMRVeAS510mP2x2WkgkUtdPjeBM5kMF5JaCeN5/dF4mM9bfJC88oi8qXQMPdEvM9MorIebo744rBW1A==@lists.linux.dev X-Gm-Message-State: AFq9FYIJJgYDYSnmUjp/8NtjW4OoCqIatwgcNzRSd74G1PpV+1wR+G+e sF24MRCAD95u8lpfPj0hH9Fp39Nam8CnTmrIp4cqv6OC1Ut7xSyV1Tw6535/8dtZDSu/ X-Gm-Gg: AYBFou0kIiPWih+WUpqL8bu1rSLDoEvfSP+ojpHw0XICfCltEOsalaqeXP1lRxVoMb1 lI4IbXq8/H8c5M+NzJF7YfhNDhVplq+lrhHxwjfIqf7yLnl2XPnCsV1mxIAWg6N05JiCH3FQ+gl xaNV+z+cbJhJJUqYvzuxbTg7r/vSrw0pSnUFilzmHqt7qiLi2wWRbmKFJ8GReIw9/crq9OfjdjP 4DosMgZOfWISJ8ChMvI5wdeqac9gdjxBoLWke9C48RQEk4w0Kq3CJ6SUzaOQA81FcFLSds0Qkjo 5K5ByG5Z5Ka8uce2w9I0nPKnobj16Hjy5rMLKXUNvAaF0tcckS6Z6fwDAIm8NCXJoqakjCLlKrN XSX/7TOMok2vF4fMaoa/anuJQrwMYMor8LsawuUkpepvxLEhXAQbHLvzzdH1rBSJsKJVs/zwBJd V46aIX2icxlcYTWmc6uDkojfYiml1ytK5OuzfYYxi13iBMVndTL564mGoOf7zGAdHcBPfBxVJvL JvztTPl X-Received: by 2002:a17:90b:2888:b0:3a2:b465:fb8a with SMTP id 98e67ed59e1d1-3a4d1ddc911mr1860992a91.67.1790783327152; Wed, 30 Sep 2026 08:48:47 -0700 (PDT) Received: from ltu.. ([171.245.4.151]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3a4ee4d0af2sm308136a91.2.2026.09.30.08.48.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2026 08:48:46 -0700 (PDT) From: Nguyen Minh Tien To: Mauro Carvalho Chehab , Hans Verkuil Cc: Nguyen Minh Tien , Sakari Ailus , Laurent Pinchart , Paul Kocialkowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Ghiti , Philipp Zabel , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] dt-bindings: media: Add Allwinner D1 CSIC Date: Wed, 30 Sep 2026 22:48:33 +0700 Message-Id: <20260930154835.402684-2-tien.nguyenminh@embeddedlinux.blog> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260930154835.402684-1-tien.nguyenminh@embeddedlinux.blog> References: <20260930154835.402684-1-tien.nguyenminh@embeddedlinux.blog> Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [5.84 / 15.00]; RBL_SENDERSCORE(2.00)[172.105.105.114:from]; SUSPICIOUS_RECIPS(1.50)[]; MID_CONTAINS_FROM(1.00)[]; DMARC_POLICY_SOFTFAIL(1.00)[embeddedlinux.blog : SPF not aligned (relaxed), No valid DKIM,none]; R_MISSING_CHARSET(0.50)[]; MAILLIST(-0.15)[generic]; MIME_GOOD(-0.10)[text/plain]; BAD_REP_POLICIES(0.10)[]; HAS_LIST_UNSUB(-0.01)[]; TAGGED_RCPT(0.00)[dt]; RCVD_VIA_SMTP_AUTH(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[devicetree.org:url,tor.lore.kernel.org:rdns,tor.lore.kernel.org:helo,embeddedlinux.blog:email]; RCPT_COUNT_TWELVE(0.00)[23]; FORGED_SENDER_MAILLIST(0.00)[]; DBL_PROHIBIT(0.00)[0.88.128.64:email]; FREEMAIL_CC(0.00)[embeddedlinux.blog,linux.intel.com,ideasonboard.com,sys-base.io,kernel.org,gmail.com,sholland.org,dabbelt.com,eecs.berkeley.edu,ghiti.fr,pengutronix.de,vger.kernel.org,lists.infradead.org,lists.linux.dev]; PRECEDENCE_BULK(0.00)[]; ARC_ALLOW(0.00)[subspace.kernel.org:s=arc-20240116:i=1]; RCVD_COUNT_FIVE(0.00)[6]; ASN(0.00)[asn:63949, ipnet:172.105.96.0/20, country:SG]; R_SPF_ALLOW(0.00)[+ip4:172.105.105.114]; URIBL_MULTI_FAIL(0.00)[devicetree.org:server fail,0.88.128.64:server fail,embeddedlinux.blog:server fail]; TO_DN_SOME(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.90.174.1:received,74.125.227.139:received]; FROM_HAS_DN(0.00)[]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; MIME_TRACE(0.00)[0:+]; TAGGED_FROM(0.00)[bounces-26431-noreply=patchwork.local]; RECEIVED_SPAMHAUS_PBL(0.00)[171.245.4.151:received]; FROM_NEQ_ENVFROM(0.00)[tien.nguyenminh@embeddedlinux.blog,linux-sunxi@lists.linux.dev]; RCVD_TLS_LAST(0.00)[]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.105.105.114:from] X-Rspamd-Queue-Id: 6F7A01C0D99 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= Add a binding for the camera interface (CSIC) of the Allwinner D1, D1s and T113. It is not the A31 CSI: its parser and DMA engines are separate blocks. Only the 8-bit parallel input is pinned out on these SoCs. Signed-off-by: Nguyen Minh Tien --- .../media/allwinner,sun20i-d1-csi.yaml | 111 ++++++++++++++++++ MAINTAINERS | 7 ++ 2 files changed, 118 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/allwinner,sun20i-d1-csi.yaml diff --git a/Documentation/devicetree/bindings/media/allwinner,sun20i-d1-csi.yaml b/Documentation/devicetree/bindings/media/allwinner,sun20i-d1-csi.yaml new file mode 100644 index 0000000000..2bfe2cc9af --- /dev/null +++ b/Documentation/devicetree/bindings/media/allwinner,sun20i-d1-csi.yaml @@ -0,0 +1,111 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/allwinner,sun20i-d1-csi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Allwinner D1 CMOS Sensor Interface Controller (CSIC) + +maintainers: + - Nguyen Minh Tien + +description: + The CSIC found in the Allwinner D1, D1s and T113 receives video from a + parallel camera interface and writes it to memory. It contains a parser for + the camera bus and two DMA engines. + +properties: + compatible: + const: allwinner,sun20i-d1-csi + + reg: + maxItems: 1 + + interrupts: + items: + - description: DMA engine 0 + - description: DMA engine 1 + - description: Parser 0 + - description: Top-level block (CSI_TOP_PKT) + + clocks: + items: + - description: Bus clock + - description: Module clock + - description: DRAM clock + + clock-names: + items: + - const: bus + - const: mod + - const: ram + + resets: + maxItems: 1 + + iommus: + maxItems: 1 + + port: + $ref: /schemas/graph.yaml#/$defs/port-base + description: Parallel input port, connect to a parallel sensor + unevaluatedProperties: false + + properties: + endpoint: + $ref: video-interfaces.yaml# + unevaluatedProperties: false + + properties: + bus-width: + const: 8 + + pclk-sample: true + hsync-active: true + vsync-active: true + + required: + - bus-width + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - resets + - port + +additionalProperties: false + +examples: + - | + #include + #include + #include + + csi@5800000 { + compatible = "allwinner,sun20i-d1-csi"; + reg = <0x05800000 0x400000>; + interrupts = <111 IRQ_TYPE_LEVEL_HIGH>, + <112 IRQ_TYPE_LEVEL_HIGH>, + <116 IRQ_TYPE_LEVEL_HIGH>, + <122 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&ccu CLK_BUS_CSI>, + <&ccu CLK_CSI_TOP>, + <&ccu CLK_MBUS_CSI>; + clock-names = "bus", "mod", "ram"; + resets = <&ccu RST_BUS_CSI>; + + port { + endpoint { + remote-endpoint = <&ov5640_ep>; + bus-width = <8>; + hsync-active = <1>; /* Active high */ + vsync-active = <0>; /* Active low */ + pclk-sample = <1>; /* Rising */ + }; + }; + }; + +... diff --git a/MAINTAINERS b/MAINTAINERS index f5eff489a8..f4c45c4678 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -905,6 +905,13 @@ L: linux-crypto@vger.kernel.org S: Maintained F: drivers/crypto/allwinner/ +ALLWINNER D1 CSIC DRIVER +M: Nguyen Minh Tien +L: linux-media@vger.kernel.org +S: Maintained +T: git git://linuxtv.org/media.git +F: Documentation/devicetree/bindings/media/allwinner,sun20i-d1-csi.yaml + ALLWINNER DMIC DRIVERS M: Ban Tao L: linux-sound@vger.kernel.org