From patchwork Wed Jan 26 15:35:17 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mattijs Korpershoek X-Patchwork-Id: 12725487 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 A1D49C2BA4C for ; Wed, 26 Jan 2022 17:00:45 +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=U4WrvtX5ag50Iu3y7SxPnIXJU7THAtWl6DxUKLZsT8U=; b=vDXKxCvTFNFn7S W3lO8X4LksY2oN9nxcOlrb+iTlIWKkKmyd5YQfQtJVjI1dNNSIvlkKaYj1jIeQr916f/Xm45b+ibF W7X4pLo5p2lEOXMfimXQZgQOiQ+WmaL8dfkSAQrctyyeDxES1Ak+CqMHZpgvzMKnV2GTHyhCvLBx6 eNAi80jZlj7XRlhDoAkPN6uQ9iow88c+Ev1QEsmPPOUqsZIiaKlVVLRnQPlOJkyQl/4Fcx2ZH9jz8 jNQ69lCDy0rZbnxkKoRCfmVhE/W3LNAwilAl/kPxnEFxfbZtvwAbSBCwYVkYG4XuiHgIXbfjq6qty INZGiEG4ZHG0+BJ8Mqrg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCldC-00CoYd-DE; Wed, 26 Jan 2022 16:58:52 +0000 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCkKU-00CKWg-Jl for linux-arm-kernel@lists.infradead.org; Wed, 26 Jan 2022 15:35:30 +0000 Received: by mail-wr1-x435.google.com with SMTP id e8so24651142wrc.0 for ; Wed, 26 Jan 2022 07:35:26 -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=tj0guoNH4q4novDmtBoOtGAutOOdll1d2XmoKB6eeJQ=; b=KLDGbuNMN9AsrespV+rifmAQkBzvZnJJSTQRykm8Ve53hmVPqybnoLNAuP5qZ0+pMi l8TgXuBqYOTW+Kcn8Ug6O/JBDHeiOmZ1STSMk8uLpWNMP/IEoea9IpUlj41BhVOKB2ap tDsUpRwhvERDpDD6Oj+8MJtSG6+0Pxzs1xKqQdg0KcDxfSh4yeasNF7mEVrb5KSKs+jW Ag1eYx6in8ux1Frg6+JlhYd3ZP707cWCoc1eUi7mUIAGWdZMK04VE6v+SLyrrh3mv5hd kzRqv5YwA9VyrH43ttV+O6+k4gsr058EB92IpujSfJeS3oWZmPbjYwHVF7AKUsr5rnhP Cz7Q== 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=tj0guoNH4q4novDmtBoOtGAutOOdll1d2XmoKB6eeJQ=; b=Ua+Sutm0t2C9xSE5dvJ3N5VTVwedB68lpaMF4W94eRwivL0guZzqxloe5pzmOnIq6B t1+xmvfcpehhBLDLUcTP17I8WDhQsHLrA51sP/pGJ2FsA9RB6+htWOus1Q+B6jMbuOds YHQ3Fth9T0MVxvh/g1byDYtGrCv4AfiN8KkcLtIWa9fkN6lSB74i+ctC+q4l34eqDGB1 KiqXQrs05NxbEhcVAxIUW/PFhxwl704WkalJhVeJ4fQFXT+syQwBDr2oiWVBhYPoq7/3 NeZe/540JqOR3SlCwrESz2ykPe1tDw/cdQS16QRAYIvU7eUl2d8qRA7W+57NmhTMNNt8 QtFg== X-Gm-Message-State: AOAM532IG7bTBZH31glpRt8ASCYx0rfLw/Ov+KXh/8oRTWRn3YDf4umC rOQm5HH/HfJczA2eyh+VQycwpQ== X-Google-Smtp-Source: ABdhPJxDVe28gY+kPTckZyTnR7HQC2FGkOhdqzuq6gh4Nnq6nenw4euktvSatUsoFs70CM1rv2AJTA== X-Received: by 2002:a05:6000:18a2:: with SMTP id b2mr14030363wri.282.1643211324822; Wed, 26 Jan 2022 07:35:24 -0800 (PST) Received: from mkorpershoek-XPS-13-9370.. (laubervilliers-656-1-151-143.w92-154.abo.wanadoo.fr. [92.154.18.143]) by smtp.gmail.com with ESMTPSA id n10sm3360958wmr.25.2022.01.26.07.35.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jan 2022 07:35:24 -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 v19 1/3] dt-bindings: input: Add bindings for Mediatek matrix keypad Date: Wed, 26 Jan 2022 16:35:17 +0100 Message-Id: <20220126153519.3637496-2-mkorpershoek@baylibre.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220126153519.3637496-1-mkorpershoek@baylibre.com> References: <20220126153519.3637496-1-mkorpershoek@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220126_073526_700237_4638BA30 X-CRM114-Status: GOOD ( 17.01 ) 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 --- .../input/mediatek,mt6779-keypad.yaml | 80 +++++++++++++++++++ 1 file changed, 80 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..2c76029224a0 --- /dev/null +++ b/Documentation/devicetree/bindings/input/mediatek,mt6779-keypad.yaml @@ -0,0 +1,80 @@ +# SPDX-License-Identifier: GPL-2.0 +%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: + description: Names of the clocks listed in clocks property in the same order + items: + - const: kpd + + wakeup-source: + description: use any event on keypad as wakeup event + type: boolean + + mediatek,debounce-us: + description: | + Debounce interval in microseconds, if not specified, the default + value is 16000 + maximum: 256000 + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + #include + + soc { + #address-cells = <2>; + #size-cells = <2>; + + kp@10010000 { + compatible = "mediatek,mt6779-keypad"; + reg = <0 0x10010000 0 0x1000>; + interrupts = ; + clocks = <&clk26m>; + clock-names = "kpd"; + }; + };