forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sunxi: copy config and patches from 5.10 to 5.15
So the upcoming changes needed for 5.15 can be reviewed easily. Removed following upstreamed patches: * 062-add-sun8i-h3-zeropi-support.patch * 100-sunxi-h3-add-support-for-nanopi-r1.patch * 101-sunxi-h5-add-support-for-nanopi-r1s-h5.patch Signed-off-by: Petr Štetiar <[email protected]>
- Loading branch information
Showing
11 changed files
with
874 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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,83 @@ | ||
CONFIG_64BIT=y | ||
CONFIG_ARCH_MMAP_RND_BITS=18 | ||
CONFIG_ARCH_MMAP_RND_BITS_MAX=24 | ||
CONFIG_ARCH_MMAP_RND_BITS_MIN=18 | ||
CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=11 | ||
CONFIG_ARCH_PROC_KCORE_TEXT=y | ||
CONFIG_ARCH_SPARSEMEM_DEFAULT=y | ||
CONFIG_ARCH_STACKWALK=y | ||
CONFIG_ARM64=y | ||
CONFIG_ARM64_4K_PAGES=y | ||
CONFIG_ARM64_PAGE_SHIFT=12 | ||
CONFIG_ARM64_PA_BITS=48 | ||
CONFIG_ARM64_PA_BITS_48=y | ||
# CONFIG_ARM64_PTR_AUTH is not set | ||
# CONFIG_ARM64_SVE is not set | ||
CONFIG_ARM64_TAGGED_ADDR_ABI=y | ||
CONFIG_ARM64_VA_BITS=39 | ||
CONFIG_ARM64_VA_BITS_39=y | ||
CONFIG_ARM64_WORKAROUND_REPEAT_TLBI=y | ||
CONFIG_ARM64_WORKAROUND_SPECULATIVE_AT=y | ||
CONFIG_ARM_AMBA=y | ||
CONFIG_ARM_ARCH_TIMER_OOL_WORKAROUND=y | ||
CONFIG_ARM_GIC_V3=y | ||
CONFIG_ARM_GIC_V3_ITS=y | ||
CONFIG_AUDIT_ARCH_COMPAT_GENERIC=y | ||
CONFIG_CC_HAVE_STACKPROTECTOR_SYSREG=y | ||
CONFIG_DMA_DIRECT_REMAP=y | ||
CONFIG_DWMAC_SUN8I=y | ||
CONFIG_EEPROM_AT24=y | ||
# CONFIG_FLATMEM_MANUAL is not set | ||
CONFIG_FRAME_POINTER=y | ||
CONFIG_GENERIC_BUG_RELATIVE_POINTERS=y | ||
CONFIG_GENERIC_CPU_VULNERABILITIES=y | ||
CONFIG_GENERIC_CSUM=y | ||
CONFIG_GENERIC_MSI_IRQ=y | ||
CONFIG_GENERIC_MSI_IRQ_DOMAIN=y | ||
CONFIG_HOLES_IN_ZONE=y | ||
CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000 | ||
CONFIG_MDIO_BUS_MUX=y | ||
CONFIG_MICREL_PHY=y | ||
CONFIG_MODULES_USE_ELF_RELA=y | ||
CONFIG_MUSB_PIO_ONLY=y | ||
CONFIG_NEED_SG_DMA_LENGTH=y | ||
CONFIG_NOP_USB_XCEIV=y | ||
CONFIG_NO_IOPORT_MAP=y | ||
CONFIG_PARTITION_PERCPU=y | ||
CONFIG_PHY_SUN50I_USB3=y | ||
CONFIG_PINCTRL_SUN50I_A100=y | ||
CONFIG_PINCTRL_SUN50I_A100_R=y | ||
CONFIG_PINCTRL_SUN50I_A64=y | ||
CONFIG_PINCTRL_SUN50I_A64_R=y | ||
CONFIG_PINCTRL_SUN50I_H5=y | ||
CONFIG_PINCTRL_SUN50I_H6=y | ||
CONFIG_PINCTRL_SUN50I_H6_R=y | ||
CONFIG_QUEUED_RWLOCKS=y | ||
CONFIG_QUEUED_SPINLOCKS=y | ||
CONFIG_RODATA_FULL_DEFAULT_ENABLED=y | ||
CONFIG_RTC_DRV_SUN6I=y | ||
# CONFIG_SND_SUN50I_CODEC_ANALOG is not set | ||
CONFIG_SOUND_OSS_CORE_PRECLAIM=y | ||
CONFIG_SPARSEMEM=y | ||
CONFIG_SPARSEMEM_EXTREME=y | ||
CONFIG_SPARSEMEM_MANUAL=y | ||
CONFIG_SPARSEMEM_VMEMMAP=y | ||
CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y | ||
CONFIG_SUN50I_A100_CCU=y | ||
CONFIG_SUN50I_A100_R_CCU=y | ||
CONFIG_SUN50I_A64_CCU=y | ||
CONFIG_SUN50I_DE2_BUS=y | ||
CONFIG_SUN50I_ERRATUM_UNKNOWN1=y | ||
CONFIG_SUN50I_H6_CCU=y | ||
CONFIG_SUN50I_H6_R_CCU=y | ||
CONFIG_SYSCTL_EXCEPTION_TRACE=y | ||
CONFIG_THREAD_INFO_IN_TASK=y | ||
CONFIG_UNMAP_KERNEL_AT_EL0=y | ||
CONFIG_USB_MUSB_DUAL_ROLE=y | ||
# CONFIG_USB_MUSB_GADGET is not set | ||
CONFIG_USB_MUSB_HDRC=y | ||
# CONFIG_USB_MUSB_HOST is not set | ||
CONFIG_USB_MUSB_SUNXI=y | ||
CONFIG_USB_PHY=y | ||
CONFIG_VMAP_STACK=y | ||
CONFIG_ZONE_DMA32=y |
This file contains 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,24 @@ | ||
CONFIG_B53=y | ||
CONFIG_B53_MDIO_DRIVER=y | ||
CONFIG_DWMAC_SUN8I=y | ||
CONFIG_GRO_CELLS=y | ||
# CONFIG_MACH_SUN4I is not set | ||
# CONFIG_MACH_SUN5I is not set | ||
CONFIG_MDIO_BUS_MUX=y | ||
CONFIG_MICREL_PHY=y | ||
CONFIG_MUSB_PIO_ONLY=y | ||
CONFIG_NET_DEVLINK=y | ||
CONFIG_NET_DSA=y | ||
CONFIG_NET_DSA_TAG_BRCM=y | ||
CONFIG_NET_DSA_TAG_BRCM_COMMON=y | ||
CONFIG_NET_DSA_TAG_BRCM_LEGACY=y | ||
CONFIG_NET_DSA_TAG_BRCM_PREPEND=y | ||
CONFIG_NET_SWITCHDEV=y | ||
CONFIG_NOP_USB_XCEIV=y | ||
CONFIG_RTC_DRV_SUN6I=y | ||
CONFIG_USB_MUSB_DUAL_ROLE=y | ||
# CONFIG_USB_MUSB_GADGET is not set | ||
CONFIG_USB_MUSB_HDRC=y | ||
# CONFIG_USB_MUSB_HOST is not set | ||
CONFIG_USB_MUSB_SUNXI=y | ||
CONFIG_USB_PHY=y |
This file contains 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,10 @@ | ||
# CONFIG_ARM_LPAE is not set | ||
# CONFIG_MACH_SUN6I is not set | ||
# CONFIG_MACH_SUN7I is not set | ||
# CONFIG_MACH_SUN8I is not set | ||
# CONFIG_MACH_SUN9I is not set | ||
CONFIG_PGTABLE_LEVELS=2 | ||
# CONFIG_PHY_SUN9I_USB is not set | ||
# CONFIG_SPI_SUN6I is not set | ||
# CONFIG_SUN8I_A83T_CCU is not set | ||
# CONFIG_SUN8I_THERMAL is not set |
30 changes: 30 additions & 0 deletions
30
target/linux/sunxi/patches-5.15/102-sunxi-add-OF-node-for-USB-eth-on-NanoPi-R1S-H5.patch
This file contains 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,30 @@ | ||
From a896bc1d79e3c00f0aacfe225499d811775616f3 Mon Sep 17 00:00:00 2001 | ||
From: Chukun Pan <[email protected]> | ||
Date: Sun, 10 Oct 2021 21:50:17 +0800 | ||
Subject: [PATCH] arm64: allwinner: add OF node for USB eth on NanoPi R1S H5 | ||
|
||
This adds the OF node for the USB3 ethernet adapter on the FriendlyARM | ||
NanoPi R1S H5. Add the correct value for the RTL8153 LED configuration | ||
register to match the blink behavior of the other port on the device. | ||
|
||
Signed-off-by: Chukun Pan <[email protected]> | ||
--- | ||
arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts | 7 +++++++ | ||
1 file changed, 7 insertions(+) | ||
|
||
--- a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts | ||
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts | ||
@@ -112,6 +112,13 @@ | ||
|
||
&ehci1 { | ||
status = "okay"; | ||
+ | ||
+ usb-eth@1 { | ||
+ compatible = "realtek,rtl8153"; | ||
+ reg = <1>; | ||
+ | ||
+ realtek,led-data = <0x78>; | ||
+ }; | ||
}; | ||
|
||
&ehci2 { |
20 changes: 20 additions & 0 deletions
20
target/linux/sunxi/patches-5.15/301-orangepi_pc2_usb_otg_to_host_key_power.patch
This file contains 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,20 @@ | ||
--- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts | ||
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dts | ||
@@ -59,7 +59,7 @@ | ||
|
||
sw4 { | ||
label = "sw4"; | ||
- linux,code = <BTN_0>; | ||
+ linux,code = <KEY_POWER>; | ||
gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>; | ||
wakeup-source; | ||
}; | ||
@@ -220,7 +220,7 @@ | ||
}; | ||
|
||
&usb_otg { | ||
- dr_mode = "otg"; | ||
+ dr_mode = "host"; | ||
status = "okay"; | ||
}; | ||
|
46 changes: 46 additions & 0 deletions
46
...t/linux/sunxi/patches-5.15/400-arm64-allwinner-a64-sopine-Add-Sopine-flash-partitio.patch
This file contains 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,46 @@ | ||
From 7d87d3dafc4b1ea5659eb71ee6c5fd5308490d1f Mon Sep 17 00:00:00 2001 | ||
From: Oskari Lemmela <[email protected]> | ||
Date: Mon, 31 Dec 2018 07:44:49 +0200 | ||
Subject: [PATCH] arm64: allwinner: a64-sopine: Add Sopine flash partitions. | ||
|
||
First 896kB to u-boot. Enough space for SPL, u-boot and ATF. | ||
Next 128kB to u-boot environment and rest to firmware. | ||
|
||
Firmware partition is compatible FIT image dynamic splitting. | ||
|
||
Signed-off-by: Oskari Lemmela <[email protected]> | ||
--- | ||
.../boot/dts/allwinner/sun50i-a64-sopine.dtsi | 22 +++++++++++++++++++ | ||
1 file changed, 22 insertions(+) | ||
|
||
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi | ||
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine.dtsi | ||
@@ -58,6 +58,28 @@ | ||
compatible = "jedec,spi-nor"; | ||
reg = <0>; | ||
spi-max-frequency = <40000000>; | ||
+ | ||
+ partitions { | ||
+ compatible = "fixed-partitions"; | ||
+ #address-cells = <1>; | ||
+ #size-cells = <1>; | ||
+ | ||
+ partition@0 { | ||
+ label = "u-boot"; | ||
+ reg = <0x000000 0x0E0000>; | ||
+ }; | ||
+ | ||
+ partition@e0000 { | ||
+ label = "u-boot-env"; | ||
+ reg = <0x0E0000 0x020000>; | ||
+ }; | ||
+ | ||
+ partition@100000 { | ||
+ compatible = "denx,fit"; | ||
+ label = "firmware"; | ||
+ reg = <0x100000 0xF00000>; | ||
+ }; | ||
+ }; | ||
}; | ||
}; | ||
|
32 changes: 32 additions & 0 deletions
32
...t/linux/sunxi/patches-5.15/430-arm64-dts-allwinner-a64-olinuxino-add-status-LED-ali.patch
This file contains 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,32 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Petr=20=C5=A0tetiar?= <[email protected]> | ||
Date: Thu, 26 Mar 2020 10:09:19 +0100 | ||
Subject: [PATCH] arm64: dts: allwinner: a64: olinuxino: add status LED aliases | ||
MIME-Version: 1.0 | ||
Content-Type: text/plain; charset=UTF-8 | ||
Content-Transfer-Encoding: 8bit | ||
|
||
Signed-off-by: Petr Štetiar <[email protected]> | ||
|
||
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts | ||
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts | ||
@@ -15,6 +15,10 @@ | ||
aliases { | ||
ethernet0 = &emac; | ||
serial0 = &uart0; | ||
+ led-boot = &led_user; | ||
+ led-failsafe = &led_user; | ||
+ led-running = &led_user; | ||
+ led-upgrade = &led_user; | ||
}; | ||
|
||
chosen { | ||
@@ -35,7 +39,7 @@ | ||
leds { | ||
compatible = "gpio-leds"; | ||
|
||
- led-0 { | ||
+ led_user: led-0 { | ||
label = "a64-olinuxino:red:user"; | ||
gpios = <&pio 4 17 GPIO_ACTIVE_HIGH>; /* PE17 */ | ||
}; |
35 changes: 35 additions & 0 deletions
35
target/linux/sunxi/patches-5.15/431-arm64-dts-allwinner-nanopi-r1s-h5-add-status-LED.patch
This file contains 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,35 @@ | ||
From 1845163a052efac124f00656eb72f38947630a42 Mon Sep 17 00:00:00 2001 | ||
From: Chukun Pan <[email protected]> | ||
Date: Sun, 10 Oct 2021 21:50:18 +0800 | ||
Subject: [PATCH] arm64: dts: allwinner: NanoPi R1S H5: add status LED aliases | ||
|
||
Use the SYS LED on the casing for showing system status. | ||
|
||
Signed-off-by: Chukun Pan <[email protected]> | ||
--- | ||
arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts | 7 ++++++- | ||
1 file changed, 6 insertions(+), 1 deletion(-) | ||
|
||
--- a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts | ||
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-r1s-h5.dts | ||
@@ -22,6 +22,11 @@ | ||
ethernet0 = &emac; | ||
ethernet1 = &rtl8189etv; | ||
serial0 = &uart0; | ||
+ | ||
+ led-boot = &led_sys; | ||
+ led-failsafe = &led_sys; | ||
+ led-running = &led_sys; | ||
+ led-upgrade = &led_sys; | ||
}; | ||
|
||
chosen { | ||
@@ -31,7 +36,7 @@ | ||
leds { | ||
compatible = "gpio-leds"; | ||
|
||
- sys { | ||
+ led_sys: sys { | ||
label = "nanopi:red:sys"; | ||
gpios = <&pio 0 10 GPIO_ACTIVE_HIGH>; | ||
linux,default-trigger = "heartbeat"; |
10 changes: 10 additions & 0 deletions
10
target/linux/sunxi/patches-5.15/442-arm64-dts-orangepi-one-plus-enable-PWM.patch
This file contains 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,10 @@ | ||
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts | ||
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-one-plus.dts | ||
@@ -41,3 +41,7 @@ | ||
reg = <1>; | ||
}; | ||
}; | ||
+ | ||
+&pwm { | ||
+ status = "okay"; | ||
+}; |
72 changes: 72 additions & 0 deletions
72
target/linux/sunxi/patches-5.15/450-arm64-dts-enable-wifi-on-pine64-boards.patch
This file contains 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,72 @@ | ||
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts | ||
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-sopine-baseboard.dts | ||
@@ -42,6 +42,11 @@ | ||
regulator-min-microvolt = <1800000>; | ||
regulator-max-microvolt = <1800000>; | ||
}; | ||
+ | ||
+ wifi_pwrseq: wifi_pwrseq { | ||
+ compatible = "mmc-pwrseq-simple"; | ||
+ reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ | ||
+ }; | ||
}; | ||
|
||
&ac_power_supply { | ||
@@ -102,6 +107,21 @@ | ||
reg = <1>; | ||
}; | ||
}; | ||
+ | ||
+&mmc1 { | ||
+ pinctrl-names = "default"; | ||
+ pinctrl-0 = <&mmc1_pins>; | ||
+ vmmc-supply = <®_dldo4>; | ||
+ vqmmc-supply = <®_eldo1>; | ||
+ mmc-pwrseq = <&wifi_pwrseq>; | ||
+ bus-width = <4>; | ||
+ non-removable; | ||
+ status = "okay"; | ||
+ | ||
+ rtl8723cs: wifi@1 { | ||
+ reg = <1>; | ||
+ }; | ||
+}; | ||
|
||
&mmc2 { | ||
pinctrl-names = "default"; | ||
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | ||
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | ||
@@ -35,6 +35,11 @@ | ||
}; | ||
}; | ||
}; | ||
+ | ||
+ wifi_pwrseq: wifi_pwrseq { | ||
+ compatible = "mmc-pwrseq-simple"; | ||
+ reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ | ||
+ }; | ||
}; | ||
|
||
&codec { | ||
@@ -124,6 +129,21 @@ | ||
status = "okay"; | ||
}; | ||
|
||
+&mmc1 { | ||
+ pinctrl-names = "default"; | ||
+ pinctrl-0 = <&mmc1_pins>; | ||
+ vmmc-supply = <®_dldo4>; | ||
+ vqmmc-supply = <®_eldo1>; | ||
+ mmc-pwrseq = <&wifi_pwrseq>; | ||
+ bus-width = <4>; | ||
+ non-removable; | ||
+ status = "okay"; | ||
+ | ||
+ rtl8723cs: wifi@1 { | ||
+ reg = <1>; | ||
+ }; | ||
+}; | ||
+ | ||
&ohci0 { | ||
status = "okay"; | ||
}; |