Enable Wireless and Nightly Stretch image for Nanopi Neo Air

This commit is contained in:
Igor Pecovnik 2017-11-12 13:27:13 +01:00
parent 922e5454aa
commit 37433ccc38
2 changed files with 93 additions and 2 deletions

View file

@ -14,9 +14,9 @@ BUILD_DESKTOP="no"
KERNEL_TARGET="default,next,dev"
CLI_TARGET="jessie,xenial:default"
CLI_BETA_TARGET=""
CLI_BETA_TARGET="stretch:next"
#
RECOMMENDED="Ubuntu_xenial_default:90,Ubuntu_xenial_next_nightly:33"
RECOMMENDED="Ubuntu_xenial_default:90,Debian_stretch_next_nightly:60"
#
BOARDRATING=""
CHIP="http://docs.armbian.com/Hardware_Allwinner-H3/"

View file

@ -0,0 +1,91 @@
diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts b/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts
old mode 100644
new mode 100755
index 03ff6f8..ddbb92b
--- a/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts
+++ b/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts
@@ -47,7 +47,7 @@
#include <dt-bindings/gpio/gpio.h>
/ {
- model = "FriendlyARM NanoPi NEO Air";
+ model = "FriendlyElec NanoPi NEO Air";
compatible = "friendlyarm,nanopi-neo-air", "allwinner,sun8i-h3";
aliases {
@@ -58,6 +58,13 @@
stdout-path = "serial0:115200n8";
};
+ wifi_pwrseq: wifi_pwrseq {
+ compatible = "mmc-pwrseq-simple";
+ pinctrl-names = "default";
+ pinctrl-0 = <&wifi_en_neoair>;
+ reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */
+ };
+
leds {
compatible = "gpio-leds";
@@ -70,10 +77,18 @@
status {
label = "nanopi:blue:status";
gpios = <&pio 0 10 GPIO_ACTIVE_HIGH>; /* PA10 */
+ linux,default-trigger = "heartbeat";
};
};
};
+&r_pio {
+ wifi_en_neoair: wifi_en_pin@0 {
+ allwinner,pins = "PL7";
+ allwinner,function = "gpio_out";
+ };
+};
+
&mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>;
@@ -84,6 +99,42 @@
status = "okay";
};
+&mmc1 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&mmc1_pins_a>;
+ vmmc-supply = <&reg_vcc3v3>;
+ vqmmc-supply = <&reg_vcc3v3>;
+ mmc-pwrseq = <&wifi_pwrseq>;
+ bus-width = <4>;
+ non-removable;
+ status = "okay";
+
+ brcmf: bcrmf@1 {
+ reg = <1>;
+ compatible = "brcm,bcm4329-fmac";
+ interrupt-parent = <&pio>;
+ interrupts = <6 10 IRQ_TYPE_LEVEL_LOW>; /* PG10 / EINT10 */
+ interrupt-names = "host-wake";
+ };
+};
+
+&mmc2 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&mmc2_8bit_pins>;
+ vmmc-supply = <&reg_vcc3v3>;
+ bus-width = <8>;
+ non-removable;
+ cap-mmc-hw-reset;
+ status = "okay";
+};
+
+&mmc2_8bit_pins {
+ /* Increase drive strength for DDR modes */
+ drive-strength = <40>;
+ /* eMMC is missing pull-ups */
+ bias-pull-up;
+};
+
&uart0 {
pinctrl-names = "default";
pinctrl-0 = <&uart0_pins_a>;