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 AF8E735CB6A 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=1775909496; cv=none; b=rDcQ/jiLo8xCKXxMoLDS9DsxSUj4oeujc2ngV9ZOUKvdgFW+PjqNo7iQOuD97A73gmJi1Hm1HTc2m9fyJo/Ez8GG03Yb0OH1TPQdarJDSvVKqPtAJox4rdNGDW1uGIHS1R24pzClMCO96zEZgwCYOow+3K19OTVPze5Lc0BMt7I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775909496; c=relaxed/simple; bh=TunD4E0x54s+DUKwuOGbXcTKMUnxxvwmjd9+k4H8VAQ=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=NBcUaVZpxSyIFG+RFzJY4w0kzZHRiKOw50hbJRKXagVHjUf6H9Xx9HDkIELqnzb5lBatZjmf94vYNgvvAEryTZ5SaLRq55+lB58kNAt98yWRkK4UViDIHi9AHUfJ8WURakT/CG7IutTf5G4bkV5vmnTm8dqKSWTDJoLHp0IhyRI= 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 (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 63B40LRt516990 for ; Sat, 11 Apr 2026 12:11:33 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-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4dfevtgnjk-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-f197.google.com with SMTP id d75a77b69052e-50b3544bc7bso36868221cf.2 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=AL4BkaQ1rMRt/vcxEhFMCtEXAaeRhYFh93pI2srW9YgaHh+AlMEXgck76gJIaVaOUB EtCAb/5H2bY4A8HCSE/MzHHDiZefOezZH0mufjESRd55CxNY+COGNO9VoU3isG3fJBzL XPyOMoXWbqL4Z2prETniu49imFEV38ykzN8VekT1TcZ9ITSx0JzhVjYER4SczwuA6SG/ YaHKGYB0pxU2objlhP3c0IzGHUUsVRQy0nwgsIQeREKgcX5NF1dZ32Q4OnRuV0nCoCHw OcLqHhFbaICpXU0ye+pQYVjqZbg6CJ9T+KIlAp8jIJhUjEpzX0Z4pCVpEA++JPfoD0of ldSg== X-Forwarded-Encrypted: i=1; AJvYcCW43VDQEP+NOPiusEV1vszF8ZgufC+nGJ5p7igt0lvYDKvF3+aZ3oM5lZP6QnXXixlx1m1dxRN810b2@vger.kernel.org X-Gm-Message-State: AOJu0YzIZYlW8+/Y3u3XbjrE1VNCzSd/IWmg0XkpdOUHVJzPGHGJ6mcf ftUsRoUDb4zeqn11ZFJqqxVnlZw9BWPnCqSuSaxd1ab/dBVosp2UHkFRzKrwY1JkEfiLdYTHhxO z9RLCqXQVIfE0z+ek4ZP9SN1VxW+Jq14mwAROx79DTZypVSloDJdn+JG/D7u4xub8 X-Gm-Gg: AeBDieurNul9805Dq5LnyXW595g0d7+ojaCHYNTd2VppJSfW9WHUSv1L/pGieJ+EOrz qfe99PutdE222v0ApQ6Tqnc9aXI6pvoBPyvv6akbMzWrI68KJ9n+fECuz57JM3NFg1bdEedtxHS H1dLK+NptaFjclctffuHnEsN4MVjTA+i6uPeQtYchn/GaeaJ5X9sYBQbsWKoybd0cpoyvXrr+sm 8BAlXg5GUwj2aO1OK9XfmWDvZt+NUXRzAOkkUDqZU4tfcTZN5qEni+KjQ6mXnsZmIkAFx70cfdA kErwFI1OQP5PpQrhyOYpV4V0Y0iXZFyJMijbV+Safc2nA/yq1j08xkhwTXq46CD6IoIlKoRb1qs vdjR0Cnm9jmhgVvoQ/MJKFawNYfF8BEsJTMeCQ7QHV4W/BXAYugc4RhOUJ53SFXOqmXqtIyZEhj kyKYhstqmGb5qGszMwyXSwgOJbXgOC4SK7tb4= X-Received: by 2002:ac8:7e96:0:b0:50b:3d1e:58ba with SMTP id d75a77b69052e-50dd5b00979mr98627051cf.28.1775909492110; 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: devicetree@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-Authority-Analysis: v=2.4 cv=RYWgzVtv c=1 sm=1 tr=0 ts=69da3a74 cx=c_pps a=EVbN6Ke/fEF3bsl7X48z0g==:117 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=A5OVakUREuEA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=gEfo2CItAAAA:8 a=EUspDBNiAAAA:8 a=ClTKKeZw4Bcbv9k5X4IA:9 a=QEXdDO2ut3YA:10 a=a_PwQJl-kcHnX1M80qC6:22 a=sptkURWiP4Gy88Gu7hUp:22 X-Proofpoint-GUID: YozWPUhMXS56Dhf-_EugrMXF8BPO8aQa X-Proofpoint-ORIG-GUID: YozWPUhMXS56Dhf-_EugrMXF8BPO8aQa X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNDExMDEwMiBTYWx0ZWRfXzeUHjpGtnzE0 aWbkF66q1nzUey0jQD2Sb1aWms0IaT2wgepLWTl2kYv3ESBSxeFsMx2vrN07cB7Jd2WZv15qDCo wZgLjnXm3ClVcNZlQya3RAqURgjBY+sxa+HaD71K5ECc3gtuF9f1YzmpXHyf1UpqIdNluGJ1uFO bqYcjwZYplTEQCyPennijKzb7hf/dD0xxskNhcB1gKIQVsniI+dP0LT7Y7w3g1SI8A/feV4MQcw 7533LQL0RPGv/wlLi+BBjuiQA1R5qeZxj+OmNfgPB8Y4z703C4bBBc7L+dguwex/r6brAeYGl71 wdUFC7wZ0G4avZUBGawuPOUCgBE4DEnFr/bwtztSYJQVsfagjgEuWc2E5RTuZQ/aR31ZzZOxNuU vWHUfyUne3sYrSCWqFIjn5hy5iDxm3wHKECmb0r0e4bYBcdkWtVQ6QIehoI2peSIT5xSn1NxFe6 pH9t/2fKDaNef/XZssg== 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 malwarescore=0 bulkscore=0 spamscore=0 impostorscore=0 phishscore=0 clxscore=1015 suspectscore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 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