From patchwork Tue Sep 23 12:57:11 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4345 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 D2B0A3F145 for ; Tue, 23 Sep 2025 14:57:50 +0200 (CEST) Received: by mail-ed1-f72.google.com with SMTP id 4fb4d7f45d1cf-62b77ca3f64sf5595636a12.3 for ; Tue, 23 Sep 2025 05:57:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1758632270; cv=pass; d=google.com; s=arc-20240605; b=kvzS4KR3G/fj1ixNg/Oog3V+L2QcLGocsw932uxro+1SBsHIBer8hnjlqfBASjmaDK W/PNtsoJrOdrK71O8bPUtgHJ63PI8AMd0rywvbeLpJjbBoDhjUGt1QgrzKKgF5uCsR4o etx4lroXmVQrYDS0NDZ6MuA8T9FN8U7uNPDc354udW/jwkWro7Zn15kx/XRgt6ljYZ0F ekSgZRgkfU1/rlIY09Fe2Cs6elDOyKJJnzmBK35VBqQ4ulsh+Ky0ICszUlW3kIloHllQ vviyQjL/JOoBverBHN9V76vN2Xrj2B0OC9yWApa5DrUDh7hUDAbbin8TJbWf/DShyTAW ZJ/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=ubKgPOWFnCcPHW4acq+Sb4oS7Z9boueRCM5++BIlgYc=; fh=WT5XxAmeblvq1kHNTMLOMupFarbiiSuvW+Pjb8Vd4+U=; b=IP1O/iLDOiroHUEWd7jV9jHESDMhKYiuZHGTQl4Dneyt6GlD6n+Q3qt5WlH3tkDb2q siSLx0BCWXr0wMf+OoN7NCa6+qvi63LHz/4ECiaWy6q/vYrY6FIl51zqQKViNRX1IJLN YMzN/8CJZJu6zhTXcvHDWNLqUSap8PKB/R3erKpwFXt5fRM6kHOZoB7Ahr+eVnpgErpd vqf/KOOsrI4vv4pljulPpd2FYB4r7ry3qTU0YMzHplGObAXo0qBiqyeQ4IpflU9wobqq oVq56Z77dy9V7uUT8bBgo4x25o2BfNa6VNbl7kmxzDSijMtt9YvAf0Z1y4AXLMnkIOaC JdnQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LsVuiOqB; 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=1758632270; x=1759237070; 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=ubKgPOWFnCcPHW4acq+Sb4oS7Z9boueRCM5++BIlgYc=; b=LGZqfhv4zqinRPITnyHFK5AmcGhqe6bLYw8D5/paMYAghB4P0/2UPRt52c4whNAHFv ZZxKhwt6HhRFL7o/flnx+nH86ns7i2C3qgzXTn01gXBca+s34XltFgzuZITLK1CF9eYY 916vV6huR4qwsD5SwnTmruI7tefNxHKensjgw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758632270; x=1759237070; 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=ubKgPOWFnCcPHW4acq+Sb4oS7Z9boueRCM5++BIlgYc=; b=gTyQBm2rE4RPXh1I4XOSENga8jEpPl+GFhGON9jh6g3KUe71Y2IKypd0grM2zw/vbp rChp7oQHq+lMabvQzOOdQQgKhm2BCAWO+fovkDUjOb980xIeXDUnMMoHXLXGhT6Ud730 5zhfcatUoFCvky/c4IGen4nEPvPSrzOVGzsLk2gctpiVmVgf99bjt9uWtuvxFNGxBwAL PeyBr7I2QmALWKRtST9KnXYg6c5zVfgeo+HY8/tFtIQOJBoh83Hn+qNRnT+KsaBfo0SF KbJ9sTyuSob69z/Hhyn6bUuKJl3McLh+IqHfsg5m4iHzKuVRloibpo5hyMa3fGeuj9eD /KFw== X-Forwarded-Encrypted: i=2; AJvYcCU6I40NvaNjqiEOD4Km9Tjc8yWylvyvDu+YmRt/KC5wVPPpM7K52zE9X+F8JyFGEr4/5iBWukwPSyT3/kZn@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YydqSYAMHpmmex1p2qPa+++WYkOREvCV+cAdyxG1mstd1Sr0IRS RGqw/z9ixEydAB5eJ6Dzv87Jq8j9i4k0LDnI17Vc5bZEBqEL0I+igxP7O5pNdEpSeCD5ag== X-Google-Smtp-Source: AGHT+IEabMgnxwe/41e4yE7gsp1FWElgHaEAOzOfr3b9Dqp83n3bs2Q4rLa6SpW6f4ukmf3dwhGODg== X-Received: by 2002:a05:6402:2550:b0:634:4e52:8f33 with SMTP id 4fb4d7f45d1cf-634677f63f9mr2536874a12.27.1758632270306; Tue, 23 Sep 2025 05:57:50 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=ARHlJd48LVi1V1fjoVLNX7MyzmQFk4xmbwLDeei9waEOjp9kzg== Received: by 2002:a05:6402:d4a:b0:61c:d171:4f48 with SMTP id 4fb4d7f45d1cf-62fa773b7afls4315962a12.2.-pod-prod-01-eu; Tue, 23 Sep 2025 05:57:48 -0700 (PDT) X-Received: by 2002:a17:907:787:b0:b04:6546:347e with SMTP id a640c23a62f3a-b302b50c092mr236884666b.51.1758632267777; Tue, 23 Sep 2025 05:57:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1758632267; cv=none; d=google.com; s=arc-20240605; b=gbHqG6eKUTdam+ZprkbAfkfca+pMA+ZZ3G1j2orWKNKg3yAucPsBkg2WQb2TjFLfBH nVnlzdpzr3fk3bV0ElDpybUhvpKE5Y4DuyMojUbhGDyNVWn6X/Yx42HKBwFMXQK7Vh9+ MXzG5iJIBnZOHJkFb9BiHNw+R/rlqGQqmek/4FK4K/LMuuMdP0LzHEQ9SBCLnoghffmc MGDvV2/iy/5v6GrB3XZ0EZNAAF9eRa2HrfOV9IseOv8jWBfpemzij15uK9lR44uwHc/P Y99IbL27Q8fM/kP7rZefk0Jn78JWAUm7tTy49h8e9R7E0MWQ9dFnUi1e2ifQ9XfVL4LN 4B3A== 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=eq3dfyrFYclljj1qT31cA5X22L5O+KUSooUYqpQO2X0=; fh=G4VTFZd+YbLrI/bKIeXlZ97k0rUJpN37NzPxz2Cfnu0=; b=NbDhAqxmXweqaJ9Awgf2G/m+2T3q/JI7pyEZnUmePMTZJrfBJR/MfUVq4MwIxLsjrN OCPy4nG6mhBQhzTyJfFkoQ21zOfA/KB7mCCIT5vcRvoEEXA8uO6ovsqO0IDdCNZCxbkW M+SI+TM3Ht0ZTLhIk16MpJT3SP83ASVCb0/TJLyqtP2Xqk3sEiMt8L1q5kt7IycN5P6N UbL5bMfm3VvNOh2ZTYuJxRrC1GNGGCpYuN52muFYo4Qr6lwBmqjpYddlMgptd4vobCUN 2373N/qM0K2Em/vlsqkIPcJP1kEfNIt9ItL1m6RVj6Bir6rHW1GkTkjJZX8w6Cm3OCgM wmpg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LsVuiOqB; 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-b1fc6cf1465sor654324966b.3.2025.09.23.05.57.47 for (Google Transport Security); Tue, 23 Sep 2025 05:57:47 -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: ASbGnctbTBx2vyYrw3w4a7beYYQsoxc6yC1gqlq1xLjloJ1mjanQRzo2QEySE2VpGWV DjJNpVGukNYJvhhpdukfL4EuoNVmnL+KqyVDlX43O/W0VmW1BguoOcNcoZE/PWx06HWgsG/NbIj JlGJ3yQEbIyKSkqf/WsYS3kdGd1cVWjQhXnWGRF7YMLtQCCy9psfpJ2i4cnGLemAW7p88h9+1aL /04ERsW1M7pcGW9tPTBuAScgmxOiRcm4XPt102NsK6zE9Rw6aY2uWsQzOkgI4vInfrHZKKB+uZS 5M5JLsQ5HXvh8z/5mwxceSAYkkDpCNdRzRNJ9qOlQGS8rmqF/CvCnoRWTVX7Fm+5Ce/q7o4cSpU KlyUmsP0VI0wxbC3A3O8rpeKKPyQHGn1uK/WDz8m5qhZtJbgR6SEXON+0ccEUzbh2fK6gzsox1O FdtMODGM7BHr0L9TkyIYwwE6wh3s0jvbEAIP4UuQPumTTLYgLEUS7Dyu2DeCRgXTBe X-Received: by 2002:a17:906:f58a:b0:b2a:dc08:5914 with SMTP id a640c23a62f3a-b302ad3922bmr241240166b.45.1758632267240; Tue, 23 Sep 2025 05:57:47 -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-b2761cb532esm872331166b.67.2025.09.23.05.57.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Sep 2025 05:57:46 -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 v7 2/3] dt-bindings: arm: bcm: raspberrypi,bcm2835-firmware: Add touchscreen child node Date: Tue, 23 Sep 2025 14:57:11 +0200 Message-ID: <20250923125741.2705551-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250923125741.2705551-1-dario.binacchi@amarulasolutions.com> References: <20250923125741.2705551-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=LsVuiOqB; 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 v7: - Add $ref: /schemas/input/touchscreen/touchscreen.yaml# 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 | 28 +++++++++++++++++++ .../touchscreen/raspberrypi,firmware-ts.txt | 26 ----------------- 2 files changed, 28 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..8349c0a854d9 100644 --- a/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml +++ b/Documentation/devicetree/bindings/arm/bcm/raspberrypi,bcm2835-firmware.yaml @@ -103,6 +103,28 @@ properties: - compatible - "#pwm-cells" + touchscreen: + type: object + $ref: /schemas/input/touchscreen/touchscreen.yaml# + 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 +157,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>; - }; -};