Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1481426imm; Fri, 7 Sep 2018 00:37:42 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbE6NcirAxVkdVMutf1iSKnuzcfl5Ig2AZDUEJHGsuhBzsZFnpOyM0aosjR7Xraa/YL94VM X-Received: by 2002:a17:902:bccb:: with SMTP id o11-v6mr6548022pls.167.1536305862795; Fri, 07 Sep 2018 00:37:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536305862; cv=none; d=google.com; s=arc-20160816; b=Eh+oHM+fJoiHfNkAcYf9XTp4NU1mh7+g9x4ulBXAgykW0v63C/vXyP59Px5VCFU6rU W8L9YDtlk6b0YK2MVn1y1+TtgJtrTi15BbEolIviIbWWAnbKi8HFdjBNjR5+/7yuHfhU 0Vhosap0QjnQqVvMMwepCCnkNKyEaeJVBV6z5adDzyoKivA4uw+lHTTZHLdMykWFusOW 5wRYfzLAOPLwJDxCKtLgfDG3KWP4w5k77NrzcUsGlSNyUHxzGlAdP1hI/NI+OzweVoe7 E98azL9GRbDhp5+vjgYWcfJm4tue1d+tz5DZ5VPP6Pi7Vs9BSdEVRDlW9zy6dNtxgIsh FwrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=mR+AU5q+QBbBcCrzAYCzvZUVzOsfMbEbzG8DM3WZaTQ=; b=velzugwee+0GEZE5B1nL8LKdxqEnA4OuAiXwUUALMdRebec6bUj0degK/JVVhjH0t7 MWn8byu6vq3cTGWptGabeDsL769DtXjONcKYKE7Yot3bjS8BzD7U9Ydn93m0E8DIGcHi 9ulH5nKGDRwa2LzlqvoP8YuzPdEkRqj0mTEVJv3hNx5rlabaDlTeT3eYHJWgsJ8GgWX3 A1AAJnZwbW1YqbCI8mXFRtdZCwtzpOPwbDJ+rV5URBgtYKR2KsXDBat5FikGsXdKZJqD 5YynY+r+afK0+3ATBWCxheTZPil14EwV1K4BYLozqKsgg/5UUz3j4ZnzWDHy6kFm5NPZ CTaw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u2-v6si7100687pge.585.2018.09.07.00.37.27; Fri, 07 Sep 2018 00:37:42 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727780AbeIGMOI (ORCPT + 99 others); Fri, 7 Sep 2018 08:14:08 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:45261 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725987AbeIGMOI (ORCPT ); Fri, 7 Sep 2018 08:14:08 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 3DB068057A; Fri, 7 Sep 2018 09:34:28 +0200 (CEST) Date: Fri, 7 Sep 2018 09:34:27 +0200 From: Pavel Machek To: Jacek Anaszewski Cc: bjorn.andersson@linaro.org, Baolin Wang , rteysseyre@gmail.com, broonie@kernel.org, linus.walleij@linaro.org, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 1/2] leds: core: Introduce LED pattern trigger Message-ID: <20180907073427.GA21515@amd> References: <20180903215323.GA21489@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4Ckj6UjgE2iN1+kY" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --4Ckj6UjgE2iN1+kY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > +What: /sys/class/leds//hw_pattern > +Date: September 2018 > +KernelVersion: 4.20 > +Description: > + Specify a hardware pattern for the SC27XX LED. For the SC27XX > + LED controller, it only supports 4 hardware patterns to configure > + the low time, rise time, high time and fall time for the breathing > + mode, and each stage duration unit is 125ms. So the format of > + the hardware pattern values should be: > + "brightness_1 duration_1 brightness_2 duration_2 brightness_3 > + duration_3 brightness_4 duration_4". >=20 > In this case low time and high time can be easily described with > use of the proposed [brightness delta_t] tuples. It is not equally > obvious in case of rise time and fall time. >=20 > I can imagine hw pattern that would require defining blink rate > over period of time, or blink rate during rise/fall time - in the > latter case we would have odd number of pattern components. Probably > it wouldn't be a big deal, we'd need one "padding" value, but still > there's room for improvement IMHO. Well, you can describe blinking while rising, it is just going to be awkward as you'll need to give precise times/brightnesses for each blinking, and pattern will become long. I'm sure some hardware can do that (the led in N900 can compute prime numbers, it can blink while changing brightness, too). OTOH people tend to use pretty simple patterns on their LEDs, so we should be fine. Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --4Ckj6UjgE2iN1+kY Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAluSKgMACgkQMOfwapXb+vJHZQCdHkw3PCEI++F00tF072ZG8acW FmYAn1+4tte5d45a2/fz/fl+ExAUNs9x =sKiP -----END PGP SIGNATURE----- --4Ckj6UjgE2iN1+kY--