From: Maxime Ripard Date: Thu, 4 Jan 2018 16:04:29 +0100 Subject: [U-Boot] [PATCH] ARM: sunxi: Remove left-over cd-inverted property from pcDuino3 In-Reply-To: <20171222223056.7616-1-tuomas@tuxera.com> References: <20171222223056.7616-1-tuomas@tuxera.com> Message-ID: <20180104150429.pgd47i74m3zf3bg5@flea.lan> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Dec 23, 2017 at 12:30:56AM +0200, Tuomas Tynkkynen wrote: > Commit 8620f384098b ("dm: sunxi: Linksprite_pcDuino3: Correct polarity > of MMC card detect") claims that the Pcduino3 device tree had an > incorrect polarity for the card detect pin and thus changed the polarity > flag of the cd-gpios from GPIO_ACTIVE_HIGH to GPIO_ACTIVE_LOW. > > Actually the DT was correct since according to the mmc binding, a > combination of GPIO_ACTIVE_HIGH + cd-inverted results in an active-low > polarity. But because the U-Boot driver lacks the code to look at the > cd-inverted property (unlike the Linux driver) it interpreted the > polarity of active-high. Thus, after that commit the DT is actually > wrong from the binding/Linux point of view. > > To make both Linux and U-Boot interpret the DT in the same way, just > drop the left-over cd-inverted property. I've sent a Linux patch to > switch all sunxi DTs over to not using the cd-inverted property, so > eventually all sunxi boards in U-Boot will be consistent in not using > cd-inverted. > > Signed-off-by: Tuomas Tynkkynen Acked-by: Maxime Ripard Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: