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=-9.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 0E816C43461 for ; Mon, 14 Sep 2020 05:52:06 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 A482320639 for ; Mon, 14 Sep 2020 05:52:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="KX6tWcZc"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Scr91ke5" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A482320639 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+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=merlin.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=QiEvpIvAbaNxSMAf014wh97wbpujhohzOXzZb4fHYio=; b=KX6tWcZcaWJDIy8yCXjlfFUp/ YGOVTjbgz+fbTnWL/NADJd2FVz5BZdhSrz3VEDhu+AMqKfVvq6zg1TjjbCl+AkFaSogXITHYwSz+V JNRysfC/Z/i3k6NJyFc08awSii0LNP9vjURGC49xDh0WjnZYLNMA6dSXHFQEa0C6/tNkVKc/KTSAZ YSbAVB554qA5QEHty+NX6pWVxY9ZkviG7ApOKOH1o9MNP8Vtuobr40tVUMW0q7ewIqM4hS5P4qUNv HN3pbS/YZspeTbRa4au2vPzETX8NeVKQ8ELestGcJUzCzMuWV2rzggCkgeO/Gna4YTjy/Ja0ywjAg MmHzPIpZQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kHhO1-0000kd-Mj; Mon, 14 Sep 2020 05:50:45 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kHhNy-0000jM-5R for linux-arm-kernel@lists.infradead.org; Mon, 14 Sep 2020 05:50:43 +0000 Received: by mail-pg1-x544.google.com with SMTP id j34so10637978pgi.7 for ; Sun, 13 Sep 2020 22:50:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=SfP9QlXY9kgf1Z03tIPvju6GkCXCl3Lw/jAZiIByEus=; b=Scr91ke5PNeqlCWlVRyR2/HwCg5iv5/moRuDN2o7KPyyCX32e6J+1OguqMIBzd/VlN IqvCrv97oG8uCV6YzIhz/1DHocH729WeIx/E8rm0e4Ej5yx2zUCtewg0B8/DKnDMAWsR MgpkE1kXsn1ooRyixMPrJchBysVQFoA2iABre26Hj3RDECxT1DAZuI6+2eNuwUa3Lna+ CTgXCPzkeHmPCQ2XHayvaqKkzT+yJUllRCOmfG+OQ/5UEhITfr3Kv717PrAsHa5T7tS+ ilnYN5Q97/88503chkr66QiJc6b8vfrsWZs+STy7zs3bW8a8mV1SSZP8dDjszmRWVbwh z+1g== 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; bh=SfP9QlXY9kgf1Z03tIPvju6GkCXCl3Lw/jAZiIByEus=; b=e3ZXg+nMYfFvqQtis9xrkVXTsduRoQpJRDBTmGebxnm//1eWvuTBJ9zq3zESoNOYRm ukIhaWHDhbUNe5++4nqNDC6c/HlulVoMHOxHIBBUZuWORIGWixKPbERXwVS+d9CuwhIP SiQOj8kqz51NXJNO/n/AZSKIAV5Sr6adzKEw5OHXz22/r2jDJjP1XriR9MoQPLEmrlJk UkqAVP7Yo/UNy/CpJl7KED1ixewjUYmgHn8mJRL2aFW7Dx10mF7SEzEmp10Re4S8gmjf xGrnC2Vlz2xeRe0JtuKxK5EVX5DWKEVOKIOTZGXDhWlcqKWt1P3/ia7Avg+oKR6XLZ3i nTbg== X-Gm-Message-State: AOAM530CSPZU+h2bWnuFu53lQ66xIpmhgUkbd75M5XafYyaPOUzxqmKU TqmA2NJXUQ2hz3D+u/6Xp4Q= X-Google-Smtp-Source: ABdhPJzgldZCikLcCzokpFL4t5oOWqnDrHO2PdTuwRdclF2oNKQOlCTagPqQ5RKBiuYNlHNudnDiEA== X-Received: by 2002:a17:902:7c96:: with SMTP id y22mr9044677pll.68.1600062639912; Sun, 13 Sep 2020 22:50:39 -0700 (PDT) Received: from dtor-ws ([2620:15c:202:201:a6ae:11ff:fe11:fcc3]) by smtp.gmail.com with ESMTPSA id z7sm3917406pgc.35.2020.09.13.22.50.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Sep 2020 22:50:38 -0700 (PDT) Date: Sun, 13 Sep 2020 22:50:36 -0700 From: Dmitry Torokhov To: Rob Herring Subject: Re: [PATCH v18 1/3] dt-bindings: Add bindings for Mediatek matrix keypad Message-ID: <20200914055036.GI1665100@dtor-ws> References: <20200909072159.14888-1-fengping.yu@mediatek.com> <20200909072159.14888-2-fengping.yu@mediatek.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200909072159.14888-2-fengping.yu@mediatek.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200914_015042_223766_E7E3DEFF X-CRM114-Status: GOOD ( 25.33 ) 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: devicetree@vger.kernel.org, Fengping Yu , linux-kernel@vger.kernel.org, Marco Felsch , linux-input@vger.kernel.org, Yingjoe Chen , Andy Shevchenko , 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+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Rob, On Wed, Sep 09, 2020 at 03:21:58PM +0800, Fengping Yu wrote: > From: "fengping.yu" > > This patch add devicetree bindings for Mediatek matrix keypad driver. I am generally happy with the driver itself, do you have any concerns with the binding? Thanks! > > Signed-off-by: fengping.yu > --- > .../devicetree/bindings/input/mtk-kpd.yaml | 83 +++++++++++++++++++ > 1 file changed, 83 insertions(+) > create mode 100644 Documentation/devicetree/bindings/input/mtk-kpd.yaml > > diff --git a/Documentation/devicetree/bindings/input/mtk-kpd.yaml b/Documentation/devicetree/bindings/input/mtk-kpd.yaml > new file mode 100644 > index 000000000000..eda2c6efbfbf > --- /dev/null > +++ b/Documentation/devicetree/bindings/input/mtk-kpd.yaml > @@ -0,0 +1,83 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +version: 1 > + > +$id: http://devicetree.org/schemas/input/mtk-keypad.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Mediatek's Keypad Controller device tree bindings > + > +maintainer: > + - Fengping Yu > + > +description: | > + 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. > + > +properties: > + compatible: > + oneOf: > + - const: "mediatek,mt6779-keypad" > + - const: "mediatek,mt6873-keypad" > + > + clock-names: > + description: Names of the clocks listed in clocks property in the same order > + maxItems: 1 > + items: > + - const: kpd > + > + clocks: > + description: Must contain one entry, for the module clock > + refs: devicetree/bindings/clocks/clock-bindings.txt for details. > + > + interrupts: > + description: A single interrupt specifier > + maxItems: 1 > + > + linux,keymap: > + description: The keymap for keys as described in the binding document > + refs: devicetree/bindings/input/matrix-keymap.txt > + minItems: 1 > + > + reg: > + description: The base address of the Keypad register bank > + maxItems: 1 > + > + wakeup-source: > + description: use any event on keypad as wakeup event > + type: boolean > + > + keypad,num-columns: > + description: Number of column lines connected to the keypad controller. > + > + keypad,num-rows: > + description: Number of row lines connected to the keypad controller. > + > + mediatek,debounce-us: > + description: Debounce interval in microseconds, if not specified, the default > + value is 16000 > + maximum: 256000 > + > +required: > + - compatible > + - reg > + - interrupts > + - linux,keymap > + - clocks > + - clock-names > + > +examples: > + - | > + > + kp@10010000 { > + compatible = "mediatek,kp"; > + reg = <0 0x10010000 0 0x1000>; > + linux,keymap = < MATRIX_KEY(0x00, 0x00, KEY_VOLUMEDOWN) >; > + interrupts = ; > + clocks = <&clk26m>; > + clock-names = "kpd"; > + }; > -- > 2.18.0 -- Dmitry _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel