From patchwork Sun Sep 14 20:37:54 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4290 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 7A1CB3F16F for ; Sun, 14 Sep 2025 22:38:31 +0200 (CEST) Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-62d9be22f6bsf4317698a12.0 for ; Sun, 14 Sep 2025 13:38:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1757882311; cv=pass; d=google.com; s=arc-20240605; b=HCHYqNdGkYmmfdd9uCWe995GEuzz2K2AiykzL+me0T+xTBU1HuJCCIsm+vH2KY/VmA Yfs9NEWM5tTT1VNUA/75TPa2fyfUfpWxT05qRdVJAG9YNfeCi54wXgw+WjgOvn0uIlhs NEZNzt+Rthhd8De0wfT+nGQ3mmQ3CT+bhrtHPAxKi4UfUAd44FPydhPmK/Bgr4Ia+gJO nk4FOM/GkHXKh5AuI2jFXx6duO+yhrpZGz71aeet099Am/awRwLUiOwnnNfEIK0yGc2l 42f5wgDLUUlTGth+LTbzwhiQ8fwKw47Xro2M5Fwq8/N064OBb3DgxmMYbPjQ5Cbip/6R JQ/Q== 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=j7TTRZ+TCl+R/wMbkyc53A4jc8reL7xtNKNO4pWnuAk=; fh=/7ATKOObBt0B1v6wMYTzPCo+4hCc2FLgBY88r7uau9A=; b=gWVfm4CkRZBxbS1woH3ei0iQvDjzsv6LuahQ0+xcCU1AwO5Lr3JZLGkIW18slaXTOX 4IVL+bSt5KMTVdU9RPhTV3DPt8Ph1alkML9S8CRiGJDl9nK6oL0xJ+YjJW2ou3GqLXwS IoRaDoKMt9Xga2DwzLCvUNUqbWf8FElw9GP1x0E8zahDED+Ja7kyWcq8fOoE1oMnfdm2 PqTFXqSarkOd1iZYt3BvrNww8Rv6zb+/FmgHNRE4BCKPBC5gSZaLXzWLUm9uw+td/9zR z4ABNReFDksoHBlRBxHohHAICxlVxANGXxhLEySS2pBuviONdKwHRTdHcBDQOGHUAoWJ 7xlQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=i37qM4KH; 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=1757882311; x=1758487111; 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=j7TTRZ+TCl+R/wMbkyc53A4jc8reL7xtNKNO4pWnuAk=; b=TIXwiW+5nm6yoH+ehsL6mcecCwStUNEAQANczHPw1jPQ2fvDggeT5ugY4PM6imonEC QOLAwdJlCZYSWfOXLllkOKiB/i49j6/E4FCRvhDn621/u/YBvKS6sm4thGCvJvJNc3vW Z7ma0sP8Pik5Yzs/lmOh46ZAmxn4dxRhy/eCQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757882311; x=1758487111; 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=j7TTRZ+TCl+R/wMbkyc53A4jc8reL7xtNKNO4pWnuAk=; b=QAEY4Gh2wG2lI2OP9x/zpwK4tTRHsXrIZvS/hK19q3oma8/3UsRGizMD83mHuXKe5W 12rG0EIcHtL93EHYJrcNWTLsWVuPioUQnVChmHRhO3gpHRdT1DsY9aB2JXAbnoYhJwtS 9tXYcEonMGxzjRrOBucUR89pRJZYluV/Q12IPFFyiTr7KBIe9XxWBpg071AEqpCZS/K7 zLlSGwtW7r8JZo/3Y2r7GxIXUQQKdg9hPZpFTrj479kVIEU2lzpv81U5KJzf1zga9+/y qS+TIKfWs/ZLZW2/8aXLdjx8Rwak2T2n4R+5STv0JMW9YwonNqKtfvR8bT6BqnpBQrZm tpXQ== X-Forwarded-Encrypted: i=2; AJvYcCU11wWbFcYZXp0EoXrY5o3dwGqDd5JCVGnHNb1gJFtd7QuAMPUIYTozpqRTPASff/7/Nw/YdvD/IMdNvurX@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yx/RxRp+Zd1DBh5qVHT42EwdUxrYooPtMZAwAsfi1Fdzc58/iUj smZfeW2ugCmYtyBRwujebbM8UxYqeUrqAKBDV0uIgMMJ39fq8dT2sR+oyqsjp3If278aWA== X-Google-Smtp-Source: AGHT+IEpFboAZJoOCNspJ9IZtnpVs3XSlUZDPTFs5h5N3HzYt24/+41hLe4fBSKNy3zSix22MbrKdw== X-Received: by 2002:a50:d647:0:b0:62e:c5f7:cf92 with SMTP id 4fb4d7f45d1cf-62ec5f7cff2mr8580330a12.13.1757882311101; Sun, 14 Sep 2025 13:38:31 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=ARHlJd7DSiY31tF3VgE5M5mc6VftQg1Ctd8k5ED/v0Ntfhfzrg== Received: by 2002:a05:6402:4618:b0:607:2358:a304 with SMTP id 4fb4d7f45d1cf-62ebd3c060bls1330579a12.1.-pod-prod-00-eu; Sun, 14 Sep 2025 13:38:29 -0700 (PDT) X-Received: by 2002:a17:906:490b:b0:b07:e348:8278 with SMTP id a640c23a62f3a-b07e348830fmr498049366b.25.1757882308707; Sun, 14 Sep 2025 13:38:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1757882308; cv=none; d=google.com; s=arc-20240605; b=AMy2ZYS9Yvb/8QYwNBpORlGF8Vu0PIeDWh5kdNN09CtlzWKhVyvht0NssgPv2/Rp2G i27VWogvKZ/91TUShl11tpoKZFNIYnOxrwChWhVz8FKSEsz/C4aU9Cv8bignY00pMUbS xPeSng1xYImJEDW6YJw3H44LwVqkCextyfz7HksCJwu974OIbBv4Rhn2X9xEEEaKT5Dl VD1/eWMSDUxga4vRUfiKlvbb08pl66wLZvXLcuSqwFksFH660562j7jrLiUv0mxp55zF 8dAO5G/gcSi5goXGOYSv5fCfJgemsYQtcQmV84o24E9MRo6D37nMc93rmn4O6UB/5fiq f18g== 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=zFrj3gEfIT3tk5nJrn5YbyG7ZS/WolhxcrzQL1fTi+0=; fh=PJlCQmWZ7xVl8Up6Tr1dRjBjr7IehZDWlgXt1V1xbIE=; b=QmLApANIBZqBsOZTODgPgy9Bt0FpIeZxfnhjHhQ6AxIwynMnmCQ0suRUSDkSV9lxLX F3wb2FURbzVfMZFbgzDd/u+j80UKhdRS971AFQ4HQ02FKh0UYSPNF7DOuhQgVILZxY0X D/tJ7YSzB1qL9MNbmM9urkM3B3IQtr4kXoeY46gVKh6putyK3ibMzdvaI7+7MBToGQGG db9Z+3UOJPwEYLEA64AICwfJ83r5DRD0VShLnt5tp8y54r8sOJ4P+E/Q5k985iaMKJOE Gw4cgZgCWaorO6JC7hZe6tOe6mLeGNwsET1YhS6lEY8FOaKWJ5K0aFAu/tkZhgpzlPII yEjA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=i37qM4KH; 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 4fb4d7f45d1cf-62f03e06450sor1414137a12.3.2025.09.14.13.38.28 for (Google Transport Security); Sun, 14 Sep 2025 13:38:28 -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: ASbGncutWVHicdcO382AT8kHkuaut3DiLlf23f5eGOI1CqdYvxuNGFnaWhJBOUgA2Zu Ju2fLF7QYgUyGvJ6BHIR9RpfuC7oqEJcQqC+rxZBuPvzGp+MA4JseTRBrmAv8ROaDAhUuRSaaNE DQ+pk/IgD8x3yao2kkV8u4MpRdpQkAJ67SmF/V+KIkW/rgvcv22Vx3/VAEoMrhCP3w8DVa4tloa oU2TQT4URgysC6kVyHfda6Qx3Td9hYDvSBlPdWKZbxa7PYbXbdo6mkaTmOv8yzDtg5SIJbwLNhF e2c88O7gC1YJl8L5KQ1Nv/yyX4fz4RbUqs66btPxVk16+0OTLqqU45fBvxYCpQg+8PIgsyzV1Oa NVJ21LVxJzp3TnfrNMy7mzWSE8JQq9lj/3TOo9zgxOgaeiJGM1K0XYU4mxkrUIrkk/hiau1J34e VudMOWtKtBvT+0+79mcKRFIhg1/EaEA0FCqK5ABMzu1EqoXJKBeOFozWmFuSr8TAg/KDFLylbfj 6w= X-Received: by 2002:a50:d647:0:b0:62e:c5f7:cf92 with SMTP id 4fb4d7f45d1cf-62ec5f7cff2mr8580125a12.13.1757882308297; Sun, 14 Sep 2025 13:38:28 -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 4fb4d7f45d1cf-62ec33ad242sm7803739a12.17.2025.09.14.13.38.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Sep 2025 13:38:27 -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 v3 3/5] dt-bindings: touchscreen: convert raspberrypi,firmware-ts bindings to json schema Date: Sun, 14 Sep 2025 22:37:54 +0200 Message-ID: <20250914203812.1055696-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250914203812.1055696-1-dario.binacchi@amarulasolutions.com> References: <20250914203812.1055696-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=i37qM4KH; 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 --- 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>; + };