From patchwork Fri Feb 1 09:47:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10792385 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 0A767746 for ; Fri, 1 Feb 2019 09:49:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F1E40307BF for ; Fri, 1 Feb 2019 09:49:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E5DE1309D6; Fri, 1 Feb 2019 09:49:07 +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 9A548307BF for ; Fri, 1 Feb 2019 09:49:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729732AbfBAJsM (ORCPT ); Fri, 1 Feb 2019 04:48:12 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:54196 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729722AbfBAJsK (ORCPT ); Fri, 1 Feb 2019 04:48:10 -0500 Received: by mail-wm1-f66.google.com with SMTP id d15so5395643wmb.3 for ; Fri, 01 Feb 2019 01:48:09 -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=aX349u0uwisMMyB+gBJA3B+CmkX+J8W548y5le5Gi9fCLFQI5JeU3Ro9nYQQjq2/9W 8dedgvTL6l2QXdOSCJl0iHLlLv9t03vmWSGdMRhvnRIcv7HkiU/cCEfQ35cqHkzcFW3Y 7SGK+DR0241Bx0j3JdE9/p6Yzw3A2wLBs3EVUscqh7BiW3vRrN8nwLg8vYSRst8j+Ppd c5DYZoYlpesjyVVYwaxbZooF3PfC6wUpFnyB7auw85pjOVPJRqGMq5evGNvixEuBGop0 WP0Au4eCPghh7F8Tsj0v7GMd+1E0HgDmwwP8qjyrHOMvtHrhP2HV6wKxOhfM+QjPxG3v JWXw== 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=FcJw4G3Y8UmfuUFC2kSCSB7g7XLOhUR55qdwCNtSVIm3aczABu2eH4qI7NH3aFijAG kuDOKLeMxKcFnZm/GrPgbdVRMYCHY5bJ0eHY/NaqvPYUwMNzt/s/cccOqgsTCvpyZcSq K+rBaXRPPpMTLlZa5ORC/ozqExHtXF7Z+C5YBLBgvbQ7t6sH2flEuLdZGdLKOvgQhp6X jZCIhTqe0aHJXHYvj+GghJTsPShHGs/Hb54zKXIgXyYsVGSDOrUoJWuXY11NpX+2fkkg gx+1bt+mq2FQ6sTTVXYeI85u+OrhnZDrOG4K+NuVt3rfTPI6N1BaZ4CErdsaQqRLlBnX rtiA== X-Gm-Message-State: AHQUAuYxUkMP5oMwCzQDAwMecmSEFsmXBIPJdU5vT4Z0f93JxPVFsV1e V7Y8ZA49CSY24W1Z7wuwIliL/Q== X-Google-Smtp-Source: AHgI3Ib2nSB+GHS5VJtyC3St0D7cgcsTpgT/T0QXVAN6G944PZ91yHETIlaPJfU4qNeyqJgFXZ8h3g== X-Received: by 2002:a1c:2686:: with SMTP id m128mr1565300wmm.52.1549014488653; Fri, 01 Feb 2019 01:48:08 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id m15sm9648970wrr.95.2019.02.01.01.48.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Feb 2019 01:48:08 -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 v3 05/11] dt-bindings: input: add DT bindings for max77650 Date: Fri, 1 Feb 2019 10:47:30 +0100 Message-Id: <20190201094736.32057-6-brgl@bgdev.pl> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190201094736.32057-1-brgl@bgdev.pl> References: <20190201094736.32057-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"; + };