diff options
author | loos <loos@FreeBSD.org> | 2015-08-30 23:20:00 +0000 |
---|---|---|
committer | loos <loos@FreeBSD.org> | 2015-08-30 23:20:00 +0000 |
commit | 55b48887c419a089e944eccc1a25c2e4efb327e3 (patch) | |
tree | 78f6834f3deca51a5468683d078bd34a29abdb5c /sys/boot/fdt/dts | |
parent | 31eef3e08357d5af4fef967ad8b295e666c51a4f (diff) | |
download | FreeBSD-src-55b48887c419a089e944eccc1a25c2e4efb327e3.zip FreeBSD-src-55b48887c419a089e944eccc1a25c2e4efb327e3.tar.gz |
Add the LED definitions from vendor's DTS.
Add gpioled support to A20 kernel.
While here rename the gpio phandle to match the one used in the vendor's
DTS.
Diffstat (limited to 'sys/boot/fdt/dts')
-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 |
3 files changed, 28 insertions, 1 deletions
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; |