mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
dts/milanf-display: update the configuration of backlight
1. enable exponential mode
2. enable bl current align for lm3697
3. add the virtual I2c device addr(0x35) for lm3697,
and set the right I2c device addr at code.
Change-Id: I0440a1ada8b8db8f4b24ad4c4674e6e1aaa7e17f
Signed-off-by: houdz1 <houdz1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2093226
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Reviewed-by: Guobin Zhang <zhanggb@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
parent
540d1b8f1e
commit
e7e25164df
1 changed files with 30 additions and 21 deletions
|
|
@ -182,28 +182,35 @@
|
|||
&qupv3_se10_i2c {
|
||||
status = "ok"
|
||||
|
||||
lcd_backlight@36 {
|
||||
compatible = "awinic,aw99703-bl","ti,lm3697";
|
||||
reg = <0x36>;
|
||||
lcd_backlight@36 {
|
||||
compatible = "awinic,aw99703-bl";
|
||||
reg = <0x36>;
|
||||
|
||||
/* Awinic, aw99703 */
|
||||
aw99703,hwen-gpio = <&tlmm 13 0>;
|
||||
aw99703,bl-map = <3>; /* brightness map level 1:256,2:1024,3:2048 */
|
||||
aw99703,using-lsb;
|
||||
aw99703,ovp-level = <2>; /* 31V */
|
||||
aw99703,ocp-level = <1>; /* 1.8A */
|
||||
aw99703,switch-freq = <1>; /* 1000kHz(default) */
|
||||
aw99703,auto-freq-high = <0x10>;
|
||||
aw99703,auto-freq-low = <0x05>;
|
||||
aw99703,bl-fscal-led = <0x19>; /* 24.8mA */
|
||||
aw99703,bl-channel = <3>;
|
||||
aw99703,turn-on-ramp = <0x09>; /* 256ms */
|
||||
aw99703,turn-off-ramp = <0x04>; /* 8ms */
|
||||
aw99703,pwm-trans-dim = <0>; /* 2ms */
|
||||
aw99703,i2c-trans-dim = <0x07>; /* 512ms */
|
||||
aw99703,pwm-mode = <1>; /* 1 pwm enable,0 PWM disable */
|
||||
aw99703,map-type = <1>; /* linear */
|
||||
aw99703,work-mode = <1>; /* backlight */
|
||||
aw99703,hwen-gpio = <&tlmm 13 0>;
|
||||
aw99703,bl-map = <3>; /* brightness map level 1:256,2:1024,3:2048 */
|
||||
aw99703,using-lsb;
|
||||
aw99703,ovp-level = <2>; /* 0:17.5V, 1:24V, 2:31V, 3:38V, 4:41.5V */
|
||||
aw99703,ocp-level = <1>; /* 0:0.9A, 1:1.8A, 2:2.7A, 3:3.4A */
|
||||
aw99703,switch-freq = <1>; /* 1000kHz(default) */
|
||||
aw99703,auto-freq-high = <0x10>;
|
||||
aw99703,auto-freq-low = <0x05>;
|
||||
aw99703,bl-fscal-led = <0x19>; /* 24.8mA */
|
||||
aw99703,bl-channel = <3>;
|
||||
aw99703,turn-on-ramp = <0x00>; /* 512us */
|
||||
aw99703,turn-off-ramp = <0x04>; /* 8ms */
|
||||
aw99703,pwm-trans-dim = <0>; /* 2ms */
|
||||
aw99703,i2c-trans-dim = <1>; /* 128ms */
|
||||
aw99703,pwm-mode = <1>; /* 1 pwm enable,0 PWM disable */
|
||||
aw99703,map-type = <0>; /* 0 exponential, 4 linear */
|
||||
aw99703,work-mode = <1>; /* backlight */
|
||||
aw99703,default-brightness = <1810>;
|
||||
|
||||
};
|
||||
|
||||
lm3697@35 {
|
||||
compatible = "ti,lm3697";
|
||||
reg = <0x35>;
|
||||
|
||||
/* TI, lm3697*/
|
||||
enable-gpios = <&tlmm 13 0>;
|
||||
|
|
@ -217,7 +224,9 @@
|
|||
current-mode = <2>; /*2: 25mA*/
|
||||
boost-ovp = <2>; /*0:16v 1:24v 2:32v 3:40v*/
|
||||
boost-freq = <1>; /*0:500Khz 1:1Mhz*/
|
||||
default-brightness-level = <255>;
|
||||
map-type = <0>; /* 0 exponential, 1 linear */
|
||||
current-align-type = <1>;/* 0 none, 1 aw99703, for exp mode current align*/
|
||||
default-brightness-level = <1810>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue