From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 67991C43331 for ; Mon, 30 Mar 2020 19:11:55 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 405A520748 for ; Mon, 30 Mar 2020 19:11:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="mvB80TdB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 405A520748 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=yAcuaU0WJihGJyLCCRox4oc3BtabuJbDytJ4jeWOCMw=; b=mvB80TdBt1lT8k 9Yoy2OUDocqwqkZ6H7tmXa6iYDKciOQm2j7rGOOsY+NHVnImA2meUPIfL0Vx72SWfZ/6+cD0sEkSv /63OgMQ/kjzfDKqA+JBLFxRny0nthBu3Asv8udz0i34GUTTeIyaDLwTF9/OVka0s9b/r5v7JsP4Ox wpfMop/V8uGHAzGSZbmw68hDVstWwDPNnN1Xfsfp68VjoeDjN1shtvmo/87gvYXc9RnP6ypmnfjhe 9LNqnUUMaIBkqDplSmCB6medxCWidelyniZT6uGPe7hJ2tNWUy5HG9o+2qvW5Ys/9ZkUIXx1vpk+Q CYTUYIDbkyI5xY4KK5nQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jIzp8-0004GD-Nq; Mon, 30 Mar 2020 19:11:50 +0000 Received: from mail-io1-f67.google.com ([209.85.166.67]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jIzoy-0004AF-5k for linux-arm-kernel@lists.infradead.org; Mon, 30 Mar 2020 19:11:42 +0000 Received: by mail-io1-f67.google.com with SMTP id x9so12590374iom.10 for ; Mon, 30 Mar 2020 12:11:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=naEzHVNq1KsTafl3xqH4koGPBy3a41PHj0Hsijlhu9s=; b=mPvrt4w6+P0IS7CCGja3osWZYd4ra0UZzEl86K8w9Jeh8W4rx+0q5BSe0iYUai4Q9d udM7fY2wclPwU3DCOxD94V/0v5FgdKWUTyNz7g4SwRfwRAKBWRUdcSdrJhTcy11Sm0E3 Aein1PgPfujWMVL1818ki6jHcxfx1GO+qg/M9Gp7XtE4CmgSlYDBjbjQnOMrsO5UU3PH aTPL4rgksYLh+PXYsxyoBtL0FeX0wx4bgx8Yh3n5Mdf/MZJ4MDGIz5b3luXREkmH2wXh juWR4L4pnVPrpT9ro1J8iwUryz+6VtfwoteCaL8e+94VoffN1OnxZCC1Bj2HsCRa0jH8 9oaQ== X-Gm-Message-State: ANhLgQ2Go7zJxh4A33RfKxYSdn9lhqXfXqsDY3TU3PBVV5VFmGgDIH1+ B7AsUounzJ+70M6vvunVgg== X-Google-Smtp-Source: ADFU+vsYIatZ1bjntaO5hjkGBwkqDPSOhoxi4SXRJcj+KJOdK7tBb4Gb0GLh/lVqM6oByQICfnINPw== X-Received: by 2002:a6b:8dc9:: with SMTP id p192mr11427400iod.90.1585595498899; Mon, 30 Mar 2020 12:11:38 -0700 (PDT) Received: from rob-hp-laptop ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id v80sm5125001ila.62.2020.03.30.12.11.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Mar 2020 12:11:37 -0700 (PDT) Received: (nullmailer pid 6109 invoked by uid 1000); Mon, 30 Mar 2020 19:11:35 -0000 Date: Mon, 30 Mar 2020 13:11:35 -0600 From: Rob Herring To: Paul Cercueil Subject: Re: [PATCH 1/2] dt-bindings: input: Update atmel, maxtouch.txt to YAML Message-ID: <20200330191135.GA22010@bogus> References: <20200315100416.14151-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200315100416.14151-1-paul@crapouillou.net> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200330_121140_235864_EF95E7DD X-CRM114-Status: GOOD ( 22.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Nick Dyer , Dmitry Torokhov , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, Mar 15, 2020 at 11:04:15AM +0100, Paul Cercueil wrote: > Update atmel,maxtouch.txt to YAML. The new 'vdd-supply' property was > added in the process. > > Signed-off-by: Paul Cercueil > --- > .../bindings/input/atmel,maxtouch.txt | 41 ----------- > .../bindings/input/atmel,maxtouch.yaml | 68 +++++++++++++++++++ > 2 files changed, 68 insertions(+), 41 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/input/atmel,maxtouch.txt > create mode 100644 Documentation/devicetree/bindings/input/atmel,maxtouch.yaml > > diff --git a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt b/Documentation/devicetree/bindings/input/atmel,maxtouch.txt > deleted file mode 100644 > index c88919480d37..000000000000 > --- a/Documentation/devicetree/bindings/input/atmel,maxtouch.txt > +++ /dev/null > @@ -1,41 +0,0 @@ > -Atmel maXTouch touchscreen/touchpad > - > -Required properties: > -- compatible: > - atmel,maxtouch > - > - The following compatibles have been used in various products but are > - deprecated: > - atmel,qt602240_ts > - atmel,atmel_mxt_ts > - atmel,atmel_mxt_tp > - atmel,mXT224 > - > -- reg: The I2C address of the device > - > -- interrupts: The sink for the touchpad's IRQ output > - See ../interrupt-controller/interrupts.txt > - > -Optional properties for main touchpad device: > - > -- linux,gpio-keymap: When enabled, the SPT_GPIOPWN_T19 object sends messages > - on GPIO bit changes. An array of up to 8 entries can be provided > - indicating the Linux keycode mapped to each bit of the status byte, > - starting at the LSB. Linux keycodes are defined in > - . > - > - Note: the numbering of the GPIOs and the bit they start at varies between > - maXTouch devices. You must either refer to the documentation, or > - experiment to determine which bit corresponds to which input. Use > - KEY_RESERVED for unused padding values. > - > -- reset-gpios: GPIO specifier for the touchscreen's reset pin (active low) > - > -Example: > - > - touch@4b { > - compatible = "atmel,maxtouch"; > - reg = <0x4b>; > - interrupt-parent = <&gpio>; > - interrupts = ; > - }; > diff --git a/Documentation/devicetree/bindings/input/atmel,maxtouch.yaml b/Documentation/devicetree/bindings/input/atmel,maxtouch.yaml > new file mode 100644 > index 000000000000..1b138a9836bf > --- /dev/null > +++ b/Documentation/devicetree/bindings/input/atmel,maxtouch.yaml > @@ -0,0 +1,68 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) Do you have rights to relicense? > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/input/atmel,maxtouch.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Atmel maXTouch touchscreen/touchpad DT bindings > + > +maintainers: > + - Paul Cercueil > + > +properties: > + compatible: > + enum: > + - atmel,maxtouch > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + vdd-supply: > + description: Phandle to regulator providing power to the touchscreen > + > + linux,gpio-keymap: > + minItems: 1 > + maxItems: 8 Needs a type reference (uint32-array). > + description: > > + When enabled, the SPT_GPIOPWN_T19 object sends messages > + on GPIO bit changes. An array of up to 8 entries can be provided > + indicating the Linux keycode mapped to each bit of the status byte, > + starting at the LSB. Linux keycodes are defined in > + . > + > + Note: the numbering of the GPIOs and the bit they start at varies between > + maXTouch devices. You must either refer to the documentation, or > + experiment to determine which bit corresponds to which input. Use > + KEY_RESERVED for unused padding values. > + > + reset-gpios: > + description: GPIO specifier for the touchscreen's reset pin (active low) maxItems: 1 > + > +required: > + - compatible > + - reg > + - interrupts > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + mxt224-touchscreen@4a { touchscreen@4a > + compatible = "atmel,maxtouch"; > + reg = <0x4a>; > + > + interrupt-parent = <&gpx0>; > + interrupts = <4 IRQ_TYPE_EDGE_FALLING>; > + > + vdd-supply = <&tsp_reg>; > + }; > + }; > -- > 2.25.1 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel