From patchwork Sat Jun 13 04:17:33 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Ranostay X-Patchwork-Id: 6601881 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B75169F2F4 for ; Sat, 13 Jun 2015 04:16:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E957720570 for ; Sat, 13 Jun 2015 04:16:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 618E520592 for ; Sat, 13 Jun 2015 04:16:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751061AbbFMEQl (ORCPT ); Sat, 13 Jun 2015 00:16:41 -0400 Received: from mail-pd0-f171.google.com ([209.85.192.171]:33956 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750765AbbFMEQj (ORCPT ); Sat, 13 Jun 2015 00:16:39 -0400 Received: by pdbki1 with SMTP id ki1so35398634pdb.1; Fri, 12 Jun 2015 21:16:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UMOY1pXhXNLF24aVLKlh2A/J9PjjBdxjhVDR5Zfu2wQ=; b=AX7hUUZrNXroCxt5iWzikAuKkhSLgSm7b4ag/W7nYGE7eLYYGZos+5LbLr3UQjm4im GZ5isXNTDeCgbFrjGV0GPH0XG/d0EjzWNJ5l445QC0C17wV+DrcsT1zZIWC0fhPmc++D WTzKQuw35PuU7vG4/nDoPtl7NcPvLeMJ8cCCqiOm/UHbKEzNlVooqvZrqeOxvkHnaaoF RQMZD/9aiWOZw2LjJ6MtgDQmSygzvuGQ7KjCKjE2qTKsgyVXf7J7yE4zWv/tI6RpqfSI bbsv8xCuzFz95WtKM39XVejeifwkQpfNlHlCPEquF6ZwLTKWmKQhy/SX9EsB+ZlTNhv/ UG2w== X-Received: by 10.70.93.36 with SMTP id cr4mr28090732pdb.68.1434168999162; Fri, 12 Jun 2015 21:16:39 -0700 (PDT) Received: from localhost.localdomain (c-76-105-208-73.hsd1.or.comcast.net. [76.105.208.73]) by mx.google.com with ESMTPSA id k3sm5126741pde.18.2015.06.12.21.16.38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 Jun 2015 21:16:38 -0700 (PDT) From: Matt Ranostay To: zonque@gmail.com, dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, Matt Ranostay Subject: [PATCH v3 1/2] dt: add cap11xx LED documentation Date: Fri, 12 Jun 2015 21:17:33 -0700 Message-Id: <1434169054-11035-2-git-send-email-mranostay@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1434169054-11035-1-git-send-email-mranostay@gmail.com> References: <1434169054-11035-1-git-send-email-mranostay@gmail.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Some cap11xx devices have LEDs that can be controlled from userpace and via triggers. Document their use and functionality here. Signed-off-by: Matt Ranostay --- .../devicetree/bindings/input/cap11xx.txt | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Documentation/devicetree/bindings/input/cap11xx.txt b/Documentation/devicetree/bindings/input/cap11xx.txt index 7d0a300..ef89c27 100644 --- a/Documentation/devicetree/bindings/input/cap11xx.txt +++ b/Documentation/devicetree/bindings/input/cap11xx.txt @@ -38,6 +38,11 @@ Optional properties: defaults. The array must have exactly six entries. + linux,led-brightness: Defines the ON brightness when the optional LED + functionality is used. Valid values are 0-15. + By default a value of 15 is set. + + Example: i2c_controller { @@ -55,5 +60,23 @@ i2c_controller { <105>, /* KEY_LEFT */ <109>, /* KEY_PAGEDOWN */ <104>; /* KEY_PAGEUP */ + + linux,led-brightness = <15>; + + usr@0 { + label = "cap11xx:green:usr0"; + reg = <0>; + }; + + usr@1 { + label = "cap11xx:green:usr1"; + reg = <1>; + }; + + alive@2 { + label = "cap11xx:green:alive"; + reg = <2>; + linux,default_trigger = "heartbeat"; + }; }; }