79 lines
2.0 KiB
Diff
79 lines
2.0 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Juan Sanchez <juanesf91@gmail.com>
|
|
Date: Fri, 4 Jul 2025 15:17:54 -0400
|
|
Subject: Add wifi (mmc1) to Radxa Cubie A5E
|
|
|
|
Signed-off-by: Juan Sanchez <juanesf91@gmail.com>
|
|
---
|
|
arch/arm64/boot/dts/allwinner/sun55i-a527-cubie-a5e.dts | 28 ++++++++++
|
|
1 file changed, 28 insertions(+)
|
|
|
|
diff --git a/arch/arm64/boot/dts/allwinner/sun55i-a527-cubie-a5e.dts b/arch/arm64/boot/dts/allwinner/sun55i-a527-cubie-a5e.dts
|
|
index 1c56306dffa1..d9bbfb916090 100644
|
|
--- a/arch/arm64/boot/dts/allwinner/sun55i-a527-cubie-a5e.dts
|
|
+++ b/arch/arm64/boot/dts/allwinner/sun55i-a527-cubie-a5e.dts
|
|
@@ -11,10 +11,11 @@ / {
|
|
model = "Radxa Cubie A5E";
|
|
compatible = "radxa,cubie-a5e", "allwinner,sun55i-a527";
|
|
|
|
aliases {
|
|
ethernet0 = &gmac0;
|
|
+ ethernet2 = &sdio_wifi;
|
|
serial0 = &uart0;
|
|
};
|
|
|
|
chosen {
|
|
stdout-path = "serial0:115200n8";
|
|
@@ -41,10 +42,20 @@ ext_osc32k: ext-osc32k-clk {
|
|
compatible = "fixed-clock";
|
|
clock-frequency = <32768>;
|
|
clock-output-names = "ext_osc32k";
|
|
};
|
|
|
|
+ reg_3v3_wifi: 3v3-wifi {
|
|
+ compatible = "regulator-fixed";
|
|
+ regulator-name = "3v3-wifi";
|
|
+ regulator-min-microvolt = <3300000>;
|
|
+ regulator-max-microvolt = <3300000>;
|
|
+ vin-supply = <®_vcc5v>;
|
|
+ gpio = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
|
|
+ enable-active-high;
|
|
+ };
|
|
+
|
|
reg_vcc5v: vcc5v {
|
|
/* board wide 5V supply from the USB-C connector */
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "vcc-5v";
|
|
regulator-min-microvolt = <5000000>;
|
|
@@ -94,10 +105,27 @@ &mmc0 {
|
|
cd-gpios = <&pio 5 6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* PF6 */
|
|
bus-width = <4>;
|
|
status = "okay";
|
|
};
|
|
|
|
+&mmc1_pins {
|
|
+ drive-strength = <40>;
|
|
+};
|
|
+
|
|
+&mmc1 {
|
|
+ bus-width = <4>;
|
|
+ vmmc-supply = <®_3v3_wifi>;
|
|
+ non-removable;
|
|
+ // todo: investigate why clock above 40MHz makes data errors
|
|
+ max-frequency = <35000000>;
|
|
+ status = "okay";
|
|
+
|
|
+ sdio_wifi: wifi@1 {
|
|
+ reg = <1>;
|
|
+ };
|
|
+};
|
|
+
|
|
&ohci0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&ohci1 {
|
|
--
|
|
Created with Armbian build tools https://github.com/armbian/build
|
|
|