linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
To: Bob Feretich <bob.feretich-8wbKi1faPaosQv5ZqcSHkQ@public.gmane.org>
Cc: "linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
Subject: Re: Another problem with I2C multiplexer bus naming - solved
Date: Sat, 14 Mar 2015 11:49:39 +0100	[thread overview]
Message-ID: <20150314104938.GA970@katana> (raw)
In-Reply-To: <5501DFCC.6010408-8wbKi1faPaosQv5ZqcSHkQ@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1987 bytes --]

On Thu, Mar 12, 2015 at 11:49:48AM -0700, Bob Feretich wrote:
> On 3/12/2015 2:44 AM, Wolfram Sang wrote:
> >On Wed, Mar 11, 2015 at 09:55:51PM -0700, Bob Feretich wrote:
> >
> >>I tried some random things and setting aliases in the dtsi file solved
> >>the problem.
> >
> >Good.
> >
> >>The use of an alias to set the name of an i2c bus should
> >>be documented somewhere!
> >
> >Well, send a patch adding some documentation where you would have liked
> >to see it.
> >
> >Thanks,
> >
> >    Wolfram
> >
> The first two places I looked for information were:
> *
> https://www.kernel.org/doc/Documentation/devicetree/bindings/i2c/i2c-mux.txt
> 
>   This is where I found the info on specifying the multiplexer without
>   aliases. It would seem logical to add the description of "how to
>   explicitly name child buses" here.

Please do. You know best what kind of information you'd like to see
there.

> * https://www.kernel.org/doc/Documentation/i2c/muxes/i2c-mux-gpio
>   Even though this file is for gpio controlled multiplexers, it seemed
>   like a good spot to look for information on how to specify i2c
>   multiplexers in general. It only describes the board.c method of
>   registering adapters. (I don't know which  gpio_i2cmux_platform_data
>   fields would be the equivalent of specifying the device tree aliases.)
>   Perhaps a cross-reference to the above documentation is appropriate,
>   since use of customized board.c files is being discouraged.

Send a patch and we will see :)

> Note that once device trees become dynamic and support hot plugging, the
> alias bus naming solution becomes ineffective, unless there is a way to
> specify a hierarchical alias that references the bus/adapter id of the
> multiplexer.

I2C was never considered hot-pluggable in the days. So, anyone wanting to
use it this way needs to spend some effort adding it. Some steps have
already been taken, though (e.g. dynamic of reconfig).


[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  parent reply	other threads:[~2015-03-14 10:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-12  4:11 Another problem with I2C multiplexer bus naming Bob Feretich
     [not found] ` <1426133507.16219.YahooMailNeo-XYahOdtEMNm2Y7dhQGSVAJOW+3bF1jUfVpNB7YpNyf8@public.gmane.org>
2015-03-12  4:55   ` Another problem with I2C multiplexer bus naming - solved Bob Feretich
     [not found]     ` <1426136151.37151.YahooMailNeo-XYahOdtEMNlRBbKmAC7my5OW+3bF1jUfVpNB7YpNyf8@public.gmane.org>
2015-03-12  9:44       ` Wolfram Sang
2015-03-12 18:49         ` Bob Feretich
     [not found]           ` <5501DFCC.6010408-8wbKi1faPaosQv5ZqcSHkQ@public.gmane.org>
2015-03-14 10:49             ` Wolfram Sang [this message]
2015-03-12  9:29   ` Another problem with I2C multiplexer bus naming Danielle Costantino
2015-03-12  9:42   ` Wolfram Sang
2015-03-12 11:29     ` Wolfram Sang
2015-03-12 19:12       ` Bob Feretich
     [not found]         ` <5501E52D.9060400-8wbKi1faPaosQv5ZqcSHkQ@public.gmane.org>
2015-03-14 11:00           ` Wolfram Sang
2015-05-08  4:57             ` [PATCH 1/1] i2c: documentation of how to set child bus numbers from the device tree Bob Feretich

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=20150314104938.GA970@katana \
    --to=wsa-z923lk4zbo2bacvfa/9k2g@public.gmane.org \
    --cc=bob.feretich-8wbKi1faPaosQv5ZqcSHkQ@public.gmane.org \
    --cc=linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org \
    --cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.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).