diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2014-01-30 16:31:35 +0100 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2014-01-30 16:31:35 +0100 |
commit | e40f10a4d146c8eab11d89fd01d2e098b2e30031 (patch) | |
tree | 7ead9d056c13fda77a806d043d27b7f81c230dc5 | |
parent | 0246918bf15df63925813b62b611d148686fa372 (diff) |
colibri_t20: hack backlight gpioColibri_T30_LinuxImageV2.1Beta2_20140206Colibri_T20_LinuxImageV2.1Beta2_20140207Apalis_T30_LinuxImageV2.1Beta2_20140206
Hack backlight GPIO by manually untristating respective pinmux group.
While at it add some comment to both the device-tree as well as the
gpio command that manual untristating will be required on GPIO pins.
-rw-r--r-- | board/toradex/colibri_t20/colibri_t20.dts | 3 | ||||
-rw-r--r-- | drivers/gpio/tegra_gpio.c | 3 | ||||
-rw-r--r-- | drivers/video/tegra.c | 4 |
3 files changed, 9 insertions, 1 deletions
diff --git a/board/toradex/colibri_t20/colibri_t20.dts b/board/toradex/colibri_t20/colibri_t20.dts index 48e0d192462..92705575400 100644 --- a/board/toradex/colibri_t20/colibri_t20.dts +++ b/board/toradex/colibri_t20/colibri_t20.dts @@ -87,7 +87,8 @@ */ /* Parameter 3 bit 0:1=output, 0=input; bit 1:1=high, 0=low */ - backlight-enable = <&gpio 156 1>; /* PT4 - SODIMM 71: BL_ON */ + backlight-enable = <&gpio 156 1>; /* PT4 - SODIMM 71: BL_ON, + requires manual untristating respective pin group! */ lvds-shutdown = <&gpio 255 1>; backlight-vdd = <&gpio 255 1>; panel-vdd = <&gpio 255 1>; diff --git a/drivers/gpio/tegra_gpio.c b/drivers/gpio/tegra_gpio.c index 0268c61020c..c706affaa32 100644 --- a/drivers/gpio/tegra_gpio.c +++ b/drivers/gpio/tegra_gpio.c @@ -298,4 +298,7 @@ U_BOOT_CMD( " - using 'offset', set port:bit as output and drive low or high\n" " input offset\n" " - using 'offset', set port:bit as input and read value" +#ifdef CONFIG_TEGRA2 + "\nNote: GPIO pins require manual untristating respective pin group!\n" +#endif ); diff --git a/drivers/video/tegra.c b/drivers/video/tegra.c index 9eea1ca62f2..90ad31e6bf9 100644 --- a/drivers/video/tegra.c +++ b/drivers/video/tegra.c @@ -264,6 +264,10 @@ static int handle_stage(const void *blob) #if defined(CONFIG_TEGRA2) /* TODO: put pinmux into the FDT */ pinmux_config_table(pinmux_cros_1, ARRAY_SIZE(pinmux_cros_1)); + + /* Hack: manually untristate BL_ON (PT4 - SODIMM 71) + as specified through device-tree */ + pinmux_tristate_disable(PINGRP_DTA); #endif fdt_setup_gpio(&config.panel_vdd); |