1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/gpio/waveshare,dsi-touch-gpio.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Waveshare GPIO controller on DSI TOUCH panels 8 9maintainers: 10 - Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> 11 12description: 13 Waveshare DSI TOUCH panel kits contain separate GPIO controller for toggling 14 power supplies and panel / touchscreen resets. 15 16properties: 17 compatible: 18 const: waveshare,dsi-touch-gpio 19 20 reg: 21 maxItems: 1 22 23 gpio-controller: true 24 25 '#gpio-cells': 26 const: 2 27 28required: 29 - compatible 30 - reg 31 - gpio-controller 32 - "#gpio-cells" 33 34additionalProperties: false 35 36examples: 37 - | 38 #include <dt-bindings/gpio/gpio.h> 39 40 i2c { 41 #address-cells = <1>; 42 #size-cells = <0>; 43 44 wsgpio: gpio@45 { 45 compatible = "waveshare,dsi-touch-gpio"; 46 reg = <0x45>; 47 gpio-controller; 48 #gpio-cells = <2>; 49 }; 50 }; 51 52 panel_avdd: regulator-panel-avdd { 53 compatible = "regulator-fixed"; 54 regulator-name = "panel-avdd"; 55 gpios = <&wsgpio 0 GPIO_ACTIVE_HIGH>; 56 enable-active-high; 57 }; 58 59 panel_iovcc: regulator-panel-iovcc { 60 compatible = "regulator-fixed"; 61 regulator-name = "panel-iovcc"; 62 gpios = <&wsgpio 4 GPIO_ACTIVE_HIGH>; 63 enable-active-high; 64 }; 65 66 panel_vcc: regulator-panel-vcc { 67 compatible = "regulator-fixed"; 68 regulator-name = "panel-vcc"; 69 gpios = <&wsgpio 8 GPIO_ACTIVE_HIGH>; 70 enable-active-high; 71 regulator-always-on; 72 }; 73... 74