All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hannes Schmelzer <hannes@schmelzer.or.at>
To: u-boot@lists.denx.de
Subject: [U-Boot] DM-SERIAL-SPL on MX6
Date: Thu, 7 Jun 2018 11:40:23 +0200	[thread overview]
Message-ID: <4c6686c1-c51a-4ac0-ce41-f538ac79b773@schmelzer.or.at> (raw)
In-Reply-To: <462f1517-9ede-6f4a-7b86-fd19e93dbaa5@armadeus.com>

HI
>> thanks for this hint, i also tried this. But unfortunately without success.
>> But it is good to know that this way on your side works.
>>
>> what i've done to try make it work:
>>
>> add to my dts:
>>      chosen {
>>          stdout-path = &uart1;
>>      };
>>
>> &uart1 {
>>      u-boot,dm-spl;
>>      u-boot,dm-preloc;
>>      status = "okay";
>> };
> Don't you need pins muxing properties in uart1 ( pinctrl-names /
> pinctrl-0 ) ?
No, pinmux is done with:

static iomux_v3_cfg_t const board_pads_spl[] = {
     /* UART#1 PADS */
     MUXDESC(PAD_CSI0_DAT10__UART1_TX_DATA,    UART_PAD_CTRL),
     MUXDESC(PAD_CSI0_DAT11__UART1_RX_DATA,    UART_PAD_CTRL),
}

SETUP_IOMUX_PADS(board_pads_spl);

SPL console output is fine working once DM_SERIAL for SPL is disabled.
But with this option enabled i get no output during spl stage.
Once the full u-boot payload is loaded the console works with DM as 
excpected.

In:    serial at 02020000
Out:   serial at 02020000
Err:   serial at 02020000

=> dm tree
  Class      Probed  Driver      Name
----------------------------------------
  root       [ + ]   root_drive  root_driver
  simple_bus [ + ]   generic_si  |-- soc
  simple_bus [ + ]   generic_si  |   |-- aips-bus at 02000000
  simple_bus [ + ]   generic_si  |   |   |-- spba-bus at 02000000
  spi        [ + ]   mxc_spi     |   |   |   |-- ecspi at 02008000
  spi_flash  [ + ]   spi_flash_  |   |   |   |   `-- spi_flash at 0:1
  serial     [ + ]   serial_mxc  |   |   |   `-- serial at 02020000

>> so the device should be present during spl stage and console should be
>> set to it.
>>
>> # Serial drivers
>> #
>> CONFIG_BAUDRATE=115200
>> CONFIG_SERIAL_PRESENT=y
>> CONFIG_SPL_SERIAL_PRESENT=y
>> CONFIG_DM_SERIAL=y
>> CONFIG_SPL_DM_SERIAL=y
>> CONFIG_MXC_UART=y
>>
>> maybe i'm still missing something.
>>
>
cheers,
Hannes

  reply	other threads:[~2018-06-07  9:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-07  6:55 [U-Boot] DM-SERIAL-SPL on MX6 Hannes Schmelzer
2018-06-07  7:14 ` Jagan Teki
2018-06-07  7:50   ` Sébastien Szymanski
2018-06-07  8:35     ` Hannes Schmelzer
2018-06-07  9:18       ` Sébastien Szymanski
2018-06-07  9:40         ` Hannes Schmelzer [this message]
2018-06-07 11:05         ` Hannes Schmelzer
2018-06-18 12:26           ` Jagan Teki
2018-06-18 13:14             ` Hannes Schmelzer

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=4c6686c1-c51a-4ac0-ce41-f538ac79b773@schmelzer.or.at \
    --to=hannes@schmelzer.or.at \
    --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.