]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
a10_gpio: Add support for more modern pin configuration
authorkevans <kevans@FreeBSD.org>
Fri, 1 Dec 2017 20:51:08 +0000 (20:51 +0000)
committerkevans <kevans@FreeBSD.org>
Fri, 1 Dec 2017 20:51:08 +0000 (20:51 +0000)
commit2d889547258d270aca87572725671173a44269c0
tree7e2b134ee04c257966198c96417eb60b43cc998c
parent76ca06b62f3bfb21f1f2e1295eb89e3c235bdda7
a10_gpio: Add support for more modern pin configuration

a10_gpio previously accepted only {allwinner,}drive and {allwinner,}pull for
drive/bias setting, while newer DTS is using drive-strength and
bias-{disable,pull-up,pull-down} properties. Accept these properties as
well.

Additionally make bias and drive strength optional rather than required; not
setting them should just indicate that we do not need to configure these
properties.

Tested on: BananaPi-M3 (a83t)
Reviewed by: manu
Approved by: emaste (implicit)
Obtained from: NetBSD (partially)
Differential Revision: https://reviews.freebsd.org/D13284
sys/arm/allwinner/a10_gpio.c