| Message ID | 20260613152655.212490-5-paulk@sys-base.io (mailing list archive) |
|---|---|
| State | New |
| Headers |
Return-Path: <linux-sunxi+bounces-23813-sunxi=pue.re@lists.linux.dev> 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 BDF1F1C026A for <noreply@patchwork.local>; Sat, 13 Jun 2026 17:28:43 +0200 (CEST) Authentication-Results: mxe881; spf=pass (sender IP is 172.105.105.114) smtp.mailfrom=linux-sunxi+bounces-23813-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-23813-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 21966303AF1F for <noreply@patchwork.local>; Sat, 13 Jun 2026 15:27:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B02D82FBDFD; Sat, 13 Jun 2026 15:27:40 +0000 (UTC) X-Original-To: linux-sunxi@lists.linux.dev 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 524DB33EB01 for <linux-sunxi@lists.linux.dev>; Sat, 13 Jun 2026 15:27:39 +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=1781364460; cv=none; b=NfmuZczdlqfF5z/K0sieARHtUNFm1ymVCf/BJjCwirSzAgdWUg8rVF3BFxxgu/VpxQ/rUaLMj1xHxzNzWkaLqiNo1wHKeCTW/kQ/UShJAv7RjpYpEEEJUAtRT+EGbRfPv//kG2SzuM/DejC7uRUqxPh+RHDKALAmuc4KeFxEYO0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781364460; c=relaxed/simple; bh=eBgXTDQqXUcLwMtmkeSXGHs4lmuVYm0cunSpPPBuHqs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HSFkONt/8w/mbI2dJKzQrGNkzGy1bOhR0+zy98w+XP5XE0/QzGJdP2oJtGUS0EjdQ3UQs2P1vRRTNTWWmw6kb6MaEWcFjVzW1RsdPg5RVVwbkBihm4wg6XRbkUovtQAgbJozTQskz2Q8u6YXgl8L+gS7/ktCyqI32WFNhdTcF+U= 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 A17A637002DC for <linux-sunxi@lists.linux.dev>; Sat, 13 Jun 2026 15:27:20 +0000 (UTC) Received: by laika.paulk.fr (Postfix, from userid 65534) id 08AA5B45524; 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 14C7EB45525; Sat, 13 Jun 2026 15:26:59 +0000 (UTC) From: Paul Kocialkowski <paulk@sys-base.io> 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 <yong.deng@magewell.com>, Paul Kocialkowski <paulk@sys-base.io>, Mauro Carvalho Chehab <mchehab@kernel.org>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Chen-Yu Tsai <wens@kernel.org>, Jernej Skrabec <jernej.skrabec@gmail.com>, Samuel Holland <samuel@sholland.org>, Michael Turquette <mturquette@baylibre.com>, Stephen Boyd <sboyd@kernel.org>, Brian Masney <bmasney@redhat.com>, Maxime Ripard <mripard@kernel.org> 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-sunxi@lists.linux.dev List-Id: <linux-sunxi.lists.linux.dev> List-Subscribe: <mailto:linux-sunxi+subscribe@lists.linux.dev> List-Unsubscribe: <mailto:linux-sunxi+unsubscribe@lists.linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [-0.66 / 15.00]; BAYES_HAM(-5.50)[99.99%]; RBL_SENDERSCORE(2.00)[172.105.105.114:from]; SUSPICIOUS_RECIPS(1.50)[]; MID_CONTAINS_FROM(1.00)[]; 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)[]; FREEMAIL_CC(0.00)[magewell.com,sys-base.io,kernel.org,gmail.com,sholland.org,baylibre.com,redhat.com]; DMARC_NA(0.00)[sys-base.io]; FUZZY_BLOCKED(0.00)[rspamd.com]; MIME_TRACE(0.00)[0:+]; DBL_BLOCKED_OPENRESOLVER(0.00)[sys-base.io:email,tor.lore.kernel.org:rdns,tor.lore.kernel.org:helo]; RCPT_COUNT_TWELVE(0.00)[18]; TAGGED_RCPT(0.00)[dt]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_SEVEN(0.00)[7]; URIBL_MULTI_FAIL(0.00)[sys-base.io:server fail]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; R_SPF_ALLOW(0.00)[+ip4:172.105.105.114]; TO_DN_SOME(0.00)[]; PRECEDENCE_BULK(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:63949, ipnet:172.105.96.0/20, country:SG]; FROM_NEQ_ENVFROM(0.00)[paulk@sys-base.io,linux-sunxi@lists.linux.dev]; R_DKIM_NA(0.00)[]; ARC_ALLOW(0.00)[subspace.kernel.org:s=arc-20240116:i=1]; TAGGED_FROM(0.00)[bounces-23813-noreply=patchwork.local]; FORGED_SENDER_MAILLIST(0.00)[] X-Rspamd-Queue-Id: BDF1F1C026A 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?= |
| Series |
Allwinner A31/A83T MIPI CSI-2 and A31 ISP / Platform Support
|
|
Commit Message
Paul Kocialkowski
June 13, 2026, 3:26 p.m. UTC
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 <paulk@sys-base.io>
---
.../devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml | 3 +++
1 file changed, 3 insertions(+)
Comments
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] The newly added V3s compatible string is for an rx-only hardware variant, but the binding schema allows it to incorrectly default to `tx`. -- commit 2fd664ce10fb7edbf45c93a3bcbbd8adb0bad2ea Author: Paul Kocialkowski <paulk@sys-base.io> dt-bindings: sun6i-a31-mipi-dphy: Add V3s SoC compatible entry 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. > 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 6a4fd49299590..3ca1a1c47032f 100644 > --- a/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml > +++ b/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml > @@ -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 [Severity: Medium] Since the commit message indicates the V3s D-PHY is rx-only, should this schema include an if-then block to enforce the rx direction? The base binding defines allwinner,direction with a default of tx: allwinner,direction: ... enum: - tx - rx default: tx Without an allOf if-then block constraining this property for the allwinner,sun8i-v3s-mipi-dphy compatible string, a V3s device tree node that omits the property will implicitly default to tx. Would this allow an incomplete device tree node to pass schema validation while misconfiguring the rx-only hardware?
Hi, Le Sat 13 Jun 26, 15:35, sashiko-bot@kernel.org a écrit : > Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: > - [Medium] The newly added V3s compatible string is for an rx-only hardware variant, but the binding schema allows it to incorrectly default to `tx`. > -- > > commit 2fd664ce10fb7edbf45c93a3bcbbd8adb0bad2ea > Author: Paul Kocialkowski <paulk@sys-base.io> > > dt-bindings: sun6i-a31-mipi-dphy: Add V3s SoC compatible entry > > 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. > > > 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 6a4fd49299590..3ca1a1c47032f 100644 > > --- a/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml > > +++ b/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml > > @@ -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 > > [Severity: Medium] > Since the commit message indicates the V3s D-PHY is rx-only, should this > schema include an if-then block to enforce the rx direction? > > The base binding defines allwinner,direction with a default of tx: > > allwinner,direction: > ... > enum: > - tx > - rx > default: tx > > Without an allOf if-then block constraining this property for the > allwinner,sun8i-v3s-mipi-dphy compatible string, a V3s device tree node > that omits the property will implicitly default to tx. > > Would this allow an incomplete device tree node to pass schema validation > while misconfiguring the rx-only hardware? That is correct, but maybe a bit over the top. If someone thinks this should be done, feel free to let me know and I can respin. All the best, Paul
On Sat, Jun 13, 2026 at 05:26:53PM +0200, Paul Kocialkowski wrote: > 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 <paulk@sys-base.io> > --- > .../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.yaml > +++ b/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml > @@ -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 So that's enum with previous first entry (50i-a64) - same fallback. Best regards, Krzysztof
Hi, Le Sat 13 Jun 26, 20:22, Krzysztof Kozlowski a écrit : > On Sat, Jun 13, 2026 at 05:26:53PM +0200, Paul Kocialkowski wrote: > > 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 <paulk@sys-base.io> > > --- > > .../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.yaml > > +++ b/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml > > @@ -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 > > So that's enum with previous first entry (50i-a64) - same fallback. Ah sorry about that. Thanks for the review! All the best, Paul
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.yaml +++ b/Documentation/devicetree/bindings/phy/allwinner,sun6i-a31-mipi-dphy.yaml @@ -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