Thread (21 messages) 21 messages, 6 authors, 2017-10-11
STALE3169d
Revisions (5)
  1. v1 [diff vs current]
  2. v1 current
  3. v1 [diff vs current]
  4. v1 [diff vs current]
  5. v3 [diff vs current]

[PATCH 7/7] i2c: gpio: Add support for named gpios in DT

From: geert@linux-m68k.org (Geert Uytterhoeven)
Date: 2017-09-18 09:26:04
Also in: linux-i2c, linux-mips

On Sun, Sep 17, 2017 at 11:39 AM, Linus Walleij
[off-list ref] wrote:
This adds support for using the "sda" and "scl" GPIOs in
device tree instead of anonymously using index 0 and 1 of
the "gpios" property.

We add a helper function to retrieve the GPIO descriptors
and some explicit error handling since the probe may have
to be deferred. At least this happened to me when moving
to using named "sda" and "scl" lines (all of a sudden this
started to probe before the GPIO driver) so we need to
gracefully defer probe when we ge -ENOENT in the error
get
pointer.
Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help