From patchwork Wed Feb 13 13:43:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10809935 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 6D24D1399 for ; Wed, 13 Feb 2019 13:45:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A9A02CF17 for ; Wed, 13 Feb 2019 13:45:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4D1AD2CFCF; Wed, 13 Feb 2019 13:45:10 +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 A868D2CF17 for ; Wed, 13 Feb 2019 13:45:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733083AbfBMNpH (ORCPT ); Wed, 13 Feb 2019 08:45:07 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:44484 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390652AbfBMNn4 (ORCPT ); Wed, 13 Feb 2019 08:43:56 -0500 Received: by mail-wr1-f67.google.com with SMTP id v16so2513986wrn.11 for ; Wed, 13 Feb 2019 05:43:55 -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=s876fdQMJA7nX/v6RjR5Kj0rdfFIb8ZZUOifVmGZY5H/iAw2jlnz0LmtHelDhfNVwn ccyyB7rx5Xnl823ZeHWr1yQicd1BWchBpvpWBG5oHdNlepWNVQDnkGjRZb8xDK9eeuTs hjU7aUFhP7CiRTglo3l3NE2dnhNks66blqkmsvmhJJOpEuVWKcpWTRYrR6v9vrkGjbjz LgW8KCrXLLBJyfgAKA/uI2fSLKEFmr7pPIwb3m/UmphiuC3vxUjf/A6wd87crFKEnV0d 2943kQkbkhyZxRDe1r9JncONlKaADzPe+OifoOhAr4BPrLLD5izD12oFI8OS+Ksl8a4s OeMw== 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=pD97INFMjapJts+fashG4heaqvW7nyymHOlhgW9Vl72I7XHndoQd5rr7IZbkPi5cJC fYcqrcN1dmrgiyW62cwjjbMH2qKJAbeFBBoNBpdJK0AbeIdlQCnVFu0sjWP61d8DG+cj mDjxz0+d8c6LDlBjnlcgnYoGLdzyvpRGhJurx06++7VQBhi5Z4VBGv8WDjowJ9/i+Yh7 OAVxGUU+gLfxqKZrhipJdoTcVk9fYRolL/Y05hIaiMlTEZeQhw7hiuounxosVPVTxeFx U8tlQ0/3Y6RV04OSbGmowCjIzlWynzmOhNgO6RoM+obldrUjzuJ+HODC6f8yLnHUaA1G m8Qg== X-Gm-Message-State: AHQUAuYmLzniD/oYAV6GxAMKstQn05ZpaYKX6buEEqd862bjp0mC79UY xtXqT2sFzb1YR5tY0Ngs5JL55g== X-Google-Smtp-Source: AHgI3IYqce5u7rqSks1vpbKzgmPPcBgvMpmT8wtMhYYrkGC9s9NGzguxV+MFJv2MrW/5QVDcOyGpVQ== X-Received: by 2002:adf:f845:: with SMTP id d5mr494170wrq.113.1550065434678; Wed, 13 Feb 2019 05:43:54 -0800 (PST) Received: from debian-brgl.home (amontpellier-652-1-54-116.w109-210.abo.wanadoo.fr. [109.210.45.116]) by smtp.gmail.com with ESMTPSA id e7sm2046720wrw.35.2019.02.13.05.43.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 13 Feb 2019 05:43:53 -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 v5 04/11] dt-bindings: input: add DT bindings for max77650 Date: Wed, 13 Feb 2019 14:43:28 +0100 Message-Id: <20190213134335.10838-5-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190213134335.10838-1-brgl@bgdev.pl> References: <20190213134335.10838-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"; + };