Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4736141iob; Sun, 8 May 2022 23:44:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvP1H8icyZ4OrinKBvy/OjGesh+1CPD99A86V0AI9rX52Vs0CVqKkkii+hO6YsXVJaZnML X-Received: by 2002:a63:2a0d:0:b0:3ab:392c:f45c with SMTP id q13-20020a632a0d000000b003ab392cf45cmr12048336pgq.575.1652078661132; Sun, 08 May 2022 23:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652078661; cv=none; d=google.com; s=arc-20160816; b=dn19sHLjEFBw+pjI9sg90B1TqEd3WBPgzcPYVApHNR6q31A1Kx368nMF4oCn49Rysb WyMj4eZt6rNbc8rO3gjBbiWSt9iJzFqIAi8Wkj2Pz8a3mfTYTZ5l9Xd+NHzmR88i/hfl z14/einOo/AHYodIfEzerdWVUOvldohep3TWuDMn5bVpqfF1cQzBbBMV0zVC0z2WdOkV dmG4ElMBT0Yip1YrdYmW1Vgv3mYux9H7J7+5GgNCTDfHUuEt+d9VeHrHClx8GpEbic5U VgXubQXJD6yc41ASYgzNdxslC8rpn0z2S+m1P77N936BV136l7NsXq2D3iPxVwbfI6j+ sVPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=r1ONu4s4iEqTc1LBebyXg4nKGWbafPc2J0KdemsntpY=; b=cFQkgcNGF7B/uRFk0BmbR9pjRgoCSd7TRU3d51IBpCKpT5tWPOTIYxSl/3+fUQxaNS tA7Lk0V2a78XtPZfxj3ykDmgga0MUEkgt6Jg2V39qM2b5yJ4kufLGHM4eiSWLMiXy0YE efaFLD0bWln80S5xuipsFonxKrnDpf290ZiwDfeZBRgAGcjIAiYLwwcRPpebuv6qAoEJ J1DV9lV581Cl/9hAtP5PA7t7X9XUMtDehB1QiiEnIaymxOEP5Z8WxzOm1Ft0taLT6waM 8W2RqBQhMDeZx1ZmyTE0gS0BHbpkJBksL/AxcAOP6wiFsV/7bT9dEZf5cupx3bDHWN1E Ee0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=edknxnsQ; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id h192-20020a636cc9000000b003c15bb19105si12788297pgc.500.2022.05.08.23.44.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 23:44:21 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=edknxnsQ; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6726014AF7D; Sun, 8 May 2022 23:40:28 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349037AbiEEIdB (ORCPT + 99 others); Thu, 5 May 2022 04:33:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242326AbiEEIc6 (ORCPT ); Thu, 5 May 2022 04:32:58 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 142723B2B9 for ; Thu, 5 May 2022 01:29:15 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id m20so7283429ejj.10 for ; Thu, 05 May 2022 01:29:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=r1ONu4s4iEqTc1LBebyXg4nKGWbafPc2J0KdemsntpY=; b=edknxnsQZ7hN0sFSDhsHS9VCi8jrauwubYjQhb70ivFiLSHkzVb7z/ZZDIK/BZz7KS TTjBot8KBAzHHb2eHoyhoBERT3nKPWDmzXKtGtHTttVR0oPcgmWGBiNQmd/okLD7Nldj bbF+Sleyj4/VbC0iO3jn2NYHBHfKA/JMLEuLqi0qZdsvj04gpKrIRMcefx7f7+QBpcMi tNmXLE+7nAAOmfkZ6CI5TLPSOw2ywb4KtIJPyu6faPkBSZ6qtfkrp7hW/ebe+ypwEjNX P4jtdKfzxyLfm+fieZjl4SdGH4sjBDN13lttEUZA0XQds70vBkR5h0k/K29IkCS5AN+A zklg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=r1ONu4s4iEqTc1LBebyXg4nKGWbafPc2J0KdemsntpY=; b=0KzkHIKDflYNn2LsH8MfdB7AdATz61ugR3z+IdtoCWc2yZ21LhjE5SS3BTmADqVeF0 PaWATdtPdLEaEpON+WmpACF0HJXnEdIrTc4FRdJxO9iP6pb3E4b7Ptq42A/18+w2ZoDi iit044i0wuqD1QSqbSqExCE/pN0N3eyE+tut2tes2LceisKCl9TeuWF7F9AuDZqXwNp/ xl1yDoroknZU7oF3/v6UMVaxOu+MdlLyk3ssntkFDOOnZc1jaGEiKmikW+HnZkD/g46t FubyflugG23MSgplgUZHFVGyyIUNqDOt6MgwFQQG/kFqK2fHdXJsVCRV5yTx/caW5e+r jT+Q== X-Gm-Message-State: AOAM532OAbbitAUWp3h+MqhXtYAkyQ/TcuEDNxgHcaGhNm2HrRAl9egM 7ELm23Tkqa8+nCPa88PuulgErw== X-Received: by 2002:a17:907:72ca:b0:6f3:f6e5:9085 with SMTP id du10-20020a17090772ca00b006f3f6e59085mr24412656ejc.628.1651739353584; Thu, 05 May 2022 01:29:13 -0700 (PDT) Received: from [192.168.0.217] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id a12-20020a50f0cc000000b00425d6c76494sm517695edm.1.2022.05.05.01.29.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 May 2022 01:29:13 -0700 (PDT) Message-ID: <70c49385-6fa2-2cb9-8a82-3e28f0fc2064@linaro.org> Date: Thu, 5 May 2022 10:29:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH 4/4] dt-bindings: input: mt-matrix-keypad: add guardian mt matrix keypad bindings definition Content-Language: en-US To: Gireesh.Hiremath@in.bosch.com, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, bcousson@baylibre.com, tony@atomide.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, dmitry.torokhov@gmail.com, mkorpershoek@baylibre.com, davidgow@google.com, m.felsch@pengutronix.de, swboyd@chromium.org, fengping.yu@mediatek.com, y.oudjana@protonmail.com, rdunlap@infradead.org, colin.king@intel.com Cc: sjoerd.simons@collabora.co.uk, VinayKumar.Shettar@in.bosch.com, Govindaraji.Sivanantham@in.bosch.com, anaclaudia.dias@de.bosch.com References: <20220504105254.1576-1-Gireesh.Hiremath@in.bosch.com> <20220504105254.1576-4-Gireesh.Hiremath@in.bosch.com> From: Krzysztof Kozlowski In-Reply-To: <20220504105254.1576-4-Gireesh.Hiremath@in.bosch.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/05/2022 12:52, Gireesh.Hiremath@in.bosch.com wrote: > From: Gireesh Hiremath > > Add binding definition for the support of the Guardian > mt matrix keypad driver. > > Signed-off-by: Gireesh Hiremath > --- > .../bindings/input/mt-matrix-keypad.yaml | 134 ++++++++++++++++++ > 1 file changed, 134 insertions(+) > create mode 100644 Documentation/devicetree/bindings/input/mt-matrix-keypad.yaml > > diff --git a/Documentation/devicetree/bindings/input/mt-matrix-keypad.yaml b/Documentation/devicetree/bindings/input/mt-matrix-keypad.yaml > new file mode 100644 > index 000000000000..b52cd478f638 > --- /dev/null > +++ b/Documentation/devicetree/bindings/input/mt-matrix-keypad.yaml > @@ -0,0 +1,134 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/input/mt-matrix-keypad.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: GPIO driven mt matrix keypad device tree bindings > + > +maintainers: > + - vinay > + > +description: | > + GPIO driven mt matrix keypad is used to interface a SoC with a mt matrix > + keypad. The mt matrix keypad supports multiple gpio line, all gpio line act s/line/lines/ > + as row as wel as column lines, a key can be placed at each intersection s/wel/well/ > + of a unique row number not equal to a unique column and they are diagonally > + symmetric. > + What is "mt" in the "mt matrix"? > + Example- For 5 gpio lines, possible matrix is 5x5 and maximum possible > + keys are 10. > + > + Sample matrix table for 7 button and 5 gpio line > + > + ------------------------------------------------------ > + |Row\Col |GPIO 0 | GPIO 1 | GPIO 2 | GPIO 3 | GPIO 4 | > + ------------------------------------------------------ > + | GPIO 0 | X | KEY_9 | KEY_2 | X | KEY_1 | > + ------------------------------------------------------ > + | GPIO 1 | KEY_9 | X | KEY_6 | X | X | > + ------------------------------------------------------ > + | GPIO 2 | KEY_2 | KEY_6 | X | KEY_4 | KEY_7 | > + ------------------------------------------------------ > + | GPIO 3 | X | X | KEY_4 | X | KEY_8 | > + ------------------------------------------------------ > + | GPIO 4 | KEY_1 | X | KEY_7 | KEY_8 | X | > + ------------------------------------------------------ > + X - invalid key > + KEY_x - preferred key code > + > + The mt matrix keypad can sense a key-press and key-release by means of GPIO > + lines and report the event using GPIO interrupts to the cpu. > + > +properties: > + compatible: > + oneOf: > + - const: gpio-mt-matrix-keypad > + - items: > + - enum: > + - gpio-mt-matrix-keypad > + - const: gpio-mt-matrix-keypad Aren't all these compatibles the same? > + > + debounce-delay-ms: > + description: Delay after the first bounce of button. > + default: 0 > + > + col-scan-delay-us: > + description: Delay before scanning next active line. > + default: 0 > + > + number-of-button: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: Number of button connected to the keypad controller. s/button/buttons/ I presume. > + > + linux,no-autorepeat: > + description: | > + Disable the Linux input system's autorepeat feature on the input device. > + > + gpio-activelow: > + description: Gpio line are active low. No, GPIOs should instead use common flags. > + > + line-gpios: > + description: | > + Gpio lines connected to keypad controller. > + all gpio line act as row as wel as column lines. > + > + linux,keymap: > + $ref: '/schemas/types.yaml#/definitions/uint32-array' > + description: | > + An array of packed 1-cell entries containing the equivalent of row, > + column and linux key-code. The 32-bit big endian cell is packed as: > + row << 24 | column << 16 | key-code But anyway this should be just merged into matrix-keypad. It's a simpler set of that binding. > + > +required: > + - compatible > + - number-of-button > + - line-gpios > + - linux,keymap > + > +additionalProperties: true This cannot be true. > + > +examples: > + - | > + mt_matrix_keypad { No underscores in node names. Generic node name, so just "keypad". Best regards, Krzysztof