From patchwork Sat Oct 26 14:48:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vicentiu Galanopulo X-Patchwork-Id: 839058 Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E2FFA14A91 for ; Sat, 26 Oct 2024 14:48:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729954096; cv=none; b=FABDpEiZ8LTWGdbZEfbvAa/976Vx3pwwifdGJ3u3HsjmmlCIEGinOewJMLDZG8XNqUfRnn+ELgfDX+0EwOJ1I2wnddT4gkc9W+tdSUeWclZVeM/XWgqkZsroeYk+i0gPhSC3oz57IM6WuCjo9sN9aGAIAV9obcP9LMFiBrMbwrA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729954096; c=relaxed/simple; bh=MWxPZ0rd0vQSSGb1OYfWrjEcHEmLMZBNRKOr3PUqu1U=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=KYhG/5x+W10nGlsmU4Nk/RkibtQsgE5CPiRQqbhuXRN9yYGhZdQ3iqX53CAvfgaZLcJ7T67fKhzOMu4upIj2Vp5ouFjNNdwOxzBavS2wUImi47TtPSbAi0KmQSKn+tN2w7HUf2VqvsfXtahy8Pb7S8NFOFiBDUzUru5ZKaKp6nE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=remote-tech.co.uk; spf=pass smtp.mailfrom=remote-tech.co.uk; dkim=pass (2048-bit key) header.d=remote-tech-co-uk.20230601.gappssmtp.com header.i=@remote-tech-co-uk.20230601.gappssmtp.com header.b=Bgr+Ftoq; arc=none smtp.client-ip=209.85.208.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=remote-tech.co.uk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=remote-tech.co.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=remote-tech-co-uk.20230601.gappssmtp.com header.i=@remote-tech-co-uk.20230601.gappssmtp.com header.b="Bgr+Ftoq" Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-5c9454f3bfaso3274823a12.2 for ; Sat, 26 Oct 2024 07:48:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=remote-tech-co-uk.20230601.gappssmtp.com; s=20230601; t=1729954093; x=1730558893; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=qC024lRJVAEmIHLuN+s83Hm+ef/1j+PPbHp473apDbA=; b=Bgr+FtoqNJnerTcO0wKkFHUGafd7/GJWb5Llvrz6rxduM3NbqZeqp/1Ln/YB/D7kSo 76MWFU9Qf40cfaT0Ge1wbbjUpLYViTrkdXERKh2BfnTp00umUlarme+RZFiIOXLkJ2Ya 9sjNiHBwqgQ+o4AFIDnvM37XpLeB+G/outCvghWxrS3wSwY9HZzkhBBkBpMXHvgGe1Rc oHGa38A+csgmP381YPbk76LwCBsQ4mHGeWjtkSYBiYPVcLu3IupjNEfziKDxV186n6/Q 6PwQoVEwrSSyBf6JyRMecu4K7M2G8dWYwhgt+IpHp7oaXTPCBvB1AxrjWiPimLx4fnTl kkkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729954093; x=1730558893; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=qC024lRJVAEmIHLuN+s83Hm+ef/1j+PPbHp473apDbA=; b=WV8Jf6i62KRGv/xmKbFKgPcdb/jv14o+65PxRXrozAbU6Cd/eUH+Hi+60nRjcSoK1W i8tHKMz1B6H4NkeZNpP9mlBb/G+qQR0qmX9KhWT6I/5LW6vU23fnTL2xhHefYKFhmu60 332vtSWyTSrJz189SkddEpWsCCrFAJhzbjeGCS27YuDGpCSwPghW3JT17d7yxDHMI7HC 8VuRlsujdiuTSXyIMDjio58TC1+zv1wQmpEMGSxnqfVygZNXefg0sAJOXnaulM+qvDcw rehORmU1liN/Yrm9C3cdkj1xU3KsFRWVfr93paqCTxnOo1KJTvKszOF4XYGIrHVm0vb9 XSXg== X-Forwarded-Encrypted: i=1; AJvYcCVt8U1P09aVNIjz7332QBzCaL5eYfHdwofrveHjamY3r/QzVF9HiGSeYxzIGFboOLFsCcNWvXtNL4AU@vger.kernel.org X-Gm-Message-State: AOJu0YwrvbMs/t1tm8jyWYWVhBVtTuE0I6NQn6O9l/GPTUxig1xjMHwR cSmjHcpc4M5DV0MI2mbv5hZ/5iRQgD8AAFeVuJ5XFPb+96DNy80yr94AheeJ2T54ByNVDmQSImL jx1l3VELeXSmvdkRUxuBqB3pK7RSDXxaTpnyFN5LL8306W79xeLHHbbUMn0pPRfOVd7F1D+K6U1 WwGmzzCbhi6nku9EDVaviQQw3bYCU5EP1VhK2IHw== X-Google-Smtp-Source: AGHT+IG4PpxrQduHWvKVj7/srrfd0iKQ4sb0Q12T19VO7aaWAAlCMAAaNmGu/B9Jn4rtQnFNhOISWA== X-Received: by 2002:a05:6402:1d50:b0:5c8:9548:f28b with SMTP id 4fb4d7f45d1cf-5cbbf8a6813mr2154556a12.11.1729954093244; Sat, 26 Oct 2024 07:48:13 -0700 (PDT) Received: from admins-Air ([2a02:810d:aec0:2a54:158c:1efa:f963:7401]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5cbb62c42c7sm1586799a12.51.2024.10.26.07.48.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Oct 2024 07:48:12 -0700 (PDT) Date: Sat, 26 Oct 2024 16:48:10 +0200 From: Vicentiu Galanopulo To: pavel@ucw.cz, lee@kernel.org, corbet@lwn.net, linux-leds@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 3/3] Documentation:leds: Add leds-st1202.rst Message-ID: Precedence: bulk X-Mailing-List: linux-leds@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline Add usage for sysfs hw_pattern entry for leds-st1202 Signed-off-by: Vicentiu Galanopulo Reviewed-by: Randy Dunlap --- Documentation/leds/leds-st1202.rst | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/leds/leds-st1202.rst diff --git a/Documentation/leds/leds-st1202.rst b/Documentation/leds/leds-st1202.rst new file mode 100644 index 000000000000..72286a512c69 --- /dev/null +++ b/Documentation/leds/leds-st1202.rst @@ -0,0 +1,36 @@ +.. SPDX-License-Identifier: GPL-2.0 + +============================================ +Kernel driver for STMicroelectronics LED1202 +============================================ + +/sys/class/leds//hw_pattern +-------------------------------- + +Specify a hardware pattern for the ST1202 LED. The LED +controller, implements 12 low-side current generators +with independent dimming control. Internal volatile memory +allows the user to store up to 8 different patterns. +Each pattern is a particular output configuration in terms +of PWM duty-cycle and duration (ms). + +To be compatible with the hardware pattern +format, maximum 8 tuples of brightness (PWM) and duration must +be written to hw_pattern. + +- Min pattern duration: 22 ms +- Max pattern duration: 5660 ms + +The format of the hardware pattern values should be: +"brightness duration brightness duration ..." + +/sys/class/leds//repeat +---------------------------- + +Specify a pattern repeat number, which is common for all channels. +Default is 1, other negative numbers and number 0 are invalid. + +This file will always return the originally written repeat number. + +When the 255 value is written to it, all patterns will repeat +indefinitely.