public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Siarhei Siamashka <siarhei.siamashka@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 3/5] sunxi: Add axp209 pmic support
Date: Wed, 23 Jul 2014 21:49:01 +0300	[thread overview]
Message-ID: <20140723214901.46c9541a@i7> (raw)
In-Reply-To: <1402692952-24296-4-git-send-email-hdegoede@redhat.com>

On Fri, 13 Jun 2014 22:55:50 +0200
Hans de Goede <hdegoede@redhat.com> wrote:

> From: Henrik Nordstrom <henrik@henriknordstrom.net>
> 
> Add support for the x-powers axp209 pmic which is found on most A10, A13 and
> A20 boards.
> 
> And enable AXP209 support for the Cubietruck and Cubieboard boards.
> 
> While changing the boards.cfg lines for the Cubietruck, add Ian and me as board
> maintainers for the Cubietruck.
> 
> Signed-off-by: Henrik Nordstrom <henrik@henriknordstrom.net>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> Acked-by: Ian Campbell <ijc@hellion.org.uk>
> ---
>  board/sunxi/board.c            |  22 ++++++
>  boards.cfg                     |   6 +-
>  drivers/power/Makefile         |   1 +
>  drivers/power/axp209.c         | 167 +++++++++++++++++++++++++++++++++++++++++
>  include/axp209.h               |  14 ++++
>  include/configs/sun4i.h        |   1 +
>  include/configs/sun5i.h        |   1 +
>  include/configs/sun7i.h        |   1 +
>  include/configs/sunxi-common.h |   5 ++
>  9 files changed, 215 insertions(+), 3 deletions(-)
>  create mode 100644 drivers/power/axp209.c
>  create mode 100644 include/axp209.h

The support for AXP209 is needed to provide sufficient dcdc3 voltage
at least for the DRAM controller. The default voltage after reset
(1.2V on the Cubietruck) is too low for operating the DRAM controller
at reasonably high clock speeds. In this sense, the initial Cubietruck
support in u-boot v2014.07 is already buggy, because of the missing
PMIC configuration code. And this explanation in the commit message
would be very nice to have (otherwise one may wonder, why do we even
need the PMIC code in u-boot in the first place?).

The addition of the AXP PMIC support should be perhaps moved to the
beginning of the patch series instead of fixing the voltage problems
after the fact.

And again, this patch is currently rather cherry-picking unfriendly.
So even if I wanted to reorder the patches to trivially address the
problem, the interdependencies via the dreaded 'boards.cfg' get in the
way.

-- 
Best regards,
Siarhei Siamashka

  parent reply	other threads:[~2014-07-23 18:49 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-13 20:55 [U-Boot] [PATCH v2 0/5] sunxi: i2c and pmic support Hans de Goede
2014-06-13 20:55 ` [U-Boot] [PATCH v2 1/5] mvtwsi: convert to CONFIG_SYS_I2C framework Hans de Goede
2014-07-06 13:28   ` Ian Campbell
2014-06-13 20:55 ` [U-Boot] [PATCH v2 2/5] sunxi: Add i2c support Hans de Goede
2014-06-13 20:55 ` [U-Boot] [PATCH v2 3/5] sunxi: Add axp209 pmic support Hans de Goede
2014-07-16 21:48   ` Ian Campbell
2014-07-17 10:37     ` Hans de Goede
2014-07-17 19:14       ` Ian Campbell
2014-07-18 10:04         ` Hans de Goede
2014-07-18 13:51           ` Ian Campbell
2014-07-23 18:49   ` Siarhei Siamashka [this message]
2014-06-13 20:55 ` [U-Boot] [PATCH v2 4/5] sunxi: Add axp152 " Hans de Goede
2014-06-13 20:55 ` [U-Boot] [PATCH v2 5/5] sunxi: Fix reset hang on sun5i Hans de Goede
2014-07-23 18:59   ` Siarhei Siamashka

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=20140723214901.46c9541a@i7 \
    --to=siarhei.siamashka@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox