This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM625: Bring up LCD Backlight (U-Boot)

Part Number: AM625

Tool/software:

Hello TI

We are using yocto SDK 9.0

May you guide how to bring up/debug backlight in U-boot? the configuration.

We try below but fail (unable to control backlight - we want the BL on auto after power on/u-boot up).

HW Config:

U-Boot Config:

CONFIG_BACKLIGHT_PWM=y
CONFIG_BACKLIGHT_GPIO=y
CONFIG_GPIO=y
CKLIGHT_PWM=y

CONFIG_DM=y

U-Boot's DTS:

paul@43Server:~/300G_HDD/ti_am62x/build/arago-tmp-default-glibc/work/am62xx_evm_k3r5-oe-linux-gnueabi/u-boot-ti-staging/1_2023.04+gitAUTOINC+24098ea90d-r0.psdk3/git$ vim arch/arm/dts/k3-am62x-sk-common-u-boot.dtsi

/{

chosen {
stdout-path = "serial2:115200n8";
bootargs = "console=ttyS2,115200n8";

};

aliases {
mmc0 = &sdhci0;
mmc1 = &sdhci1;
};

memory@80000000 {
bootph-pre-ram;
};

lcd_bl: backlight {
compatible = "pwm-backlight";
pwms = <&epwm0 0 50000 0>;
brightness-levels =
<0 32 64 96 128 160 192 224 255>;
default-brightness-level = <1>;
//enable-gpios = <&mcu_gpio0 12 GPIO_ACTIVE_HIGH>;
status = "okay";
};

};


&main_pmx0 {


epwm0bl_pins_default: epwm0bl-default-pins {
pinctrl-single,pins = <
AM62X_IOPAD(0x01b4, PIN_OUTPUT_PULLUP, 2) /* (A13) SPI0_CS0.EHRPWM0_A */
>;
};
};

&epwm0 {
pinctrl-names = "default";
pinctrl-0 = <&epwm0bl_pins_default>;
status = "okay";
};