fix wifi_wake and reset-gpios for WiFi on nanopim1plus2 and zeroplus2-H5

This commit is contained in:
Martin Ayotte 2017-05-13 18:37:18 -04:00
parent dc9c7ea5c2
commit eb13a1c1bc
2 changed files with 22 additions and 4 deletions

View file

@ -13,7 +13,7 @@ new file mode 100644
index 0000000..4fc6ffd
--- /dev/null
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopim1plus2.dts
@@ -0,0 +1,149 @@
@@ -0,0 +1,158 @@
+/*
+ * Copyright (c) 2016 ARM Ltd.
+ *
@ -83,7 +83,8 @@ index 0000000..4fc6ffd
+ compatible = "mmc-pwrseq-simple";
+ pinctrl-names = "default";
+ pinctrl-0 = <&wifi_en_pin>;
+ reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
+ reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */
+ post-power-on-delay-ms = <50>;
+ };
+
+ reg_usb1_vbus: usb1-vbus {
@ -146,6 +147,14 @@ index 0000000..4fc6ffd
+ allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+ };
+
+ wifi_wake: wifi_wake@0 {
+ allwinner,pins = "PG10";
+ allwinner,function = "irq";
+ allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
+ };
+};
+
+&r_pio {
+ wifi_en_pin: wifi_en_pin@0 {
+ allwinner,pins = "PL7";
+ allwinner,function = "gpio_out";

View file

@ -16,7 +16,7 @@ new file mode 100644
index 0000000..4fc6ffd
--- /dev/null
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zeroplus.dts
@@ -0,0 +1,136 @@
@@ -0,0 +1,145 @@
+/*
+ * Copyright (c) 2016 ARM Ltd.
+ *
@ -76,7 +76,8 @@ index 0000000..4fc6ffd
+ compatible = "mmc-pwrseq-simple";
+ pinctrl-names = "default";
+ pinctrl-0 = <&wifi_en_pin>;
+ reset-gpios = <&pio 0 9 GPIO_ACTIVE_HIGH>; /* PA9 */
+ reset-gpios = <&pio 0 9 GPIO_ACTIVE_LOW>; /* PA9 */
+ post-power-on-delay-ms = <50>;
+ };
+
+ reg_usb1_vbus: usb1-vbus {
@ -144,6 +145,14 @@ index 0000000..4fc6ffd
+ };
+};
+
+&r_pio {
+ wifi_wake: wifi_wake@0 {
+ allwinner,pins = "PL7";
+ allwinner,function = "irq";
+ allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
+ };
+};
+
+&spi0 {
+ /delete-node/ spi-flash@0;
+};