AnsweredAssumed Answered

IMX6DL DI0_PIN15 andriod 5.0 device tree gpio config

Question asked by lin w on Oct 22, 2015
Latest reply on Nov 5, 2015 by igorpadykov

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,
if (ret)

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);