|
Posted at 9/8/2023 16:58:51
Only Author
8#
I found the necessary GPIOs, enable them using /sys/class/gpio, and i2c works. I have specified the necessary GPIOs in dts, but they do not turn on at boot, so the driver does not work either. part of the DTS and the log is attached.
DTS:
&i2c1 {
#address-cells = <1>;
#size_cells = <0>;
backlight: backlight@2c {
// compatible = "pwm-backlight";
compatible = "ti,lp8551";
reg = <0x2c>;
bl-name = "lcd-bl";
enable-gpios = <&gpio0 RK_PC3 GPIO_ACTIVE_LOW>, <&gpio4 RK_PC5 GPIO_ACTIVE_HIGH>; //pin-pwm - low; bl_en - high
pwms = <&pwm4 0 25000 0>;
brightness-levels = <
0 20 20 21 21 22 22 23
...............................
248 249 250 251 252 253 254 255
>;
default-brightness-level = <200>;
};
};
KERNEL LOG:
root@firefly:~# dmesg | grep lp855
[ 1.381622] lp855x 1-002c: Looking up power-supply from device tree
[ 1.381636] lp855x 1-002c: Looking up power-supply property in node /i2c@fe5a0000/backlight@2c failed
[ 1.381673] lp855x 1-002c: 1-002c supply power not found, using dummy regulator
[ 1.381789] lp855x 1-002c: Linked as a consumer to regulator.0
[ 1.381823] lp855x 1-002c: Looking up enable-supply from device tree
[ 1.381837] lp855x 1-002c: Looking up enable-supply property in node /i2c@fe5a0000/backlight@2c failed
[ 1.382048] lp855x 1-002c: device config err: -6
[ 1.382147] lp855x 1-002c: Dropping the link to regulator.0
|
|