Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6202265imu; Wed, 30 Jan 2019 10:30:49 -0800 (PST) X-Google-Smtp-Source: ALg8bN5i4YSm1mYvpByl+Z4Z9YRE0riRjoN5mLIYPPWQXM08cGAADi4vPkwWA/IDOht243Xhlr+q X-Received: by 2002:a63:89c2:: with SMTP id v185mr26363707pgd.97.1548873049918; Wed, 30 Jan 2019 10:30:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548873049; cv=none; d=google.com; s=arc-20160816; b=S/UzP5OfIBSVR57E28dwdv9KGMfasgMmnbw7ZJu/+jM3fnYTH2Db6hM0VEGJJjjHoj kS63RSqR7NUEXapTjzgCTcPvS1r6mE/63OKBxiv64q4vidK385nVM91OI/V7c84RG7YG kr89s98pBxn67CEQKQClw5k9i2tUdsoyac7iW3Jl2Bons1QUJ+dWuHRDO4TqTzJNSEI9 7InHPSpjjOD9pVY/bPo9bkSYf4pz6TCwvwQmkHMTHOO9faobWm1WTXZ8wTxC0Ma1YCpR gxdYWF59xHmWG47kbVn1FhVrUAeBKDnlopWTkTADiODEhJHPrf8v6iEd5l6iiy2MTzfG BYGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=8/Ve5jGtKFD4bjrx1aYX6fb1Ri9Pdg9X4iDb7Z8QW+Q=; b=DMw0UF3nVEud73piYVvirHXVW8EdHTb4RgAxXi6zItqWhrae936bTnBw0X0GQQxLIU kZeT3XGCxXNtK4UybtxAEiscHCFO0AQZL7gTqR2CyUqiSNtC+289bqX+i1h1XPhnJ8it EZLUNrJ9qT046mub4/zzgDci9nTFrllanGpdOyyXICZfgujwVpWXquccQUblzp0LBrVV K+zvpbeobU7LkL5eoWdwAmQaOYNN8pA9AnY04x6ZDWXmbp6EOJy9jpw/2IxRqxjAg+SJ AiponV7WCGpIpUwTxjDpGltin/4gHnTmPl3KNJB6Ta9yoxzTm988eG3sLuYdwMG2q/FP vXuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=lviWGFZx; 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 97si2037710plm.312.2019.01.30.10.30.33; Wed, 30 Jan 2019 10:30:49 -0800 (PST) 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=lviWGFZx; 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 S1733064AbfA3SaV (ORCPT + 99 others); Wed, 30 Jan 2019 13:30:21 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:41590 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732841AbfA3SaV (ORCPT ); Wed, 30 Jan 2019 13:30:21 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x0UIUFht079194; Wed, 30 Jan 2019 12:30:15 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1548873015; bh=8/Ve5jGtKFD4bjrx1aYX6fb1Ri9Pdg9X4iDb7Z8QW+Q=; h=From:To:CC:Subject:Date; b=lviWGFZxrCxWVzWLxO08dXO+r25ZsEAjirBSkEe6fyUOjr0fFBXnLzVOyUjl5+QuT RIjKg+e6EjIcpEmTIWQ3xSMNCpW7PQYKYaTmHCUXVwAW1A6FrVHA1I5kAebGoZCi8p 5qcrxAzouIeF3KWp2GRUAKMrdv4TA7lzpXwwEnvw= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x0UIUFeK070308 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 30 Jan 2019 12:30:15 -0600 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Wed, 30 Jan 2019 12:30:15 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Wed, 30 Jan 2019 12:30:15 -0600 Received: from legion.dal.desgin.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x0UIUFjp012679; Wed, 30 Jan 2019 12:30:15 -0600 Received: from localhost (a0272616local-lt.dhcp.ti.com [172.22.83.85]) by legion.dal.desgin.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id x0UIUEU02207; Wed, 30 Jan 2019 12:30:14 -0600 (CST) From: Dan Murphy To: , , CC: , , Dan Murphy Subject: [RFC PATCH] leds: multicolor: Add sysfs interface definition Date: Wed, 30 Jan 2019 12:30:05 -0600 Message-ID: <20190130183005.833-1-dmurphy@ti.com> X-Mailer: git-send-email 2.12.2 MIME-Version: 1.0 Content-Type: text/plain 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 Add a documentation of LED Multicolor LED class specific sysfs attributes. Signed-off-by: Dan Murphy --- .../ABI/testing/sysfs-class-led-multicolor | 38 +++++++++++++++++++ 1 file changed, 38 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..19f8da9b150e --- /dev/null +++ b/Documentation/ABI/testing/sysfs-class-led-multicolor @@ -0,0 +1,38 @@ +What: /sys/class/leds//color/sync_enable +Date: January 2019 +KernelVersion: 5.0 +Contact: Dan Murphy +Description: read/write + Writing a 1 to this file will enable the sychronization of all + the defined color LEDs within the LED node. Writing a 0 to + this file will disable syncing. + +What: /sys/class/leds//color/sync +Date: January 2019 +KernelVersion: 5.0 +Contact: Dan Murphy +Description: write only + Writing a 1 to this file while sync_enable is set to 1 will + synchronize 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//color/ +Date: January 2019 +KernelVersion: 5.0 +Contact: Dan Murphy +Description: read/write + These files are dynamically created based on the colors defined + by the registrar of the class. + The led color(s) can be but not limited to red, green, blue, + white, amber and violet. 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//max_brightness. -- 2.20.1.98.gecbdaf0899