Jens Thiele <ka...@karme.de> writes: > Jens Thiele <ka...@karme.de> writes: > >> PH7 => 231 >> echo 231 > /sys/class/gpio/export >> echo out > /sys/class/gpio/gpio231/direction >> echo 1 > /sys/class/gpio/gpio231/value >> nothing happens >> echo 0 > /sys/class/gpio/gpio231/value >> nothing happens > > looking at the docs (A20 Datasheet V1.41 20131230.pdf) and the a20 > olinuxino micro brd file (A20-OLINUXINO-MICRO_4GB_REV_E2.brd via kicad > pcbnew) with still very limited understanding i wonder wether the PH7 > has anything to do with the lcd at all? PH7 (ball is B4) is only > connected to gpio-3 != lcd connector? > > am i missing something or should the a20-olinuxino_micro*.fex files (and > http://linux-sunxi.org/LCD) be fixed?
looking at the nice picture at [1] i am quite confident my findings are correct and PH7 (aka PH07) really isn't connected to the LCD_CON. => propose this patch: $ git --no-pager diff diff --git a/sys_config/a20/a20-olinuxino_micro-lcd10.fex b/sys_config/a20/a20-olinuxino_micro-lcd10.fex index 8ed8f03..9a02bed 100644 --- a/sys_config/a20/a20-olinuxino_micro-lcd10.fex +++ b/sys_config/a20/a20-olinuxino_micro-lcd10.fex @@ -346,8 +346,8 @@ lcd_gamma_correction_en = 0 lcd_gamma_tbl_0 = 0x0 lcd_gamma_tbl_1 = 0x10101 lcd_gamma_tbl_255 = 0xffffff -lcd_bl_en_used = 1 -lcd_bl_en = port:PH07<1><0><default><1> +lcd_bl_en_used = 0 +lcd_bl_en = lcd_power_used = 1 lcd_power = port:PH08<1><0><default><1> lcd_pwm_used = 1 diff --git a/sys_config/a20/a20-olinuxino_micro-lcd7.fex b/sys_config/a20/a20-olinuxino_micro-lcd7.fex index 817ba73..b690d77 100644 --- a/sys_config/a20/a20-olinuxino_micro-lcd7.fex +++ b/sys_config/a20/a20-olinuxino_micro-lcd7.fex @@ -346,8 +346,8 @@ lcd_gamma_correction_en = 0 lcd_gamma_tbl_0 = 0x0 lcd_gamma_tbl_1 = 0x10101 lcd_gamma_tbl_255 = 0xffffff -lcd_bl_en_used = 1 -lcd_bl_en = port:PH07<1><0><default><1> +lcd_bl_en_used = 0 +lcd_bl_en = lcd_power_used = 1 lcd_power = port:PH08<1><0><default><1> lcd_pwm_used = 1 diff --git a/sys_config/a20/a20-olinuxino_micro.fex b/sys_config/a20/a20-olinuxino_micro.fex index 9b48fa7..27e4938 100644 --- a/sys_config/a20/a20-olinuxino_micro.fex +++ b/sys_config/a20/a20-olinuxino_micro.fex @@ -346,8 +346,8 @@ lcd_gamma_correction_en = 0 lcd_gamma_tbl_0 = 0x0 lcd_gamma_tbl_1 = 0x10101 lcd_gamma_tbl_255 = 0xffffff -lcd_bl_en_used = 1 -lcd_bl_en = port:PH07<1><0><default><1> +lcd_bl_en_used = 0 +lcd_bl_en = lcd_power_used = 1 lcd_power = port:PH08<1><0><default><1> lcd_pwm_used = 1 git finished. [1] https://www.olimex.com/wiki/images/a/a9/Example.jpg -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.