Re: [PATCH] ARM: dts: Add ddc i2c reference to veyron
From: Doug Anderson
Date: Thu Sep 03 2015 - 11:55:55 EST
On Thu, Sep 3, 2015 at 8:18 AM, Russell King - ARM Linux
> On Thu, Sep 03, 2015 at 09:46:38AM -0500, Rob Herring wrote:
>> Yes, that is fairly common (ADV75xx is same), and we would not
>> describe an I2C bus in DT in that case. Same with HPD directly handled
>> vs. a GPIO line. That is no different than what Doug has said:
>> ddc-i2c-bus is present if using the SOC's I2C host and absent if using
>> the HDMI block's DDC functionality. I'm only questioning the location
>> of the property.
> No, I don't think that's what Doug wants. Doug wants the bridge's
> internal I2C host to be exposed, so he can number it through a DT
Actually, my primary concern is that it _doesn't_ conflict with the DT
aliases for busses I care about. If I didn't provide it with a number
the i2c subsystem was assigning 0 which was conflicting with the real
i2c bus 0. If the bus was simply not exposed that would have solved
my problem just fine. ...but if it is being exposed, we need a way to
give it a number.
That being said, my (uninformed) opinion is that if the hardware does
provide enough functionality to expose an i2c bus it's convenient to
expose it, even if it's under a DEBUG config option. That allows you
to use standard i2c tools during bringup or to debug strange problems.
Obviously since there is hardware that doesn't expose a full i2c bus
then the abstraction should handle that and let a driver just provide
the data directly.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/