public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Igor Grinberg <grinberg@compulab.co.il>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 3/3] dm:gpio:mxc add DT support
Date: Tue, 10 Feb 2015 09:46:02 +0200	[thread overview]
Message-ID: <54D9B73A.4060009@compulab.co.il> (raw)
In-Reply-To: <1423550794-15017-4-git-send-email-Peng.Fan@freescale.com>

On 02/10/15 08:46, Peng Fan wrote:
> This patch add DT support for mxc gpio driver.
> 
> There are one place using CONFIG_OF_CONTROL macro.
> 1. The U_BOOT_DEVICES and mxc_plat array are complied out. To DT,
>    platdata is alloced using calloc, so there is no need to use mxc_plat.
> 
> The following situations are tested, and all work fine:
> 1. with DM, without DT
> 2. with DM and DT
> 3. without DM
> Since device tree has not been upstreamed, if want to test this patch.
> The followings need to be done.
>  + pieces of code does not gpio_request when using gpio_direction_xxx and
>    etc, need to request gpio.
>  + move the gpio settings from board_early_init_f to board_init
>  + define CONFIG_DM ,CONFIG_DM_GPIO and CONFIG_OF_CONTROL
>  + Add device tree file and do related configuration in
>    `make ARCH=arm menuconfig`
> These will be done in future patches by step.
> 
> Signed-off-by: Peng Fan <Peng.Fan@freescale.com>

Acked-by: Igor Grinberg <grinberg@compulab.co.il>

-- 
Regards,
Igor.

  reply	other threads:[~2015-02-10  7:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-10  6:46 [U-Boot] [PATCH v4 0/3] dm:gpio:mxc add DT support Peng Fan
2015-02-10  6:46 ` [U-Boot] [PATCH v4 1/3] dm: introduce dev_get_addr interface Peng Fan
2015-02-11  0:37   ` Simon Glass
2015-02-12 22:18     ` Simon Glass
2015-02-10  6:46 ` [U-Boot] [PATCH v4 2/3] dm:gpio:mxc add a bank_index entry in platdata Peng Fan
2015-02-11  0:37   ` Simon Glass
2015-02-12 22:18     ` Simon Glass
2015-02-10  6:46 ` [U-Boot] [PATCH v4 3/3] dm:gpio:mxc add DT support Peng Fan
2015-02-10  7:46   ` Igor Grinberg [this message]
2015-02-11  0:37     ` Simon Glass
2015-02-12 22:18       ` Simon Glass

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=54D9B73A.4060009@compulab.co.il \
    --to=grinberg@compulab.co.il \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox