Skip to content

Commit d866ff6

Browse files
authored
Merge pull request #427 from CodeChenL/aw
feat: add allwinner supports
2 parents 121f291 + 761986d commit d866ff6

File tree

5 files changed

+56
-8
lines changed

5 files changed

+56
-8
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
version: [linux-rockchip, linux-rk356x, linux-stable, linux-rk2312, linux-rk2410, linux-rk2410-nocsf]
15+
version: [linux-rockchip, linux-rk356x, linux-stable, linux-rk2312, linux-rk2410, linux-rk2410-nocsf, linux-aw2501]
1616
steps:
1717
- name: Checkout
1818
uses: actions/checkout@v4
1919
- name: Check if there is missing files
2020
shell: bash
2121
run: |
2222
MISSING=0
23-
for VENDOR in amlogic rockchip
23+
for VENDOR in amlogic rockchip allwinner
2424
do
2525
OVERLAY_PATH="arch/arm64/boot/dts/$VENDOR/overlays"
2626
for i in "$OVERLAY_PATH"/*.dts
@@ -62,6 +62,10 @@ jobs:
6262
wget https://github.com/radxa-pkg/linux-rk2410-nocsf/releases/download/6.1.84-5/linux-headers-6.1.84-5-rk2410-nocsf_6.1.84-5_arm64.deb
6363
sudo apt install ./linux-headers-*.deb
6464
;;
65+
linux-aw2501)
66+
wget https://github.com/radxa-pkg/linux-aw2501/releases/download/5.15.147-2/linux-headers-5.15.147-2-aw2501_5.15.147-2_arm64.deb
67+
sudo apt install ./linux-headers-*.deb
68+
;;
6569
esac
6670
- name: Build
6771
shell: bash
@@ -71,19 +75,22 @@ jobs:
7175
make build-dtbo -j$(nproc)
7276
;;
7377
linux-rockchip)
74-
make build-dtbo -j$(nproc) KERNELRELEASE=5.10.110-38-rockchip CONFIG_ARCH_MESON=n CONFIG_CPU_RK3399=rockchip CONFIG_CPU_RK3588=rockchip
78+
make build-dtbo -j$(nproc) KERNELRELEASE=5.10.110-38-rockchip CONFIG_ARCH_MESON=n CONFIG_CPU_RK3399=rockchip CONFIG_CPU_RK3588=rockchip CONFIG_ARCH_SUNXI=n
7579
;;
7680
linux-rk356x)
77-
make build-dtbo -j$(nproc) KERNELRELEASE=5.10.160-37-rk356x CONFIG_ARCH_MESON=n CONFIG_CPU_RK3528=rockchip CONFIG_CPU_RK3568=rockchip
81+
make build-dtbo -j$(nproc) KERNELRELEASE=5.10.160-37-rk356x CONFIG_ARCH_MESON=n CONFIG_CPU_RK3528=rockchip CONFIG_CPU_RK3568=rockchip CONFIG_ARCH_SUNXI=n
7882
;;
7983
linux-rk2312)
80-
make build-dtbo -j$(nproc) KERNELRELEASE=6.1.43-15-rk2312 CONFIG_ARCH_MESON=n CONFIG_CPU_RK3528=rockchip CONFIG_CPU_RK3588=rockchip
84+
make build-dtbo -j$(nproc) KERNELRELEASE=6.1.43-15-rk2312 CONFIG_ARCH_MESON=n CONFIG_CPU_RK3528=rockchip CONFIG_CPU_RK3588=rockchip CONFIG_ARCH_SUNXI=n
8185
;;
8286
linux-rk2410)
83-
make build-dtbo -j$(nproc) KERNELRELEASE=6.1.84-1-rk2410 CONFIG_ARCH_MESON=n CONFIG_CPU_RK3588=rockchip
87+
make build-dtbo -j$(nproc) KERNELRELEASE=6.1.84-1-rk2410 CONFIG_ARCH_MESON=n CONFIG_CPU_RK3588=rockchip CONFIG_ARCH_SUNXI=n
8488
;;
8589
linux-rk2410-nocsf)
86-
make build-dtbo -j$(nproc) KERNELRELEASE=6.1.84-5-rk2410-nocsf CONFIG_ARCH_MESON=n CONFIG_CPU_RK3568=rockchip CONFIG_CPU_RK3576=rockchip
90+
make build-dtbo -j$(nproc) KERNELRELEASE=6.1.84-5-rk2410-nocsf CONFIG_ARCH_MESON=n CONFIG_CPU_RK3568=rockchip CONFIG_CPU_RK3576=rockchip CONFIG_ARCH_SUNXI=n
91+
;;
92+
linux-aw2501)
93+
make build-dtbo -j$(nproc) KERNELRELEASE=5.15.147-2-aw2501 CONFIG_ARCH_SUNXI=allwinner CONFIG_ARCH_SUN55IW3=allwinner
8794
;;
8895
esac
8996
- name: Upload artifacts

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ CONFIG_CLK_RK3568 ?= rockchip
99
CONFIG_CLK_RK3576 ?= rockchip
1010
CONFIG_CLK_RK3588 ?= rockchip
1111
CONFIG_ARCH_MESON ?= amlogic
12+
CONFIG_ARCH_SUNXI ?= allwinner
1213
include $(wildcard arch/arm64/boot/dts/*/overlays/Makefile)
1314

15+
DTBO-ALLWINNER := $(addprefix arch/arm64/boot/dts/allwinner/overlays/,$(dtb-allwinner))
1416
DTBO-AMLOGIC := $(addprefix arch/arm64/boot/dts/amlogic/overlays/,$(dtb-amlogic))
1517
DTBO-ROCKCHIP := $(addprefix arch/arm64/boot/dts/rockchip/overlays/,$(dtb-rockchip))
16-
DTBO := $(DTBO-AMLOGIC) $(DTBO-ROCKCHIP)
18+
DTBO := $(DTBO-AMLOGIC) $(DTBO-ROCKCHIP) $(DTBO-ALLWINNER)
1719
TMP := $(addsuffix .tmp,$(DTBO))
1820

1921
.PHONY: all
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
dtb-$(CONFIG_ARCH_SUN55IW3) += \
2+
sun55iw3p1-uart3.dtbo
3+
4+
targets += $(dtb-y)
5+
6+
always-y := $(dtb-y)
7+
clean-files := *.dtbo *.scr
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/dts-v1/;
2+
/plugin/;
3+
4+
/ {
5+
metadata {
6+
title = "Enable UART3";
7+
compatible = "radxa,cubie-a5e";
8+
category = "misc";
9+
exclusive = "PI11", "PI12", "uart3";
10+
description = "Enable UART3.
11+
On Radxa Cubie A5E, this is pin 16 and pin 31.
12+
";
13+
};
14+
};
15+
16+
&uart3_pins_a {
17+
pins = "PI11", "PI12";
18+
function = "uart3";
19+
};
20+
21+
&uart3_pins_b {
22+
pins = "PI11", "PI12";
23+
function = "gpio_in";
24+
};
25+
26+
&uart3 {
27+
pinctrl-names = "default", "sleep";
28+
pinctrl-0 = <&uart3_pins_a>;
29+
pinctrl-1 = <&uart3_pins_b>;
30+
status = "okay";
31+
};

debian/Makefile.dkms

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
subdir-y += arch/arm64/boot/dts/allwinner/overlays
12
subdir-y += arch/arm64/boot/dts/amlogic/overlays
23
subdir-y += arch/arm64/boot/dts/rockchip/overlays
34
obj-m := radxa-overlays.o

0 commit comments

Comments
 (0)