From patchwork Mon Jul 1 20:46:33 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 168217 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp3367027ilk; Mon, 1 Jul 2019 13:47:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDw2oTLvrTzoZu9gVqCtGv+P/c6CAouoQauADoF1zE3iDMOuqiMuoUyVUvjn++W0cNlbTJ X-Received: by 2002:a17:902:61:: with SMTP id 88mr29547547pla.50.1562014029361; Mon, 01 Jul 2019 13:47:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562014029; cv=none; d=google.com; s=arc-20160816; b=lt3atedm2CTWlIjThA1PTOQkWKsDMQXHd6iZCt0HaRQpkPpuk+lFeiUsnagWBav21F 6JCDdcdKIAXPkN6ivbRtxom9+e2hg15f13D2isGfLYkbfy7aDZRxJ6ZsnKxMj/+p5OwV lGyRWyDVOAX8O++DaZ9viy21o+fzVf/aTxuRc93a3PQxYlyUFJG2eFJlSiwzTFWF5UtG SWyHCdkz3eV0Y1YBrvj/DAQhsAL5qZ3Sr8HgqtV3hltAYaovzAn+dGYxGV0t9RJ9ju4z ALOfPnsKet2ECEUvv9pmDAcS5DVEAhTqET0EafGtwLt/8RGUHLzWIegBj2eBwIRwmL5F AOAQ== 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=qcr4ypaaLHe8OTM4DOVLX6D4nuqeZQhIdKwIxRRQijo=; b=gvOm2r/caWNJrBW5+yl48SbeWq6JG7p/FpRf1jnbSMbWrrieUvsNpy12yErmgVJVJV M3JJKAwukll9+FyI0WYNAz2qJUf/850y9COMKzBNNBXecyT8nFAHK8wmJZtcgoYgi92o EaEuNVhcWguik1uVDnZ263vfTgsvJXJ+cyWUA/Hk/JPfPvWgvqZL1OJ34B1BpNaSwnMl MLzsESmRgSu67SV+cya5tylAHFqm2aZDFVV3vwA7nQgCgMgyVwLzoclOUkZoqM24Swfq G1TlXW3FYGUjVdyvtqApnenBJFIVZoi0godsMrVMfVi3redwKDwXzjdp1wdQgl6aRx+S rFUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=YYf6rCT4; 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 h11si474991pju.90.2019.07.01.13.47.09; Mon, 01 Jul 2019 13:47:09 -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=YYf6rCT4; 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 S1726668AbfGAUrI (ORCPT + 1 other); Mon, 1 Jul 2019 16:47:08 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:45702 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726658AbfGAUrI (ORCPT ); Mon, 1 Jul 2019 16:47:08 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x61Kl40g075638; Mon, 1 Jul 2019 15:47:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1562014024; bh=qcr4ypaaLHe8OTM4DOVLX6D4nuqeZQhIdKwIxRRQijo=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=YYf6rCT4qisUbCViM9asNCaSZcN77JdScB9cTHq9uhQxY6g7qkG18LVc9Iy5kh2qn CpehfXdmaRAhyIgHgzmE6nz9xnzPQ8hcWzYu6ZrwOSfmV5jNFQ0AGWNtr8Cnk0n13I gZ4EA6zYM+CWNgJ9y1p0MhFL4sGYRXcMg8CFT9bk= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x61Kl4Pb010553 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 1 Jul 2019 15:47:04 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 1 Jul 2019 15:47:04 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE115.ent.ti.com (10.64.6.36) 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; Mon, 1 Jul 2019 15:47:04 -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 x61Kl4qc032568; Mon, 1 Jul 2019 15:47:04 -0500 From: Dan Murphy To: , CC: , , Dan Murphy Subject: [PATCH v5 1/2] leds: multicolor: Add sysfs interface definition Date: Mon, 1 Jul 2019 15:46:33 -0500 Message-ID: <20190701204634.10517-2-dmurphy@ti.com> X-Mailer: git-send-email 2.22.0.214.g8dca754b1e In-Reply-To: <20190701204634.10517-1-dmurphy@ti.com> References: <20190701204634.10517-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 | 67 +++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-class-led-multicolor -- 2.22.0.214.g8dca754b1e diff --git a/Documentation/ABI/testing/sysfs-class-led-multicolor b/Documentation/ABI/testing/sysfs-class-led-multicolor new file mode 100644 index 000000000000..59839f0eae76 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-class-led-multicolor @@ -0,0 +1,67 @@ +What: /sys/class/leds//brightness +Date: Sept 2019 +KernelVersion: TBD +Contact: Dan Murphy +Description: read/write + The multicolor class will redirect the device drivers call back + function for brightness control to the multicolor class + brightness control function. + + Writing to this file will update all LEDs within the group to a + calculated percentage of what each color LED in the group is set + to. Please refer to the leds-class-multicolor.txt in the + Documentation directory for a complete description. + + The value of the color is from 0 to + /sys/class/leds//max_brightness. + +What: /sys/class/leds//colors/color_mix +Date: Sept 2019 +KernelVersion: TBD +Contact: Dan Murphy +Description: read/write + The color_mix file allows writing all registered multicolor LEDs + virtually at the same time. The value(s) written to this file + contain the intensity values for each multicolor LED within + the colors directory. The color indexes are reported in the + color_id file as defined in this document. + Please refer to the leds-class-multicolor.txt in the + Documentation directory for a complete description. + +What: /sys/class/leds//colors//color_id +Date: Sept 2019 +KernelVersion: TBD +Contact: Dan Murphy +Description: read only + This file when read will return the index of the color in the + color_mix. + Please refer to the leds-class-multicolor.txt in the + Documentation directory for a complete description. + +What: /sys/class/leds//colors//intensity +Date: Sept 2019 +KernelVersion: TBD +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. + + The value of the color is from 0 to + /sys/class/leds//colors//max_intensity. + +What: /sys/class/leds//colors//max_intensity +Date: Sept 2019 +KernelVersion: TBD +Contact: Dan Murphy +Description: read only + Maximum intensity level for the LED color, default is + 255 (LED_FULL). + + If the LED does not support different intensity levels, this + should be 1.