From nobody Mon Feb 9 22:59:49 2026 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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 4512A1FBC94 for ; Wed, 18 Dec 2024 18:34:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734546853; cv=none; b=X7TErdubum8h4oGS/v3WOu8oGtC2EjAX87HBSJVam7tvXN0KyYoIf4upuwinqsQKkLPl1DzZmu613tjLH/l7CIjOnqiBqJ4KVwLDjovENBR1m6Pn+xkLwasSsiohR85HHRwWJ8CXr9LPdJiMzgBLS3z6kuoVoeoIOmXzl0yJkgc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734546853; c=relaxed/simple; bh=U8PM7OFW1gKiR8tXuTfMQZQozHR9qO5pl1a1dCYeUcQ=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=soqWzai+yS6eSQIg09tZyUzB5XrrNox9XDFycknJ1RT3wzwrBT6M6/xz5KJnloQ/GrWp1jf9SyPAiWx3maQwhpsaAGFa0QYhCRrMiuLIcxl9LT3/55Lgv/9J1qu/vM7RSeTrkNDdmnmRoXjosyGW477T0j3l6QvEIvzv2fTQaf4= 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=dAPkBYvf; arc=none smtp.client-ip=209.85.218.53 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="dAPkBYvf" Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a9a0ec0a94fso1076118466b.1 for ; Wed, 18 Dec 2024 10:34:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=remote-tech-co-uk.20230601.gappssmtp.com; s=20230601; t=1734546849; x=1735151649; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=FpTyr3pOeqBd4fVeHV4awepAm1kO5/z7MbR3xj/v4EU=; b=dAPkBYvfM52gDlSCOSrRTowFOZOa8EYFtX6oh5U8kZlrNNrA0c9A5MlN9kuEnlggt4 rD1AqIyldC+gl6J+jMRyH5taWFtAUOZg2jvtyOPTdt9xDRCgM2SP4Cqj/bgXl5eySIoZ ADQXoWC+B1vD79I21wShJYom7Hs7OxU4P+VPWJExwWjdYHNSui5ciLkHJpaY2p/a9Ypt /aDh6VOxqC5b5uj+oYbITaGAdqQWEOg2Fz/tcdQ4Wale/pLQiGw5q44P4dJMRDyTlVjm IouaMxsrZ1GIQjkYnpg4nISl7QrsTFXP61LC4Sg3niA5F27yOoMkxgzamQin7gSgQOvg 7Mog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734546849; x=1735151649; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=FpTyr3pOeqBd4fVeHV4awepAm1kO5/z7MbR3xj/v4EU=; b=RW5fSLA3OwAwkIM75oKYr6RdNjEwe/650Cum25M/pueohGuoUgUSZJrBpeQv/m7vSO MJBbZtNWisrJnjpcq+BjulbvgEp61wiKaVy2c25D0LbnwgIxBacNFLbHHIzcQRXWQj+a /+RDob0AUK8xmQ6e4svvapARc1oxF/wDHVpsNSLfBCJXdKRaKIGOfmF3jUV02hGnF+gd 8jXzAct/1THcc/p9DGmzgJFS3SY05J2n4k9bVKN0F337C96pc/OxWh62S5Zb/Uetcs1K vANhgTHuNeTrtbfQjpWU/WwFHfYztUvTfeuGw0imILkcFCYXjoXKBjAuN/mkfF2Q3kKQ lHRA== X-Forwarded-Encrypted: i=1; AJvYcCVZWjbLjd6Y1F46K+916m61aaH+Cw+OpEXh68KhX+WotT38ZureBXNzadWWkYpJRfLxNAUjSGpgljiQ2to=@vger.kernel.org X-Gm-Message-State: AOJu0YyDdDFXhU9HLIPOFjO97MCpuTRItzM8Lne0NuEavslEyswIr9GU 6ibJYC1cnYXWUZc2cjD0bKs02BP/dGUC+/BFsX3HLvoSAUEYGs5byvYmSvdfTQnU8+5NL79LgO0 Oxx/CqvvStP7tdFxkWw5savXXiQxFdGzLv0YyMaGaWJ8tzPXpTTQVuEk0W64+QzJkGyVsmD16Et LZ4Glz2n5fV5hvJHF32zKuI376oTQ= X-Gm-Gg: ASbGnctxVlTSpZjFevZc1rBP7IFMFTMnX/BnvQGHTCglLyVyyMc514EjOZD582C8h3+ t1SUbfBxbpuowk8zhi2VR3PtYx6kohC5x/+TU3m5DaIitURNQcLKSZxSS5jLYUJowHXVO2422l+ WbYOOxI681L7INQR1xhHXOFYDMeQbaLOGZFT3w6P8yq01OBiT9jdASXCB8CsGbspWSgf59kpb1r EWpTnGY2KsL6tzg/6gtPJv1YBpvxddRe3A1hCp17UkJv/HGHcjKu2kYaDqo7wGOHtQNFOCUsuih 1lq/9Adjf/1W6AIe4HNFOji29ghqbVDyQ6h3LL1D26sl5I1zt1DHRNOLouhBHnhH5eNCxF45BTY n X-Google-Smtp-Source: AGHT+IH2PWkcdNyGTKokJaUWWhT0r1CKLpFl11CxYkcaFXYiJrP3t69tY7W2UAINnz6wjr2BPUp2mA== X-Received: by 2002:a17:907:7817:b0:aa6:6885:e2f0 with SMTP id a640c23a62f3a-aabf48f7236mr333656066b.46.1734546848513; Wed, 18 Dec 2024 10:34:08 -0800 (PST) Received: from localhost.localdomain (ipb21b247d.dynamic.kabel-deutschland.de. [178.27.36.125]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-aab9638ec53sm583873366b.156.2024.12.18.10.34.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Dec 2024 10:34:08 -0800 (PST) From: Vicentiu Galanopulo To: Pavel Machek , Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , Vicentiu Galanopulo , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH v11 1/3] Documentation:leds: Add leds-st1202.rst Date: Wed, 18 Dec 2024 18:33:57 +0000 Message-Id: <20241218183401.41687-2-vicentiu.galanopulo@remote-tech.co.uk> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241218183401.41687-1-vicentiu.galanopulo@remote-tech.co.uk> References: <20241218183401.41687-1-vicentiu.galanopulo@remote-tech.co.uk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add usage for sysfs hw_pattern entry for leds-st1202 Signed-off-by: Vicentiu Galanopulo --- - Changes in v4: Update format (line wrapping) for leds-st1202.rst - Changes in v3: Add leds-st1202 to index.rst - Changes in v2: Implement review comments Documentation/leds/index.rst | 1 + Documentation/leds/leds-st1202.rst | 34 ++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 Documentation/leds/leds-st1202.rst diff --git a/Documentation/leds/index.rst b/Documentation/leds/index.rst index 3ade16c18328..0ab0a2128a11 100644 --- a/Documentation/leds/index.rst +++ b/Documentation/leds/index.rst @@ -28,4 +28,5 @@ LEDs leds-mlxcpld leds-mt6370-rgb leds-sc27xx + leds-st1202.rst leds-qcom-lpg diff --git a/Documentation/leds/leds-st1202.rst b/Documentation/leds/leds-s= t1202.rst new file mode 100644 index 000000000000..1a09fbfcedcf --- /dev/null +++ b/Documentation/leds/leds-st1202.rst @@ -0,0 +1,34 @@ +.. SPDX-License-Identifier: GPL-2.0 + +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +Kernel driver for STMicroelectronics LED1202 +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +/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; negative numbers and 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. --=20 2.39.3 (Apple Git-145)