Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp3172106pxb; Sat, 9 Oct 2021 03:51:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBzeNjZ6Q+d2PKYhgyu492BdPkiTdhjEtkg6nmPnuJJFLmQ8W48hCnWNsHfQdp2yaIEhpx X-Received: by 2002:a63:d709:: with SMTP id d9mr8891969pgg.377.1633776673446; Sat, 09 Oct 2021 03:51:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633776673; cv=none; d=google.com; s=arc-20160816; b=gEHBnB0Z5G266evePy3te3WA5/TEw3bXWi2MX+3rDcZoKeSVakVvXy4rmWalDVZYsk FMz5eMvfx1BFyHw3uVF13wYfNducVZJLXSE8p2Jw1DCyVYNd7QiUXdcUcJBmMnvK2GFH UsBM38Ozatroi2CT2ifHglCQuWPOSvGsCR57lqvJZ0ZZW8Jpy7TNK7vbRQoOEZY0CV9a P5cfWf/v8lCF2qOxdY/LhV8q3Es0QBZzwntV8Ua8kMg7hepp9uhXfGqYupr6o+A1yIan YNMVStE6G3u8jqXc1B0cBbUYZUqow+jY5az7Z6k2kb1YANLicxij3Ac6smvJElcG0BcR mSrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pXtBP44GOWMz1wPbaqa7bXoz0JlEqPT/QbX93YFXbbY=; b=y51yanliTod2kYlBhxMkWGB+IGBpS0K8IAeYaqA2EEpTnhGN/sXbRek9eV3RBd9Sra m25KbDpbyWKvMuwfvfZxS5REp4wyNoC/01pVbkfrVHRDzHlgy/HIVVyYaj+MwZgOEi7L ZvMDnvJdYn3MnJqJEb4QiSiuGKCNyLGblW+h04xKeLYRmfKPM6mcRL4YgGgHDgYXwFqo Yt3hZI9zavkkDLsiM1mI+8lsXjSQhXXJmJQVklLWVOZ0POEusp/KpFDZdWFDi4V76yW3 +SNda4Ul/o+6m5gtcHIJ/Kt8OxAgbDeBRTHNQWP6izWFYGBRmjY9gOplv5CnUor/ub89 j+PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ixit.cz header.s=dkim header.b=KzJszMlA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=ixit.cz Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ob16si3743800pjb.120.2021.10.09.03.51.00; Sat, 09 Oct 2021 03:51:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ixit.cz header.s=dkim header.b=KzJszMlA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=ixit.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232288AbhJIKwB (ORCPT + 99 others); Sat, 9 Oct 2021 06:52:01 -0400 Received: from ixit.cz ([94.230.151.217]:41708 "EHLO ixit.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231718AbhJIKwA (ORCPT ); Sat, 9 Oct 2021 06:52:00 -0400 Received: from localhost.localdomain (ip-89-176-96-70.net.upcbroadband.cz [89.176.96.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ixit.cz (Postfix) with ESMTPSA id 5643C236BE; Sat, 9 Oct 2021 12:50:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ixit.cz; s=dkim; t=1633776602; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=pXtBP44GOWMz1wPbaqa7bXoz0JlEqPT/QbX93YFXbbY=; b=KzJszMlAqkc4HZOVO1hgfQp8ZCaGDWBAfsxHUsXpnb8NXIHqyN2H/LcZyUMZ2nQZE3JoZW vJHAZlbdlEqeXdU582qXtYi/5hjhwhs6TcPwzZhoCqNC+JPmiWpylmqRUQGAZBy9MDNTw6 ggD9+hTiFrm/9OUXJhNOIw37tuKBgdM= From: David Heidelberg To: Rob Herring , Dmitry Torokhov Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~okias/devicetree@lists.sr.ht, David Heidelberg Subject: [PATCH] dt-bindings: input: mcs-touchkey: Convert txt bindings to yaml Date: Sat, 9 Oct 2021 12:48:37 +0200 Message-Id: <20211009104837.46626-1-david@ixit.cz> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert MELFAS MCS-5000 touchscreen controller chip documentation to the YAML format. Signed-off-by: David Heidelberg --- .../bindings/input/mcs-touchkey.txt | 26 --------- .../bindings/input/mcs-touchkey.yaml | 53 +++++++++++++++++++ 2 files changed, 53 insertions(+), 26 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/mcs-touchkey.txt create mode 100644 Documentation/devicetree/bindings/input/mcs-touchkey.yaml diff --git a/Documentation/devicetree/bindings/input/mcs-touchkey.txt b/Documentation/devicetree/bindings/input/mcs-touchkey.txt deleted file mode 100644 index 545454112a43..000000000000 --- a/Documentation/devicetree/bindings/input/mcs-touchkey.txt +++ /dev/null @@ -1,26 +0,0 @@ -* mcs_touchkey MELFAS MCS5000/5080 controller - -Required properties: -- compatible: must be "mcs5000_touchkey" or "mcs5080_touchkey" -- reg : I2C address of the chip -- interrupts: interrupt to which the chop is connected -- key_maxval: size of keycode table -- interrupts: interrupt to which the chip is connected -- code: key code for this device - -Example: - - i2c_touch_key: i2c-gpio-0 { - /* ... */ - - touch_key@20 { - compatible = "mcs5080_touchkey"; - reg = <0x20>; - interrupt-patrent = ; - key_maxval = <2>; - linux, code = <0x0000009e - 0x000000a9>; - }; - - /* ... */ - }; diff --git a/Documentation/devicetree/bindings/input/mcs-touchkey.yaml b/Documentation/devicetree/bindings/input/mcs-touchkey.yaml new file mode 100644 index 000000000000..b56de0361ff8 --- /dev/null +++ b/Documentation/devicetree/bindings/input/mcs-touchkey.yaml @@ -0,0 +1,53 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/mcs-touchkey.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MELFAS MCS5000/5080 controller + +maintainers: + - Rob Herring + +properties: + compatible: + enum: + - mcs5000_touchkey + - mcs5080_touchkey + + reg: true + interrupts: true + key_maxval: + $ref: /schemas/types.yaml#/definitions/uint32 + description: size of keycode table + + linux,code: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: key code for this device + +required: + - compatible + - reg + - interrupts + - linux,code + +additionalProperties: false + +examples: + - | + #include + #include + + i2c_touch_key: i2c-gpio-0 { + #address-cells = <1>; + #size-cells = <0>; + + melfas-touchkey@20 { + compatible = "mcs5080_touchkey"; + reg = <0x20>; + interrupt-parent = <&gpio>; + interrupts = ; + key_maxval = <4>; + linux,code = <139 102 158 217>; + }; + }; -- 2.33.0