From patchwork Tue Jan 29 13:35:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10786259 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 292F9139A for ; Tue, 29 Jan 2019 13:36:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 16FBE29C88 for ; Tue, 29 Jan 2019 13:36:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0992D2AB2D; Tue, 29 Jan 2019 13:36:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AAA6B29C88 for ; Tue, 29 Jan 2019 13:36:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727940AbfA2NgC (ORCPT ); Tue, 29 Jan 2019 08:36:02 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:36241 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728127AbfA2NgC (ORCPT ); Tue, 29 Jan 2019 08:36:02 -0500 Received: by mail-wr1-f66.google.com with SMTP id u4so22098181wrp.3 for ; Tue, 29 Jan 2019 05:36:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=uJmiNfRo8EeI+C3VRiIxh9DmBCp1GcHRXWm7GuC7DQs=; b=HYoM7iC6xQfh7wKcObTnnddwVLDqcZXIXvqUU4ooHDrmEo5TL0TpPUs+AjCqzWRHgL HgItjWlwPfWES8ATjxSRg2d77LPh+AKWDmloL7R0KXQ3To/EvHuV032sunIark1Memkb 4U3IM90u+NCqIIdZn3Qw9qD2FbqOtV4r49p1fs+cKdp0SXg+bqxJrHM1EDfK4TsJQ2bE 3eI3LOqCZqq3aofhHFmLFWZgk7IhUNLyAquBs+Rewdid6Ct2Wo21TUiZCyR9cHlIE0LU RXgOn2eaVXNaYiH/B0pnVV1obumhnsQkBIneoA9LZXXQwJz3uhub1TQ+1lLNLqb5JW0C ljpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=uJmiNfRo8EeI+C3VRiIxh9DmBCp1GcHRXWm7GuC7DQs=; b=sTHgbwO+ufziNAmEsScFZoe76NyM7JSFsZqBs++5c/Nr53UrQwkNFuhjAPsT1qLQwS jqiaZ7GYYbcmhcbKG2sk2i7zuacXs8LKfnmFlGnm0y99SmNYmU9+a50H64wAFenBBs1v 2DELlwqyG6IhW9rIvgse9yDQKZBuZjI5WKNMurvGHVNqkU7/y+8KMtb6K5nAg6hXDJ0I iPOS6mSm8WEPKg994WGzCEyfSYvpnUJ7U0dnlGTVGeX1NO+4Vk44/jq/uremjM76dv5i 9E0opuzGEAMWl/rL8BJCnBQd2dsHvyUCv2x7eT2oKpYAwlCFw0SUfCoeuHgEGyKItFZ0 tmBA== X-Gm-Message-State: AJcUukcf+ndxv/aIh7jWvfX40eyXcDAzdtRkUo7OFk6KogWWtZyOltmx +5OseCpE9IXrb07YItvcZhD5tQ== X-Google-Smtp-Source: ALg8bN77gugys53OLgBISREJeuKACcQwuiAMawTX24Qc3pYtWs7cP/xv5bq2SGu8/LEFd9Jpu7KDRg== X-Received: by 2002:adf:9123:: with SMTP id j32mr27274478wrj.122.1548768960736; Tue, 29 Jan 2019 05:36:00 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id k128sm4367891wmd.37.2019.01.29.05.35.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 Jan 2019 05:36:00 -0800 (PST) From: Bartosz Golaszewski To: Rob Herring , Mark Rutland , Linus Walleij , Dmitry Torokhov , Jacek Anaszewski , Pavel Machek , Lee Jones , Sebastian Reichel , Liam Girdwood , Mark Brown , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-input@vger.kernel.org, linux-leds@vger.kernel.org, linux-pm@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH v2 06/13] dt-bindings: input: add DT bindings for max77650 Date: Tue, 29 Jan 2019 14:35:38 +0100 Message-Id: <20190129133545.1931-8-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190129133545.1931-1-brgl@bgdev.pl> References: <20190129133545.1931-1-brgl@bgdev.pl> MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Bartosz Golaszewski Add the DT binding document for the onkey module of max77650. Signed-off-by: Bartosz Golaszewski --- .../bindings/input/max77650-onkey.txt | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/max77650-onkey.txt diff --git a/Documentation/devicetree/bindings/input/max77650-onkey.txt b/Documentation/devicetree/bindings/input/max77650-onkey.txt new file mode 100644 index 000000000000..37c80898be4d --- /dev/null +++ b/Documentation/devicetree/bindings/input/max77650-onkey.txt @@ -0,0 +1,26 @@ +Onkey driver for MAX77650 PMIC from Maxim Integrated. + +This module is part of the MAX77650 MFD device. For more details +see Documentation/devicetree/bindings/mfd/max77650.txt. + +The onkey controller is represented as a sub-node of the PMIC node on +the device tree. + +Required properties: +-------------------- +- compatible: Must be "maxim,max77650-onkey". + +Optional properties: +- linux,code: The key-code to be reported when the key is pressed. + Defaults to KEY_POWER. +- maxim,onkey-mode: Must be "push" or "slide" depending on the type of + button used by the system. Defaults to "push". + +Example: +-------- + + onkey { + compatible = "maxim,max77650-onkey"; + linux,code = ; + maxim,onkey-mode = "slide"; + };