From patchwork Tue Feb 5 09:12:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10797165 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 7374E13BF for ; Tue, 5 Feb 2019 09:13:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 641A42ABA2 for ; Tue, 5 Feb 2019 09:13:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5851F2B7E1; Tue, 5 Feb 2019 09:13:38 +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=unavailable 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 0D2EB2ABA2 for ; Tue, 5 Feb 2019 09:13:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728695AbfBEJMw (ORCPT ); Tue, 5 Feb 2019 04:12:52 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:52978 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728675AbfBEJMv (ORCPT ); Tue, 5 Feb 2019 04:12:51 -0500 Received: by mail-wm1-f65.google.com with SMTP id m1so2720916wml.2 for ; Tue, 05 Feb 2019 01:12:50 -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=wlsHSJK/PnBPdoTspbamIjFNIf/gY+cEoxY5JlnF/NvyV3a1qBigELwBSZKI8Xw99A 3B/aqh2NGsIBo5eSEopHxtr+V8K1JpLdIZQiMlTOJtSMZenwysO6YqMBjdzDGWTn7iJJ F1pKV5nf/9XydpLt7TDpsUkndXgxLCzWv20l2/V0rkyxIkuZTFUi0gpIassA6Ae91dU0 UQVANXOCNYNWNFNgcimu5h2tdjmwg5X64TnRPIK6h6+RFsYGxAc/9vVYbhxB0KM7xUU3 MSgN0cWevsq4CmGqZAxM/G8NP5kTcgBahJisbaqW0h7bCupcg99GNyqqZOjshM3ZJa9m HA2Q== 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=VLPubVz942zPAeyoMRbF706yxfGH91XchETQ8JCyPWny33UAmIvVsk7EoVvbC9kksC T21fvQm58WJ/GVYnt6fKeS1IRG0llp6cy+2GqNe0KiZWSmS6wLg5PNsAod9KLtfZ2yvC kNG1+bJ0Ujp6d08L38K2QHsHEmpOw5JBFBGXLrTn6lp6YsKtgaAte1VdY5hAVvvzlASS Wj1EGjCqID+JiMH0FqwZZEyk0AFi7Q39NUcqq+yhlgIpOkPncpjTLfi5xZPMR17FVdVj l7yUQvN47tngfT4zcvJh1x2GNjJnb3nx5MkalWOYMDz3VepMdRTDUwMUGYiLIQNoSuWu O8cw== X-Gm-Message-State: AHQUAubP00C51wC2Z7GQoYqCD175dw3eiG5bluPs31KUEJP2AaCuknl5 HE6ai5ha4oYnhCLX5fHTNaUr3PQ1FaQ= X-Google-Smtp-Source: AHgI3IbJOnmBG9bBjctzaBa5S2CZm5FHoVUtiIKci4wRzc2L3/+Cj55f6ogaMntlJtrOPXNWT8/5GA== X-Received: by 2002:a7b:c08b:: with SMTP id r11mr2689076wmh.29.1549357969326; Tue, 05 Feb 2019 01:12:49 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id s5sm10433657wmh.37.2019.02.05.01.12.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Feb 2019 01:12:48 -0800 (PST) From: Bartosz Golaszewski To: Rob Herring , Mark Rutland , Linus Walleij , Dmitry Torokhov , Jacek Anaszewski , Pavel Machek , Lee Jones , Sebastian Reichel , Liam Girdwood , 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 v4 04/10] dt-bindings: input: add DT bindings for max77650 Date: Tue, 5 Feb 2019 10:12:31 +0100 Message-Id: <20190205091237.6448-5-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190205091237.6448-1-brgl@bgdev.pl> References: <20190205091237.6448-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"; + };