Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4521534ybe; Mon, 16 Sep 2019 13:45:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwu0UjAhySnhMeop9Y9rZXOmQbgIzY+myH99MtXYz/jo8ieAaYJujrCzdiQVsMhL7kEIPVh X-Received: by 2002:aa7:c40b:: with SMTP id j11mr1295972edq.196.1568666744065; Mon, 16 Sep 2019 13:45:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568666744; cv=none; d=google.com; s=arc-20160816; b=Ktn4Yyc4PtL+7++ol5d/bHgVvbvll675Fbz6q4UPFE722PQiwqw/G+zgWGf9WQSNFa l/3SwTTl7nTGQkLbbhrpqsac5lQp/1Y2qWGQhQAwcll/JgM03NGm3YETg5g+o0wd0lCx rePs6Kck0AxBcxNebD8bdsOztT6c3dZNuRNNGXBal0SZ37eOJpYFP0tND6gQXKgVXu1r Rf4GdP/qoHCKRNmAPqmF1JVcv2OFaDgzsx3PHtgjRpBgJbXg8MwWJ8xTGyNoX+G0V/iq qckfm4kJIh36zGnZOmP4TNF3k83tytsRyOWyI22NVwbYfrahP1eaO/uCdgsfgWSfe/rD FrCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=l8yeJsF8FmT2WnVdhCOfEujrwIHFMa/BZ4gjgWzLKWk=; b=IVvBWl22an1JPXUwtsgLuzOLa09+1l83/KU+h1f8NjZPevDRfEJldZyUnrmU+/6An6 Z9gIZb0hXFVUk/OvB4YHu5UIBn2vy9TsirrB+7gb/l3GnyvRQc9+kO5rme8d7QYAOORd UubQ1dwWEsY8wB+hoK5vXz0KJJ/l3iS3KM6RhwZTLD0EvyxmXDwNnq46HjtLWm/vpJvA H9lYJk1incfTDnpvWypylkGYUuw37vLh0EzBnr9pLCWxnpd3chN75UG7u7zn39gpGWVK Hjn+YZOV8D2HtuLl5iJMmGkFz2Vqiig4DHvf9sLF7ZPPaS4QTQa2DH+ShL1CyWen5p8r z0/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=S1iVH2Mg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 j3si126752edj.448.2019.09.16.13.45.20; Mon, 16 Sep 2019 13:45:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=S1iVH2Mg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S2387682AbfIPNyn (ORCPT + 99 others); Mon, 16 Sep 2019 09:54:43 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:42782 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728005AbfIPNyn (ORCPT ); Mon, 16 Sep 2019 09:54:43 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x8GDsb4N084722; Mon, 16 Sep 2019 08:54:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1568642077; bh=l8yeJsF8FmT2WnVdhCOfEujrwIHFMa/BZ4gjgWzLKWk=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=S1iVH2MgMmOKe6ECllqnFkshWA551SXE7hsEYqnVjkJyD62SzdGUT8p62g04H5+/d uTNgpp7/9L2guOauipwSX6UYECEIP41nQkAHm5aO718nH6AduE1zpMeaIDdEMOARTL hKwRYlLSxMiUGw9FvYKQlciIlvvT6/rM0/GM33pI= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id x8GDsbhV072484; Mon, 16 Sep 2019 08:54:37 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 16 Sep 2019 08:54:35 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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 via Frontend Transport; Mon, 16 Sep 2019 08:54:35 -0500 Received: from [10.250.65.13] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x8GDsauO095861; Mon, 16 Sep 2019 08:54:37 -0500 Subject: Re: [PATCH v5 1/9] leds: multicolor: Add sysfs interface definition To: Jacek Anaszewski , CC: , , References: <20190911180115.21035-1-dmurphy@ti.com> <20190911180115.21035-2-dmurphy@ti.com> From: Dan Murphy Message-ID: Date: Mon, 16 Sep 2019 08:56:14 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello On 9/15/19 8:57 AM, Jacek Anaszewski wrote: > Hi Dan, > > On 9/11/19 8:01 PM, Dan Murphy wrote: >> Add a documentation of LED Multicolor LED class specific >> sysfs attributes. >> >> Signed-off-by: Dan Murphy >> --- >> .../ABI/testing/sysfs-class-led-multicolor | 73 +++++++++++++++++++ >> 1 file changed, 73 insertions(+) >> create mode 100644 Documentation/ABI/testing/sysfs-class-led-multicolor >> >> diff --git a/Documentation/ABI/testing/sysfs-class-led-multicolor b/Documentation/ABI/testing/sysfs-class-led-multicolor >> new file mode 100644 >> index 000000000000..4ea54c2ad4c8 >> --- /dev/null >> +++ b/Documentation/ABI/testing/sysfs-class-led-multicolor >> @@ -0,0 +1,73 @@ >> +What: /sys/class/leds//brightness >> +Date: Sept 2019 >> +KernelVersion: 5.5 >> +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. The percentage is calculated via the equation below: >> + >> + led_brightness = requested_value * led_color_intensity/led_color_max_intensity >> + >> + For additional details please refer to >> + Documentation/leds/leds-class-multicolor.rst. >> + >> + 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: 5.5 >> +Contact: Dan Murphy >> +Description: read/write >> + The values written to this file should contain the intensity >> + values of each multicolor LED within the colors directory. The >> + index of given color is reported by the color_id file present in >> + colors/ directory. The index determines the position in >> + the sequence of intensities on which the related intensity >> + should be passed to this file. >> + >> + For additional details please refer to >> + Documentation/leds/leds-class-multicolor.rst. > As already mentioned in the reply to Pavel - let's avoid the > introduction of another sysfs file with multiple values. OK for clarification remove the color_mix and color_id files and keep the intensity files? Dan