From 79111f8e3924c17b819b505cbcda74da98e3dabd Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Thu, 20 May 2021 12:17:53 +0800 Subject: [PATCH] arm/dt: backlight: Add ti lm3697 backlight ic configs Porting of (CR) arm/dt: Add ti lm3697 backlight ic configs. Change-Id: Ie26b0a743008b1688be1867d316911c9c2292d24 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1954961 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Ying Xu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key Signed-off-by: Robert Cabral Reviewed-on: https://gerrit.mot.com/1964498 --- qcom/bengal-leds-lm3697.dtsi | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 qcom/bengal-leds-lm3697.dtsi diff --git a/qcom/bengal-leds-lm3697.dtsi b/qcom/bengal-leds-lm3697.dtsi new file mode 100644 index 000000000000..73c1394e2f57 --- /dev/null +++ b/qcom/bengal-leds-lm3697.dtsi @@ -0,0 +1,35 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&qupv3_se1_i2c { + status = "ok"; + + lm3697-bl@37 { + compatible = "ti,lm3697"; + reg = <0x37>; + + enable-gpios = <&pmi632_gpios 6 0>; + backlight { + compatible = "ti,lm3697-backlight"; + lcd { + led-sources = <0 1 2>; + ramp-up-msec = <200>; + ramp-down-msec = <200>; + pwm-period = <0>; + default-brightness-level = <255>; + }; + }; + fault-monitor { + compatible = "ti,lm3697-fault-monitor"; + }; + }; +};