From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: [PATCH V1 1/4] qcom: spmi-wled: Add support for qcom wled driver Date: Fri, 15 Dec 2017 21:30:26 +0100 Message-ID: <20171215203026.GA19442@amd> References: <1510834717-21765-1-git-send-email-kgunda@codeaurora.org> <1510834717-21765-2-git-send-email-kgunda@codeaurora.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="x+6KMIRAuhnl3hBn" Return-path: Content-Disposition: inline In-Reply-To: <1510834717-21765-2-git-send-email-kgunda-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Kiran Gunda Cc: bjorn.andersson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Lee Jones , Daniel Thompson , Jingoo Han , Richard Purdie , Jacek Anaszewski , Rob Herring , Mark Rutland , Bartlomiej Zolnierkiewicz , linux-leds-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-fbdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-msm-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-leds@vger.kernel.org --x+6KMIRAuhnl3hBn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2017-11-16 17:48:34, Kiran Gunda wrote: > WLED driver provides the interface to the display driver to > adjust the brightness of the display backlight. >=20 > Signed-off-by: Kiran Gunda > --- > .../bindings/leds/backlight/qcom-spmi-wled.txt | 90 ++++ > drivers/video/backlight/Kconfig | 9 + > drivers/video/backlight/Makefile | 1 + > drivers/video/backlight/qcom-spmi-wled.c | 504 +++++++++++++++= ++++++ > 4 files changed, 604 insertions(+) > create mode 100644 Documentation/devicetree/bindings/leds/backlight/qcom= -spmi-wled.txt > create mode 100644 drivers/video/backlight/qcom-spmi-wled.c >=20 > diff --git a/Documentation/devicetree/bindings/leds/backlight/qcom-spmi-w= led.txt b/Documentation/devicetree/bindings/leds/backlight/qcom-spmi-wled.t= xt > new file mode 100644 > index 0000000..f1ea25b > --- /dev/null > +++ b/Documentation/devicetree/bindings/leds/backlight/qcom-spmi-wled.txt > @@ -0,0 +1,90 @@ > +Binding for Qualcomm WLED driver > + > +WLED (White Light Emitting Diode) driver is used for controlling display > +backlight that is part of PMIC on Qualcomm Technologies reference platfo= rms. > +The PMIC is connected to the host processor via SPMI bus. > + > +- compatible > + Usage: required > + Value type: > + Definition: should be "qcom,pm8998-spmi-wled". > + > +- reg > + Usage: required > + Value type: > + Definition: Base address and size of the WLED modules. > + > +- reg-names > + Usage: required > + Value type: > + Definition: Names associated with base addresses. should be > + "qcom-wled-ctrl-base", "qcom-wled-sink-base". > + > +- label > + Usage: required > + Value type: > + Definition: The name of the backlight device. > + > +- default-brightness > + Usage: optional > + Value type: > + Definition: brightness value on boot, value from: 0-4095 > + default: 2048 > + > +- qcom,fs-current-limit I'd add "-uA" suffix here. > + Usage: optional > + Value type: > + Definition: per-string full scale current limit in uA. value from > + 0 to 30000 with 5000 uA resolution. default: 25000 uA > + > +- qcom,current-boost-limit And -mA suffix here. Similar for other units. Thanks, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --x+6KMIRAuhnl3hBn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlo0MOIACgkQMOfwapXb+vJhwACfR1k70Lve5If7KoLwAZfAlQ2V 6z4AoI/uaT+pl3chUKAcZqRd9ytgPGt1 =wLJn -----END PGP SIGNATURE----- --x+6KMIRAuhnl3hBn-- -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932143AbdLOUao (ORCPT ); Fri, 15 Dec 2017 15:30:44 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:34444 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756374AbdLOUa3 (ORCPT ); Fri, 15 Dec 2017 15:30:29 -0500 Date: Fri, 15 Dec 2017 21:30:26 +0100 From: Pavel Machek To: Kiran Gunda Cc: bjorn.andersson@linaro.org, linux-arm-msm@vger.kernel.org, Lee Jones , Daniel Thompson , Jingoo Han , Richard Purdie , Jacek Anaszewski , Rob Herring , Mark Rutland , Bartlomiej Zolnierkiewicz , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-arm-msm-owner@vger.kernel.org Subject: Re: [PATCH V1 1/4] qcom: spmi-wled: Add support for qcom wled driver Message-ID: <20171215203026.GA19442@amd> References: <1510834717-21765-1-git-send-email-kgunda@codeaurora.org> <1510834717-21765-2-git-send-email-kgunda@codeaurora.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="x+6KMIRAuhnl3hBn" Content-Disposition: inline In-Reply-To: <1510834717-21765-2-git-send-email-kgunda@codeaurora.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --x+6KMIRAuhnl3hBn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2017-11-16 17:48:34, Kiran Gunda wrote: > WLED driver provides the interface to the display driver to > adjust the brightness of the display backlight. >=20 > Signed-off-by: Kiran Gunda > --- > .../bindings/leds/backlight/qcom-spmi-wled.txt | 90 ++++ > drivers/video/backlight/Kconfig | 9 + > drivers/video/backlight/Makefile | 1 + > drivers/video/backlight/qcom-spmi-wled.c | 504 +++++++++++++++= ++++++ > 4 files changed, 604 insertions(+) > create mode 100644 Documentation/devicetree/bindings/leds/backlight/qcom= -spmi-wled.txt > create mode 100644 drivers/video/backlight/qcom-spmi-wled.c >=20 > diff --git a/Documentation/devicetree/bindings/leds/backlight/qcom-spmi-w= led.txt b/Documentation/devicetree/bindings/leds/backlight/qcom-spmi-wled.t= xt > new file mode 100644 > index 0000000..f1ea25b > --- /dev/null > +++ b/Documentation/devicetree/bindings/leds/backlight/qcom-spmi-wled.txt > @@ -0,0 +1,90 @@ > +Binding for Qualcomm WLED driver > + > +WLED (White Light Emitting Diode) driver is used for controlling display > +backlight that is part of PMIC on Qualcomm Technologies reference platfo= rms. > +The PMIC is connected to the host processor via SPMI bus. > + > +- compatible > + Usage: required > + Value type: > + Definition: should be "qcom,pm8998-spmi-wled". > + > +- reg > + Usage: required > + Value type: > + Definition: Base address and size of the WLED modules. > + > +- reg-names > + Usage: required > + Value type: > + Definition: Names associated with base addresses. should be > + "qcom-wled-ctrl-base", "qcom-wled-sink-base". > + > +- label > + Usage: required > + Value type: > + Definition: The name of the backlight device. > + > +- default-brightness > + Usage: optional > + Value type: > + Definition: brightness value on boot, value from: 0-4095 > + default: 2048 > + > +- qcom,fs-current-limit I'd add "-uA" suffix here. > + Usage: optional > + Value type: > + Definition: per-string full scale current limit in uA. value from > + 0 to 30000 with 5000 uA resolution. default: 25000 uA > + > +- qcom,current-boost-limit And -mA suffix here. Similar for other units. Thanks, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --x+6KMIRAuhnl3hBn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlo0MOIACgkQMOfwapXb+vJhwACfR1k70Lve5If7KoLwAZfAlQ2V 6z4AoI/uaT+pl3chUKAcZqRd9ytgPGt1 =wLJn -----END PGP SIGNATURE----- --x+6KMIRAuhnl3hBn-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Date: Fri, 15 Dec 2017 20:30:26 +0000 Subject: Re: [PATCH V1 1/4] qcom: spmi-wled: Add support for qcom wled driver Message-Id: <20171215203026.GA19442@amd> MIME-Version: 1 Content-Type: multipart/mixed; boundary="x+6KMIRAuhnl3hBn" List-Id: References: <1510834717-21765-1-git-send-email-kgunda@codeaurora.org> <1510834717-21765-2-git-send-email-kgunda@codeaurora.org> In-Reply-To: <1510834717-21765-2-git-send-email-kgunda-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org> To: Kiran Gunda Cc: bjorn.andersson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org, linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Lee Jones , Daniel Thompson , Jingoo Han , Richard Purdie , Jacek Anaszewski , Rob Herring , Mark Rutland , Bartlomiej Zolnierkiewicz , linux-leds-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-fbdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-msm-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org --x+6KMIRAuhnl3hBn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2017-11-16 17:48:34, Kiran Gunda wrote: > WLED driver provides the interface to the display driver to > adjust the brightness of the display backlight. >=20 > Signed-off-by: Kiran Gunda > --- > .../bindings/leds/backlight/qcom-spmi-wled.txt | 90 ++++ > drivers/video/backlight/Kconfig | 9 + > drivers/video/backlight/Makefile | 1 + > drivers/video/backlight/qcom-spmi-wled.c | 504 +++++++++++++++= ++++++ > 4 files changed, 604 insertions(+) > create mode 100644 Documentation/devicetree/bindings/leds/backlight/qcom= -spmi-wled.txt > create mode 100644 drivers/video/backlight/qcom-spmi-wled.c >=20 > diff --git a/Documentation/devicetree/bindings/leds/backlight/qcom-spmi-w= led.txt b/Documentation/devicetree/bindings/leds/backlight/qcom-spmi-wled.t= xt > new file mode 100644 > index 0000000..f1ea25b > --- /dev/null > +++ b/Documentation/devicetree/bindings/leds/backlight/qcom-spmi-wled.txt > @@ -0,0 +1,90 @@ > +Binding for Qualcomm WLED driver > + > +WLED (White Light Emitting Diode) driver is used for controlling display > +backlight that is part of PMIC on Qualcomm Technologies reference platfo= rms. > +The PMIC is connected to the host processor via SPMI bus. > + > +- compatible > + Usage: required > + Value type: > + Definition: should be "qcom,pm8998-spmi-wled". > + > +- reg > + Usage: required > + Value type: > + Definition: Base address and size of the WLED modules. > + > +- reg-names > + Usage: required > + Value type: > + Definition: Names associated with base addresses. should be > + "qcom-wled-ctrl-base", "qcom-wled-sink-base". > + > +- label > + Usage: required > + Value type: > + Definition: The name of the backlight device. > + > +- default-brightness > + Usage: optional > + Value type: > + Definition: brightness value on boot, value from: 0-4095 > + default: 2048 > + > +- qcom,fs-current-limit I'd add "-uA" suffix here. > + Usage: optional > + Value type: > + Definition: per-string full scale current limit in uA. value from > + 0 to 30000 with 5000 uA resolution. default: 25000 uA > + > +- qcom,current-boost-limit And -mA suffix here. Similar for other units. Thanks, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --x+6KMIRAuhnl3hBn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlo0MOIACgkQMOfwapXb+vJhwACfR1k70Lve5If7KoLwAZfAlQ2V 6z4AoI/uaT+pl3chUKAcZqRd9ytgPGt1 =wLJn -----END PGP SIGNATURE----- --x+6KMIRAuhnl3hBn--