From patchwork Thu Sep 18 15:36:06 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4312 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 87D573F0D3 for ; Thu, 18 Sep 2025 17:36:37 +0200 (CEST) Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-b07d13a7752sf125191566b.3 for ; Thu, 18 Sep 2025 08:36:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1758209797; cv=pass; d=google.com; s=arc-20240605; b=areSRhMgKfhlYyKQQKNUNufF7hIfsWzlXTePgXEdHT4uRViFWjogrbfsIkbMpTd2In cTAeHpnF5bU9T4h35uI5qalGvFtLrhDnfnch5+zqaWzxnHWumThMN3cNAoRl/iVkJ5wP wYn6RpCwHP6SjAHf2sR6+UfbW95fXLoAM2czL7tcZOXyYNvDUC1vd8CYn0PsMBIvl2Rs l/V+tZPFY86IaGohJPgnvCUoieubpbYh0THVhUv0XgVJV4fmwPv6254V/hxMUNrzoUrn t09trUYa+tvX7hR4cf8iRgwQUEmkjNxnLyAU5DtWNZr+7WU6gY3gnz2PYy7JsWTpUORI lWMw== 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=7vnMiRtLgL5mLNEPz2oywUns2DTvPjv50b8VBZTNxRQ=; fh=kInuKsh9R4/DuxZzdkD3PJjB9qE+1Timjwj/RkJ7rYc=; b=VY9B5W56YuV7PXhFgfX9XW+EvpanQXM9oNC070l4nvMs1pHc/+gBaAhOfHU9J+0HMi 8MYpaLPLdR9W4I1hLhauLAbX30C7NoQJ6vwzXlErqGaGYFYjeQes6GNBqkMMqkGGQHEL t7U6gd0IdifpRR5Pz6aismiqYRLzmjDGJ5UQqHgbbjJeCbmrvUF46kSfotMy64FzfvIF QBerHdg6cSL1S+i7bIRkd6D2eor7esOOu0mZkygahgMBEZxZ52n0RlQYFIWqn7sIDymW usOpAQDazbsjKswV4TDZn05JhMBAozK1BGfNmeqTDwxG+91eGjOf6vp5MK5ckCFRKVBz pnXA==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=jyFEb43H; 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=1758209797; x=1758814597; 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=7vnMiRtLgL5mLNEPz2oywUns2DTvPjv50b8VBZTNxRQ=; b=G6/uR0ZnYe+jcic8r2iJhn0STzythS/9uDxpGgfNlpy/HoiUaCJkDjxnDG2gNgejKa QnCTfVGyBUoS7hXlS21n1UPIgboNhJbC6MuZUUAsL/vSKFEF1hU6x3Kzb31Cg4hpMo9z W3ZA41guWUmN3L9OjLaSpzi2U3KsY7b0fqLVc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758209797; x=1758814597; 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=7vnMiRtLgL5mLNEPz2oywUns2DTvPjv50b8VBZTNxRQ=; b=PO9I369ri/1AFR/5tBPCIdDo3p88jtHcEppzf6eoYIznfaLqRE0t3h/bIzoRAOYd/n wFYAXel7Ur1tx4uq+OE/RyxTOzdILl/B9lVuIfISUo3a92WuJ3D8dA2iE5Og33unNfpQ WwpqE0Zd/9jJZBXtCi0j0uZR0+C7xKkpbuYOFw1Yp4CxsprQVs8IIAyXj2TDZQ8jTxzU lNjiUBMQHY2wY5BLcCi3EVhGj90iLZoGorKovcGN0NUCl0CPj96G4Qj3NNM0IXENhkkv KFuwERRhEfoP8w5zmwwZKe0ypYOJTuIz6sRwRfUmQarC9ydYvYZnjcBp63s8EwudCC4Q gGwQ== X-Forwarded-Encrypted: i=2; AJvYcCW69RyJbuvAyxSVEwNZ3Yw1NklWMLmbm1Ifj7Eie55TqF21drxKmwN4jzQkwKI279MRE5nxKej8OrtXwTLw@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Yxnukq+SMkrXmpbrwiJCZ0yS8ncivmo3K/Ew4M6ADsYZTz3gVIR OXauE+Z+vYoc180OZQF6Ve/khV7cK234L3RI40N8G15Po+k5Xv2MLJAB6fIYRILAin0eZA== X-Google-Smtp-Source: AGHT+IG54J+IkQnHgw0QizMLHkn+vh8+M2rnZOV3IszGbfhiBXkO0rShp6Lo83UpqpBLI64KZ6bmqQ== X-Received: by 2002:a17:907:2d87:b0:b04:5829:97bf with SMTP id a640c23a62f3a-b1bb992882cmr657670466b.55.1758209796750; Thu, 18 Sep 2025 08:36:36 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=ARHlJd4UEGpcc4Ojg0qxNxTt3qfEK80G+JgNgpzGfkXnl65PGQ== Received: by 2002:a05:6402:4385:b0:62f:4288:8126 with SMTP id 4fb4d7f45d1cf-62fa7730ebbls946002a12.1.-pod-prod-04-eu; Thu, 18 Sep 2025 08:36:34 -0700 (PDT) X-Received: by 2002:a17:907:6d02:b0:b04:97df:d741 with SMTP id a640c23a62f3a-b1bb82ffbefmr702374866b.44.1758209794252; Thu, 18 Sep 2025 08:36:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1758209794; cv=none; d=google.com; s=arc-20240605; b=GpSDIvadwJexsUfspvJh/7hxPdL6YNmF4B7XgTRyLVBozQXnm1y7U/Y8lI95AmpwNW +nOKbkIw/663Pt7cmJGDEGU0xGRJHnWmv1fh9aCLW24+MnuzgGn1nlS3ILv7MFYzQCxC zgvhTRBVqUQGal6AR/Bxa5mq13/+CFirIEAA9ibax3Ur/uk36RI2mFHEgvPjmP1xrBDW I3k8pqKurHbIUM/HUYRvXCghPsG+9eTltGlg0wkm3LgE5jiMczV4FWQ3+Dw17PstR8wE Y0urQbp1VhI4Hqy7T7Ht86saQeDKmNhEEcOVpeSyNXiV5BQaBacdE0wVWQENyOAJOnuG IPvg== 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=N81dGvO+xJTmXCqWIcLQYDKWPfQd/IXwIEAbvvgpOAM=; fh=B/34DORXtvLOKRzbba52p7ZA65I5St69acDFCI0SjAY=; b=e+MIOUReJdSiJHAVj+xcS8DopT2aL2bM181OcNenTXmFUdS9/oyjLK61wh1nNeyGEV MYSYbcN/U1TOOfe6MsRmLDX6IZIix2YJkR0fPVcR2FPAPIFy8N1dUBz15jOuxYg9Kv3G +a3RrcaBgD5bArtXGTWzAT3jXdStk3Hctb5LYzQzugDh4nj0h/0U2HbBLsdh7MhfGRjq aTBS8uA/ogkOZS2utAhzgrnG0s7L1jxnnNOKRdVYAXCc1yJcDHR8t5q6qaAghxuxDpUv Yx5q2Z7VROgHOmihniw/CVtNfB9v21eWQqKQf3wKlVflxc9R6EVkInHUFYk5sJg3dl4g 8+Dg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=jyFEb43H; 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-b1fbb92adf0sor130466866b.0.2025.09.18.08.36.34 for (Google Transport Security); Thu, 18 Sep 2025 08:36:34 -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: ASbGnctO0K0GnwKqdAp7FWIHqV2ZNMZsRQPh1MvLYW9Zlmv45c+F4FwHaKo8Z9k+yHo wDnKfgvcnYaQmAYVRd0E46IzfUZmz1DA5KLAAPbl+lDR3KDeWuWuXPM/AODe2trdQIwkLq2pp2W K2po8bzmrO2t3UoFBnOpG1IBas0SOnwgoi3SVXuMSX5QFZw4HE3EFLVPdoqg9N2s1tGW1GQt0Ke 1qeV9Ar8gb3fyIDd2GqkYeuuNy4F4s7MkYn4flVsqomoMoq/ez+TEyLl27AuAXgKY6sAv1MAYjJ U/VzlSNgWtzAUM0NHnBVbItGInPKySr4eEh2u04dGoZKHb4VvwKHl/XDxQKIXnNlmJ0nItduP0S brnEiuj0cagB4FtwreZd723dTgQdTEo/9KsMNn6P7T2jo+WsfmGk7LMKivHzwx6wqQrS7NNhEoW 5i0Kl0MpFXJJIfMfYF/ev7GrZpNxpfVMsc7f+JRPVytEV99LSywANRI/kriata/6ordvVa24JzY ExPToikGyw= X-Received: by 2002:a17:906:6a09:b0:b04:8701:7304 with SMTP id a640c23a62f3a-b1baf60e268mr788877466b.10.1758209793686; Thu, 18 Sep 2025 08:36:33 -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.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Sep 2025 08:36:33 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , Krzysztof Kozlowski , Conor Dooley , Dmitry Torokhov , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-input@vger.kernel.org Subject: [PATCH v4 1/5] dt-bindings: touchscreen: convert bu21013 bindings to json schema Date: Thu, 18 Sep 2025 17:36:06 +0200 Message-ID: <20250918153630.2535208-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=jyFEb43H; 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 Reviewed-by: Krzysztof Kozlowski Reviewed-by: Rob Herring (Arm) --- Changes in v4: - Drop description from reset-gpios - Re-work description of avdd-supply - Rename the file to rohm,bu21013.yaml - Add Reviewed-by tag of Krzysztof Kozlowski Changes in v2: - Added in v2 .../bindings/input/touchscreen/bu21013.txt | 43 --------- .../input/touchscreen/rohm,bu21013.yaml | 95 +++++++++++++++++++ 2 files changed, 95 insertions(+), 43 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/bu21013.txt create mode 100644 Documentation/devicetree/bindings/input/touchscreen/rohm,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/rohm,bu21013.yaml b/Documentation/devicetree/bindings/input/touchscreen/rohm,bu21013.yaml new file mode 100644 index 000000000000..adea2c4edf1f --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/rohm,bu21013.yaml @@ -0,0 +1,95 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/rohm,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 + + touch-gpios: + maxItems: 1 + description: GPIO registering a touch event. + + avdd-supply: + description: Analogic power supply + + 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; + }; + };