[U-Boot] gpio: pca953x: Clear the polarity invert register at init

Tom Rini trini at konsulko.com
Sat Nov 17 13:32:33 UTC 2018


On Thu, Oct 18, 2018 at 04:16:46PM +0200, Anatolij Gustschin wrote:

> From: Ye Li <ye.li at nxp.com>
> 
> The pca953x_gpio driver uses default value of polarity inversion
> register. For some devices like PCA9557 and MAX7310, their polarity
> inversion register default value is 0xf0. So for high 4 ports, when
> reading their values, the values are inverted as the actual level.
> 
> This patch clears the polarity inversion register to 0 at init, so
> that the port read and write values are aligned.
> 
> Signed-off-by: Ye Li <ye.li at nxp.com>
> Acked-by: Fugang Duan <fugang.duan at nxp.com>
> Acked-by: Peng Fan <peng.fan at nxp.com>
> Signed-off-by: Anatolij Gustschin <agust at denx.de>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181117/94470b1e/attachment.sig>


More information about the U-Boot mailing list