From patchwork Thu Jan 27 11:15:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mattijs Korpershoek X-Patchwork-Id: 12726577 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 4F15FC433F5 for ; Thu, 27 Jan 2022 11:18:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=s0pnaYMoA981Z3InztUuEwFPjGY4HwQ6R8yNFY+o6cE=; b=UULTMfXG0qhGix mItyKtopJxKxHqZbNvOEROAgT5Zmd7QnvIUSLMENzEZFEGe83mWpWMiO3TiBHrzZxbHfk0YKB1AZp w09G/AhknJeg4TK8NWT/SzTBBcwyTU7lGJ5WFAkwPf5kTLlKxCqhiOR1XUHTZ/LGln8ZrihUDgGDC OT+Qokz/txBlaOxcchHOJdyYZUthgehfuhpO2Cajtg7KxCL5LeVXiXiZDcJazn7RAn9zHiiVlg41i Dx71RzWjpcuKYxOY8qUpZmAzrs6EsPq1ngqxHEuQVNWErRHVLh33Y2hseqHNo4ecpwIygJzIgzvNH EzgCY2IcUOpJSgfe8y4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nD2lb-00FMeK-VO; Thu, 27 Jan 2022 11:16:42 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nD2kk-00FMKB-5W for linux-arm-kernel@lists.infradead.org; Thu, 27 Jan 2022 11:15:49 +0000 Received: by mail-wr1-x42a.google.com with SMTP id c23so4107473wrb.5 for ; Thu, 27 Jan 2022 03:15:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Issr/GTHNwZVejNrxQmDGDcXB9G0EQeUTGuqcjSvixA=; b=gJMkegCV++HieP031+dMKGWYR0bLuffs1xCsQDp2I/1x4bL13iEe9HP4FVZnQ9slMV ZERFDCfG8JIygTjY7SP7Kaw7BiRi3l9uON10ujd9Z0TW+z4wYQFiSmdCSukSJmK+PFpn 9rns12c1OADrSKaLP4xM6aj4zOdaucyGPBhKdr6Bjijz3gHxISR4qNgK2Ko0radr96dA 17tbnjrJz+/0OfdUzOnQ3Z6rbM4QR3QwOgl/JKqEstGLB0/VjhVqcgV3xSoKsSGZ3C5C ruC2fJTC6Ttqr+8Dv7EeL7/WGu21nqQAMF/hYl9GIHJPys6rQ/xBRu24XEM2u2qJ810c I7+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Issr/GTHNwZVejNrxQmDGDcXB9G0EQeUTGuqcjSvixA=; b=LNnri/IazFtuDLMxdF/ATfSGyjc6kI2Oqbhxp/qKBIPMkrZilZjVMGWnFKgIZGGS/j /fYwx3JBYxEvrjGi1wsGgw0cEIz+F1U+WfEL8Lq5LwmQgN5YK9vRH/Z8k+FCx0aCmYyJ PMfRHx5dz6O8Nu/PQ4Ggvrx1GcdgLH/OCbcYtkQJHNS70xk4Zm37PO9ZLazekd8ldmqv wK1ij5YVU0dvDASVOZr+x3Ft8OPPWq1vOfW26NdONnioX/sUmRKzY17PAwSspAsUuBxk JUu05SpfBmu6f2pUq3Uh/ORprRGKwWesb9PgYGuazJNWHP9Oxs/py4BymG0wykAWM0r/ m26g== X-Gm-Message-State: AOAM530eMkCOfk96HY+M9F89Pj9KzcUFhxhr1t6IG9sJ5YdL3F2BD/PT 7WeOjROG7MV6ADIwmgI7nKl0ig== X-Google-Smtp-Source: ABdhPJyYSqmwS3bfJTyGbBTcK2ikaGoPG+ScfYyYq8ahZaWYdOBnBjIifEe/TLLyH8qO3WxEZYsKYQ== X-Received: by 2002:a5d:47ad:: with SMTP id 13mr2523734wrb.678.1643282144969; Thu, 27 Jan 2022 03:15:44 -0800 (PST) Received: from localhost.localdomain ([2a01:cb19:8b2c:5e00:7d3d:d638:46ec:78dd]) by smtp.gmail.com with ESMTPSA id r7sm5956311wma.39.2022.01.27.03.15.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jan 2022 03:15:44 -0800 (PST) From: Mattijs Korpershoek To: Dmitry Torokhov , Andy Shevchenko , Marco Felsch , Rob Herring , Matthias Brugger , Fengping Yu , Yingjoe Chen Cc: Mattijs Korpershoek , Fabien Parent , Kevin Hilman , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v20 1/3] dt-bindings: input: Add bindings for Mediatek matrix keypad Date: Thu, 27 Jan 2022 12:15:24 +0100 Message-Id: <20220127111526.3716689-2-mkorpershoek@baylibre.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220127111526.3716689-1-mkorpershoek@baylibre.com> References: <20220127111526.3716689-1-mkorpershoek@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220127_031546_266414_895EB0CB X-CRM114-Status: GOOD ( 16.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: "fengping.yu" This patch add devicetree bindings for Mediatek matrix keypad driver. Signed-off-by: fengping.yu Reviewed-by: Marco Felsch Signed-off-by: Mattijs Korpershoek Reviewed-by: Rob Herring --- .../input/mediatek,mt6779-keypad.yaml | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/mediatek,mt6779-keypad.yaml diff --git a/Documentation/devicetree/bindings/input/mediatek,mt6779-keypad.yaml b/Documentation/devicetree/bindings/input/mediatek,mt6779-keypad.yaml new file mode 100644 index 000000000000..b1770640f94b --- /dev/null +++ b/Documentation/devicetree/bindings/input/mediatek,mt6779-keypad.yaml @@ -0,0 +1,77 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/mediatek,mt6779-keypad.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mediatek's Keypad Controller device tree bindings + +maintainers: + - Fengping Yu + +allOf: + - $ref: "/schemas/input/matrix-keymap.yaml#" + +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 + - items: + - enum: + - mediatek,mt6873-keypad + - const: mediatek,mt6779-keypad + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: kpd + + wakeup-source: + description: use any event on keypad as wakeup event + type: boolean + + debounce-delay-ms: + maximum: 256 + default: 16 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + keyboard@10010000 { + compatible = "mediatek,mt6779-keypad"; + reg = <0 0x10010000 0 0x1000>; + interrupts = ; + clocks = <&clk26m>; + clock-names = "kpd"; + }; + };