]> git.baikalelectronics.ru Git - uboot.git/commit
gpio: dwapb_gpio: fix binding without bank-name property
authorSimon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Fri, 2 Nov 2018 10:54:50 +0000 (11:54 +0100)
committerMarek Vasut <marex@denx.de>
Thu, 29 Nov 2018 11:45:15 +0000 (12:45 +0100)
commit178c267983367f50c74ca9fb2eab5faca4f168e5
tree23f6093f910c394671c7a6727b67ec216a587bea
parentcb63a87cab4c5143bd880affcd1bcb080a5aafd3
gpio: dwapb_gpio: fix binding without bank-name property

As a preparation for merging the socfpga gen5 devicetree files
from Linux, this patch makes the dwapb gpio driver work correctly
without the 'bank-name' property on the gpio-controller nodes.

This property is not present in the Linux drivers and thus is not
present in the Linux devicetrees. It is only used to access pins
via bank name.

This fallback is necessary since without it, the driver will
return an error code which will lead to an error in U-Boot
startup.

The bank names will still be added to the default board device
trees in follow-up patch, but other boards using this driver and
not including the bank name should also work with the socfpga.dtsi
without adding the bank-name property.

Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
drivers/gpio/dwapb_gpio.c