From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (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 BEC8B361DA0 for ; Sat, 11 Apr 2026 12:11:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775909495; cv=none; b=XwfSQJJRcwBhvZwFs42SxhN+GsmBlJf3AIayr+6t6v1fghfp3N8JQKaYyvdaEY6Q2xfAtswpRrYEIdffJP1R05mcqmeMbRO6sHrKpXRC2EW7sAR+uoWhzNqPYjsVmlAN3I1FrX3iYoP6twDs69TH3ghGgqle/CE+7QBcMNmxCZU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775909495; c=relaxed/simple; bh=TunD4E0x54s+DUKwuOGbXcTKMUnxxvwmjd9+k4H8VAQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=sLLKCFcmBlYbdI95T4g7VW3Wnxp46X1ue2etYlAcvJ97YNNDVxRhC5reU26WyRD3kT822tVw8e9z6l/7ianD5HVn83aj5+5uU2MS3SiLCXqmusGFTKDbt1lUZaBS26GBiw/5mHw8TQ9XtK7FlfXFaikcaBPuinX2m91RZbRVJBs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=HVtX1g1H; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=TsFLe/Bh; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="HVtX1g1H"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="TsFLe/Bh" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 63B47idn1200641 for ; Sat, 11 Apr 2026 12:11:32 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= U5Psy+WxXrFJxWjrPWpUan7fIsF4S4KxZB8EgUH3wwc=; b=HVtX1g1Hn1UjhWAO eUueBXyLW5F/JIiQD1ybbQrYHa1VlqXQc5keMZ5KOEitP+cIP9APU4wt5pnfXlK2 u45AhyigTGRnVOfP673i09iqypc6/Ln465w2cvUW+sEsevIzbXgIrXchSuowPlgo BoT+J23XHz2W5h2P97ekfqQqR7Blr514IchPmEIc6P+iW0I4mLrwG9rhiLN5DHU8 7k792e1QO5PlixINwHFV2gxC6+1uA6UUIrW5r5Y41lJ4EJhnWrtEkQ1ce8X5p3CH zisVNHcvFmeTMCiSgNtXUGhaU4zGeWKlhOftJhB7oVtGSflnOnNksh/1ozd6ps17 zTPL8w== Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dff0jrnaj-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sat, 11 Apr 2026 12:11:32 +0000 (GMT) Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-50b31cff27fso25700931cf.3 for ; Sat, 11 Apr 2026 05:11:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1775909492; x=1776514292; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=U5Psy+WxXrFJxWjrPWpUan7fIsF4S4KxZB8EgUH3wwc=; b=TsFLe/Bhx8UyYTdAo/KSMCBNliaQhVrDVS+P0exaRb5zg6tCT7Vh6TmMPBSh6KRXNh BzMz0PPjRDBZlZjgnJ5r3/HOm9hgcpIOxlPmDhYkHgB60Tqq4zfMAbRheLjQkCS+w6Eb PazcpQi6hemf84NtorqM2cqaYjxocDjqWCPbCwUh0Xt47rshbyceHr1+zFLbj2Cuo9qT dXd9gr6nG4SIKM8U8nVu5Icct4MUwGvjDYgo9/K4l3ijBAa/hhrcC4ZsjEPWvJjsvBCN 0X0xaIhCBMYMpSc9NAOZS8Lp1hJklNeZAui5j9OAaOXg7rmuks+WPyFo+10Q42glSpjG wImw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775909492; x=1776514292; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=U5Psy+WxXrFJxWjrPWpUan7fIsF4S4KxZB8EgUH3wwc=; b=BZgwtfBbDKecyBY4QlPNpvdxaPA5piuA9wmwviKyRfgPlVE/FjBUnAP8Uju7XuL6VS 0bDFwMQIdGH5cbbJEFUy9uaJ3JNsrS5zvuIV1pbctv3FCijEEdWihRwqA5fW3+LkEp2u IttfIHxiZA63bbdF3C6eR7BZ7x4mj0uTZnaIwvox004sr4KvJAlDKEMxcTisv/KL6Fei Mj7WN0lxO8zBLF5Lra9iMznMqWd0eiI/2RKrWDC5uYu70Le9ydP31Lf/gMMoM9/0jdE9 PwowN6Vrc98VCxHJBURtN+PmzPU+ASJgaSu8WUUdIgN0eO3G7l0lkNcpWHG1DX9LDamd lfdA== X-Forwarded-Encrypted: i=1; AJvYcCVNohqHHILVUKXKlfb4jpChnoJT2jSw0dc+CWRS2aQjzkZFV6OciuLnBrshcDbw0j4DTo922kNm2UmwEAI=@vger.kernel.org X-Gm-Message-State: AOJu0Yy9P6fCT0zwEXjuNsJC53BjgHGsRPvMzGDuI02dWmFAKvb4tlRV uA9KEUMUNDnW78aACAdnA4DBzUFm8Vl4Q8ogln8fF9MbAcGBQjCYFIFVrdCnWP6wXRxd917MEjY MhIS1Qi5O6sEql5zrwghb3Ooi82rBLG6ZaP6LmVrIBBsu24YmMt0nRwY+ZBLMQgTBSGU= X-Gm-Gg: AeBDieurPZ4hqQCdKXHgtM4C2mhKXY/sn1UpFJ0mOwHCO89blLE5E3czpAPms/GAEE8 g7nVO+UobvxbdfXGZjLZ8nMMQLv7W1HmtnE52KWtXGKwKQD6Fv31raaG56ChtssuufLGClPbRlH j6NMngrjybBg/l4wOvVvpDJei9WVy31iDSq1WuiuDAhmS7UqD56jnf7CwXlX8RclFCbeLRHlED4 clBouGnYUu1W6mD5ip9MAy1/FqC3/Cy3lhIicQppkRe4E50weDU1rfBjK/llJfpDStn91qaZCAk yx7NJx58YKGA4sMNp79JFmhMqZC2g8LnpJmMTK1GJJUKUWTUVAbwLSlzyaTuZyvee7NDGf1Wxrd riDUXs+Nr6Ja5hSv1R4p/WI3ygZnhjgdWqZydAus1gHBwhYOBPHo/bk2fawKoj5tJNuAwBHN44s V24yoIAMZArb/12/VZytqYN/F+a0uqP82sKlg= X-Received: by 2002:ac8:7e96:0:b0:50b:3d1e:58ba with SMTP id d75a77b69052e-50dd5b00979mr98626961cf.28.1775909492102; Sat, 11 Apr 2026 05:11:32 -0700 (PDT) X-Received: by 2002:ac8:7e96:0:b0:50b:3d1e:58ba with SMTP id d75a77b69052e-50dd5b00979mr98626411cf.28.1775909491599; Sat, 11 Apr 2026 05:11:31 -0700 (PDT) Received: from umbar.lan (2001-14ba-a073-af00-264b-feff-fe8b-be8a.rev.dnainternet.fi. [2001:14ba:a073:af00:264b:feff:fe8b:be8a]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-38e495b4e73sm11906291fa.41.2026.04.11.05.11.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Apr 2026 05:11:30 -0700 (PDT) From: Dmitry Baryshkov Date: Sat, 11 Apr 2026 15:10:40 +0300 Subject: [PATCH v2 20/21] dt-bindings: gpio: describe Waveshare GPIO controller Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260411-waveshare-dsi-touch-v2-20-75cdbeac5156@oss.qualcomm.com> References: <20260411-waveshare-dsi-touch-v2-0-75cdbeac5156@oss.qualcomm.com> In-Reply-To: <20260411-waveshare-dsi-touch-v2-0-75cdbeac5156@oss.qualcomm.com> To: Neil Armstrong , Jessica Zhang , David Airlie , Simona Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Cong Yang , Ondrej Jirman , Javier Martinez Canillas , Jagan Teki , Liam Girdwood , Mark Brown , Linus Walleij , Bartosz Golaszewski Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Riccardo Mereu X-Mailer: b4 0.15.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=3630; i=dmitry.baryshkov@oss.qualcomm.com; h=from:subject:message-id; bh=TunD4E0x54s+DUKwuOGbXcTKMUnxxvwmjd9+k4H8VAQ=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBp2jpHtM3Gez7N+kbhy0GNn7VWDq9k4rV8AIC5g V9gzMYNDHuJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCado6RwAKCRCLPIo+Aiko 1dOlB/9R7LXGfMg9J3Q3qbrUwPk+5jcoHdyw4BIu1kwNEY6QOBkdv6gsS6c3TuPy3k0JwKB93h0 fOMRcIaHEOlOn25jeLblSp/mrdVhZCAb5J9U3ecVDSBU1Kep9OoFnBimg+yTRWtG4u46uAElXsq PpizulwSizhLUPv32+Szedtdb/fRJRpNR9vqfAUJmc5QcV6kSogBIO0cpM+bhQdKJLNklkClg8u itHCVH92adX1pQ/CJdsNgRTGzExAZSkf7OnJhhctcdmAAD8lOYWKC/Eb6VpLmoVFgxE58V5ldX9 BbfgdcO7eIP825VIrDzxhl9u85az+rqkOPQlcrysLmZiW+B3 X-Developer-Key: i=dmitry.baryshkov@oss.qualcomm.com; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDExMDEwMiBTYWx0ZWRfX3I6hOH18phiT BJP7uRqGKPHC9sCK9jYPCtBJr0witUQeHSsVAWIasx1TGJ2g0d+CvcY35megepfGQABZBEVsrFl 2lQE52TY/vKWH5NZrMmHN0erCZQNVgrWJPe7rk8ibxd+pJwsvno5YeeM082Ct8m5cltRiXZebQs InZ9OGoBXGU0YRIBsn+t7Bqet9XQXk9pa3Iz3w5yLCl4PyDzearxbaisYaizdjP/2Iggn/JwjJX h2LLOG8s88xhVwtC4vd3HDEdC5U2+4gIB4NZOPREhEdPN79krBTWgoCNW9JWOrdT+yLzZT23ho9 zZYCvN1U+9WSBxUUmis3TgMsx3lefVmleZt44Z2JqMIKNAV8oB7Yle3XSY8x+05azloGkzG56gQ LZvF3xIrNI333o16dcDbOu00CRyLYeDOyCpXI9ILPn22cpVOcapHHdsjHX4WIrix+E1JTVnHVwz dBEQ4Ke4HVpXE2KMd8A== X-Proofpoint-ORIG-GUID: B9Qe8gfSc9jG6WnxYF547gFrvchK7wld X-Proofpoint-GUID: B9Qe8gfSc9jG6WnxYF547gFrvchK7wld X-Authority-Analysis: v=2.4 cv=d/LFDxjE c=1 sm=1 tr=0 ts=69da3a74 cx=c_pps a=JbAStetqSzwMeJznSMzCyw==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=gEfo2CItAAAA:8 a=EUspDBNiAAAA:8 a=ClTKKeZw4Bcbv9k5X4IA:9 a=QEXdDO2ut3YA:10 a=uxP6HrT_eTzRwkO_Te1X:22 a=sptkURWiP4Gy88Gu7hUp:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-04-11_03,2026-04-09_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 impostorscore=0 malwarescore=0 phishscore=0 priorityscore=1501 bulkscore=0 suspectscore=0 adultscore=0 lowpriorityscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2604010000 definitions=main-2604110102 The Waveshare DSI TOUCH family of panels has separate on-board GPIO controller, which controls power supplies to the panel and the touch screen and provides reset pins for both the panel and the touchscreen. Also it provides a simple PWM controller for panel backlight. Add bindings for these GPIO controllers. As overall integration might be not very obvious (and it differs significantly from the bindings used by the original drivers), provide complete example with the on-board regulators and the DSI panel. Tested-by: Riccardo Mereu Signed-off-by: Dmitry Baryshkov --- .../bindings/gpio/waveshare,dsi-touch-gpio.yaml | 100 +++++++++++++++++++++ 1 file changed, 100 insertions(+) diff --git a/Documentation/devicetree/bindings/gpio/waveshare,dsi-touch-gpio.yaml b/Documentation/devicetree/bindings/gpio/waveshare,dsi-touch-gpio.yaml new file mode 100644 index 000000000000..410348fcda25 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/waveshare,dsi-touch-gpio.yaml @@ -0,0 +1,100 @@ +# 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 + +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 + + 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; + }; + + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + reg = <0>; + compatible = "waveshare,8.0-dsi-touch-a", "jadard,jd9365da-h3"; + reset-gpios = <&wsgpio 1 GPIO_ACTIVE_LOW>; + vdd-supply = <&panel_avdd>; + vccio-supply = <&panel_iovcc>; + backlight = <&wsgpio>; + + port { + panel_in: endpoint { + remote-endpoint = <&dsi_out>; + }; + }; + }; + + port { + dsi_out: endpoint { + data-lanes = <0 1 2 3>; + remote-endpoint = <&panel_in>; + }; + }; + }; +... -- 2.47.3