Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1305788

Re: [RFC v2 2/4] dt-bindings: i2c: mux: demux-pinctrl: add bindings

From Rob Herring <robh@kernel.org>
Newsgroups linux.kernel
Subject Re: [RFC v2 2/4] dt-bindings: i2c: mux: demux-pinctrl: add bindings
Date 2016-01-11 04:00 +0100
Message-ID <qPAS6-4ya-13@gated-at.bofh.it> (permalink)
References <qNWN3-1SF-1@gated-at.bofh.it> <qNWN4-1SF-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Wed, Jan 06, 2016 at 02:51:23PM +0100, Wolfram Sang wrote:
> From: Wolfram Sang <wsa+renesas@sang-engineering.com>
> 
> These bindings allow an I2C bus to switch between multiple masters. This
> is not hot-swichting because connected I2C slaves will be

s/swichting/switching/

> re-instantiated. It is meant to select the best I2C core at runtime once
> the task is known. Example: Prefer i2c-gpio over another I2C core
> because of HW errata affetcing your use case.

This seems okay to me. I don't like not having the i2c devices under the 
i2c controller, but not really much we can do about that.

I have another usecase which might end up needing a similar structure 
as this. That is the whole question of how to deal with capes, hats, 
shields and various daughterboards. For I2C devices on a daughterboard, 
we need to be able to have a DT overlay for the daughterboard described 
in terms of the connector(s) and independent of the host. Then the 
base DT needs to define the mapping from the connector to the host 
controller. A complicating factor would be having devices on the same 
bus but split across the main and daughter boards. I don't see anything 
specific to change here, but just want to throw that out.

[...]

> +
> +Changing I2C controllers:
> +
> +The created mux-device will have a file "cur_master" in its sysfs-entry. Write
> +0 there for the first master listed in the "i2c-parent" property, 1 for the
> +second etc. Reading the file will give you a list with the active master
> +marked. Example from a Renesas Lager board:

This is Linux specific and should not be in the binding. You also need 
sysfs docs for these sysfs files.

Rob

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC v2 0/4] i2c/of: switch I2C IP cores at runtime via OF_DYNAMIC Wolfram Sang <wsa@the-dreams.de> - 2016-01-06 15:00 +0100
  [RFC v2 1/4] of: make of_mutex public Wolfram Sang <wsa@the-dreams.de> - 2016-01-06 15:00 +0100
    Re: [RFC v2 1/4] of: make of_mutex public Geert Uytterhoeven <geert@linux-m68k.org> - 2016-01-06 15:30 +0100
  [RFC v2 3/4] i2c: mux: demux-pinctrl: add driver Wolfram Sang <wsa@the-dreams.de> - 2016-01-06 15:00 +0100
    Re: [RFC v2 3/4] i2c: mux: demux-pinctrl: add driver Geert Uytterhoeven <geert@linux-m68k.org> - 2016-01-06 15:30 +0100
      Re: [RFC v2 3/4] i2c: mux: demux-pinctrl: add driver Wolfram Sang <wsa@the-dreams.de> - 2016-01-13 14:00 +0100
        Re: [RFC v2 3/4] i2c: mux: demux-pinctrl: add driver Geert Uytterhoeven <geert@linux-m68k.org> - 2016-01-13 17:20 +0100
    Re: [RFC v2 3/4] i2c: mux: demux-pinctrl: add driver Rob Herring <robh@kernel.org> - 2016-01-06 18:10 +0100
      Re: [RFC v2 3/4] i2c: mux: demux-pinctrl: add driver Wolfram Sang <wsa@the-dreams.de> - 2016-01-13 14:00 +0100
  [RFC v2 4/4] ARM: shmobile: r8a7790: rework dts to use i2c demuxer Wolfram Sang <wsa@the-dreams.de> - 2016-01-06 15:00 +0100
  [RFC v2 2/4] dt-bindings: i2c: mux: demux-pinctrl: add bindings Wolfram Sang <wsa@the-dreams.de> - 2016-01-06 15:00 +0100
    Re: [RFC v2 2/4] dt-bindings: i2c: mux: demux-pinctrl: add bindings Geert Uytterhoeven <geert@linux-m68k.org> - 2016-01-06 15:40 +0100
      Re: [RFC v2 2/4] dt-bindings: i2c: mux: demux-pinctrl: add bindings Wolfram Sang <wsa@the-dreams.de> - 2016-01-13 14:00 +0100
        Re: [RFC v2 2/4] dt-bindings: i2c: mux: demux-pinctrl: add bindings Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> - 2016-01-13 15:10 +0100
    Re: [RFC v2 2/4] dt-bindings: i2c: mux: demux-pinctrl: add bindings Jan Lübbe <jlu@pengutronix.de> - 2016-01-07 18:00 +0100
      Re: [RFC v2 2/4] dt-bindings: i2c: mux: demux-pinctrl: add bindings Wolfram Sang <wsa@the-dreams.de> - 2016-01-13 14:10 +0100
    Re: [RFC v2 2/4] dt-bindings: i2c: mux: demux-pinctrl: add bindings Rob Herring <robh@kernel.org> - 2016-01-11 04:00 +0100
      Re: [RFC v2 2/4] dt-bindings: i2c: mux: demux-pinctrl: add bindings Geert Uytterhoeven <geert@linux-m68k.org> - 2016-01-11 09:10 +0100

csiph-web