From patchwork Thu May 23 19:08:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 165065 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp2645892ili; Thu, 23 May 2019 12:51:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqwk7VwwSRQPCnS5R+BMNlFRqvzN4kuyqf2uKtRN1lwhweH8+dd+BPgVTYOQz9QYNE/F32m0 X-Received: by 2002:a63:e706:: with SMTP id b6mr6933214pgi.90.1558641088404; Thu, 23 May 2019 12:51:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558641088; cv=none; d=google.com; s=arc-20160816; b=xnbhzllp4bgQkBr3dsoHxirHozDLnyhORkIL5iAC+QVRS8UJNZ07GO3LjRx4g0VfeJ 645pkRlUKL2MSTSHBGIhFm7EfFnGjdZjHPteE1FaduRifEhqXYppCbckF41FQ7sfXf5n 8qz9+PaeDPWASZwKYaQDMLyjEDYs6tNyE2Lk8jNIKhBRzsNd9XCdfTU/xrOFyxaw6PkI sqAZT+k42KaUBzE9r8X37x/tGHjoaIQm3LqMblXt699m4S6YebAWHftFxcOur3hpepzc lr3xQxFHapcEiShuB06aYO6V49oYIKsw9Uv0NTgafwMZLsQdDqYwAGFWQlfuo9+uSatK bAgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=n5ieitO5auRi1g1b8vCdK13uEPku9s5t3nKY1zvO/Yw=; b=I5ACbmzfLLmj2X7dRbOMX+U0Lp3fWZ50irtJIyj3HFyIkwOqaCFJTUX9PLFVqu7wxL eyKJVXMjPwc1eZ4cgpPhjb96KhG5A+L4rqEoQtM+iQ3BnsMp8oIMqY5Q4q+K/W7WEhtf aL1SmjSDTe8GGalsS4/z50s/HC9sG/ybVpihtGNnGHHHA9kiNTGGcIYfBb7VZ6ibltS7 CnYPashYKm8Pyrfgr39CUwHKssiK75AoObOaR430tsnXRxNf0k78b8kqZZd9MWtwa5Ft IcFtxDHQBnV47sAYbgMoCIlEm8UVzNFGXlB1FBhXE+Iui99zwG8r5ZA9aISfK4HGFIkg eOlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=na7fkr11; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bo1si485857pjb.66.2019.05.23.12.51.28; Thu, 23 May 2019 12:51:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=na7fkr11; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387781AbfEWTv1 (ORCPT + 1 other); Thu, 23 May 2019 15:51:27 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:52944 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731851AbfEWTIn (ORCPT ); Thu, 23 May 2019 15:08:43 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x4NJ8bbb065636; Thu, 23 May 2019 14:08:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1558638517; bh=n5ieitO5auRi1g1b8vCdK13uEPku9s5t3nKY1zvO/Yw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=na7fkr11Rn6UB3EO9U942sFWrZu6vUo0tmOteQUSanT/3EeJ9sOXqyp6rqVf7VzJe Dem44kmCiMlzpetcur+HFkfPn2qjER4BluFP1QCdpq87xLHl3bB9LiYPy4YxgYbx2P YbQMx7Nr2qM1j06IqFxndgjZo6BD3nwZZjFZ5/sE= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x4NJ8bB6043180 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 23 May 2019 14:08:37 -0500 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 23 May 2019 14:08:36 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Thu, 23 May 2019 14:08:36 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x4NJ8aNL071426; Thu, 23 May 2019 14:08:36 -0500 From: Dan Murphy To: , , CC: , , , Dan Murphy Subject: [PATCH v3 1/9] leds: multicolor: Add sysfs interface definition Date: Thu, 23 May 2019 14:08:12 -0500 Message-ID: <20190523190820.29375-2-dmurphy@ti.com> X-Mailer: git-send-email 2.21.0.5.gaeb582a983 In-Reply-To: <20190523190820.29375-1-dmurphy@ti.com> References: <20190523190820.29375-1-dmurphy@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-leds-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org Add a documentation of LED Multicolor LED class specific sysfs attributes. Signed-off-by: Dan Murphy --- .../ABI/testing/sysfs-class-led-multicolor | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-class-led-multicolor -- 2.21.0.5.gaeb582a983 diff --git a/Documentation/ABI/testing/sysfs-class-led-multicolor b/Documentation/ABI/testing/sysfs-class-led-multicolor new file mode 100644 index 000000000000..2f102ede258b --- /dev/null +++ b/Documentation/ABI/testing/sysfs-class-led-multicolor @@ -0,0 +1,57 @@ +What: /sys/class/leds//colors/sync_enable +Date: April 2019 +KernelVersion: 5.2 +Contact: Dan Murphy +Description: read/write + Writing a 1 to this file will enable the synchronization of all + the defined color LEDs within the LED node. Brightness values + for each LED will be stored and written when sync is set to 1. + Writing a 0 to this file will disable syncing and allow + individual control of the LEDs brightness settings. + +What: /sys/class/leds//colors/sync +Date: April 2019 +KernelVersion: 5.2 +Contact: Dan Murphy +Description: write only + Writing a 1 to this file while sync_enable is set to 1 will + write the current brightness values to all defined LEDs within + the LED node. All LEDs defined will be configured based + on the brightness that has been requested. + + If sync_enable is set to 0 then writing a 1 to sync has no + affect on the LEDs. + +What: /sys/class/leds//colors//brightness +Date: April 2019 +KernelVersion: 5.2 +Contact: Dan Murphy +Description: read/write + The led_color directory is dynamically created based on the + colors defined by the registrar of the class. + The led_color can be but not limited to red, green, blue, + white, amber, yellow and violet. Drivers can also declare a + LED color for presentation. There is one directory per color + presented. The brightness file is created under each + led_color directory and controls the individual LED color + setting. + + If sync is enabled then writing the brightness value of the LED + is deferred until a 1 is written to + /sys/class/leds//color/sync. If syncing is + disabled then the LED brightness value will be written + immediately to the LED driver. + + The value of the color is from 0 to + /sys/class/leds//colors//max_brightness. + +What: /sys/class/leds//colors//max_brightness +Date: April 2019 +KernelVersion: 5.2 +Contact: Dan Murphy +Description: read only + Maximum brightness level for the LED color, default is + 255 (LED_FULL). + + If the LED does not support different brightness levels, this + should be 1.