From patchwork Thu Sep 18 15:36:07 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 4313 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 4CA743F150 for ; Thu, 18 Sep 2025 17:36:38 +0200 (CEST) Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-b07d13a7752sf125194166b.3 for ; Thu, 18 Sep 2025 08:36:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1758209798; cv=pass; d=google.com; s=arc-20240605; b=L2L3iknX0+3+t+etWXMh2o+jtmfgSVG8LseQibxlDe7ofuM+JsVwFufHRqW8taXdwA PeGJ6tag8aeFhFjbLbeTMgtehbFzy9jwzdQT19KYYb5mMJwQ6DrOwWNP9c18rN2+zgeJ 1qmz2ckLd20Hv9oQfW2CDQbTA1DfNdKaSsSh81EAYW2lI6fH58U26HKwfUFZBxVQ2GrA dDxar+tSBaOTkBhm1KnPyX/ESnhKgRzBrQMdMboHqkQ+j3vRUVRShQsr1s51jFgt5pbs QhDMLpzuc3VtDgIl/6HFitbz4N6aqhaDcyMKEH83AbAaPJTSiVF8+H3BJW/rlTxEJRKC WDow== 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=ohXZ7ckj3CKqMF/m0o2bmQRvmRy12QU7IVAyjgS2sug=; fh=zFdPlacGigyG3lRqFr3lbav3G1QRoac1o680rG/K4bo=; b=hMMdkVcRYGmtjMhJtrYlH5oVSQoSCoNSMStjJieQ4l57k5QWRCLgg0JK1zdQZSJkvD azNN4QVOlqkJhUlKC+j3pgz9WXjIQnSe32BAjV2yM6JUsreR46OxtarjGVwm4wheyrH7 gk3E0APjkgs92MvHjvc5DT6Os0jV5vpPqyB5RE9x1od0x+3opUOEGNXzPB6RW//nCKro WLUgkg+amy04blCMJH7QZlecAR7E39o8oHxvBJIBqxqpxWqOWeFW/9XyjmKu1A6AVfdB vMBksi7bBExGLxj4QQDciaQkWHQjwnkhH3kgSIBb8LfU8Be83wyh34gAH4vkN5hetaBB dvBQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=S1HjlXA9; 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=1758209798; x=1758814598; 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=ohXZ7ckj3CKqMF/m0o2bmQRvmRy12QU7IVAyjgS2sug=; b=qUUoQynP4zl8li6A4LN3JogvBgnGd+YqNBYcDemNBxyAcuwHzPQdSvxqEaaTKrKosQ 74H2ZBRfiFOP0ykKsYOEXMA8Xz47tXw+bkGslSfLYkTyPyEHs3ENyl6yCrqd+589N8eS tVr6yULelvKMOC4ZbkaWBbOd8cWEsFLNpk2qM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758209798; x=1758814598; 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=ohXZ7ckj3CKqMF/m0o2bmQRvmRy12QU7IVAyjgS2sug=; b=RxzT0gNSIRMqA8PBc0F5phWBlmquAtSRngHJxl8UUFtF7CDhUn+hO+m3UR45JgnhLu aaYVxKupgGWxisbhwEc0imG5AW0jnzfD/hz+lsU2xbCMA0Roq/eMNGH79rS+KUAG5wdk 6VACNpL1tS6XO5proWHZAT/Pt4ZiJS5QjIxpqlcItxtGT9THbJaFWCOfTuDw8jIrv5YR rp67effCHjlsazMKxwSmuvYb4kd+T0J/9jFPqJpvCD/AORQjWtet1Gfhsf3flU7ZPqe0 2298fZQrWXAtkPPMJTF5otjrCFSkyCJUn42LOdKXtsj17S8cpcBe+3oHpud8eXhlLgny vYIg== X-Forwarded-Encrypted: i=2; AJvYcCXJm0e+lGEJVwIFIcAkiONFRMGEwrO9w7PnsqlypP8w2C+u/DUPmiX6n3hKuCZd1kQXJf1iSiO9y6OPCipE@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0Ywu9KcARrpAxhZdSLZ/h+jRhTYvHzc5iofwFp/cw2R5zbuqDYhr eyvPDqQmX6HsM8jd/vWltk32dSlceYNj4Jb0iy5rsqHyNiyiLuU5zFABp2GM/rTUoVY6Iw== X-Google-Smtp-Source: AGHT+IE3+mElEIEztRgDDkbDITswUrIUOoitRjQmNeijEu7g4h3B+HyePVKolEMs+49TDY8zToYX7A== X-Received: by 2002:a05:6402:2790:b0:62f:aaf6:3eb2 with SMTP id 4fb4d7f45d1cf-62faaf6418emr1858964a12.12.1758209797832; Thu, 18 Sep 2025 08:36:37 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=ARHlJd5VfqmhFN2Dt0LToq+69rwI4gD7UAmEZ4UwWWcWBg4R9Q== Received: by 2002:a05:6402:1d8e:b0:618:8cd:5cc1 with SMTP id 4fb4d7f45d1cf-62fa774c559ls816759a12.2.-pod-prod-04-eu; Thu, 18 Sep 2025 08:36:35 -0700 (PDT) X-Received: by 2002:a17:907:7f0c:b0:b04:ba4:8615 with SMTP id a640c23a62f3a-b1baf60e27emr595853366b.8.1758209795327; Thu, 18 Sep 2025 08:36:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1758209795; cv=none; d=google.com; s=arc-20240605; b=Tk8h91+7SdeMzEaG1jb7A1QIzrHAJS36n+TQF7lVd5kVULqBe2ptYli0m3hiehEetM MO2HIQY8DqTXjfVLC9Jor/qo/JPmkn61g1tUPtXTw8YmE3akPqhcexHLzU+yrIvTKDcu bXPP0yjvVBhIOtEqv08kWuqDKS8Rp5yz96DBZqc5ZQfN8RSaE1HhyFSdKdu538qjnw4O ifQ8HBzPyWn3Ow5YTPAeat+TFfp0w53WqLGTxSx0XVGdSCEz86OYJR7oJJfL2pvdV9u8 iMupbSpUh8vsf6lD5cYckZyN9GT9E7w5+yzcA2hCbXnQlSxkRL9AS/nKWg+XScBqc6XG C+AQ== 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=ClzalLpVry0Z3N5zOF7y4pLh21VJainWEs72sUomkbg=; fh=5IPoofO8fd847Zr+LJ+89nR9QZf+bxlD0HrxkhpH2D0=; b=E1MsgtQSlgPkBXH0Y2Jd8Odq4HddAL6+6yiVbev813fH3tTjWIPIA7T1pEw9GDfj4i swQZtUEIFuyCP+q8IKwkUVw67QEXIYxNhYYgsjmWd6wU1IIonhwD6s4HgGRuNRz96vzZ cCORpdqeQIqM38FIT6UECrasoL9vFY0+rGOsZsDoVtvo9e3XdqfRToCIH60NDIwP43T5 4MCeF5146JulKLnSL4RRgCIfAbweCgUP39wBA2r3tlbhtLJ5KQDG0AFZqQwrN03HVTT9 mWO2YYkC1lPp1ZBVukF3Pff3mRTX/coWUeGR5LD4qdMVJSVKjGIz6SmYq/wU3jX034ts VpgA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=S1HjlXA9; 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-b1fc8814a4bsor124095866b.7.2025.09.18.08.36.35 for (Google Transport Security); Thu, 18 Sep 2025 08:36:35 -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: ASbGnctpU4Raw3E+u0FyuD8XehUcM/FEHvdeyNBWUsbLtblskTB8oRL0BMovjpK6HTx 4q72Ootq/5l5wrRZKenqmxd+ltj949tHoG2Oa9h4eTpzJvsay/nXbIXFGAlgzEvfoxABsNuWCNL /WSa9aPa42qBLqiakGcfYeWtooKAaGKDSe4Bl1xzlgeHTx7sH7mg5JyRWoRn6BXkWHA7RDQh2n1 TC3mIbc2LXEc8vLAy77T/5lZ4yTfWDQv7oyrsFL81yyUOTrWvXWZxyISLwadtHU3Oji3zpLaOT6 QCgn+lPTV/IfahsoVsdNxUPGLh00bhMDZHqqQOX+b4eTBBsxrdmoRb4aJShmBNpiIGCWKxSI0HK rVHLKGKrUnFEPwII3m2jU6bTI0sGr15wPodVrMe2LTUZIDZRsSaMG1XwGp9+hORwEzslfv07hlA lCrOj2FpPB+XMhYOXdv9klxLyzHW6bl5ZVZYzyOnuWA43i6jtgM06YQpM/0XUBv4/y6x9sm4Qm7 XTwKGanFKA= X-Received: by 2002:a17:906:f592:b0:b07:8893:83da with SMTP id a640c23a62f3a-b1bb9b218ddmr625079866b.64.1758209794779; Thu, 18 Sep 2025 08:36:34 -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.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Sep 2025 08:36:34 -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 v4 2/5] dt-bindings: touchscreen: convert eeti bindings to json schema Date: Thu, 18 Sep 2025 17:36:07 +0200 Message-ID: <20250918153630.2535208-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250918153630.2535208-1-dario.binacchi@amarulasolutions.com> References: <20250918153630.2535208-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=S1HjlXA9; 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 EETI touchscreen controller device tree binding to json-schema. Signed-off-by: Dario Binacchi --- (no changes since v2) Changes in v2: - Added in v2 .../bindings/input/touchscreen/eeti.txt | 30 --------- .../bindings/input/touchscreen/eeti.yaml | 62 +++++++++++++++++++ 2 files changed, 62 insertions(+), 30 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/eeti.txt create mode 100644 Documentation/devicetree/bindings/input/touchscreen/eeti.yaml diff --git a/Documentation/devicetree/bindings/input/touchscreen/eeti.txt b/Documentation/devicetree/bindings/input/touchscreen/eeti.txt deleted file mode 100644 index 32b3712c916e..000000000000 --- a/Documentation/devicetree/bindings/input/touchscreen/eeti.txt +++ /dev/null @@ -1,30 +0,0 @@ -Bindings for EETI touchscreen controller - -Required properties: -- compatible: should be "eeti,exc3000-i2c" -- reg: I2C address of the chip. Should be set to <0xa> -- interrupts: interrupt to which the chip is connected - -Optional properties: -- attn-gpios: A handle to a GPIO to check whether interrupt is still - latched. This is necessary for platforms that lack - support for level-triggered IRQs. - -The following optional properties described in touchscreen.txt are -also supported: - -- touchscreen-inverted-x -- touchscreen-inverted-y -- touchscreen-swapped-x-y - -Example: - -i2c-master { - touchscreen@a { - compatible = "eeti,exc3000-i2c"; - reg = <0xa>; - interrupt-parent = <&gpio>; - interrupts = <123 IRQ_TYPE_EDGE_RISING>; - attn-gpios = <&gpio 123 GPIO_ACTIVE_HIGH>; - }; -}; diff --git a/Documentation/devicetree/bindings/input/touchscreen/eeti.yaml b/Documentation/devicetree/bindings/input/touchscreen/eeti.yaml new file mode 100644 index 000000000000..97027914d6a6 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/eeti.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/eeti.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: EETI touchscreen controller + +description: + EETI I2C driven touchscreen controller. + +maintainers: + - Dario Binacchi + +allOf: + - $ref: touchscreen.yaml# + +properties: + compatible: + enum: + - eeti,exc3000-i2c + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + attn-gpios: + maxItems: 1 + description: Phandle to a GPIO to check whether interrupt is still + latched. This is necessary for platforms that lack + support for level-triggered IRQs. + + touchscreen-inverted-x: true + touchscreen-inverted-y: true + touchscreen-swapped-x-y: true + +additionalProperties: false + +required: + - compatible + - reg + - interrupts + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen@a { + compatible = "eeti,exc3000-i2c"; + reg = <0xa>; + + interrupt-parent = <&gpio>; + interrupts = <123 IRQ_TYPE_EDGE_RISING>; + attn-gpios = <&gpio 123 GPIO_ACTIVE_HIGH>; + }; + };