[U-Boot] [PATCH] gpio: Add DM GPIO driver for Marvell MVEBU
Stefan Roese
sr at denx.de
Mon Feb 15 18:40:38 CET 2016
Hi Kevin,
On 15.02.2016 18:13, Kevin Smith wrote:
> On 02/12/2016 06:46 AM, Stefan Roese wrote:
>> This patch adds a DM GPIO driver for the Marvell MVEBU SoCs. There are
>> other non-DM drivers that might be used on these platforms. But this
>> patch creates a new DM driver. Which will be used by all Armada XP/38x
>> boards. Other MVEBU SoC (Kirkwood / Orion) may follow once they
>> support DM as well.
>>
> Are there any GPIO functions on the db-88f6820-gp board that I can use
> to test this patch? I'm not seeing any "xxxx-gpios = <&gpioX ...>"
> nodes in the current device tree.
Correct. But there are the GPIO controller DT nodes. That will
instantiate the GPIO DM interface. So you could use:
=> dm tree
to see the GPIO controllers listed (if enabled). And if you enable
the GPIO commands (CONFIG_CMD_GPIO) then you can e.g. do:
=> gpio status -a
to list all GPIOs and there status. If a board / driver claims a
GPIO (request_gpio) this should also be visible via this interface.
Thanks,
Stefan
More information about the U-Boot
mailing list