How can I config the DI0_PIN15 as LCD_ENABLE pin in the Device Tree
my config in DT as below: //but the pin can't be pull up in the driver yet!!!!!
mxcfb1: fb@0 {
compatible = "fsl,mxc_sdc_fb";
disp_dev = "ldb";
interface_pix_fmt = "RGB24";
mode_str ="1280x800@60";
default_bpp = <18>;
int_clk = <0>;
late_init = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ipu1_1>;
my_lcd = <&gpio4 17 GPIO_ACTIVE_HIGH>;
status = "ok";
};
this code is what I do in the driver,but the pin can not be pull up
ret = devm_gpio_request_one(&pdev->dev, plat_data->gpio_int,
GPIOF_OUT_INIT_HIGH,
"my_lcd");
if (ret)
printk("---->error\n");
printk(" xxxx= ret = %d\n", ret);
lcd_enable = gpio_get_value(plat_data->gpio_int);
printk("init hi..shady---->get_lcd_eanble = %d\n", lcd_enable);
/* set high and read */
gpio_set_value(plat_data->gpio_int, 1); ///can not pull up!!!!!, don't know why???
lcd_enable = gpio_get_value(plat_data->gpio_int);
Hi lin
DI0_PIN15 is special pin (can not be used as gpio) controlled by microcode in
file ipu_disp.c, refer to attached Linux Manual Table 6-1. IPU Driver Files and imx6qdl-sabresd.dtsi
how it can be used
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------