kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: dstegs.lkml@gmail.com (Daniel Steger)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Linux Regulator userspace-consumer driver binding
Date: Fri, 24 Jun 2016 08:37:18 -0700	[thread overview]
Message-ID: <CAK5pGLpa72nCO16KhPmrNtHv6Hrv0TF6pGYeLTvwXyfuYW3NUA@mail.gmail.com> (raw)

I'm working on developing a driver for the max15301/15303 linear supply. I
eventually want to push this upstream. The regulator driver for the supply
has been created and loads properly. What I would like to do now is
regression test the driver from userspace. I noticed that there are two
different userspace drivers already present in the regulator framework. The
first is the userpsace-consumer driver. The second is the virtual regulator
driver. Both seem to create sysfs hooks for regulators.

I have enabled the userspace-consumer and virtual driver in the kernel
config. I can see that the modules are listed in the modules.builtin file.
What seems to confuse me is how to bind the consumer driver to the
regulator. Typically I would think this can be done in the device tree but
the userspace-consumer driver doesn't support device tree.

My question is, what is a good method to bind the userspace-consumer driver
to the regulator under test? Would it be more appropriate to use the
userspace-consumer driver or virtual driver?

Thank you,
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160624/ae8a9bfa/attachment.html 

                 reply	other threads:[~2016-06-24 15:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=CAK5pGLpa72nCO16KhPmrNtHv6Hrv0TF6pGYeLTvwXyfuYW3NUA@mail.gmail.com \
    --to=dstegs.lkml@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.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).