Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1058461imm; Thu, 6 Sep 2018 14:44:28 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZr/70kujE39bGzXE9w3n17CG5pp2L2H8niuSK+3PdOZDsU/MvSkw0YlRahYyE4fCVft1Sw X-Received: by 2002:a63:d343:: with SMTP id u3-v6mr5002844pgi.420.1536270268152; Thu, 06 Sep 2018 14:44:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536270268; cv=none; d=google.com; s=arc-20160816; b=AdDRxqGO3bypx4TWXjXoYbHgzRqGcIuBYdmRuoZNnLN5dAQA5GZ7NT4rHyT1MpAjqh 1xlRvEN65KfFyCn3uE3DJlOzJ2Ko6se4XVOsB34A3LL1v7OEM6RqgddnH8HKWrpHMEIU YZw1ATbh74PUlI2s2Fi4SPjO0iVHL8gXny8GBKI6Na4t4KT98+ekmtyIgUaKDoD/g4qI mHvLvsjmTdMxnChlBH6YaBQXQpxO0Fy7v15Zyf53mHButKTxbdwQDv8FLg17eIUbFJ64 K274iy5BzaQqM+M4n1+Fo4DPCW+K1DhSxkDK9ZfcXrGvp7zkr0iCC7FuBX/umX1vGdW/ NlIQ== 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=8Oc3xXtiIaV/4o3aQsit7/gv5QFVlS5vinD7hrx+3IM=; b=e2UMZrawOG7X1IKwH0CFuWevJG5jzLH7K6SGrGPcca/lOfycVtXv5iYK8VpASth51G yqGU28KNifTxyJWq6tpfIB1JvdVAaQ9JpWb9q/ai0xofX9DawHsMvo06mSOg0ojImUEX c6hwJrRFQjxWVQ0Bt8QelQ1Sz5k9vo4XC5UkJ6AOBTE5SMwejbjDIYoJYSacjqtZ2eYH F4ErQxrVlGJuluLxydw0sNdlUXBlrAI8fatPZVjQTJun3bZ5mNxGhN+h81DtWcOq1M8M AKAX42y7eODkeIVXf75RQk5oo566659jFjP0Rp+fPTCB37nCSP+z5Dimq3sPJMX8QmW9 ek1w== 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 e10-v6si6676142pgl.554.2018.09.06.14.44.12; Thu, 06 Sep 2018 14:44:28 -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 S1728578AbeIGBx2 (ORCPT + 99 others); Thu, 6 Sep 2018 21:53:28 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:59741 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728425AbeIGBx2 (ORCPT ); Thu, 6 Sep 2018 21:53:28 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id BA7DB805A3; Thu, 6 Sep 2018 23:16:06 +0200 (CEST) Date: Thu, 6 Sep 2018 23:16:05 +0200 From: Pavel Machek To: Baolin Wang Cc: jacek.anaszewski@gmail.com, rteysseyre@gmail.com, bjorn.andersson@linaro.org, broonie@kernel.org, linus.walleij@linaro.org, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v10 2/2] leds: sc27xx: Add pattern_set/clear interfaces for LED controller Message-ID: <20180906211605.GA16899@amd> References: <5a502ec29251c019ddad8f3314ab45fc0f6feaf7.1536200860.git.baolin.wang@linaro.org> <975a9570c75fb4469c0cef55cc9ed42266f933af.1536200860.git.baolin.wang@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yrj/dFKFPuw6o+aM" Content-Disposition: inline In-Reply-To: <975a9570c75fb4469c0cef55cc9ed42266f933af.1536200860.git.baolin.wang@linaro.org> 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 --yrj/dFKFPuw6o+aM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > diff --git a/Documentation/ABI/testing/sysfs-class-led-driver-sc27xx b/Do= cumentation/ABI/testing/sysfs-class-led-driver-sc27xx > new file mode 100644 > index 0000000..d8056d5 > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-class-led-driver-sc27xx > @@ -0,0 +1,22 @@ > +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 stages to make a single > + hardware pattern, which is used to configure the rise time, > + high time, fall time and low time for the breathing mode. > + > + For the breathing mode, the SC27XX LED only expects one brightness > + for the high stage. To be compatible with the hardware pattern > + format, we should set brightness as 0 for rise stage, fall > + stage and low stage. > + > + Min stage duration: 125 ms > + Max stage duration: 31875 ms > + > + Since the stage duration step is 125 ms, the duration must be > + a multiplier of 125, like 125ms, 250ms, 375ms, 500ms ... 31875ms. > + > + Thus the format of the hardware pattern values should be: > + "0 rise_duration brightness high_duration 0 fall_duration 0 low_durati= on". If I'm not mistaken, this is: "0 rise_duration brightness high_duration brightness fall_duration 0 low_duration". Right? With that fixed: Acked-by: Pavel Machek And... thanks! Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --yrj/dFKFPuw6o+aM Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAluRmRUACgkQMOfwapXb+vICHgCgtiOu/xFEJVBwfeVTAq9LGsrM l3wAn3pxOT5EToHJ3ttCATrg66GJJ3Bu =t3ro -----END PGP SIGNATURE----- --yrj/dFKFPuw6o+aM--