From patchwork Sun Sep 21 17:33:43 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4341 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 87D323FA14 for ; Sun, 21 Sep 2025 19:34:01 +0200 (CEST) Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-62fce1f3fa8sf1833921a12.3 for ; Sun, 21 Sep 2025 10:34:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1758476041; cv=pass; d=google.com; s=arc-20240605; b=JaFNP3VND2DBhECTBU3jbqQ/O9qGQazaEo1Tb2Rbxsy5Xp8rLCbcvJ6w3z38TrPxkr L1dvFWBDpD8JZ1KhAJ/jwsMNyRP+OnfGxTPumaYsY1M3Q+pk6E2XQpaI7+7058gSJoJm gRD5QWrht3o4x6pxweYTnf2yaNT4OO5D74EeU6HNRbGqV8tvdG3wrem+EDTgkwGpAMI9 83XTGIYfyBkYjU6BcdAS8zjDHAqygFJRGDLeZ9ftiuYDUQy2cmIZ5lGtTXTtf5BKyLa0 TensaQeNeXu6CBqMvuuai8Qt6qh4UoGWrPoxVr3GNUVeNQhgxzcbxJhM+VeGSTzQK5KR tkWw== 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=ZQ5i0/0wBmC+7CnhvlDzwTcAIGIa5ti5ArQPqeX4wn0=; fh=D8cVJezMWQS7Rjthg/tEpOao/wgtqfaflAQ+f11nXf4=; b=cc0IFTqU44iHksKUJLJov6ZrP0ltdZjZk+W73Pu9x4YQQEDEdC1a6F+wX4cIr2mPFc vkToW2mHMSxf55Gs168ZijUveXLTVb3Xxar4fTKr8pHeB1IbHw07A+CEkqZq4npatmHB O5ikyPkixP9Se0LhZQ73MT5J6yn9bEJh7isjNC8imkalhoeq3RWFNb6CRa8lizU8ZaCZ QaEkgSTp4SCKs/9ARhonBvg6x9kFXYf/Mll+O/P3HoHE29ytUVwaM1dth7TaK9xD0eTp Z11KRIUvC4Q8Wnwctu37wkgLwdR5CI1A37IancXZooI093wvE6dRTs8sGLRibH9qYerg 7pyg==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=r8OlXx3j; 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=1758476041; x=1759080841; 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=ZQ5i0/0wBmC+7CnhvlDzwTcAIGIa5ti5ArQPqeX4wn0=; b=fYED5dVIqu/ZWrkzU1/hLPuOxrvD5XE5G86y1GWoZGH/69ewYVWF1hzR+PLguJ31Ey DoCgsWGn7vfIObkYcgSI2wDRylfB5mnGWwG8w41kaGaOSDpZQ+X8UlJav5ry8KwFXtDX sWhv0BoYh73GiEQRVpMJ45XB4RZ18QnGwddo8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758476041; x=1759080841; 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=ZQ5i0/0wBmC+7CnhvlDzwTcAIGIa5ti5ArQPqeX4wn0=; b=jleYmWlKbHYF1rRF1/ooNwCdiMNmzszwGb+ckm1qPCa3WSebyutpfhr2OeWAGDbxFQ fKzguSDr/MyxOhExz+x99hT6kt9wGZYu9sFau8X6Qr/HVmwV7aioOQZtn6cHKhKtOyns Xj4SUz4YHZQfmAZRYXuDjzZTZl1hz/bfXrpb7t+N61Dh+YaQDTqEOf0p5cl322er25AN nmGDP4t31F2TnL9e3NWMjV8h62mMmbDITR1YJe6fbXwuS5zesX8hT7w/unEgW9IyAvMb Ku6VHfKr3UMDYZpOVZn+d9zUI9PdG3iSu7mHKE67PtZKoFQe9dP1+lauBHqWv6dtYAct u6ZA== X-Forwarded-Encrypted: i=2; AJvYcCXBDLFzdPAIZBcKEKek7aZRAh+IXH8z/PdmUzD9ghl+wgSklwKBjx3WIOlZCBTtijVsDP36eA9ipmr6ni2j@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yzn1snUtZLL9ZUPY2HrFgHenFzPk5jx7OjfSMZVw+ntYhLq6WXU VxDF1RO6y9qqcybXQ0RBgPTK5bq946AJeIapEvAOrwPmdfSyCANqYTyqKfxxcdvVmE2G2A== X-Google-Smtp-Source: AGHT+IGstyHjSklgV+lCG1QI7UoEIipToAtxxqNfobsqdhpaA2Jsh45GPqzvYsoMOf9O8kzotARlYg== X-Received: by 2002:a05:6402:2549:b0:62f:c6c8:e6c5 with SMTP id 4fb4d7f45d1cf-62fc6c8edc2mr7762738a12.20.1758476041128; Sun, 21 Sep 2025 10:34:01 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=ARHlJd4B7rzILxdSAzfECLGoIyEanN5uWPvyPvNkZKNt5OVpJg== Received: by 2002:a05:6402:22e5:b0:61c:3fe3:ce7d with SMTP id 4fb4d7f45d1cf-62fa7702337ls2576316a12.1.-pod-prod-07-eu; Sun, 21 Sep 2025 10:33:58 -0700 (PDT) X-Received: by 2002:a17:907:7293:b0:b04:a1ec:d071 with SMTP id a640c23a62f3a-b24f5d431b6mr1152650066b.56.1758476038648; Sun, 21 Sep 2025 10:33:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1758476038; cv=none; d=google.com; s=arc-20240605; b=hoxLyDBMSJtbizzt0aNAdhCvv8Zz8kUh9RTYR8ukWzFatWNZNMXMnf+gpPt6MMfNCX 3UIawfNY2n/2toqxkXm/O4mSpfnhxM2UwLhVjvvrs0vrbN9ipJo1cc4CTA6KznKHfYLx b2keNxjKbbTEllzoJFWWMC2jjhyVA/ElKmiDzOXIYGcb9nZAGsFcYgqrBDJcW+sIvx5G 5MtzWiw+7o8baM59Ns4Aj/rUI/lQLPevqa/vHia+w0y1foEK+cVb3y92MvBD28Gxi67s ZeuEtSZzrMbxGsWOvtoXwF1V4w7FvvWmuDSxjCT57zzmCZ0X6Tx4mKTITcYoZHOSdcuh AVww== 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=zj9dH/IE/77bdbBlwkTPAdjFGDmZXl6gQJLki2rgrNA=; fh=G4VTFZd+YbLrI/bKIeXlZ97k0rUJpN37NzPxz2Cfnu0=; b=LnR5ypEtxW11NfDy8pJJyR68pLMXNbLYsl5HZGs3/xW/2uvKeyWcGSHhF8hj4oAZA1 /muY5CE4zaSJNe2exlFyuU3E0CNjmhs6+Qql+wPRTJ1Dnl+T0z6JaVeM8AVLsUO3ATCa uTAdVhiiiYR3FmoagiZnT8T6FJVlMiRjB3w/2A5IaZ6b5LT76ZH5LneP9txTg8NhjfLp JJX2laJdCbGxx0g9SfTY6JpvxKaJiP1A80jXBCCpeijz2oqHJ/cs0nGC+S1Is4u1/vZX Ye+aJ8L4mUxRvQA1fl0AsiPg6Jravmsnk8SvjPlre0AGn5wsZnTCV/fYVG5KPK3Rmg4j 5Scw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=r8OlXx3j; 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-b2b619ff960sor38119466b.1.2025.09.21.10.33.58 for (Google Transport Security); Sun, 21 Sep 2025 10:33:58 -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: ASbGncub4RV9S7llEL+ScdVbGeL5t21Uv5telWNizNhKO+u9osnuAuEZK/Jx7X7OQni wEeoYuA4oQLvrNacI/DINSSYFWkKU9RWCxbr0tDLFk7g2semXdUMiUcmjHPZ39b7YSiS7zcRCP+ mUgnae+06HwifJ1iHhgCO+fJtPVyytWfKBaFEt8vi2UO9U/Hum76VXnPr7jKLaVWdlzJBv8FNBs gguSeNlnmJWy05cj0COiSRul7IGwY/arpig2T8l1Xk4cm69PJPL6dXkULbygGtKkJsBjEhQW0OV nSBsFq6Jbz4yqJLyFmdX5CWoHt5BknnvcjtDnmihb/92eb9r5CZmLALvvx1dlHDNgZEtZw82XK0 5k+s4gbMKNUgEjuCu2PAc+jFalAxJ7/dll9XZV90dbeZQITBXDajdD1hrchECoBGcn8pe8sNDHw s/z6koHJn2Ho7FiTQzShv6wkumQnBQZbo77RBkaNwolseRXVox+aWCUcszEieCYxb+ X-Received: by 2002:a17:907:1c1a:b0:b07:c290:6ce7 with SMTP id a640c23a62f3a-b24edd549f9mr962373366b.7.1758476037865; Sun, 21 Sep 2025 10:33:57 -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-b2928cd31a6sm324347266b.102.2025.09.21.10.33.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Sep 2025 10:33:57 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, sebastian.reichel@collabora.com, Dario Binacchi , Broadcom internal kernel review list , Conor Dooley , Dmitry Torokhov , Eric Anholt , Florian Fainelli , Krzysztof Kozlowski , Ray Jui , Rob Herring , Scott Branden , Stefan Wahren , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org, linux-rpi-kernel@lists.infradead.org Subject: [PATCH v6 2/3] dt-bindings: arm: bcm: raspberrypi,bcm2835-firmware: Add touchscreen child node Date: Sun, 21 Sep 2025 19:33:43 +0200 Message-ID: <20250921173353.2641438-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250921173353.2641438-1-dario.binacchi@amarulasolutions.com> References: <20250921173353.2641438-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=r8OlXx3j; 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 v5) Changes in v5: - Move bindings into raspberrypi,bcm2835-firmware.yaml - Remove raspberrypi,firmware-ts.yaml - Update the commit message 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 .../arm/bcm/raspberrypi,bcm2835-firmware.yaml | 27 +++++++++++++++++++ .../touchscreen/raspberrypi,firmware-ts.txt | 26 ------------------ 2 files changed, 27 insertions(+), 26 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/raspberrypi,firmware-ts.txt diff --git a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml index 1f84407a73e4..044544c17e8e 100644 --- a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml +++ b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml @@ -103,6 +103,27 @@ properties: - compatible - "#pwm-cells" + touchscreen: + type: object + additionalProperties: false + + properties: + compatible: + const: raspberrypi,firmware-ts + + firmware: + deprecated: true + 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 + + required: + - compatible + required: - compatible - mboxes @@ -135,5 +156,11 @@ examples: compatible = "raspberrypi,firmware-poe-pwm"; #pwm-cells = <2>; }; + + 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.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>; - }; -};