Received: by 10.192.165.148 with SMTP id m20csp5589290imm; Wed, 9 May 2018 07:26:21 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoabNVu6kbFxcYQpkPTp2rjtIaYK3yzgE9TjCNN8nPz9D9a51D6fb+EPZz9KMd8d1DBzCH5 X-Received: by 2002:a63:6bc7:: with SMTP id g190-v6mr1915248pgc.230.1525875981578; Wed, 09 May 2018 07:26:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525875981; cv=none; d=google.com; s=arc-20160816; b=hthtGRnfU6d401bkFDZGULCZ5MidlyloZ615pUzFl7+2crIgOdH8JZaufTjQ4+EBUZ fH63a08eU6tB8Kwt9HVT/AX0P4EK7ltdIqty9isfy/XJ9j6zl2kKDWkheBSxBxcKvz9l uvIhSNlDzkqEYjfwwalKtW6AmBkYgDjZIHB7nqSLrLjG6zLbT52NZWqx+Pj120giTZCk R89kIIOL9p34byyCgji2wMSQsPq57sD1ypBuCbEXHxYRDlMqFf3bHr96AQF7Ap4ZghNZ VvmH/nn2xYDw2jzNqFBuz0fDJfm/WA78Qo0GLZs8S/BTueNWaAd5axbct7KKTw60slCe 3wuA== 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:arc-authentication-results; bh=+9XnKhXvZFlHjXT3+M18yf0kdeMDX8+/T01jFzK+eWk=; b=i4/JFImM9kZZ/BcV/kBQeK6XxqwvVWdSmcJ0DXtyfXXtRjwj+tY/5j1228wbJ/hklf yco4khw4Zr9dy8XHjtEzu0iJSc5mSFaZuhxxIi4FeP3O4WmaktHa2S/ODxYCm9lBYHtX 49P8qNQoCkZ1UnohB8iuB1O5ERrpewqlh390OkNLBJ/OkNcR++880549YdIuYXO6+TpT oOfmNMLN6Al6RQxKVSNHLMUyLfiMXIIfvxdiPX9FDOFOqwawcDGbsq+Zuu1hIF0ZBnI9 AmzyUdCpU4ofr+vu4dWPoDO+VB6tp4cdMtbIryIetwCoKJqe2vCrLvtyumAadORc0ZfZ 1G4Q== 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 f96-v6si26284277plb.418.2018.05.09.07.26.03; Wed, 09 May 2018 07:26:21 -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 S935058AbeEIOZm (ORCPT + 99 others); Wed, 9 May 2018 10:25:42 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:58161 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933887AbeEIOZl (ORCPT ); Wed, 9 May 2018 10:25:41 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id ADFF580246; Wed, 9 May 2018 16:25:39 +0200 (CEST) Date: Wed, 9 May 2018 16:25:39 +0200 From: Pavel Machek To: Baolin Wang Cc: jacek.anaszewski@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, xiaotong.lu@spreadtrum.com, broonie@kernel.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] leds: Add Spreadtrum SC27xx breathing light controller driver Message-ID: <20180509142539.GB25131@amd> References: <9a2a07b8eb313ae3ba64af911337ee7ff7c9ad43.1525757122.git.baolin.wang@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JP+T4n/bALQSJXh8" Content-Disposition: inline In-Reply-To: <9a2a07b8eb313ae3ba64af911337ee7ff7c9ad43.1525757122.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 --JP+T4n/bALQSJXh8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue 2018-05-08 13:39:45, Baolin Wang wrote: > From: Xiaotong Lu >=20 > This patch adds Spreadtrum SC27xx PMIC series breathing light controller > driver, which can support 3 LEDs. Each LED can work at normal PWM mode > and breathing mode. >=20 > 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..22166fb > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-class-led-driver-sc27xx > @@ -0,0 +1,19 @@ > +What: /sys/class/leds//rise_time > +What: /sys/class/leds//high_time > +What: /sys/class/leds//fall_time > +What: /sys/class/leds//low_time > +Date: May 2018 > +KernelVersion: 4.18 > +Contact: Xiaotong Lu > +Description: > + Set the pattern generator rise, high, fall and low > + times (0..63). It's unit is 0.125s, it should be > 0. > + > + 1 - 125 ms > + 2 - 250 ms > + 3 - 375 ms > + ... > + ... > + ... > + 62 - 7.75 s > + 63 - 7.875 s How does this interact with triggers? With manually setting brightness? Are the pattern generators independend for the LEDs? Can you generate white breathing pattern? If so, how? How do you select between normal and breathing modes? I'd specify times in miliseconds or something, this is way too hardware specific. Now... functionality like this is common between many LED controllers. N900 could do this kind of "breathing", too, and it also supports other patterns. I believe we need interface common between different LED controllers. And I guess it would be easiest if you dropped this part from initial merge. Thanks and best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --JP+T4n/bALQSJXh8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlrzBOMACgkQMOfwapXb+vJ6AgCgntQ+iS7NFuZ6HniFO9sNh7eS gyYAoJvq31PEZSnLU83UWVqOv700hzMp =dNHU -----END PGP SIGNATURE----- --JP+T4n/bALQSJXh8--