Re: arm64: GPIO "pin bus" drivers

2018-04-24 Thread Mark Kettenis
> Date: Tue, 24 Apr 2018 08:32:40 +0300
> From: Artturi Alm 
> 
> Hi,
> 
> pine64 still being my only arm64-sbc, i won't bother w/
> gpio* at rkgpio?
> etc., but i would like to have these enabled for arm64,
> as atleast pine64 is equipped w/plenty of headers/pins brought out, and
> gpio* at sxipio?
> is there already:)

Thanks.  The gpioiic(4) is probably not all that useful considering
that there pins for a real i2c controller available as well.

Anyway, I committed the diff.  Thanks.



arm64: GPIO "pin bus" drivers

2018-04-23 Thread Artturi Alm
Hi,

pine64 still being my only arm64-sbc, i won't bother w/
gpio*   at rkgpio?
etc., but i would like to have these enabled for arm64,
as atleast pine64 is equipped w/plenty of headers/pins brought out, and
gpio*   at sxipio?
is there already:)


-Artturi


diff --git sys/arch/arm64/conf/GENERIC sys/arch/arm64/conf/GENERIC
index c5c86db19d6..3990b7122ae 100644
--- sys/arch/arm64/conf/GENERIC
+++ sys/arch/arm64/conf/GENERIC
@@ -288,6 +288,12 @@ uk*at scsibus?
 # I2C devices
 rkpmic*at iic? # RK808 PMIC
 
+# GPIO "pin bus" drivers
+gpioiic*   at gpio?# I2C bus bit-banging
+iic*   at gpioiic?
+gpioow*at gpio?# 1-Wire bus bit-banging
+onewire*   at gpioow?
+
 # 1-Wire devices
 option ONEWIREVERBOSE
 owid*  at onewire? # ID