Skip to content

Commit 193ce74

Browse files
committed
arm64: dts: qcom: sdm660-xiaomi-clover-plus: Add CABC support
The LP8556 backlight controller also supports the CABC feature, so configure it to support this. Also remove a comment about EPROM start, and clarify some EPROM values' meaning. Signed-off-by: Nickolay Goppen <setotau@mainlining.org>
1 parent 478fb7f commit 193ce74

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

arch/arm64/boot/dts/qcom/sdm660-xiaomi-clover-plus.dts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,28 +62,24 @@
6262
enable-supply = <&vreg_bl_vddio>;
6363

6464
bl-name = "lcd-backlight";
65-
dev-ctrl = /bits/ 8 <0x05>;
65+
dev-ctrl = /bits/ 8 <0x87>; /* pwm + i2c combined mode after shaper block, 12-bit */
6666
init-brt = /bits/ 8 <0x7f>; /* 50% brightness */
6767

68-
/* TODO: Stange thing, according to datasheet for LP8556 valid
69-
* EEPROM addresses range from 0x98h to 0xAF, but driver
70-
* thinks A0 is lowest valid address. So write to 9E will be
71-
* silently discarded. Bug in driver? */
7268
rom-9eh {
73-
rom-addr = /bits/ 8 <0x9E>;
69+
rom-addr = /bits/ 8 <0x9e>;
7470
rom-val = /bits/ 8 <0x20>;
7571
};
7672
rom-a0h {
7773
rom-addr = /bits/ 8 <0xa0>;
78-
rom-val = /bits/ 8 <0x09>;
74+
rom-val = /bits/ 8 <0x09>; /* max current 23.5mA */
7975
};
8076
rom-a1h {
8177
rom-addr = /bits/ 8 <0xa1>;
82-
rom-val = /bits/ 8 <0x5f>;
78+
rom-val = /bits/ 8 <0x5f>; /* max current 23.5mA */
8379
};
8480
rom-a3h {
8581
rom-addr = /bits/ 8 <0xa3>;
86-
rom-val = /bits/ 8 <0x0e>;
82+
rom-val = /bits/ 8 <0x0e>; /* Select brightness change transition duration 000 = 0 ms (immediate change)*/
8783
};
8884
rom-a5h {
8985
rom-addr = /bits/ 8 <0xa5>;

0 commit comments

Comments
 (0)