From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Subject: Re: Active low GPIOs (was [PATCH v1 1/4] i2c: mux: Add i2c-arbitrator 'mux' driver) Date: Thu, 14 Feb 2013 17:19:03 -0700 Message-ID: <511D7EF7.9000803@wwwdotorg.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: Linus Walleij Cc: linux-doc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Daniel Kurtz , Wolfram Sang , "linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Lee Jones , Guenter Roeck , Stephen Warren , Ben Dooks , u.kleine-koenig-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org, Chris Ball , Grant Grundler , devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org, Rob Herring , Jean Delvare , Alexandre Courbot , "Ben Dooks (embedded platforms)" , Girish Shivananjappa , "bhushan.r" , Naveen Krishna Chatradhi , "sreekumar.c" , Mark Brown , linux-kernel-u79uwXL29Tb/PtFMR13I2A@public.gmane.org List-Id: linux-i2c@vger.kernel.org On 02/14/2013 05:02 PM, Linus Walleij wrote: > On Thu, Feb 14, 2013 at 6:05 PM, Doug Anderson 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.