From: Sudarshan Shetty <tessolveupstream@gmail.com>
To: andersson@kernel.org, konradybcio@kernel.org
Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org,
linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
Sudarshan Shetty <tessolveupstream@gmail.com>
Subject: [PATCH v1 1/2] dt-bindings: arm: qcom: Add waveshare MIPI-DSI panels support
Date: Tue, 11 Nov 2025 16:12:44 +0530 [thread overview]
Message-ID: <20251111104245.3420041-1-tessolveupstream@gmail.com> (raw)
Device tree bindings for Waveshare MIPI-DSI panels
of various sizes (5.0, 5.5, 7.0, 8.0, and 10.1).
These panels require proper power sequencing via an external
regulator and a backlight node for brightness control.
Signed-off-by: Sudarshan Shetty <tessolveupstream@gmail.com>
---
.../display/panel/waveshare,dsi-panel.yaml | 84 +++++++++++++++++++
...waveshare,touchscreen-panel-regulator.yaml | 72 ++++++++++++++++
2 files changed, 156 insertions(+)
create mode 100644 Documentation/devicetree/bindings/display/panel/waveshare,dsi-panel.yaml
create mode 100644 Documentation/devicetree/bindings/regulator/waveshare,touchscreen-panel-regulator.yaml
diff --git a/Documentation/devicetree/bindings/display/panel/waveshare,dsi-panel.yaml b/Documentation/devicetree/bindings/display/panel/waveshare,dsi-panel.yaml
new file mode 100644
index 000000000000..a42ce065124f
--- /dev/null
+++ b/Documentation/devicetree/bindings/display/panel/waveshare,dsi-panel.yaml
@@ -0,0 +1,84 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/display/panel/waveshare,dsi-panel.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Waveshare 10.1" DSI Touch Display Panel
+
+maintainers:
+ - Sudarshan Shetty <tessolveupstream@gmail.com>
+
+allOf:
+ - $ref: panel-common.yaml#
+
+properties:
+ compatible:
+ enum:
+ - waveshare,12.3-dsi-touch-a,4lane
+ - waveshare,10.1-dsi-touch-a
+ - waveshare,10.1-dsi-touch-a-4lane
+ - waveshare,10.1-dsi-touch-b
+ - waveshare,10.1-dsi-touch-b,4lane
+ - waveshare,9.0-dsi-touch-b
+ - waveshare,9.0-dsi-touch-b,4lane
+ - waveshare,8.8-dsi-touch-a
+ - waveshare,8.0-dsi-touch-a
+ - waveshare,8.0-dsi-touch-a-4lane
+ - waveshare,7.0-dsi-touch-a
+ - waveshare,7.0-dsi-touch-b
+ - waveshare,5.5-dsi-touch-a
+ - waveshare,5.0-dsi-touch-a
+ - waveshare,4.0-dsi-touch-c
+ - waveshare,3.4-dsi-touch-c
+
+ reg:
+ description: DSI virtual channel
+ maxItems: 1
+
+ vdd-supply:
+ description: Power supply regulator for the panel
+
+ reset-gpios:
+ maxItems: 1
+ description: GPIO to control panel reset
+
+ enable-gpios:
+ maxItems: 1
+ description: GPIO to control panel power enable
+
+required:
+ - compatible
+ - reg
+ - vdd-supply
+ - reset-gpios
+ - enable-gpios
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+
+ dsi@ae94000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ panel@1 {
+ compatible = "waveshare,10.1-dsi-touch-a";
+ reg = <1>;
+ vdd-supply = <&vreg_l11a>;
+ reset-gpios = <&display_mcu 1 GPIO_ACTIVE_HIGH>;
+ enable-gpios = <&display_mcu 2 GPIO_ACTIVE_HIGH>;
+
+ port {
+ panel_in: endpoint {
+ remote-endpoint = <&mdss_dsi0_out>;
+ };
+ };
+ };
+ };
+
+ mdss_dsi0_out: endpoint {
+ remote-endpoint = <&panel_in>;
+ };
diff --git a/Documentation/devicetree/bindings/regulator/waveshare,touchscreen-panel-regulator.yaml b/Documentation/devicetree/bindings/regulator/waveshare,touchscreen-panel-regulator.yaml
new file mode 100644
index 000000000000..be81be5d2d74
--- /dev/null
+++ b/Documentation/devicetree/bindings/regulator/waveshare,touchscreen-panel-regulator.yaml
@@ -0,0 +1,72 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/regulator/waveshare,touchscreen-panel-regulator.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Waveshare Touchscreen Panel Regulator
+
+maintainers:
+ - Sudarshan Shetty <tessolveupstream@gmail.com>
+
+description: |
+ Regulator driver for Waveshare touchscreen display units.
+ This regulator enables and disables panel power and provides
+ backlight control over I2C.
+
+properties:
+ compatible:
+ const: waveshare,touchscreen-panel-regulator
+
+ reg:
+ maxItems: 1
+ description: I2C address of the regulator device
+
+ vin-supply:
+ description: Input supply regulator for the panel
+
+ enable-gpios:
+ maxItems: 1
+ description: GPIO to enable/disable regulator
+
+required:
+ - compatible
+ - reg
+ - vin-supply
+
+additionalProperties: false
+
+examples:
+ - |
+ /dts-v1/;
+ /plugin/;
+
+ / {
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ gpio: gpio-controller {
+ compatible = "test,gpio";
+ #gpio-cells = <2>;
+ };
+
+ vdd_3v3: regulator {
+ compatible = "regulator-fixed";
+ regulator-name = "vdd_3v3";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ };
+
+ i2c@980000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ compatible = "test,i2c";
+
+ panel-regulator@3c {
+ compatible = "waveshare,touchscreen-panel-regulator";
+ reg = <0x3c>;
+ vin-supply = <&vdd_3v3>;
+ enable-gpios = <&gpio 2 0>; /* active high */
+ };
+ };
+ };
--
2.34.1
next reply other threads:[~2025-11-11 10:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-11-11 10:42 Sudarshan Shetty [this message]
2025-11-11 10:42 ` [PATCH v1 2/2] arm64: dts: qcom: Add support to validate direct DSI Sudarshan Shetty
2025-11-11 10:49 ` Krzysztof Kozlowski
2025-11-11 11:10 ` Dmitry Baryshkov
2025-11-17 22:51 ` Bjorn Andersson
2025-11-11 10:48 ` [PATCH v1 1/2] dt-bindings: arm: qcom: Add waveshare MIPI-DSI panels support Krzysztof Kozlowski
2025-11-11 11:32 ` Rob Herring (Arm)
2025-11-17 23:05 ` Bjorn Andersson
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=20251111104245.3420041-1-tessolveupstream@gmail.com \
--to=tessolveupstream@gmail.com \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
/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