From: Tom Rini Date: Mon, 5 Mar 2018 13:54:30 -0500 Subject: [U-Boot] gpio: pca953x_gpio: Support label setting from DT In-Reply-To: <20180301134504.972-1-mario.six@gdsys.cc> References: <20180301134504.972-1-mario.six@gdsys.cc> Message-ID: <20180305185430.GT22474@bill-the-cat.ec.rr.com> 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, Mar 01, 2018 at 02:45:04PM +0100, Mario Six wrote: > The PCA953x driver uses "gpio@%x_" as the GPIO bank name, where "%x" is > instantiated with the I2C address of the chip. While this works, it > becomes very confusing if a board has multiple PCAs with the same > address on different I2C busses, and it also becomes an issue when a > GPIO's value is to be set via the 'gpio' command, because this command > only ever sets the value of the first device it encounters, leaving the > other devices inaccessible to the command. > > As to not break boards that rely on this naming scheme, we introduce a > new device tree string property "label" for the driver. If it exists, it > is used to build a bank name of the form "%s@%x_" (where %x is still > instantiated with the I2C address). If it does not exist, the legacy > labeling scheme is used. > > Signed-off-by: Mario Six 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: