u-boot的DTS中有背光的控制,LINUX中的DTS没有
echo 1 > /sys/class/backlight/pwm-backlight/bl_power ---这个使用要哪个dts配合?
离线
# echo 0 > /sys/class/backlight/pwm-backlight/brightness
-sh: can't create /sys/class/backlight/pwm-backlight/brightness: nonexistent directory
--------------------------------------------------------------------------------
dts:
backlight: backlight {
compatible = "pwm-backlight";
pwms = <&pwm 0 1000000 0>;
brightness-levels = <0 30 40 50 60 70 100>;
default-brightness-level = <6>;
};
离线