From patchwork Tue Apr 23 09:04:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10912419 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 933081515 for ; Tue, 23 Apr 2019 09:05:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8285A1FE82 for ; Tue, 23 Apr 2019 09:05:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7634D2787C; Tue, 23 Apr 2019 09:05:49 +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 226061FF82 for ; Tue, 23 Apr 2019 09:05:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727217AbfDWJFK (ORCPT ); Tue, 23 Apr 2019 05:05:10 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:42311 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727180AbfDWJFG (ORCPT ); Tue, 23 Apr 2019 05:05:06 -0400 Received: by mail-wr1-f65.google.com with SMTP id g3so19143709wrx.9 for ; Tue, 23 Apr 2019 02:05:05 -0700 (PDT) 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=7Xr1jsD375oor0bo92jhZRFG0f8hjG44jwYFFHmorH8=; b=DgMeK+BwaWjcPMtn6kGpNMuyIYj+9K7mZAkhxOVwzqSNfPcylgvRWjyQeEbjGdNnem GAKBqIYG2Lyri3B1ymLcix43P/mSt908ega0cQKyn3vwDe+R/+xCL8tVBO1HxegQSTAj u1IroUfV75BxJ6SjjukrZDfNjqxlLmI+lZcn25y9V7N6A6XRAC8SzXaFgxhRNi/bVKPY uEJS5fCmw0ZLKpztXQ+yaXDnMthZIx5Tm41zyOYKxmEgGiMPhPpk86aPFwvlVW85qSDw mSYfWJns4vEN+VGYbOVDL6foNYHKAppHkK9JkeAqZTBNY8UbniVR7Bt7D5fQjJtzV3Zh f4Lw== 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=7Xr1jsD375oor0bo92jhZRFG0f8hjG44jwYFFHmorH8=; b=BJuGjgHqHRDFRHZ+xhgpOt0AL7Uw6as6u/K3r6Roex63WwsEmvJ0c4tJoVQdLXXQwm HVloiJLYbvALN+r4fXIlwNJ+6M4SAlfVBAZFyLXpaUjYCDB/RMBLvzmhI4pKEzILJP4G wXjSDrFqQOucuekVo9R9vMqociPq8RhZEJPw9UE1a51fWV/gsZKGAuxWQpmejCWOzajC J0gNtZla29ftChi620+UnWytlEuI+RreOMXgw3zyZ3v6tLotQpQ4NNA8R9+E3a8mbyGz YJ/J92WC3iCVWERe3yIHO6GB8c2mQXsoFJbMr4IwXLViBVouwFbJlvdqQ1dlDSpRTWb2 2n0w== X-Gm-Message-State: APjAAAX87ppTTqL4FRcHvXzvxWLHxlnCdxjwoQT5qArOK7OzeHH0ZoY/ 4ZWjfPBp9ppOlghaMNBjhBfGig== X-Google-Smtp-Source: APXvYqxwy3DIhp7siawS7mDWT/JHN5hUdzISvF5ahPbgJzmFLp9VajhBy8lPArwwQKdeT+onKoCV6g== X-Received: by 2002:adf:f7c2:: with SMTP id a2mr3323308wrq.242.1556010304572; Tue, 23 Apr 2019 02:05:04 -0700 (PDT) Received: from localhost.localdomain (aputeaux-684-1-25-101.w90-86.abo.wanadoo.fr. [90.86.250.101]) by smtp.gmail.com with ESMTPSA id v190sm15360434wme.18.2019.04.23.02.05.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Apr 2019 02:05:03 -0700 (PDT) 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 , Rob Herring Subject: [PATCH v10 04/11] dt-bindings: input: add DT bindings for max77650 Date: Tue, 23 Apr 2019 11:04:44 +0200 Message-Id: <20190423090451.23711-5-brgl@bgdev.pl> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190423090451.23711-1-brgl@bgdev.pl> References: <20190423090451.23711-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 Reviewed-by: Rob Herring --- .../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..477dc74f452a --- /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-slide: The system's button is a slide switch, not the default + push button. + +Example: +-------- + + onkey { + compatible = "maxim,max77650-onkey"; + linux,code = ; + maxim,onkey-slide; + };