[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <901bb9e4-a7b1-ce24-c68b-d96b61e1b274@linux.vnet.ibm.com>
Date: Tue, 27 Jun 2017 12:28:14 -0500
From: Eddie James <eajames@...ux.vnet.ibm.com>
To: Jeremy Kerr <jk@...abs.org>, linux-kernel@...r.kernel.org
Cc: linux-i2c@...r.kernel.org, devicetree@...r.kernel.org,
wsa@...-dreams.de, robh+dt@...nel.org, gregkh@...uxfoundation.org,
joel@....id.au, andrew@...id.au,
"Edward A. James" <eajames@...ibm.com>
Subject: Re: [PATCH 6/6] Documentation/devicetree: Add FSI-attached I2C master
dt bindings
On 06/26/2017 08:06 PM, Jeremy Kerr wrote:
> Hi Eddie,
>
>> +Required properties:
>> + - compatible = "ibm,i2cm-fsi";
>> + - reg = < address size >; : The FSI CFAM address and address space
>> + size.
>> + - #address-cells = <1>; : Number of address cells in child nodes
>> + - #size-cells = <0>; : Number of size cells in child nodes.
>> + - child nodes : Nodes to describe ports off the I2C
>> + master.
>> +
>> +Child node required properties:
>> + - reg = < port number > : The port number on the I2C master.
>> +
>> +Examples:
>> +
>> + i2cm@...0 {
>> + compatible = "ibm,i2cm-fsi";
>> + reg = < 0x1800 0x400 >;
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> +
>> + port@0 {
>> + reg = <0>;
>> + };
>> +
>> + port@1 {
>> + reg = <1>;
>> + };
>> + };
> Those child nodes represent the downstream i2c buses, and so also
> contain the i2c slave devices, right? If so, you may want to document
> that, and/or add a simple device to that example (say, an EEPROM).
Yes, good point, but the driver currently wouldn't do anything with that
device information. It doesn't keep a list of populated devices on the
bus or anything. Still worth adding them to the device tree?
Thanks,
Eddie
>
> Cheers,
>
>
> Jeremy
>
Powered by blists - more mailing lists