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: 10809933 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 B5DE1139A for ; Wed, 13 Feb 2019 13:45:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A11772582C for ; Wed, 13 Feb 2019 13:45:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 906D72CFCF; Wed, 13 Feb 2019 13:45:09 +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 87AE92582C for ; Wed, 13 Feb 2019 13:45:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732263AbfBMNpH (ORCPT ); Wed, 13 Feb 2019 08:45:07 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:33796 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731011AbfBMNn4 (ORCPT ); Wed, 13 Feb 2019 08:43:56 -0500 Received: by mail-wr1-f65.google.com with SMTP id f14so2576852wrg.1 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=e7mzLVHtmjbDHcNI2mUmWZMhKoUsiT2cvcDH0ENbJmVeAvRxSDe5qCWNUyUefNbIPa AMcrFuOzwBv0QqfMr4k80DcbNEMZ/yDxEBfhj+/u7kiouFSj91uVDeGD1z1BTn5qs0p1 CkIeEgBaHQUo7Ct9IONViY7/qyHjE6z44SmFZXVUI7x8iicpNbFe317GbQJFGCKAGNPo 1+ef2KGdYQuObiS57LlcWBHMkWWvzKCQFPX20z+jZDrV7my1QfJ/wS9UoO0bJBD5PgJw 4FrS8mCYAKK0pm1PVTLJKKY56oymb1HV3IgQNgwSMYrDyoAuLx5WvmepOIEPuHpU+u9I cIbg== X-Gm-Message-State: AHQUAuYshPVU1ilfCWrsZ5m/kMOAFfNTGIXRI+WOcrNyqR72wlFukzVk Wr3H/hmYnPvNLuvQirw3o/ka7g== 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-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"; + };