diff options
-rw-r--r-- | sys/arm/conf/A20 | 1 | ||||
-rw-r--r-- | sys/boot/fdt/dts/arm/bananapi.dts | 11 | ||||
-rw-r--r-- | sys/boot/fdt/dts/arm/cubieboard2.dts | 16 | ||||
-rw-r--r-- | sys/boot/fdt/dts/arm/sun7i-a20.dtsi | 2 |
4 files changed, 29 insertions, 1 deletions
diff --git a/sys/arm/conf/A20 b/sys/arm/conf/A20 index f1b81ad..00cdb8f 100644 --- a/sys/arm/conf/A20 +++ b/sys/arm/conf/A20 @@ -78,6 +78,7 @@ device random # Entropy device # GPIO device gpio +device gpioled device scbus # SCSI bus (required for ATA/SCSI) device da # Direct Access (disks) diff --git a/sys/boot/fdt/dts/arm/bananapi.dts b/sys/boot/fdt/dts/arm/bananapi.dts index cedb0c8..ee5ec76 100644 --- a/sys/boot/fdt/dts/arm/bananapi.dts +++ b/sys/boot/fdt/dts/arm/bananapi.dts @@ -30,6 +30,8 @@ /include/ "sun7i-a20.dtsi" +#include <dt-bindings/gpio/gpio.h> + / { model = "LeMaker Banana Pi"; compatible = "lemaker,bananapi", "allwinner,sun7i-a20"; @@ -72,6 +74,15 @@ }; }; + leds { + compatible = "gpio-leds"; + + green { + label = "bananapi:green:usr"; + gpios = <&pio 7 24 GPIO_ACTIVE_HIGH>; + }; + }; + chosen { bootargs = "-v"; stdin = "UART0"; diff --git a/sys/boot/fdt/dts/arm/cubieboard2.dts b/sys/boot/fdt/dts/arm/cubieboard2.dts index 9593b91..700952a 100644 --- a/sys/boot/fdt/dts/arm/cubieboard2.dts +++ b/sys/boot/fdt/dts/arm/cubieboard2.dts @@ -30,6 +30,8 @@ /include/ "sun7i-a20.dtsi" +#include <dt-bindings/gpio/gpio.h> + / { model = "Cubietech Cubieboard2"; @@ -70,6 +72,20 @@ }; }; + leds { + compatible = "gpio-leds"; + + blue { + label = "cubieboard2:blue:usr"; + gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>; + }; + + green { + label = "cubieboard2:green:usr"; + gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>; + }; + }; + chosen { bootargs = "-v"; stdin = "UART0"; diff --git a/sys/boot/fdt/dts/arm/sun7i-a20.dtsi b/sys/boot/fdt/dts/arm/sun7i-a20.dtsi index b58fc92..e468677 100644 --- a/sys/boot/fdt/dts/arm/sun7i-a20.dtsi +++ b/sys/boot/fdt/dts/arm/sun7i-a20.dtsi @@ -86,7 +86,7 @@ reg = <0x01c20c90 0x10>; }; - GPIO: gpio@01c20800 { + pio: gpio@01c20800 { #gpio-cells = <3>; compatible = "allwinner,sun4i-gpio"; gpio-controller; |