From patchwork Thu Sep 18 15:36:08 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4314 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f70.google.com (mail-ed1-f70.google.com [209.85.208.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A0D153F0D3 for ; Thu, 18 Sep 2025 17:36:40 +0200 (CEST) Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-62857c0a375sf1017923a12.3 for ; Thu, 18 Sep 2025 08:36:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1758209800; cv=pass; d=google.com; s=arc-20240605; b=elZqe18JcBQIDgKZbnQndtXZJN6Fcc18byUDxlazAAC46WrqMrik0ZUcNor8zn2w// jXFIwGaJriuv0c79NMUppHBnE+4NXA7Xuui/OUJD2cHy3Xo27ZpBY8Fs/3KjlB5hjqdl s+QR3lEhQprBI9AvF9/UQmHoQBnEuNUbfC7emIb5jdAt/TCSzo/OO74/qYJOViihArvE APMxhL0fHyRNxuH/5wkPt2LZCgtD38rUfTzEVpFNcoMuZ0C2rz6I/63OjMrC/CkTc8eE GT9wlIKHDcHT0tLpsmrF1X7BrBAH8safRbfudWwmDQP7YY+Q1vgjuqtjFQx4B5wh/czC CAqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=0KRfEYW5Ae3J2NKO1+hQ+ICG1sGSREFe/owxJ5YSEBg=; fh=SXbNBKmbQXCBZu/M/42xSf7BGUTkZD6DF4eUnSOIeLA=; b=LXqmSMczIAX7b4EPiX9hQNVj3ox0cUaCkY5Guoh98qwsztGgb0nnWkt3u8DXJiaDXI 1pXpJG83F731+q8L/lMk1GTSYlSdeJsXKmFsOvHtkM05Gx8s/WUZYzrmpukXIgeBVgtB hbjV+m1DoLTJZBllb05t+4893Bz8OsIdX9Bu7XvBUOPzVCLIjhQQvVe2R9T/He1StiQi lseC/Qc6nP7m3ejN7w4SVWEaS20NsTYXEsSYOFwVlFgDSiIOllg/yaZ3jdOuc49srJkD 2bMPPkZJVH15ZEUlIGLJ2loJEM+OieGx6sodRjNyPsXWhmbxggqMSx2hPEzlem7B+ya0 KnaQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bENQ2vXd; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1758209800; x=1758814600; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=0KRfEYW5Ae3J2NKO1+hQ+ICG1sGSREFe/owxJ5YSEBg=; b=OFr+oXpnWr/1WV6/KZ4O/x5TzOuiwch03brmgruqfVPd72CgUSa/Li3ZGpyoAPrMn2 mksMuZbP3qYUkiuP5PPOSEWi12tWDOi+CHpQ5mdl8ZSWkCjvIwy+w15Y80HEAQ2wLpJL wPbXnnqlrFqy6Q6i/UE8wIiSHo3OwPGK5kpks= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758209800; x=1758814600; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0KRfEYW5Ae3J2NKO1+hQ+ICG1sGSREFe/owxJ5YSEBg=; b=Ukk5WleFxlJYU+7tEgsakdJVpEwE1PNodpkO4JY+oGiqWhorsn+H6IUTSOgeHgItt2 StCg2MBuGSyU499iQXbSEK0D5XgOn/kpW/yg0YPwEmb3kmqNmbGATAb8YNfd1v7aX6OG VvQ/jRDXrTGb1HmvhDIQ4cmyRrM8ekro9uAzkIB+UOrKhehRjgd97TK1zt6jn3DE2g1q 6ZfFkJjQlHTil+gWmp1zSaA3+sg5745oTfVP7v7NV5shhjw7uzek83xZ8XM0oZ16fFsM ued/XnRVsL/WBwHbbVhV6eBQmWbXp111Ol+Ho0fKE8KYzGC6hONTCZ8H1ERTZVEeSLgV Mi+A== X-Forwarded-Encrypted: i=2; AJvYcCU6788cfoAMofz0D+5g1cZvF95+h/xiLi/lgf3vs2uo/ahjbYAQTCOqOtRCFuH6CbLI0vudq/OA8aAyng0f@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YziC6OCeFXVY823/bvlDmh3u6UCtjiG5+RcYvffNIG9mVr0V8xr 1vNNCz0TsZyyYPmw0r4bYWIknMqfSUFi24C30FA7oJib91h3pUxvN4kw3TSMnYLaSeeLAg== X-Google-Smtp-Source: AGHT+IH6/WilC/ORpwmwJc4yMJGkW/s8A0SFXSkrH+Y8sO18PoUfD48ybssl6sChxtVP7rsG0Iy1Jg== X-Received: by 2002:a05:6402:1d51:b0:62f:32c7:6c45 with SMTP id 4fb4d7f45d1cf-62f83a2a4f3mr5427394a12.9.1758209799966; Thu, 18 Sep 2025 08:36:39 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=ARHlJd5nt/qr8JdPBM0HfxeGE7BfXhtnMgcNnq3V6QH+KhkiYw== Received: by 2002:a05:6402:5188:b0:61c:38df:202f with SMTP id 4fb4d7f45d1cf-62fa735b688ls1018171a12.0.-pod-prod-06-eu; Thu, 18 Sep 2025 08:36:37 -0700 (PDT) X-Received: by 2002:a17:907:3f92:b0:b07:c1d1:4b66 with SMTP id a640c23a62f3a-b1bb0a58881mr669221066b.14.1758209797520; Thu, 18 Sep 2025 08:36:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1758209797; cv=none; d=google.com; s=arc-20240605; b=hJktt5Hkv0s8/sRJPeuQb2aFuFCrQAX1CSbb6K5Qj5K5CWX12mnzeMsgQLw1CpfvIn IuKJUOzSzt8PhL1ucNbLdfrpu1YEAWxLJyRwc3jmprBr28arohGX7f+LyrsrTxtL4rkI 76mIBPLpefvbJM4KrEfdUmdoMf46lWuKuier5oYiclxk2tB5J8oFmPzMef/Xgv44WXGK jhL3HJ39o1CW69AJ4Pc6lsVBumLqY0A1UxgggT+6SP7m8ukAc1Aix/zowqXUaGR+1cr3 hm6Kl7bAWVa02RS02ye/kirMop3AngSpOwXS3L7BQpuf+x1a/0E59oBUdC7wRg9gSKWV wuRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=TEyYKH4qkqBCP6LUsqOTNG7YVoVZeon8od5MlA8LTKM=; fh=PJlCQmWZ7xVl8Up6Tr1dRjBjr7IehZDWlgXt1V1xbIE=; b=YbdA6ubVaxnL/hLo6WtSA/7MUrg6VD7AgYMFWv1FdkO5m0edSNK/R07ToaH221Qolg /dl/7XscKabAzN0YfGZz2E6nsEf9r3NTWf4QQIC2BB7EupQNmuIN3g8DW0oSx56QGeba CmPDQ875/d+oU4g/XLMeir68ycBM2HiqEGiWmEN0AZGaSMewLAC7goxYQ1+NQ1dopIgK u8AGvJUnYUJJyi7xAum5KL5lbhxIm6m0lZ7e474V5Y0ogA5mihGe+PqDq74tKWMTM/Fw seUKi9d87HisGAF4Lx1UH08L5WPL03znXrkJEwe8G7vWSa8noo6whgjo85Fs+4PiF9wF fqyA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bENQ2vXd; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id a640c23a62f3a-b22bab6b500sor46508666b.6.2025.09.18.08.36.37 for (Google Transport Security); Thu, 18 Sep 2025 08:36:37 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Gm-Gg: ASbGnct03mjOxm4nm6Ym/uGruLW39AE3z351gB55rXLMAAeFOQ2e/PZKQhnfnOdQzlV 11P+nQQBjwZIAqeRDsJ0cVR0QmoljkB1H6/Lm49yrjfjRpXD7k3InJj+vGfP5v5x5TOgdE0d5zR MG545KlJ2mwr407FdwcQYq2bBarKIeXoI6LTR3/OnOZYzgdRfjM/IXNHi2wtbWb/UVf43RirOCw +rG6WlcCTwNRozj3sL4jO+gphAgpmr5zdnnbEHjvE1bnfSdwHXoP4d/kzFHsa52ib8uDJ6uMpnA vScfykHBrF5fcnwrciguYKN+gymAa1xFo/UcXPv4XACEWbIMJsh/pQ6wYNXR6/sQkBK1hH2kcYT 8ZbirbdyWB09WOaRfimish69a+8yX7Rq/i9DAvEFQEsigsYUrfTyZljul5eDlEI79OVOjpPbKXF rviho/L2Ck2VpUav7pD4/grjnJDMa95BrjDbDX3W6GjjJlTHbGU3aBQffR3jsQmFLPf20Tae6O6 KDcgFKLmp0= X-Received: by 2002:a17:907:2da5:b0:b0c:fdb7:4ddc with SMTP id a640c23a62f3a-b1bb0c43f6dmr683814966b.19.1758209796976; Thu, 18 Sep 2025 08:36:36 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-82-56-38-125.retail.telecomitalia.it. [82.56.38.125]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b1fd272026csm212430766b.102.2025.09.18.08.36.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Sep 2025 08:36:36 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , Broadcom internal kernel review list , Conor Dooley , Dmitry Torokhov , Florian Fainelli , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org, linux-rpi-kernel@lists.infradead.org Subject: [PATCH v4 3/5] dt-bindings: touchscreen: convert raspberrypi,firmware-ts bindings to json schema Date: Thu, 18 Sep 2025 17:36:08 +0200 Message-ID: <20250918153630.2535208-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250918153630.2535208-1-dario.binacchi@amarulasolutions.com> References: <20250918153630.2535208-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=bENQ2vXd; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Convert Raspberry Pi firmware 7" touchscreen controller device tree binding to json-schema. Signed-off-by: Dario Binacchi --- (no changes since v3) Changes in v3: - Drop firmware-rpi node and use only touchscreen node to fix warnings you can see in https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20250913092707.1005616-3-dario.binacchi@amarulasolutions.com/ Changes in v2: - Added in v2 .../touchscreen/raspberrypi,firmware-ts.txt | 26 ------------ .../touchscreen/raspberrypi,firmware-ts.yaml | 40 +++++++++++++++++++ 2 files changed, 40 insertions(+), 26 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/raspberrypi,firmware-ts.txt create mode 100644 Documentation/devicetree/bindings/input/touchscreen/raspberrypi,firmware-ts.yaml diff --git a/Documentation/devicetree/bindings/input/touchscreen/raspberrypi,firmware-ts.txt b/Documentation/devicetree/bindings/input/touchscreen/raspberrypi,firmware-ts.txt deleted file mode 100644 index 2a1af240ccc3..000000000000 --- a/Documentation/devicetree/bindings/input/touchscreen/raspberrypi,firmware-ts.txt +++ /dev/null @@ -1,26 +0,0 @@ -Raspberry Pi firmware based 7" touchscreen -===================================== - -Required properties: - - compatible: "raspberrypi,firmware-ts" - -Optional properties: - - firmware: Reference to RPi's firmware device node - - touchscreen-size-x: See touchscreen.txt - - touchscreen-size-y: See touchscreen.txt - - touchscreen-inverted-x: See touchscreen.txt - - touchscreen-inverted-y: See touchscreen.txt - - touchscreen-swapped-x-y: See touchscreen.txt - -Example: - -firmware: firmware-rpi { - compatible = "raspberrypi,bcm2835-firmware"; - mboxes = <&mailbox>; - - ts: touchscreen { - compatible = "raspberrypi,firmware-ts"; - touchscreen-size-x = <800>; - touchscreen-size-y = <480>; - }; -}; diff --git a/Documentation/devicetree/bindings/input/touchscreen/raspberrypi,firmware-ts.yaml b/Documentation/devicetree/bindings/input/touchscreen/raspberrypi,firmware-ts.yaml new file mode 100644 index 000000000000..697c508326b3 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/raspberrypi,firmware-ts.yaml @@ -0,0 +1,40 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/raspberrypi,firmware-ts.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Raspberry Pi firmware based 7" touchscreen + +maintainers: + - Dario Binacchi + +allOf: + - $ref: touchscreen.yaml# + +properties: + compatible: + enum: + - raspberrypi,firmware-ts + + firmware: + description: Phandle to RPi's firmware device node. + + touchscreen-size-x: true + touchscreen-size-y: true + touchscreen-inverted-x: true + touchscreen-inverted-y: true + touchscreen-swapped-x-y: true + +additionalProperties: false + +required: + - compatible + +examples: + - | + touchscreen { + compatible = "raspberrypi,firmware-ts"; + touchscreen-size-x = <800>; + touchscreen-size-y = <480>; + };