From: Tom Rini Date: Sat, 17 Nov 2018 08:32:33 -0500 Subject: [U-Boot] gpio: pca953x: Clear the polarity invert register at init In-Reply-To: <20181018141646.4061-1-agust@denx.de> References: <20181018141646.4061-1-agust@denx.de> Message-ID: <20181117133233.GR11247@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Oct 18, 2018 at 04:16:46PM +0200, Anatolij Gustschin wrote: > From: Ye Li > > 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 > Acked-by: Fugang Duan > Acked-by: Peng Fan > Signed-off-by: Anatolij Gustschin 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: