From patchwork Fri Jan 18 13:42:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 1027381 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="XkOLNzXH"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 43h2HJ6FsDz9sDn for ; Sat, 19 Jan 2019 00:44:28 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727762AbfARNnO (ORCPT ); Fri, 18 Jan 2019 08:43:14 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:55180 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727726AbfARNnO (ORCPT ); Fri, 18 Jan 2019 08:43:14 -0500 Received: by mail-wm1-f67.google.com with SMTP id a62so4543275wmh.4 for ; Fri, 18 Jan 2019 05:43:12 -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=EOyfIqvP8fWVIkX996tvkSS9AcitJcU7J4dbz2exdQ4=; b=XkOLNzXHaoqwYINhSTjKGsqTlpKE3rtZ+YUpqHqHFfzP0e3kmfQnivJLKZzVKM6ilU 3LKeKaSml5Za1AJv+H6OpYsdxVz9Xfq1cn636wzX0XP5xKhEEggN0LivlQaEJ8pEDHsy /+A24CvqKrrJunvXrRn7XAcbsUB2Z7sJuifPKi58pzp0XiJqGj2hWe0aBmY9nldeVLlY FdkIwYLZkhAUZvyM8c0r5bTuO9Ltb15UllQejeif9ty9bVuu42TppC6rcmfo5bT8cQSO gaqK2Bf8Ri7GxxTCEdpu9Xclsw51MKGu+w2Xmpammc7csoUHeNvH8Bvc6cmGSEBYGA0Y C5Zw== 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=EOyfIqvP8fWVIkX996tvkSS9AcitJcU7J4dbz2exdQ4=; b=MSzL+RpFvQWjfGL/L9TAMrr4Rebl603/Gbu9TzxO+EFqazhLczepxABpsJFXmsrsXv g5qQXPNKY2aZVWHramDGxBE4zvZGLAX9neASuENzgaoB+wv5U8R0fVhngSmcfozLrrQ0 dT2Hj2SUYd7jWlwlmtnGUJriyFe5hnvcYAST+j3V26zwU3V0h3opeVvQ4teY6ai4aOiI fR7ntzJobYUmBQ1Pjw2ZTGdTTc1keI3k7zXK/8IuAa3SbCYlUGcShYEBfgWPdIBOh0zn 5YLtC0nqL9Cwte1C9JzS1i/8m4O6Kw8y1S3DX2bswN9S21VkZkZvgGe71IMUELlgz5CC d1Ig== X-Gm-Message-State: AJcUukeD56nsZU0ee3WQrE96mSCk/vtouSm4Oo0AOHSGL+lbPZdy8K/Z qD3JyEzZhy/1fy4Zx0pf7Pxmvg== X-Google-Smtp-Source: ALg8bN5QbJYhaGeEKDXSYdtRbdg9vOXCE6CCpJkPHy+taNd+kZ5XjX1RHG735upNj8ibiLwSZtrlow== X-Received: by 2002:a1c:26c1:: with SMTP id m184mr15108259wmm.25.1547818991881; Fri, 18 Jan 2019 05:43:11 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id a132sm51033934wmh.5.2019.01.18.05.43.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Jan 2019 05:43:11 -0800 (PST) From: Bartosz Golaszewski To: Rob Herring , Mark Rutland , Linus Walleij , Dmitry Torokhov , Jacek Anaszewski , Pavel Machek , Lee Jones , Sebastian Reichel , Liam Girdwood , Mark Brown , 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 06/13] dt-bindings: input: add DT bindings for max77650 Date: Fri, 18 Jan 2019 14:42:37 +0100 Message-Id: <20190118134244.22253-7-brgl@bgdev.pl> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190118134244.22253-1-brgl@bgdev.pl> References: <20190118134244.22253-1-brgl@bgdev.pl> MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org 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"; + };