mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Romain TISSERAND <romain.tisserand@gmail.com>
To: Jagan Teki <jagan@amarulasolutions.com>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Jessica Zhang <jesszhan0024@gmail.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	Maxime Ripard <mripard@kernel.org>,
	Thomas Zimmermann <tzimmermann@suse.de>,
	David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, sashiko-reviews@lists.linux.dev
Subject: [PATCH 1/4] dt-bindings: display: panel: sitronix,st7701: make the port optional for DSI
Date: Fri, 27 Nov 2026 03:08:12 +0100	[thread overview]
Message-ID: <20261127020815.1621790-2-romain.tisserand@gmail.com> (raw)
In-Reply-To: <20261127020815.1621790-1-romain.tisserand@gmail.com>

A MIPI-DSI panel is a child node of its DSI host and the driver does not
use a graph port for it. Commit 2f50e0a0f9d3 ("dt-bindings: display:
panel: Make DSI panels port optional") made the port optional in the DSI
panel bindings for that reason. sitronix,st7701 was not part of it, as
the binding also covers panels with an RGB input set up over SPI, which
do need the port to the display controller output.

Make the port optional, and keep it required for the SPI-controlled RGB
panel (anbernic,rg28xx-panel) only, as that commit does for
ilitek,ili9806e.

The Allwinner sun6i-a31-mipi-dsi host links its panel through the child
node and has no output port, so the Miyoo A30 panel added next needs
this.

Signed-off-by: Romain TISSERAND <romain.tisserand@gmail.com>
---
 .../bindings/display/panel/sitronix,st7701.yaml       | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml b/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml
index 044b84d8638d..3ca9aa215b7f 100644
--- a/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml
+++ b/Documentation/devicetree/bindings/display/panel/sitronix,st7701.yaml
@@ -54,7 +54,6 @@ required:
   - reg
   - VCC-supply
   - IOVCC-supply
-  - port
   - reset-gpios
 
 allOf:
@@ -69,6 +68,16 @@ allOf:
     then:
       $ref: /schemas/spi/spi-peripheral-props.yaml#
 
+  - if:
+      properties:
+        compatible:
+          contains:
+            # RGB input, controlled over SPI
+            const: anbernic,rg28xx-panel
+    then:
+      required:
+        - port
+
   - if:
       properties:
         compatible:
-- 
2.43.0


  reply	other threads:[~2026-11-27  2:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-27  2:08 [PATCH 0/4] drm/panel: st7701: add the Miyoo A30 panel Romain TISSERAND
2026-11-27  2:08 ` Romain TISSERAND [this message]
2026-11-27  2:08 ` [PATCH 2/4] dt-bindings: display: panel: sitronix,st7701: " Romain TISSERAND
2026-11-27  2:08 ` [PATCH 3/4] drm/panel: st7701: let a panel provide its own init sequence and DSI flags Romain TISSERAND
2026-11-27  2:08 ` [PATCH 4/4] drm/panel: st7701: add the Miyoo A30 panel Romain TISSERAND

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261127020815.1621790-2-romain.tisserand@gmail.com \
    --to=romain.tisserand@gmail.com \
    --cc=airlied@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=jagan@amarulasolutions.com \
    --cc=jesszhan0024@gmail.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=mripard@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=simona@ffwll.ch \
    --cc=tzimmermann@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®