Active low GPIOs (was [PATCH v1 1/4] i2c: mux: Add i2c-arbitrator 'mux' driver)

Stephen Warren swarren at wwwdotorg.org
Fri Feb 15 11:19:03 EST 2013


On 02/14/2013 05:02 PM, Linus Walleij wrote:
> On Thu, Feb 14, 2013 at 6:05 PM, Doug Anderson <dianders at chromium.org> wrote:
...
>>  One argument for keeping "cd-inverted" too is
>> for controllers that don't use a GPIO for card detect.
>>  In this case
>> you could imagine a MMC controller that has a "card detect" on
>> special-purpose pin and accessible via a status register.
> 
> This is actually the case with Integrator/CP and Versatile/AB.

In this case, I assume that the driver for the HW has custom code to
read the MMC controller's CD register bit, and hence it knows whether
the HW inverts it, and hence we don't need a property in DT to say so;
the driver will simply read the bit, invert it, and return it all
transparently? After all, the inversion isn't board-specific but IP
block specific.


More information about the devicetree-discuss mailing list