Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp867658pxb; Tue, 19 Oct 2021 14:58:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8XS/HavjC8bic3GGd6YAOPAJ15yA/l8lV1N3OcE8BKqK5rt1D+/miLUPzAupEFmbBo/Zm X-Received: by 2002:a05:6a00:1801:b0:44c:aab8:a5ba with SMTP id y1-20020a056a00180100b0044caab8a5bamr2331860pfa.32.1634680693568; Tue, 19 Oct 2021 14:58:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634680693; cv=none; d=google.com; s=arc-20160816; b=qUZxqkrshTjHtBJnqDBy1J5fHa+0HtFSUjPxtWcmmKGAwYyK/OvIvW8qAyFz50/F9I 6O0YIGFHORRD4Usm4xRolYd557fn6XgYzhGymQaTEnzYuQuzUV9c4Fdm3q4493GlfrHD TWPJG+hbpWVufCTL7skO/McpfwndX3oEuXQJJWNBrzDna9mUs8BR+/zWkkE3dXi5fxgq aUnBljjR4ZrJiq50B4HcPvZQvqFbzl8FaGdyvDNm49hR5S7haSkxOuDZJ/Y5qTl926H5 QqQ/HwZY9xyx0BZx6y3QBiCY3+rhwaSyHmKhgF19PKMweXx7kPXT+4U+UQOFgwzddMao NQFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :cc:to:subject:from:date:dkim-signature; bh=8lgaP/2ATFYQDlin31nRcPdjbmSoyrqFu6rAKvUIvhc=; b=RjbCJ4SdmvtSr1EABgrMJo+Be3E7fADtrdWk7M92bZpaDWUsKYFrWFFSx1wP7RcS1N W0kT1CXRKfdWwscxjvS70lB4y2IS7vCxazsJ++hTnuvz8jHV90W/i897op0xN62Y5O5m qTP15RpBS9/145foUWGOA/Eh+VpsMrEG+AHtgPy0ofxrZ4yEsjoT8z+3CknrujowC+z+ DMVcqIt4RBL3a5p9PPaR2spVbWoy6kGYtPyM4CNVMKVb2fgHJ+XbI1tNAOHRR5Odbc3E wQMtZR4swHRatP0yE/MiOE5xh8h/Q9LBIaGkogzwyjulsW9CqMnDIJDTUkHAVPG10j8t sx7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ixit.cz header.s=dkim header.b=jcAsRx8W; 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 u1si480264plf.139.2021.10.19.14.58.00; Tue, 19 Oct 2021 14:58: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=jcAsRx8W; 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 S229627AbhJSV7F (ORCPT + 99 others); Tue, 19 Oct 2021 17:59:05 -0400 Received: from ixit.cz ([94.230.151.217]:53922 "EHLO ixit.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbhJSV7F (ORCPT ); Tue, 19 Oct 2021 17:59:05 -0400 Received: from [192.168.1.138] (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 ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ixit.cz (Postfix) with ESMTPSA id ED36120064; Tue, 19 Oct 2021 23:56:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ixit.cz; s=dkim; t=1634680609; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8lgaP/2ATFYQDlin31nRcPdjbmSoyrqFu6rAKvUIvhc=; b=jcAsRx8W2uWaRB6tRkAVtfkXCSBiDjl/b5vOEWYrA1welst6/mjCh1xUjlbZXePuYLl4G3 uQoLt0QY1ZWx48SR0s75wcZnDuuUXk+3MkO4PEhX1OtVcCwatlkz0xq/8Pvf1ZbJltsU39 8++Vgwqv7wLy1naDzNKF4QCURX0X638= Date: Tue, 19 Oct 2021 23:55:15 +0200 From: David Heidelberg Subject: Re: [PATCH] dt-bindings: input: mcs-touchkey: Convert txt bindings to yaml To: Rob Herring Cc: Dmitry Torokhov , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, ~okias/devicetree@lists.sr.ht Message-Id: <3KV81R.UYQXZR91DTP82@ixit.cz> In-Reply-To: References: <20211009104837.46626-1-david@ixit.cz> X-Mailer: geary/40.0 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Oh, this one is still in grate tree (extra besides extra Tegra patches). Please ignore, mcs will be send already converted to yaml. Best regards David Heidelberg On Tue, Oct 19 2021 at 16:48:05 -0500, Rob Herring wrote: > 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 >> >>