Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1468073ybz; Wed, 22 Apr 2020 22:30:53 -0700 (PDT) X-Google-Smtp-Source: APiQypJUxPaAu5ou2uQOHWr72DF3uG6baNuYHHzX5SPk9xtWXHkjO71WuyzQx8b7jiCZ9WY0hfUp X-Received: by 2002:a17:906:49d0:: with SMTP id w16mr1278815ejv.364.1587619853482; Wed, 22 Apr 2020 22:30:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587619853; cv=none; d=google.com; s=arc-20160816; b=WDWj8EMSB3HKYrLITcUNRAQ3Jijhy0guWMR5BuhzfWoXuHi4B8Qd7XtfjfpWKbDb0c /WEqreagGbFdQgz738RY950rDgT7QHZqI575adxWRHrQ0SIGjnMUH+l5E0LtowLXSNxn Ml8SUEQkziunHPZfNhqnFuEB5iWGr3eWifVYMR69oex0OxOainbhIkG8zXk2Rj5w4axI u62MLX51ezZwpgMhgMqg2XhLWW/JCR8tiCsQ7eJHJU+xzOEj5pEUiNi4BihdZ8CEDaMb 6KIvsoI1mqUx6X+7jPiX2ch5LRTjKES71yixWHQKp0g52CBK9kOyiudcKjSJiz36+amr HP9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=uo0HG2tWcZ5VZdi8QhxBydg2PixoZKVn2fQniYZlO8E=; b=DoTJmuEZ1quvykvX2+7QWX4Nk0/38WDfpWVqoiFm2/GEr4GqaF4bDMOszcDERPArZB 0yczkESM0EOatGT+f6h2Ct8TGbFGJnQrdUQSz6Qxo0IbV7ejMmGXteie++oRUylLbnFj ytl9yNqSedC8pv0mMTT8EEqAEZdfc+bqUnpJvbvkJIzQqNFkiCTdSh++M8pu/njYhuJb RgJy4c/1blh2Gz1/neuPg0rbt1jGNhUyQpiEHt2cpwj3Xe9geNOq1wSChldbKE0nQM5F hejWZuDfrpgc7z2tcDLuf1u7ELyhgqnJewPeRmJO/1vBa3Rk2fkSHYflZCrAkbrdNBPU ZTYQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o3si763568edb.156.2020.04.22.22.30.30; Wed, 22 Apr 2020 22:30:53 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726730AbgDWF0g (ORCPT + 99 others); Thu, 23 Apr 2020 01:26:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726122AbgDWF0g (ORCPT ); Thu, 23 Apr 2020 01:26:36 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C007AC03C1AF for ; Wed, 22 Apr 2020 22:26:35 -0700 (PDT) Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jRUNS-0005wG-3M; Thu, 23 Apr 2020 07:26:22 +0200 Received: from mfe by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1jRUNQ-0004xB-1a; Thu, 23 Apr 2020 07:26:20 +0200 Date: Thu, 23 Apr 2020 07:26:20 +0200 From: Marco Felsch To: Fengping yu Cc: Dmitry Torokhov , Andy Shevchenko , Yingjoe Chen , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, wsd_upstream@mediatek.com, linux-input@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v5 1/3] dt-bindings: add matrix keypad documentation Message-ID: <20200423052619.5qi7n7q6ytmrchio@pengutronix.de> References: <20200423011958.30521-1-fengping.yu@mediatek.com> <20200423011958.30521-2-fengping.yu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200423011958.30521-2-fengping.yu@mediatek.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 07:24:53 up 159 days, 20:43, 157 users, load average: 0.10, 0.06, 0.01 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Fengping, On 20-04-23 09:19, Fengping yu wrote: > From: "fengping.yu" > > Signed-off-by: fengping.yu > --- > .../devicetree/bindings/input/mtk-kpd.txt | 61 +++++++++++++++++++ Pls don't add new binding docs as .txt instead you should use the new yaml schema. Regards, Marco > 1 file changed, 61 insertions(+) > create mode 100644 Documentation/devicetree/bindings/input/mtk-kpd.txt > > diff --git a/Documentation/devicetree/bindings/input/mtk-kpd.txt b/Documentation/devicetree/bindings/input/mtk-kpd.txt > new file mode 100644 > index 000000000000..8b154a5e2f7d > --- /dev/null > +++ b/Documentation/devicetree/bindings/input/mtk-kpd.txt > @@ -0,0 +1,61 @@ > +* Mediatek's Keypad Controller device tree binding > + > +Mediatek's Keypad controller is used to interface a SoC with a matrix-type > +keypad device. The keypad controller supports multiple row and column lines. > +A key can be placed at each intersection of a unique row and a unique column. > +The keypad controller can sense a key-press and key-release and report the > +event using a interrupt to the cpu. > + > +Required properties: > +- compatible should contain: > + * "mediatek,kp" for common keypad > + * "mediatek,mt6779-keypad" for specific keypad chip > + > +- reg: The base address of the Keypad register bank. > + > +- interrupts: A single interrupt specifier. > + > +- mediatek,debounce-us: Debounce interval in microseconds, maximum value > + is 256000 microseconds. > + > +- keypad,num-rows: Number of row lines connected to the keypad controller, it is > + not equal to PCB rows number, instead you should add required value for each IC. > + > +- keypad,num-columns: Number of column lines connected to the keypad controller, > + it is not equal to PCB columns number, instead you should add required value > + for each IC. > + > +- linux,keymap: The keymap for keys as described in the binding document > + devicetree/bindings/input/matrix-keymap.txt. > + > +- pinctrl: Should specify pin control groups used for this controller. > + See ../pinctrl/pinctrl-bindings.txt for details. > + > +- clocks: Must contain one entry, for the module clock. > + See ../clocks/clock-bindings.txt for details. > + > +- clock-names: Names of the clocks listed in clocks property in the same order. > + > +Optional Properties: > +- wakeup-source: use any event on keypad as wakeup event. > + > +Example: > + > + keypad: kp@10010000 { > + compatible = "mediatek,kp"; > + reg = <0 0x10010000 0 0x1000>; > + wakeup-source; > + interrupts = ; > + clocks = <&clk26m>; > + clock-names = "kpd"; > + }; > + > + &keypad { > + mediatek,debounce-us = <32000>; > + keypad,num-rows = <8>; > + keypad,num-columns = <9>; > + linux,keymap = < MATRIX_KEY(0x00, 0x00, KEY_VOLUMEDOWN) >; > + status = "okay"; > + pinctrl-names = "default"; > + pinctrl-0 = <&kpd_gpios_def_cfg>; > + }; > -- > 2.18.0 -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |