linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: hdegoede@redhat.com (Hans de Goede)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] sunxi: a10-lime: add regulator nodes
Date: Sat, 04 Apr 2015 13:06:23 +0200	[thread overview]
Message-ID: <551FC5AF.3040601@redhat.com> (raw)
In-Reply-To: <551FBD45.3060503@gmail.com>

Hi,

On 04-04-15 12:30, Iain Paton wrote:
> On 30/03/15 23:23, Maxime Ripard wrote:
>
>> CSI is not usable (no driver for it), neither it is actually used by
>> default on the lime, so disabling the regulator is the right thing to
>> do.
>
> My userspace code works just fine, until the regulator gets turned off.

So you've userspace code to use the csi interface? Cool! Any chance you
can publish this somewhere. I've writing v4l2 drivers for the csi
on the sunxi SoCs somewhere (low) on my todo list.

> Anyway, I don't have the patience Hans showed with the simplefb stuff.
> So consider yourselves successful in wearing me down. I'm done debating
> any of this. One less contributor to linux-sunxi for you to worry about,
> I won't bother you anymore.

I'm sorry to hear that, it would have helped tremendously here if
you had explained that you actually have a camera sensor hooked up
and are using that with an upstream kernel right from the start.

As I've hopefully shown when merging your u-boot patches we certainly
welcome you as a contributor, and I do hope you will keep contributing
in the future.

As for this specific patch I'm still of the opinion that your original
patch is not the right way forward, we are using axp209.dtsi with all
new boards and we are slowly moving existing boards over too.

Note that it is only a matter of time until someone does submit
a patch which follows the standard way of doing things for sunxi
boards and then your camera sensors will stop working.

Recent kernel support something known as devicetree overlays which
I believe is the way forward with this, what we would like to see
for cases like this one is to have a patch in the main dts which
works as Maxime and I requested, and then use a dts overlay to
enable ldo3 and ldo4 for your specific situation. This solution
should also be future proof, since as said someone will make the
requested changes eventually as we plan to move all boards to
using axp209.dtsi and not enabling unnecessary regulators.

You will likely object to me labeling the ldo3 and ldo4 regulators
as unnecessary but think this through for a moment Olimex has
sold thousands of lime boards, how much of those do you think
will have camera sensors attached? For the default upstream
dts file we need to do what is right for the normal / default
use case here. And for people who have special hardware /
daughtboards attached that is exactly what devicetree overlays
are designed to handle.

Regards,

Hans




>
>> Too bad.
>
> For who?
>
> Rgds,
> Iain
>

  reply	other threads:[~2015-04-04 11:06 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-27 10:58 [PATCH] sunxi: a10-lime: add regulator nodes Iain Paton
2015-03-27 11:02 ` Hans de Goede
2015-03-28 11:53   ` Iain Paton
2015-03-28 23:50     ` Hans de Goede
2015-04-04 10:20       ` Iain Paton
2015-03-30 22:23     ` Maxime Ripard
2015-04-04 10:30       ` Iain Paton
2015-04-04 11:06         ` Hans de Goede [this message]
2015-04-04 12:18       ` Javier Martinez Canillas
2015-04-04 12:33         ` Mark Brown
2015-04-04 12:56           ` Maxime Ripard
2015-04-04 13:05             ` Hans de Goede
2015-04-04 18:54               ` Mark Brown
2015-04-04 18:47             ` Mark Brown
2015-04-07 10:17               ` Maxime Ripard
2015-04-08 12:35                 ` Mark Brown
2015-04-13  8:15                   ` Maxime Ripard
2015-04-13 11:44                     ` Mark Brown
2015-04-14 16:27                       ` Maxime Ripard
2015-04-14 20:06                         ` Mark Brown
2015-04-04 12:58           ` Hans de Goede
2015-04-04 18:52             ` Mark Brown

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=551FC5AF.3040601@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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;
as well as URLs for NNTP newsgroup(s).