mirror of
https://github.com/linux-sunxi/meta-sunxi.git
synced 2024-11-19 19:58:22 +01:00
1f46cadd4c
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
101 lines
2.3 KiB
Diff
101 lines
2.3 KiB
Diff
From 055155f463693e61f9018a011ad600d872d6736f Mon Sep 17 00:00:00 2001
|
|
From: Marek Belisko <marek.belisko@open-nandra.com>
|
|
Date: Fri, 2 Aug 2019 14:46:10 +0200
|
|
Subject: [PATCH] dts: orange-pi-zero: Add wifi support
|
|
|
|
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
|
|
---
|
|
arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts | 47 ++++++++++++++++++-----
|
|
1 file changed, 37 insertions(+), 10 deletions(-)
|
|
|
|
diff --git a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
|
|
index 84cd9c0..77b2fc6 100644
|
|
--- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
|
|
+++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
|
|
@@ -80,13 +80,14 @@
|
|
};
|
|
};
|
|
|
|
- reg_vcc_wifi: reg_vcc_wifi {
|
|
- compatible = "regulator-fixed";
|
|
- regulator-min-microvolt = <3300000>;
|
|
- regulator-max-microvolt = <3300000>;
|
|
- regulator-name = "vcc-wifi";
|
|
- enable-active-high;
|
|
+ vdd_wifi: vdd_wifi {
|
|
+ regulator-name = "wifi";
|
|
+ regulator-min-microvolt = <1800000>;
|
|
+ regulator-max-microvolt = <1800000>;
|
|
gpio = <&pio 0 20 GPIO_ACTIVE_HIGH>;
|
|
+ startup-delay-us = <70000>;
|
|
+ enable-active-high;
|
|
+
|
|
};
|
|
|
|
reg_vdd_cpux: vdd-cpux-regulator {
|
|
@@ -106,10 +107,12 @@
|
|
1300000 1>;
|
|
};
|
|
|
|
- wifi_pwrseq: wifi_pwrseq {
|
|
+ pwrseq_wifi: pwrseq_wifi {
|
|
compatible = "mmc-pwrseq-simple";
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&wifi_rst>;
|
|
reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>;
|
|
- post-power-on-delay-ms = <200>;
|
|
+ post-power-on-delay-ms = <50>;
|
|
};
|
|
};
|
|
|
|
@@ -140,9 +143,11 @@
|
|
};
|
|
|
|
&mmc1 {
|
|
- vmmc-supply = <®_vcc_wifi>;
|
|
- mmc-pwrseq = <&wifi_pwrseq>;
|
|
+ vmmc-supply = <®_vcc3v3>;
|
|
+ vqmmc-supply = <&vdd_wifi>;
|
|
+ mmc-pwrseq = <&pwrseq_wifi>;
|
|
bus-width = <4>;
|
|
+ max-frequency = <16000000>;
|
|
non-removable;
|
|
status = "okay";
|
|
|
|
@@ -152,6 +157,13 @@
|
|
*/
|
|
xr819: sdio_wifi@1 {
|
|
reg = <1>;
|
|
+ compatible = "xradio,xr819";
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&wifi_wake>;
|
|
+ interrupt-parent = <&pio>;
|
|
+ interrupts = <6 10 IRQ_TYPE_EDGE_RISING>;
|
|
+ interrupt-names = "host-wake";
|
|
+ local-mac-address = [dc 44 6d c0 ff ee];
|
|
};
|
|
};
|
|
|
|
@@ -208,3 +220,18 @@
|
|
status = "okay";
|
|
usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
|
|
};
|
|
+
|
|
+&pio {
|
|
+ wifi_wake: wifi_wake {
|
|
+ pins = "PG10";
|
|
+ function = "gpio_in";
|
|
+ };
|
|
+};
|
|
+
|
|
+&r_pio {
|
|
+ wifi_rst: wifi_rst {
|
|
+ pins = "PL7";
|
|
+ function = "gpio_out";
|
|
+ };
|
|
+};
|
|
+
|
|
--
|
|
2.7.4
|
|
|