Documentation / devicetree / bindings / gpio / waveshare,dsi-touch-gpio.yaml


Based on kernel version 7.2. Page generated on 2026-08-20 08:41 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/gpio/waveshare,dsi-touch-gpio.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Waveshare GPIO controller on DSI TOUCH panels

maintainers:
  - Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>

description:
  Waveshare DSI TOUCH panel kits contain separate GPIO controller for toggling
  power supplies and panel / touchscreen resets.

properties:
  compatible:
    const: waveshare,dsi-touch-gpio

  reg:
    maxItems: 1

  gpio-controller: true
 
  '#gpio-cells':
    const: 2

required:
  - compatible
  - reg
  - gpio-controller
  - "#gpio-cells"

additionalProperties: false

examples:
  - |
    #include <dt-bindings/gpio/gpio.h>
 
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;
 
        wsgpio: gpio@45 {
            compatible = "waveshare,dsi-touch-gpio";
            reg = <0x45>;
            gpio-controller;
            #gpio-cells = <2>;
        };
    };
 
    panel_avdd: regulator-panel-avdd {
        compatible = "regulator-fixed";
        regulator-name = "panel-avdd";
        gpios = <&wsgpio 0 GPIO_ACTIVE_HIGH>;
        enable-active-high;
    };
 
    panel_iovcc: regulator-panel-iovcc {
        compatible = "regulator-fixed";
        regulator-name = "panel-iovcc";
        gpios = <&wsgpio 4 GPIO_ACTIVE_HIGH>;
        enable-active-high;
    };
 
    panel_vcc: regulator-panel-vcc {
        compatible = "regulator-fixed";
        regulator-name = "panel-vcc";
        gpios = <&wsgpio 8 GPIO_ACTIVE_HIGH>;
        enable-active-high;
        regulator-always-on;
    };
...