From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (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 114231E1A23 for ; Wed, 30 Oct 2024 22:09:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730326173; cv=none; b=fjeEi8QNnlTTJdOrUmxXpzpDcxiyhQnFVFTH9QCBSK0TShY7EBh7WTYVGcSn1xiN8dQIgh+eeVR9qx1ORAKSIK3sfXe67HFxJhkCWSVmE0xKkikIE24fCpDI920iMdCPdSpbw+zrw4PqCRK+qs/dODoG67q27wa4Qej64gq6drg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730326173; c=relaxed/simple; bh=Ltt+XpbOguZtHhRaLk0cqD3UhmeBc7tolLZVy38OA/M=; h=Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JAZKWXv6eze5mXwZbb1e4PxYYdhA450rRVS34J/LNfDwQkGE7KXsgEEdgjpvhnKIfH6O68npJtBM3moT5P4LBHzWYJufDzeocwALuCFeGTnFS41nBOhCQO6MCoNaSmSv3nGvvNmsLJp5P2ROMY4F9HQWtXyj1okmZHAgeUAHyXw= 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=1FOUuXsc; arc=none smtp.client-ip=209.85.208.50 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="1FOUuXsc" Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-5c9428152c0so473245a12.1 for ; Wed, 30 Oct 2024 15:09:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=remote-tech-co-uk.20230601.gappssmtp.com; s=20230601; t=1730326169; x=1730930969; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=6+DBVSPzDCfzgckI9Hf2ncvKjBb1Zed+3V8RCmYtGgI=; b=1FOUuXscxDTDgW32c6HAh0EAyBSgIEcdvMPpthkd6dM8Ow0CueGZ84VtxryvpU+UNz VyttD6wJiEfuHxj+wF5G+AlTzQ0JRP41plQyr/GezTMYKhSlWVTNLCiPGsZ2P5FkpcqV AuAv+9IJDDNiLe55NezH+8oc6qBuTSc3VVOdscLgfkv+XY5utTSJkPpbKTvCWFW3PPK1 rFtWT83QB8QlH0kOuEhRdgZBN5+wsmylOv+NWWUlbk8TGuzUaviEyMr2UQkYEXLolWfj spqZDHtW+YWMnTh/K7M/u6yjB14RANLyoyh1eJ5/bqXG0EQm6GE9TLMeHU7vt1OsXgKc 01cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730326169; x=1730930969; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=6+DBVSPzDCfzgckI9Hf2ncvKjBb1Zed+3V8RCmYtGgI=; b=DbikETTc2IH+5c/7VhaaXF3dQU4o52ntz2xHk2TDBbw4qI0wy3HjxW0xXqrxogmLYf /Pm/odV8taCQO8SirnCEwKe2k3cCvbNM7vK5e1gB3hYBDIfcdmjhOp0aUaaOM8Hfq+6R Corat7bXVJhz3BWeRBSYkZEKdWCwNqJXi/AterB6ueWR6F14QO/noi6GR4lOO7hc/P/e lX1Jh33z42BdjxHFkcxLCV5MaDaC3uj/XB5rItRvtrk5UKp597YwsZ4yTSQiSxU4XxhK SU1bxzyckyYDJw5LHxING1S1K8aFkvT3/GLozvyyT/5oCO5sON0bqT2WNmU8bhMeLF6A w0tQ== X-Forwarded-Encrypted: i=1; AJvYcCVMmdD9IAqrPo5qilZlgVPLn8bMU/WreDT+p4OcgzJcLNVnYbxWowbjBmfTaHxJ2ba6L9satAf3ltRnmOs=@vger.kernel.org X-Gm-Message-State: AOJu0YzTdPDSl7wtbNynU5Yxv9EU+Z3eM9IHhN05DDE6vb1mqpHVhWkP eFXgUqTgOoDCHgqX4uX268Pm8TwMGQz5ftXdg1QW0CPthcU+37jFCSgvBlSEwwaJaGxZQJfu/x+ i7ozO9yjdibsmSxnzkN8r+zovjhCuyV0yo/NpMH+G7BizZKO+Ctpk8HwHfkj60CFHZkigSrMPIs PoTK1zCkyQn5nMrHrVOtpXsN1MNHE= X-Google-Smtp-Source: AGHT+IFNLkuBk0iSxb8AnXq6Mo/o2HQPCizOUnh7XgQgMnbveMrAhTQAkzEgMArbjMWP4Pvn4l3BNw== X-Received: by 2002:a17:907:3f9d:b0:a9a:1160:993 with SMTP id a640c23a62f3a-a9de5c91c9dmr1827906666b.8.1730326169278; Wed, 30 Oct 2024 15:09:29 -0700 (PDT) Received: from admins-Air ([2a02:810d:aec0:2a54:78f0:a911:7b11:40a4]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9e56698e06sm2683366b.225.2024.10.30.15.09.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Oct 2024 15:09:28 -0700 (PDT) Date: Wed, 30 Oct 2024 23:09:25 +0100 From: Vicentiu Galanopulo To: rdunlap@infradead.org, 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: Re: [PATCH v1 3/3] Documentation:leds: Add leds-st1202.rst Message-ID: References: <0ae13ad4-342a-48ca-bd7a-8f15f6d99504@infradead.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0ae13ad4-342a-48ca-bd7a-8f15f6d99504@infradead.org> Hi Randy, Thanks for the review. Addressed all comments. Signed-off-by: Vicentiu Galanopulo --- Changes in v2: Implement review comments 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; 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. -- 2.39.3 (Apple Git-145)