Home
last modified time | relevance | path

Searched hist:"89 f1fe5b" (Results 1 – 1 of 1) sorted by relevance

/openbmc/u-boot/drivers/gpio/
H A Ddwapb_gpio.c89f1fe5b Fri Nov 02 05:54:50 CDT 2018 Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> 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>