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: 10797139 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 B4732922 for ; Tue, 5 Feb 2019 09:12:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A11DA2ABA2 for ; Tue, 5 Feb 2019 09:12:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 93F6B2B7E1; Tue, 5 Feb 2019 09:12:54 +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 6605D2ABA2 for ; Tue, 5 Feb 2019 09:12:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728662AbfBEJMw (ORCPT ); Tue, 5 Feb 2019 04:12:52 -0500 Received: from mail-wm1-f68.google.com ([209.85.128.68]:35018 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728302AbfBEJMv (ORCPT ); Tue, 5 Feb 2019 04:12:51 -0500 Received: by mail-wm1-f68.google.com with SMTP id t200so2782259wmt.0 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=q0Y3lCVXpG2THKwLYaMCOmd74hYJm+MGOP+XLWI4BUDnVHkNaajlVD69Ud3XtbpgrJ TucTdz5bc9TpP+lPiOckJvDM4JB6gGgPmU0zkvj1uEGe/yGPWv/Zip8WR7TiJDKRl4zI s4z4321tnVnPGXxnikfKl37cKyQfjrUBxdBVy0gjJ78Qb2q5g3acXBOAVFYTH+/lWbrW bdkYdwS4VBeRPKaagxJ2Xy6yiHDGSTsRyIb1iimwu4B4P229tJij4t22hGc3RtiHTmAP 3hrmynryx+F4TKvwTEDsZnm+/8ry+cCV76dD0eJxJTqvUV0L4OU+La4lzk5UfVcNy7O+ a+ZA== X-Gm-Message-State: AHQUAubH/9cq4Pp744tZyZsXLv9epQgF/lq3G4IJkGXcgBsUUTJ2Xx5Q H2GJyXalITLlFw5jKU78nPSsPw== 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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"; + };