From patchwork Fri Sep 20 17:41:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 174150 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp2785062ill; Fri, 20 Sep 2019 10:38:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwU5IxQuLiSf5kFMW5XZ6YvqifO+KpWlOl4/tHbwzgw46A7TC4wDGR3g4T6zRnhOyytYbKp X-Received: by 2002:a17:906:6848:: with SMTP id a8mr20736705ejs.104.1569001124987; Fri, 20 Sep 2019 10:38:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569001124; cv=none; d=google.com; s=arc-20160816; b=A1M6g5gxJwyn/m3jUvK0fG6/MhAifOGNdvQEvxW5znbF5jvgVPtViwvlbJfyIiTXxI PtCM6VnBgRy+0xwrNBXL2CtaQ72pKews0WcHEcltz95ngfo/QY6+FGl4bGn2WjFfchFp Hmm8GzsyZyptnyACIKHFdJhYDKBRYn/Fl4rvFLVgOp0aNcl57dbQBqX9Xh7/5Nlaphob DhqCZiq3P5y3oapXONtAuB4B1LtQgHm9r+8FJ0/g+J9WL5w5GHxGFxZEo9rUrnnWoIJm H6FTa83KbWnXtV7LQB6mlC8W8PElxWVIEcg/QqCoQryfIwBIU6B2YFPqo6tx+1/NwN9C p+jA== 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=vTj67IFxKCD/szFw/SpfksBFimI0AXpI8Nbr1u8Fgfa6zSS4rGB6ONcNxrNz4qV1AY hZVWU73ychLLazekpdf1HGg5oaaOgXG/GTPxmS0x2Od0Vmy88vWD4UWsxH/6rZNy9G+s yYIfkCH8l7v10U50MvQZixKeWdbS7ol9TitM/3o2kUayuzVrc6WwEITR+z7mBAQdvvJk yeRcBGOJu6vXEUzxSTbrDqEdNKXabd6F4TZsKK2ZeWwAL/QNVvcmmC4F4ngOZmlLW4Cz D6kQci5HL5qpenjpfpL/++tWnHS1VB8kdce9z6zSK5hWEMfAU7bVQTOG76rkux9KpDfM jWgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JUH7y9le; 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 f14si1710061edt.92.2019.09.20.10.38.44; Fri, 20 Sep 2019 10:38:44 -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=JUH7y9le; 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 S2392823AbfITRio (ORCPT + 1 other); Fri, 20 Sep 2019 13:38:44 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:42674 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392230AbfITRib (ORCPT ); Fri, 20 Sep 2019 13:38:31 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x8KHcQA5109365; Fri, 20 Sep 2019 12:38:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1569001106; bh=3r8NrvCOTUy6K4oFLHF2BYQC94/INWkCD7dFECGXy+E=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=JUH7y9le3lkmSBUOJz00goGAu1mMXQ3XAzP+O/jANk9S6k2qhNOjK4VCDFg0AvAnh Xwj4yR5y7F4JUuBZIYD9kzXYqu03oj0qizQl5VDwOHcYcW5DOAjtw35m+9OCKlNuos ZFNGRBOkUD/1l0Chmoz932Cpbxun/5k5aNhOSClE= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x8KHcQDH013167 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 20 Sep 2019 12:38:26 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 20 Sep 2019 12:38:22 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE113.ent.ti.com (157.170.170.24) 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; Fri, 20 Sep 2019 12:38:22 -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 x8KHcQbd060504; Fri, 20 Sep 2019 12:38:26 -0500 From: Dan Murphy To: , CC: , , Dan Murphy Subject: [PATCH v8 1/9] leds: multicolor: Add sysfs interface definition Date: Fri, 20 Sep 2019 12:41:31 -0500 Message-ID: <20190920174139.30079-2-dmurphy@ti.com> X-Mailer: git-send-email 2.22.0.214.g8dca754b1e In-Reply-To: <20190920174139.30079-1-dmurphy@ti.com> References: <20190920174139.30079-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.