-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Migrate Radxa Cubie A5E to mainline 6.16 #8447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
d93e8fc
migrate u-boot and kernel to mainline
juanesf c993bc6
Add patches for 6.17
juanesf 26fa294
fix compile for patches addes
juanesf ea8933d
Orderer patches, switch kernel config to sunxi64, recreate some patch…
juanesf 08b9123
Merge branch 'armbian:main' into main
juanesf 5512e4f
Update linux-sunxi64-edge.config after pm-domain & sun55i-gmac200 act…
juanesf e982208
Merge branch 'armbian:main' into main
juanesf bd93c98
enable wifi and bluetooth
juanesf 3673ac3
Merge branch 'main' of https://github.com/juanesf/build
juanesf 4bb0e86
revert linux-sunxi64-edge.config
juanesf 242d292
Merge branch 'armbian:main' into main
juanesf 7128fbe
drop sunxi-dev-6.14 and cleanup involved patches
juanesf 3e2d11d
Update radxa-cubie-a5e.csc
juanesf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
patch/kernel/archive/sunxi-6.16/00-Add-leds-Radxa-Cubie-A5E.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
| From: Juan Sanchez <juanesf91@gmail.com> | ||
| Date: Sat, 14 Jun 2025 19:07:52 -0400 | ||
| Subject: Add leds to Radxa Cubie A5E | ||
|
|
||
| Signed-off-by: Juan Sanchez <juanesf91@gmail.com> | ||
| --- | ||
| arch/arm64/boot/dts/allwinner/sun55i-a527-cubie-a5e.dts | 16 ++++++++++ | ||
| 1 file changed, 16 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 0f58d92a6adc..1c56306dffa1 100644 | ||
| --- a/arch/arm64/boot/dts/allwinner/sun55i-a527-cubie-a5e.dts | ||
| +++ b/arch/arm64/boot/dts/allwinner/sun55i-a527-cubie-a5e.dts | ||
| @@ -18,10 +18,26 @@ aliases { | ||
|
|
||
| chosen { | ||
| stdout-path = "serial0:115200n8"; | ||
| }; | ||
|
|
||
| + leds { | ||
| + compatible = "gpio-leds"; | ||
| + | ||
| + led-0 { | ||
| + label = "radxa:green:power"; | ||
| + gpios = <&r_pio 0 4 GPIO_ACTIVE_LOW>; /* PL4 */ | ||
| + linux,default-trigger = "heartbeat"; | ||
| + }; | ||
| + | ||
| + led-1 { | ||
| + label = "radxa:blue:user"; | ||
| + gpios = <&r_pio 0 5 GPIO_ACTIVE_LOW>; /* PL5 */ | ||
| + linux,default-trigger = "default-on"; | ||
| + }; | ||
| + }; | ||
| + | ||
| ext_osc32k: ext-osc32k-clk { | ||
| #clock-cells = <0>; | ||
| compatible = "fixed-clock"; | ||
| clock-frequency = <32768>; | ||
| clock-output-names = "ext_osc32k"; | ||
| -- | ||
| Created with Armbian build tools https://github.com/armbian/build | ||
|
|
78 changes: 78 additions & 0 deletions
78
patch/kernel/archive/sunxi-6.16/01-Add-wifi-to-Radxa-Cubie-A5E.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| 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 | ||
|
|
42 changes: 42 additions & 0 deletions
42
patch/kernel/archive/sunxi-6.16/02-arm64-dts-allwinner-a523-add-Mali-GPU-node.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| From: Mikhail Kalashnikov <iuncuim@gmail.com> | ||
|
|
||
| The Allwinner A523 SoC features the Mali-G57 MC1 GPU, which belongs | ||
| to the Mali Valhall (v9) family. There is a power domain specifically | ||
| for this GPU that needs to be enabled to utilize it. | ||
|
|
||
| To enable in a specific device, we need to enable the gpu node and specify | ||
| the “mali-supply” regulator additionally in the device tree. | ||
|
|
||
| Signed-off-by: Mikhail Kalashnikov <iuncuim@gmail.com> | ||
| --- | ||
| arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi | 15 +++++++++++++++ | ||
| 1 file changed, 15 insertions(+) | ||
|
|
||
| diff --git a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi | ||
| index dd6fa22f9..d3528d498 100644 | ||
| --- a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi | ||
| +++ b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi | ||
| @@ -108,6 +108,21 @@ soc { | ||
| #size-cells = <1>; | ||
| ranges = <0x0 0x0 0x0 0x40000000>; | ||
|
|
||
| + gpu: gpu@1800000 { | ||
| + compatible = "allwinner,sun55i-a523-mali", | ||
| + "arm,mali-valhall-jm"; | ||
| + reg = <0x1800000 0x10000>; | ||
| + interrupts = <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>, | ||
| + <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>, | ||
| + <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>; | ||
| + interrupt-names = "job", "mmu", "gpu"; | ||
| + clocks = <&ccu CLK_GPU>, <&ccu CLK_BUS_GPU>; | ||
| + clock-names = "core", "bus"; | ||
| + power-domains = <&pck600 PD_GPU>; | ||
| + resets = <&ccu RST_BUS_GPU>; | ||
| + status = "disabled"; | ||
| + }; | ||
| + | ||
| pio: pinctrl@2000000 { | ||
| compatible = "allwinner,sun55i-a523-pinctrl"; | ||
| reg = <0x2000000 0x800>; | ||
| -- | ||
| 2.50.0 |
57 changes: 57 additions & 0 deletions
57
...el/archive/sunxi-6.16/03-arm64-dts-allwinner-a523-Add-power-controller-device-nodes.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| From: Chen-Yu Tsai <wens@csie.org> | ||
|
|
||
| The A523 SoC family has two power controllers, one based on the existing | ||
| PPU, and one newer one based on ARM's PCK-600. | ||
|
|
||
| Add device nodes for both of them. | ||
|
|
||
| Signed-off-by: Chen-Yu Tsai <wens@csie.org> | ||
| --- | ||
| arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi | 18 ++++++++++++++++++ | ||
| 1 file changed, 18 insertions(+) | ||
|
|
||
| diff --git a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi | ||
| index 6f62201fd739..255e0ef98219 100644 | ||
| --- a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi | ||
| +++ b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi | ||
| @@ -7,6 +7,8 @@ | ||
| #include <dt-bindings/clock/sun55i-a523-r-ccu.h> | ||
| #include <dt-bindings/reset/sun55i-a523-ccu.h> | ||
| #include <dt-bindings/reset/sun55i-a523-r-ccu.h> | ||
| +#include <dt-bindings/power/allwinner,sun55i-a523-ppu.h> | ||
| +#include <dt-bindings/power/allwinner,sun55i-a523-pck600.h> | ||
|
|
||
| / { | ||
| interrupt-parent = <&gic>; | ||
| @@ -576,6 +578,14 @@ mdio0: mdio { | ||
| }; | ||
| }; | ||
|
|
||
| + ppu: power-controller@7001400 { | ||
| + compatible = "allwinner,sun55i-a523-ppu"; | ||
| + reg = <0x07001400 0x400>; | ||
| + clocks = <&r_ccu CLK_BUS_R_PPU1>; | ||
| + resets = <&r_ccu RST_BUS_R_PPU1>; | ||
| + #power-domain-cells = <1>; | ||
| + }; | ||
| + | ||
| r_ccu: clock-controller@7010000 { | ||
| compatible = "allwinner,sun55i-a523-r-ccu"; | ||
| reg = <0x7010000 0x250>; | ||
| @@ -622,6 +632,14 @@ r_i2c_pins: r-i2c-pins { | ||
| }; | ||
| }; | ||
|
|
||
| + pck600: power-controller@7060000 { | ||
| + compatible = "allwinner,sun55i-a523-pck-600"; | ||
| + reg = <0x07060000 0x8000>; | ||
| + clocks = <&r_ccu CLK_BUS_R_PPU0>; | ||
| + resets = <&r_ccu RST_BUS_R_PPU0>; | ||
| + #power-domain-cells = <1>; | ||
| + }; | ||
| + | ||
| r_i2c0: i2c@7081400 { | ||
| compatible = "allwinner,sun55i-a523-i2c", | ||
| "allwinner,sun8i-v536-i2c", | ||
| -- | ||
| 2.39.5 |
41 changes: 41 additions & 0 deletions
41
patch/kernel/archive/sunxi-6.16/04-arm64-dts-allwinner-a523-Add-UART1-pins.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| From: Chen-Yu Tsai <wens@csie.org> | ||
|
|
||
| UART1 is normally used to connect to the Bluetooth side of a Broadcom | ||
| WiFi+BT combo chip. The connection uses 4 pins. | ||
|
|
||
| Add pinmux nodes for UART1, one for the RX/TX pins, and one for the | ||
| RTS/CTS pins. | ||
|
|
||
| Reviewed-by: Andre Przywara <andre.przywara@arm.com> | ||
| Signed-off-by: Chen-Yu Tsai <wens@csie.org> | ||
| --- | ||
| arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi | 14 ++++++++++++++ | ||
| 1 file changed, 14 insertions(+) | ||
|
|
||
| diff --git a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi | ||
| index 4839411e51cf..cf0bc39aab04 100644 | ||
| --- a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi | ||
| +++ b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi | ||
| @@ -168,6 +168,20 @@ uart0_pb_pins: uart0-pb-pins { | ||
| allwinner,pinmux = <2>; | ||
| function = "uart0"; | ||
| }; | ||
| + | ||
| + /omit-if-no-ref/ | ||
| + uart1_pins: uart1-pins { | ||
| + pins = "PG6", "PG7"; | ||
| + function = "uart1"; | ||
| + allwinner,pinmux = <2>; | ||
| + }; | ||
| + | ||
| + /omit-if-no-ref/ | ||
| + uart1_rts_cts_pins: uart1-rts-cts-pins { | ||
| + pins = "PG8", "PG9"; | ||
| + function = "uart1"; | ||
| + allwinner,pinmux = <2>; | ||
| + }; | ||
| }; | ||
|
|
||
| ccu: clock-controller@2001000 { | ||
| -- | ||
| 2.39.5 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.