Re: [PATCH 09/14] i2c: Add Device Tree support to the Nomadik I2C driver

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

 



On 13/06/12 09:12, Linus Walleij wrote:
On Wed, Jun 13, 2012 at 9:01 AM, Lee Jones<lee.jones@xxxxxxxxxx>  wrote:

Board specific is fine, as the data is protected by a board specific
property. Do you mean that the properties are *bus specific*? In which case
I see your point and will apply the correct bindings.

I cannot parse this, the board for me is a SoC, busses and a
number of components connected via e.g. I2C.

Can you define what you mean with a "board specific property"?
It seems you are talking about what I would call an
"SoC-specific property", i.e. something out of a .dtsi file for
a certain SoC, whereas the .dts for an entire board is,
well, for a board, a set of components on a PCB.

The arrangement of accelerometers and battery monitors on a
certain board is board-specific, and it is also by definition
bus-specific.

Okay, let's put it another way. We can individualise any board, bus, platform, machine or system by placing all of the information in a DT node so long as we plonk it in the correct place within the Device Tree. However, we have just as much control by keeping them in separate structs in the C file and selecting the right one using the compatible sting.

The real item for discussion is; if we have varying configurations for each of the i2c buses residing on the same SoC, do we really want to use different compatible strings to identify each one. If the answer is no, which I think it is, then I need to write the bindings and have everything individually configurable from Device Tree.

While you're mulling this over, I'm just going to write the bindings anyway.

--
Lee Jones
Linaro ST-Ericsson Landing Team Lead
M: +44 77 88 633 515
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
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