From patchwork Wed Jan 30 18:30:05 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 157079 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp6266553jaa; Wed, 30 Jan 2019 10:30:22 -0800 (PST) X-Google-Smtp-Source: ALg8bN5hBAVU9RAZMQ5i4uWAOkKT0PxdaY45gJJkcCAxpKAAbi9lrir5AyxWOcDXNjT85iSquv0m X-Received: by 2002:a62:1112:: with SMTP id z18mr31258128pfi.173.1548873021997; Wed, 30 Jan 2019 10:30:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548873021; cv=none; d=google.com; s=arc-20160816; b=LXJ6j7l2uHNIHG+NvLztgxWN7mcp94+UZaUadQ7NvKVD0KhsMB8JutOJiKIcj7Oc9C efJkVccwA3aEzIjR6ub1i7Wj2Yh4ODOBYtBiim+lNB1LX3LKunXF3qgAtdv10R7IcA0T JDbgXPNVVQxs/RavD6G8PojGVWJ9HORv9B0MD6kPM0H+O5cTUI/hQkNkRF2Ml4hrIYVy xNaZbWJewNkcPZ0NgIpoJfBVE6a/dEGY4URLRFEh6EZOWTf4YPxJHoAR+y0Z8/4Pf353 dMaJ1WX+NaAwF2J43PdwmXiy+Qt8I1zHlPmI6JnI5M8wS0Ktu8KTcigXnmCvwEk1rHhM z2jQ== 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=aJpcc/uWcq0UvSCg0x/gbv6tkETcGR9e/x/4dgv8+e2+Ftn4IPlsT7vyw5IUrpEouP mQ9rILbQEWP7wV5Vlvb4sdXFeof8lHqcEBhq/EccNn6E7iDXiy5e+T4sYRm1JbfMMp0t jzWTz3/aiJJPhZ8lKrT4ZuDGF1MUT0IQf+kB5FKKkJqsNMsiXztjios6vAeg/8ngzzZs 3VoZIPDLlpuPHdIZowQEthV3w7Ddz1AJLPuajg7WqFcGlXqMnNkdCJCT20NlbUOu7sb2 dYplD1HIiDJYKXYH40wl5NtWkYq+WUjvzzGhnusASjvispFgWZGvRc1AVpP6//jAxFDr vT2Q== 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-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 n3si2129446pfn.285.2019.01.30.10.30.21; Wed, 30 Jan 2019 10:30:21 -0800 (PST) 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=lviWGFZx; 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 S1732959AbfA3SaV (ORCPT + 1 other); 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 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 | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-class-led-multicolor -- 2.20.1.98.gecbdaf0899 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.