All of lore.kernel.org
 help / color / mirror / Atom feed
From: Maxime Ripard <maxime.ripard@free-electrons.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/9] w1: Add 1-Wire gpio driver
Date: Mon, 14 Nov 2016 14:35:36 +0100	[thread overview]
Message-ID: <20161114133536.brde45x2hdp2sjdo@lukather> (raw)
In-Reply-To: <CAPnjgZ0ACi4YX2WZTVp5mVivvULUX9jK3HRA9KeqGQ-e_HibJg@mail.gmail.com>

Hi Simon,

On Fri, Nov 11, 2016 at 09:17:20AM -0700, Simon Glass wrote:
> Hi Maxime,
> 
> On 8 November 2016 at 03:06, Maxime Ripard
> <maxime.ripard@free-electrons.com> wrote:
> > Add a bus driver for bitbanging a 1-Wire bus over a GPIO.
> >
> > Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
> > ---
> >  drivers/w1/Kconfig   |   6 ++-
> >  drivers/w1/Makefile  |   1 +-
> >  drivers/w1/w1-gpio.c | 160 ++++++++++++++++++++++++++++++++++++++++++++-
> >  3 files changed, 167 insertions(+), 0 deletions(-)
> >  create mode 100644 drivers/w1/w1-gpio.c
> >
> > diff --git a/drivers/w1/Kconfig b/drivers/w1/Kconfig
> > index 0c056b4c06a9..ccc3ae15db86 100644
> > --- a/drivers/w1/Kconfig
> > +++ b/drivers/w1/Kconfig
> > @@ -12,6 +12,12 @@ config W1
> >
> >  if W1
> >
> > +config W1_GPIO
> > +       bool "Enable 1-Wire GPIO bitbanging"
> > +       depends on DM_GPIO
> > +       help
> > +         Emulate a 1-Wire bus using a GPIO.
> 
> Any more details? How many GPIOs? Any particular chips that are
> supported?

1-Wire works on a single line, hence it's name. You usually have
either a controller (which is quite rare, but some SoCs have one) or
you can bitbang the bus. It's low bandwidth enough that it doesn't
really matter.

I'm not sure if it answers your question. I'll address your other
comments.

Thanks!
Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161114/340b8e75/attachment.sig>

  reply	other threads:[~2016-11-14 13:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover.e445aa83aac1de200cdbb59f8a5572c43341f03d.1478599446.git-series.maxime.ripard@free-electrons.com>
     [not found] ` <267e4b92e3091503ebeaa8dff343538b32a326af.1478599446.git-series.maxime.ripard@free-electrons.com>
2016-11-11 16:17   ` [U-Boot] [PATCH 4/9] w1: Add 1-Wire gpio driver Simon Glass
2016-11-14 13:35     ` Maxime Ripard [this message]
2016-11-14 20:44       ` Simon Glass
     [not found] ` <de0f795a85e3a17f639ed2d23dd8b9936bc0b332.1478599446.git-series.maxime.ripard@free-electrons.com>
2016-11-11 16:17   ` [U-Boot] [PATCH 3/9] w1: Add 1-Wire uclass 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=20161114133536.brde45x2hdp2sjdo@lukather \
    --to=maxime.ripard@free-electrons.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.