Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp862733pxb; Tue, 19 Oct 2021 14:50:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykuTpiYRCZIrAdxib0BoyA8FiZPmXUb+tSUQ2fDT9Yltfow1e9de61HvoZUeeEz/5ybcFm X-Received: by 2002:a17:90a:9404:: with SMTP id r4mr2634134pjo.240.1634680207190; Tue, 19 Oct 2021 14:50:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634680207; cv=none; d=google.com; s=arc-20160816; b=F/VGW+XWfFEYj6zcSehKnmwl3cHcPpYDLL6ppFbOomQFTqDWp/vDYphUz9nYwCkHXg /h/BtmXDeiXcWcFIBWwi5nGYUBTixzcXL3uwheG46efsbfZ3w4t3KXeHhXEEql9ZPcXs sSWuvPIUtKU8UagF7TIdlx1gU/eaDeA1n9to04ldiIAUJ1JDT6E+38J5YqqiAhCrVeNS 2dxfISoaLrHk81lLPW3XJLoOBPYoQOoMQuZDWEQz+iqtr5dCjYgQ+j02qDVu/tmGrP4t lHxpaZnHBXN+kkIw5u6Hfu0xYxwL6FV+FtXB3yyE1TFelM/2NKo18eQfOoPx0bAOA9Lr STcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=kk4JJaI2+ZWVHR3qmBOUQ3+Cwe87UzzcR1lA2qLxmoE=; b=PI+0jEn6ELgI+ZYqSMiY9+QsurWjnW50Wbcwt9emOBG1JqX/2b1p0Z5NG6SQhdA+pV mbL3hC02E7yogUeGm2eLaiz0pDDIrS4ZJ0XIzjnBY2yXsMPW73heYYl5e3fHIUiJlRv9 S/BrsfsaznKtVohRDCwhYv+6xSK9e7MpemnvBo82vHLPxI3HLPkmoupEFFeMCKJNO2qL NPtztuLWGCWLCq1AujnbpdXpyLeyf06Fg+YQOOvbF7gGHGJY4wxQiCOBbCUZBIxgWk74 UxzKubZhCqokyLuIm3lv9cYZsRUtlikD99026woyB7PHMLsMmvL5Xzs5tBEoluNa5eyG koMw== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p10si265364pgb.409.2021.10.19.14.49.53; Tue, 19 Oct 2021 14:50:07 -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; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229668AbhJSVuW (ORCPT + 99 others); Tue, 19 Oct 2021 17:50:22 -0400 Received: from mail-ot1-f51.google.com ([209.85.210.51]:46928 "EHLO mail-ot1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbhJSVuV (ORCPT ); Tue, 19 Oct 2021 17:50:21 -0400 Received: by mail-ot1-f51.google.com with SMTP id x27-20020a9d459b000000b0055303520cc4so5806932ote.13; Tue, 19 Oct 2021 14:48:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=kk4JJaI2+ZWVHR3qmBOUQ3+Cwe87UzzcR1lA2qLxmoE=; b=vLFAGpGoJLr+GvvEx6TDADCp5EX8QqHxF8E253gxJetcWQYLQXGaUqpx1sNmOJ690J iMVZcYr1BfwBiSS+110bJW1oCD+mBeak5KUeQbjB6fQR9O0fYXNEI7Eok7Iuu9V76CEd zb8d314+l5wThSk171TPDotWofXx2g7HCcKINYCsTzn1TBmxONw07ahkAT3rkeH3zEyM zqmqPR1ivWQ6YONUPF93E6qXLxlCqfqKdsPv4ifcbK4Gqm4kMoAVn98geYoCZD3OyLkb 07RhEQd5cDkpHsRpyHSUCzHgprMtSiVkzjoyE/DcHdJMT//Q8cKzPf8KeiyAI27Z30lf OTZw== X-Gm-Message-State: AOAM533Z8Z7upOJHUOV80eVNctdGePxbq0rU95v+BtVNns579V/Vl7ox jr4+3Ru6+0pzQ0zwerQrUw== X-Received: by 2002:a05:6830:19c2:: with SMTP id p2mr7486872otp.27.1634680088305; Tue, 19 Oct 2021 14:48:08 -0700 (PDT) Received: from robh.at.kernel.org (rrcs-67-78-118-34.sw.biz.rr.com. [67.78.118.34]) by smtp.gmail.com with ESMTPSA id i18sm66516oot.27.2021.10.19.14.48.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Oct 2021 14:48:07 -0700 (PDT) Received: (nullmailer pid 897146 invoked by uid 1000); Tue, 19 Oct 2021 21:48:05 -0000 Date: Tue, 19 Oct 2021 16:48:05 -0500 From: Rob Herring To: David Heidelberg Cc: Dmitry Torokhov , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~okias/devicetree@lists.sr.ht Subject: Re: [PATCH] dt-bindings: input: mcs-touchkey: Convert txt bindings to yaml Message-ID: References: <20211009104837.46626-1-david@ixit.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211009104837.46626-1-david@ixit.cz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 09, 2021 at 12:48:37PM +0200, David Heidelberg wrote: > 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 I don't have this file in my tree. > 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 > >