All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michael Nazzareno Trimarchi <michael@amarulasolutions.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] pico-imx7: Disable video support
Date: Tue, 26 Mar 2019 09:21:26 +0100	[thread overview]
Message-ID: <CAOf5uwmt0yh-oFrctsTGEbjzULcySayMyEvWnupXX-kK9-vNtw@mail.gmail.com> (raw)
In-Reply-To: <CAOMZO5AxN9j63KjNee-4XeiwZpxOF+SuvBcx5r_VZkAPjnfUoQ@mail.gmail.com>

Hi

On Mon, Mar 25, 2019 at 11:12 PM Fabio Estevam <festevam@gmail.com> wrote:
>
> Hi Michael,
>
> On Mon, Mar 25, 2019 at 1:56 PM Fabio Estevam <festevam@gmail.com> wrote:
>
> > U-Boot 2019.04-rc4-00047-gcfb3e102c4 (Mar 23 2019 - 10:45:10 -0300)
> >
> > CPU:   Freescale i.MX7D rev1.2 1000 MHz (running at 792 MHz)
> > CPU:   Commercial temperature grade (0C to 95C) at 40C
> > Reset cause: POR
> > Board: i.MX7D PICOSOM
> > I2C:   ready
> > DRAM:  512 MiB
> >
> > (Hangs here)
>
> It seems this hangs is related to the GPIO that enables the LCD.
>
> If I change the code like this:
>
> diff --git a/board/technexion/pico-imx7d/pico-imx7d.c
> b/board/technexion/pico-imx7d/pico-imx7d.c
> index 767d13dfe5..ba1c6f9740 100644
> --- a/board/technexion/pico-imx7d/pico-imx7d.c
> +++ b/board/technexion/pico-imx7d/pico-imx7d.c
> @@ -294,7 +294,7 @@ void setup_lcd(void)
>         /* Set Brightness to high */
>         gpio_direction_output(IMX_GPIO_NR(1, 11) , 1);
>         /* Set LCD enable to high */
> -       gpio_direction_output(IMX_GPIO_NR(1, 6) , 1);
> +       gpio_direction_output(IMX_GPIO_NR(1, 6) , 0);
>  }
>  #endif
>
> Then I can load U-Boot via USB without problem.
>
> However, in order to turn on the LCD we need to turn on GPIO1_6.
>
> If I do this from the U-Boot prompt:
>
> => gpio set 6
>
> Then the board hangs.
>
> Not sure why setting GPIO1_6 is causing the board to hang.

Maybe you drain to much power ;)

Michael


-- 
| Michael Nazzareno Trimarchi                     Amarula Solutions BV |
| COO  -  Founder                                      Cruquiuskade 47 |
| +31(0)851119172                                 Amsterdam 1018 AM NL |
|                  [`as] http://www.amarulasolutions.com               |

  reply	other threads:[~2019-03-26  8:21 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-23 13:53 [U-Boot] [PATCH] pico-imx7: Disable video support Fabio Estevam
2019-03-23 22:16 ` Joris OFFOUGA
2019-03-23 22:18   ` Michael Nazzareno Trimarchi
2019-03-25 15:25     ` Fabio Estevam
2019-03-25 16:29       ` Michael Nazzareno Trimarchi
2019-03-25 16:37         ` Fabio Estevam
2019-03-25 16:38           ` Michael Nazzareno Trimarchi
2019-03-25 16:48             ` Fabio Estevam
2019-03-25 16:51               ` Michael Nazzareno Trimarchi
2019-03-25 16:56                 ` Fabio Estevam
2019-03-25 17:00                   ` Michael Nazzareno Trimarchi
2019-03-25 22:12                   ` Fabio Estevam
2019-03-26  8:21                     ` Michael Nazzareno Trimarchi [this message]
2019-03-26 17:58                       ` Fabio Estevam

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOf5uwmt0yh-oFrctsTGEbjzULcySayMyEvWnupXX-kK9-vNtw@mail.gmail.com \
    --to=michael@amarulasolutions.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.