From patchwork Thu Sep 19 18:36:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 174097 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1378140ill; Thu, 19 Sep 2019 11:35:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqzWU1MqhTSer4lejf5KiHGWRuQ/fOROehCDbEbGcucMn3XdQgnYZBIb4aKaTBb9RNYcBoMw X-Received: by 2002:aa7:d789:: with SMTP id s9mr17766564edq.62.1568918145684; Thu, 19 Sep 2019 11:35:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568918145; cv=none; d=google.com; s=arc-20160816; b=07INbL80GPlSoKsb06+hF+JlAv4XrnMyV4QSBQUoNddxoXqeyvNQzJMDBYFs+vl4y+ q5OifDkF+4b2Sl9ibuYlDppc68fY7OulJp7KkkUvMJ8k22gX+RlynCKaW/GUfp6EN/9R u4vBfZuzL1ghMfK5a9CEdaidh55tBe8ykDhzq0CU8O1J+k5mHW/ZsDOYlHpLXjLYZbnF VHzcmBmiaYZcaO7xC3TErWztcTbMVGwQDHfguJ+G0upnHjqMA01srrvsruIgXtECIwfo acqF8Tek1Du/uT4x/6OiE30ssQ5pyR5WHiVLWpvPRHWvOFGISnVl9F+XrTsP7JtVwI5k FDzg== 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=3r8NrvCOTUy6K4oFLHF2BYQC94/INWkCD7dFECGXy+E=; b=YQCf1UkG2aG2kvg0RT2MHlYW09G//2eExhqneOX5O6AC8zhY0JTcyp6BWN0AFb1VXj LZyEZ4EFpGNzOz3mHpoIHf+j0fRitsMCGdH001bF8aG5UB48wRp3xHUpWvg1O5CxlhiG 6z68+HdcrxLyEj2K2ZetH4c5q4+rU41K0yYdM56WAnzkm0JcxyxwnkYfBZwjulvazWsF ur+BOGZ8/hhjga/9EvvUiLiQeUwaegxhh35Rqdpx8ETYW3KS3OCTMdnOyo9YRnuVI290 ZzZfJwX3FSXv8tUI1r0rw7r7vdYpqSChJAg+m4N+RUM3UR4phWlBRuZbktN4dnV58GY8 myFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=mbJUV2oQ; 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 u3si5213373edy.48.2019.09.19.11.35.45; Thu, 19 Sep 2019 11:35:45 -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=mbJUV2oQ; 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 S2403909AbfISSfo (ORCPT + 1 other); Thu, 19 Sep 2019 14:35:44 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:58384 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732693AbfISSeL (ORCPT ); Thu, 19 Sep 2019 14:34:11 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x8JIY6dY087601; Thu, 19 Sep 2019 13:34:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1568918046; bh=3r8NrvCOTUy6K4oFLHF2BYQC94/INWkCD7dFECGXy+E=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=mbJUV2oQx7w6UiaVCX/wlRsQMfAled5A1HyV2Ny9AB7ByDxMqzMaxp3itiNeILoXy N0Qe9PB2CW65YuSPjuAxck7c7aAtKniT2wAfFVp6cJ4BxKIy1dqBOmiVlU6TOOX7o+ fQIVURUYg2rTt0x2wJMCK0WuDGDbTRYC1Qc2EVgI= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x8JIY6pU107046 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 19 Sep 2019 13:34:06 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) 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; Thu, 19 Sep 2019 13:34:02 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE101.ent.ti.com (10.64.6.22) 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, 19 Sep 2019 13:34:06 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id x8JIY6H7034151; Thu, 19 Sep 2019 13:34:06 -0500 From: Dan Murphy To: , CC: , , Dan Murphy Subject: [PATCH v7 1/9] leds: multicolor: Add sysfs interface definition Date: Thu, 19 Sep 2019 13:36:49 -0500 Message-ID: <20190919183657.1339-2-dmurphy@ti.com> X-Mailer: git-send-email 2.22.0.214.g8dca754b1e In-Reply-To: <20190919183657.1339-1-dmurphy@ti.com> References: <20190919183657.1339-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 | 43 +++++++++++++++++++ 1 file changed, 43 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..39fc73becfec --- /dev/null +++ b/Documentation/ABI/testing/sysfs-class-led-multicolor @@ -0,0 +1,43 @@ +What: /sys/class/leds//brightness +Date: Sept 2019 +KernelVersion: 5.5 +Contact: Dan Murphy +Description: read/write + Writing to this file will update all LEDs within the group to a + calculated percentage of what each color LED intensity 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/_intensity +Date: Sept 2019 +KernelVersion: 5.5 +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 value for the led_color is defined in the + include/dt-bindings/leds/common.h. There is one directory per + color presented. The intensity 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: 5.5 +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.