Part Number: AM3354
Tool/software: Linux
Hi,
In our AM3354 based custom designed board, I want to control the LCD back-light manually through command line, once the board is up. Currently, in .dts file the LCD back-light pin is assigned to a PWM pin. Please help me to achieve this.
We are using 7" New Heaven capacitive LCD display.
SDK version - Processor-sdk-03.03
Kernel version - 4.4.41
I have enabled PWM0. Below are the pin-mux details,
ecap0_pins_default: backlight_pins {
pinctrl-single,pins = <
0x164 0x0 /* eCAP0_in_PWM0_out.eCAP0_in_PWM0_out MODE0 */
>;
};
epwmss0: epwmss@48300000 {
status = "okay";
ecap0: ecap@48300100 {
status = "okay";
pinctrl-names = "default", "sleep";
pinctrl-0 = <&ecap0_pins_default>;
};
};
lcd_bl: backlight {
compatible = "pwm-backlight";
pwms = <&ecap0 0 50000 0>;
brightness-levels = <0 51 53 56 62 75 101 152 255>;
default-brightness-level = <8>;
};
Please find my attached DTS file for full details.
Also I have tested with various SYSFS Attributes, but no change in LCD.