All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bo Shen <voice.shen@atmel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] U-Boot Driver Development on Atmel's sama5d3xek
Date: Tue, 20 Aug 2013 09:49:55 +0800	[thread overview]
Message-ID: <5212CB43.1070604@atmel.com> (raw)
In-Reply-To: <0DB6E3D37041564ABBD7F219EBFF1ABFDB9A11@HERCULES.wf.local>

Hi Steven Rosenberg,

On 8/18/2013 22:55, Steven Rosenberg wrote:
> Dear Personnel,
>
> We are investigating using U-Boot Driver samples for development on the Atmel's sama5dxek boards and could use some guidance.
>
> I have reviewed the following:
>
> http://www.chromium.org/chromium-os/u-boot-porting-guide/u-boot-drivers
>
> We are interested in the Ethernet example, but could also use a referral to a simple example to get started as well. The steps seem to be as follows:
>
>
>    *   Implement the APIs specified in the driver class header file.
>    *   Add config option(s) for the peripheral to the board configuration file in include/configs.
>    *   Add a node for the driver to the device tree file<http://www.chromium.org/chromium-os/u-boot-porting-guide/2-concepts> (.dts), specifying its properties and values as well as any additional devices that are connected to it.

After reading the contents, I am not sure what do you want to implement. 
However, in mainline u-boot, we can use emac on sama5d31ek board and 
sama5d35ek board.
For Ethernet on sama5d33, d34, d35ek board, it needs gmac patch 
(http://patchwork.ozlabs.org/patch/254549/), after apply it, the 
Ethernet can work.

or if you get u-boot from: https://github.com/linux4sam/u-boot-at91

The Ethernet works on all the boards.

The Ethernet related command in u-boot, for example: tftp, nfs, ping, 
dhcp and etc can work.

> The first one I assume refers to the header of the driver (such as the include/asm-generic/gpio.h file for gpio or the include/net.h file for the Ethernet project). Please confirm or clarify.
>
> The second seems to be referring to the include/configs/sama5dxek.h file for the card of interest which does exist. It's just not clear which CONFIG define to set and what the values would be. They do seem to correlate with the Makefile definitions in some of the samples. For example we may be interested in CONFIG_RMMI or CONFIG_RGMII for the Ethernet sample, but it's not clear what to define them to. Similar examples would help.
>
> The third is the device tree. I did see some samples, but the board/atmel/dts directory is missing as is the board/atmel/sama5d3xek/dts directory. Actually, only a few vendors actually give samples.
>
> The usage for setting up device trees is described here:
>
> http://devicetree.org/Device_Tree_Usage
>
> I was wondering if there was an atmel dts example already that we could use at least as a template rather than creating something from scratch and which directory it should reside in (board/atmel/ or board/atmel/sama5d3xek/ ?)
>
> The Ethernet example given is not included in the U-Boot installation. It seems one needs to create a directory under drivers, move the files in and compile the whole u-boot installation. Then it seems the drivers are part of the uboot.bin and when the u-boot is loaded by the bootstrap the u-boot will know how to load the drivers via the device tree. If so, the missing dts for atmel would mean that the default u-boot isn't loading any drivers for an atmel installation by default. Clarifications and/or corrections please.

For this, temporary, I have no idea.

> Any help and guidance to get us started would be greatly appreciated.
>
> Thank you for your time and consideration.
>
> With Best Regards.
>
> Steven Rosenberg.

Best Regards,
Bo Shen

  reply	other threads:[~2013-08-20  1:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-18 14:55 [U-Boot] U-Boot Driver Development on Atmel's sama5d3xek Steven Rosenberg
2013-08-20  1:49 ` Bo Shen [this message]
     [not found] <0DB6E3D37041564ABBD7F219EBFF1ABFE905EB@HERCULES.wf.local>
2013-08-20  5:46 ` Bo Shen
2013-08-20  7:25   ` Michael Trimarchi
     [not found]   ` <0DB6E3D37041564ABBD7F219EBFF1ABFE9161A@HERCULES.wf.local>
2013-08-20 10:04     ` Bo Shen

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=5212CB43.1070604@atmel.com \
    --to=voice.shen@atmel.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.