From patchwork Sun Sep 14 20:37:52 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4293 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 AD5963F16F for ; Sun, 14 Sep 2025 22:38:43 +0200 (CEST) Received: by mail-ed1-f70.google.com with SMTP id 4fb4d7f45d1cf-62efebe1899sf1589554a12.3 for ; Sun, 14 Sep 2025 13:38:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1757882323; cv=pass; d=google.com; s=arc-20240605; b=Xml3LEeVpu2zfw0fYB8zMqnx4TG+1aJ82/L2MYiMVBQVNlzPyFcVLg3+i6UimNbfxX MfxlOeRqVvFJ4WJDcLTQaQ8QJb3ghan7kL0kDx4yg7m8FaF48/LbTc37jTVmkNPYMVH9 JalYCe0pQzoe9yKG5PiBxkHuFiaqVzJPhj5S0ELQrvwBo4WVrph6zwjAEh9Qv0LYEshj FZlg/2znBl42p3piri9SVw8Cf5CIs3iPfGB3+hNyOHP6tM1N+c+bcpcp/HR/pStaoiV4 6cF8pmPCygv66lA/eIhLztuPx3D+fC2QRCSTmmFzkJ94cqSX0ZwcWdMOZ5beJM1O9fWD 6lzA== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=NocX7MdbRvr1jj3MGq9A6ysAjsQXWQ+Pi1o7hIAfUwM=; fh=GY/IkqqIHX0+sGhAYV2WskD9OJE1eO8n5dXGKPE5E/U=; b=hoNI/mrSVkPoTh+bnqfaLptGm9p2yatcwPEYiyndLfoX6g466XV/i06widwBcYOJzy W/DC50sSkEyApLYNSoTBs3h5+5xQJz86ZmOUqDSPZCqFQT1RxGV0louUbZ+vqE1XeCoH KgA9MssMZAJ2gio0RvoVxvAMJOF9cupaJjNWtjgXHvWynfWNR+COraA/7LHYIwMrARFX DpeY2RpceM9H7zKezXi2+eB+aPn4GIs5HqYc6iiHeZv9nI+yIGi5AG9KIEXCmBo4pAqL Y2Zui9y7+icpjfBjp+Ak2uAuuQelX4UOsU9fc3gX/+QA0lLbQUlrHhv0iuk6avjMrW86 HQGQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=eQEqtdO6; 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=1757882323; x=1758487123; 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:message-id:date:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to; bh=NocX7MdbRvr1jj3MGq9A6ysAjsQXWQ+Pi1o7hIAfUwM=; b=mI89DlTkyKPRVrR0YzKXheaJS0zPmW/j5cARoHt1BM6AsKgdlRr/XnGlEDcNUXEDLA 8FF+eZUF5cdCrvxCP677+jCrfVfCHm/kcF6Xaa//hq/bCMmJlyv5Z8g16a0zKrT+l8K6 VLFQqRTTQQN5zfqD3BYuhLRmRyoICkHP4llYs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757882323; x=1758487123; 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 :message-id:date:subject:cc:to:from:x-beenthere:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=NocX7MdbRvr1jj3MGq9A6ysAjsQXWQ+Pi1o7hIAfUwM=; b=T7Q1QYQZhRXM6oUzEmErzQpgGPQoc1k50wFGug8R8TIdxl1YgKDiRERWk9iRFUHXSk BUXIBzT6kSKAEtX2d/xsgzvyJuGMpuZrdncYYTcMfCX1rFcITcN1Uhf4xyfuXp06O4tV EY6v7oZfEWuhTNdGsNiORQ9bI48wM2M7Cr235Ur3Gnj2+nyQJvOQ8eIEa6UGtS6F/yX3 myHEI0o2MZUSy89NOlHDwCDgFs+lcr1kb70zbYrLWA/tyXfN9ujTrb/1BV1i+avUv78x wK/MUdVhJ2IRar9grWCtBJqXa5W9OftD/9Lbeo7e13+ydDCs/dUrSncMUO1vWsN0pNFX HGlQ== X-Forwarded-Encrypted: i=2; AJvYcCUmMkonlbGJ5J5OC8N5QIpab1zFoeXS56CHGLjRPsrZSv4AvfR2Sk0Tqf+yF7XjcUJwJeoxYnairouVYJAC@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YwFFM5AqIJWLD27ey8WOrnfFwQMJCbh6lotSmJ2YWMzHYdf5Yu1 o9WqsVJ+RZNQeKFtGaWfliaY0tktYgufky863NQT+OLwwbkXslKiNqKO0wFmSVYNCnRgXA== X-Google-Smtp-Source: AGHT+IFEEX/ivAI789YLE9IKm2zODNwQ4zl/UGugiBph6CBQ5byxWxrCW45Ig3HdiKEoZsIr0e5OCQ== X-Received: by 2002:a05:6402:5043:b0:621:d92:d85 with SMTP id 4fb4d7f45d1cf-62ed828ce1emr9611796a12.25.1757882323318; Sun, 14 Sep 2025 13:38:43 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=ARHlJd4VBKtxYoNk03runD6Gij4uz2o/c6j5m4bUbnDfwiyrRg== Received: by 2002:a05:6402:2088:b0:61c:3fe3:ce7d with SMTP id 4fb4d7f45d1cf-62ebdc693fels3256258a12.1.-pod-prod-07-eu; Sun, 14 Sep 2025 13:38:41 -0700 (PDT) X-Received: by 2002:a17:907:6e87:b0:b04:a1a4:4be9 with SMTP id a640c23a62f3a-b07c351046fmr968151166b.28.1757882304900; Sun, 14 Sep 2025 13:38:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1757882304; cv=none; d=google.com; s=arc-20240605; b=ehJ1J4/PXlqh9rWXXojyxzNyKGidXliSX9uFIO1oVuOzbET2a55VBMUfNKoy5slWNX +vaxqc2JZ/dBwvaKRkUCbHF+bnJe54WIKgedd5NKKD37Hh3a1EijOhD/8ZAka40v1C1O u+hJ/s62N+PEh4bdWT0jRrVTaqzviqe4ozETzMbYYI+Q1h3tm1rKvnIWwQN+gQQzW3pt Qwr8LCF5uCGSHzTcPKAg8qpAlhmGlnw2wtW76JtYECskBeluN6Zj+DMQM5dOEHRRfFIv q5SH/64K59cBCW91WoXnOFR1TpyBRWSZPvCf+EIGbmi2JAXKFJQl5jAbXhSxgl79LxNg b91g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=Z9VY5ykh5wKPdVnX3qXAuw1qQOw6UnVjhurc+WIYVtA=; fh=5IPoofO8fd847Zr+LJ+89nR9QZf+bxlD0HrxkhpH2D0=; b=Q3zgV951yNvE8gCqNA3W+Ml4Rf+/pj7gWQs2hfRJhA4CzIKz4qzohVh31zyQAN/MbS VJjzYlgqd8cLRSCqwAmHDjxy8SGODOHkutvHjm7dgws8p21jzFcMnd0o/QKMuim7p+9Z fADu7O80V7yHZHMT2uwLvpl6AqnzfFTdc0Pg4oaofxcK/1PGfT8OOnzKZXcEA3oGCL9T OLb/97Ox1gPK0s2IB0y09n9LdL+t/BFLlsM0PTDWDmDcFpvbCbKOnsqmtxxGtTeErgYy 4az3I0v2qfsres4dfl8wq5WYRoZJMfaM61V0zPQLx1AhIeXelAc+BwUsmNyt3Av0PWZx dYHw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=eQEqtdO6; 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-b07b31283d4sor345755366b.5.2025.09.14.13.38.24 for (Google Transport Security); Sun, 14 Sep 2025 13:38:24 -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: ASbGncttBOpgoxFtaOUVZXMulvyfxay5q39QlUQFtrEVj3cvwtW/qAv/xqgAErbuf56 sKRTzDyPUADrWUwMFhdu9fPrlvPzR1VHAtFLa8OY4hFdcHKCkbNFvQZZvfySol6BXe084pKSwtQ iZR3x4P31WASdPm5ixbOPuLhKTpkuUTEUNTrkb/iJjLJqeYz5si1fl8eis3b+OG7fOVKpPZoz9O qgnbzE6kjdKjEOqmf2Xg28fK1ypS74uCSSGdq45kOVfICqhlyfeYlyLKvok14Lvl6k7kDI7ZPtn Grnk8xJGzfAogJpdNCYJc8zJdRnk4g5tIkOLoZ+Y54unV34Nyhn8erd16Y4yaczFWCj5P0/Q+gy ux4twSi2OmY2a8mnKmhuPeojxVOKxpqF8SREJm1Bxa9liqFOuy4c8T3HVNJf3qmu5ej7RQyQf+K 5p79yVweUywOctw3ryREbxrdnroPXeJQFWTLSP/VP9zjdPtAFuS5byp+A7dVGSiYEmW4qN0NmK7 GU= X-Received: by 2002:a17:907:9443:b0:b09:d915:1416 with SMTP id a640c23a62f3a-b09d91547c7mr524413566b.54.1757882304362; Sun, 14 Sep 2025 13:38:24 -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.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Sep 2025 13:38:24 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , Conor Dooley , Dmitry Torokhov , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-input@vger.kernel.org Subject: [PATCH v3 1/5] dt-bindings: touchscreen: convert bu21013 bindings to json schema Date: Sun, 14 Sep 2025 22:37:52 +0200 Message-ID: <20250914203812.1055696-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 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=eQEqtdO6; 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 Rohm BU21013 I2C touchscreen controller device tree binding to json-schema. Additional changes: - Replace -supply with avdd-supply to match example and existing DTS. - Add reset-gpios in the example because it is required. Signed-off-by: Dario Binacchi --- (no changes since v2) Changes in v2: - Added in v2 .../bindings/input/touchscreen/bu21013.txt | 43 --------- .../bindings/input/touchscreen/bu21013.yaml | 96 +++++++++++++++++++ 2 files changed, 96 insertions(+), 43 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/bu21013.txt create mode 100644 Documentation/devicetree/bindings/input/touchscreen/bu21013.yaml diff --git a/Documentation/devicetree/bindings/input/touchscreen/bu21013.txt b/Documentation/devicetree/bindings/input/touchscreen/bu21013.txt deleted file mode 100644 index da4c9d8b99b1..000000000000 --- a/Documentation/devicetree/bindings/input/touchscreen/bu21013.txt +++ /dev/null @@ -1,43 +0,0 @@ -* Rohm BU21013 Touch Screen - -Required properties: - - compatible : "rohm,bu21013_tp" - - reg : I2C device address - - reset-gpios : GPIO pin enabling (selecting) chip (CS) - - interrupt-parent : the phandle for the gpio controller - - interrupts : (gpio) interrupt to which the chip is connected - -Optional properties: - - touch-gpios : GPIO pin registering a touch event - - -supply : Phandle to a regulator supply - - touchscreen-size-x : General touchscreen binding, see [1]. - - touchscreen-size-y : General touchscreen binding, see [1]. - - touchscreen-inverted-x : General touchscreen binding, see [1]. - - touchscreen-inverted-y : General touchscreen binding, see [1]. - - touchscreen-swapped-x-y : General touchscreen binding, see [1]. - -[1] All general touchscreen properties are described in - Documentation/devicetree/bindings/input/touchscreen/touchscreen.txt. - -Deprecated properties: - - rohm,touch-max-x : Maximum outward permitted limit in the X axis - - rohm,touch-max-y : Maximum outward permitted limit in the Y axis - - rohm,flip-x : Flip touch coordinates on the X axis - - rohm,flip-y : Flip touch coordinates on the Y axis - -Example: - - i2c@80110000 { - bu21013_tp@5c { - compatible = "rohm,bu21013_tp"; - reg = <0x5c>; - interrupt-parent = <&gpio2>; - interrupts <&20 IRQ_TYPE_LEVEL_LOW>; - touch-gpio = <&gpio2 20 GPIO_ACTIVE_LOW>; - avdd-supply = <&ab8500_ldo_aux1_reg>; - - touchscreen-size-x = <384>; - touchscreen-size-y = <704>; - touchscreen-inverted-y; - }; - }; diff --git a/Documentation/devicetree/bindings/input/touchscreen/bu21013.yaml b/Documentation/devicetree/bindings/input/touchscreen/bu21013.yaml new file mode 100644 index 000000000000..aeb581fcaf29 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/bu21013.yaml @@ -0,0 +1,96 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/bu21013.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rohm BU21013 touchscreen + +description: + Rohm BU21013 I2C driven touchscreen controller. + +maintainers: + - Dario Binacchi + +allOf: + - $ref: touchscreen.yaml# + +properties: + compatible: + enum: + - rohm,bu21013_tp + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + description: GPIO resetting the chip + + touch-gpios: + maxItems: 1 + description: GPIO registering a touch event. + + avdd-supply: + description: Phandle to the regulator supplying the analog circuit. + + rohm,touch-max-x: + deprecated: true + description: Maximum value on the X axis. + $ref: /schemas/types.yaml#/definitions/uint32 + + rohm,touch-max-y: + deprecated: true + description: Maximum value on the Y axis. + $ref: /schemas/types.yaml#/definitions/uint32 + + rohm,flip-x: + deprecated: true + description: Flip touch coordinates on the X axis + type: boolean + + rohm,flip-y: + deprecated: true + description: Flip touch coordinates on the Y axis + type: boolean + + touchscreen-inverted-x: true + touchscreen-inverted-y: true + touchscreen-size-x: true + touchscreen-size-y: true + touchscreen-swapped-x-y: true + +additionalProperties: false + +required: + - compatible + - reg + - reset-gpios + - interrupts + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen@5c { + compatible = "rohm,bu21013_tp"; + reg = <0x5c>; + + interrupt-parent = <&gpio2>; + interrupts = <0x20 IRQ_TYPE_LEVEL_LOW>; + reset-gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; + touch-gpios = <&gpio2 20 GPIO_ACTIVE_LOW>; + avdd-supply = <&ab8500_ldo_aux1_reg>; + + touchscreen-size-x = <384>; + touchscreen-size-y = <704>; + touchscreen-inverted-y; + }; + };