Re: [PATCH] i2c-mux-pca954x: allow downstream bus numbers to be specified in the dts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 17/04/14 02:00 PM, Laxman Dewangan wrote:
Hi Frank,
Why not you use aliases on DTS instead of changing driver?
You can alias the bus number with the child node name. On the following, the bus
will be registerd as 6, 7, 8 and 9.
i2c-core already support this.

         aliases {
                 i2c6 = &pca9546_i2c0;
                 i2c7 = &pca9546_i2c1;
                 i2c8 = &pca9546_i2c2;
                 i2c9 = &pca9546_i2c3;
         };

Well, this seems to work indeed for newer kernels. I was originally working on 3.8 that did not yet have this feature. However, this is kind of an hard to find feature. I didn't see any references in the i2c device tree bindings documentation. So, unless you actually read the i2c core code, it is very easy to miss.

Anyway, feel free to disregard my patch.

Frank

--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux