aboutsummaryrefslogtreecommitdiff
path: root/target/linux/sunxi
Commit message (Collapse)AuthorAge
* sunxi: add support for Lichee Pi Zero Dock (V3s) boardZoltan HERPAI2024-05-04
| | | | | | | | | | | | | | CPU: Allwinner V3s single-core Cortex-A7 @ 1.2GHz Memory: 64Mb DDR2 integrated into SoC package Storage: 1x SDcard on board, 1x SDcard on dock Network: 10/100M ethernet Other: 4x buttons via LRADC, CSI Flashing instructions: Standard sunxi SD card installation procedure - copy image to SD card, insert into SD card slot on the device and boot. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* sunxi: drop 6.1 supportZoltan HERPAI2024-05-03
| | | | | | | Now that 6.6 is the default, remove the 6.1 config and the hack that was required for the arm32 DTS dir change. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* sunxi: switch default to 6.6Zoltan HERPAI2024-05-03
| | | | | | Switch the default kernel to 6.6. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* sunxi: update the 6.6 DTS_DIR hackZoltan HERPAI2024-04-26
| | | | | | Update and simplify the 6.1 vs. 6.6 DTS_DIR hack until 6.1 support is gone. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* sunxi: 6.6: set testing kernelZoltan HERPAI2024-04-25
| | | | | | | | | | | Allow selecting 6.6 as testing kernel on sunxi. Runtime-tested: - Linksprite pcDuino (cortexa8) - Olimex A20 Micro (cortexa7) - Pine64 SoM (cortexa53) Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* sunxi: 6.6: refresh patchesZoltan HERPAI2024-04-25
| | | | | | Refresh kernel patches. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* sunxi: update image Makefile to reflect updated DTS structure in 6.6Zoltan HERPAI2024-04-25
| | | | | | | For the ARM arch on 6.6, DTS files are moved into their vendor directories, mimicking arm64. Reflect this in the image Makefile. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* sunxi: 6.6: refresh kernel configsZoltan HERPAI2024-04-25
| | | | | | Refresh kernel config. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* sunxi: 6.6: remove upstreamed patchesZoltan HERPAI2024-04-25
| | | | | | Remove patches that have been upstreamed. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* kernel/sunxi: Restore kernel files for v6.1Zoltan HERPAI2024-04-25
| | | | | | | | | | This is an automatically generated commit which aids following Kernel patch history, as git will see the move and copy as a rename thus defeating the purpose. See: https://lists.openwrt.org/pipermail/openwrt-devel/2023-October/041673.html for the original discussion. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* kernel/sunxi: Create kernel files for v6.6 (from v6.1)Zoltan HERPAI2024-04-25
| | | | | | | | This is an automatically generated commit. When doing `git bisect`, consider `git bisect --skip`. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* sunxi: move KERNEL_LOADADDR into subtargetsZoltan HERPAI2024-04-19
| | | | | | | As preparation for the arm926ej-s support which has a different load address, move the KERNEL_LOADADDR into the subtargets. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* sunxi: move fpu feature flag into the subtargetsZoltan HERPAI2024-04-19
| | | | | | | As the upcoming arm926ej-s does not have an FPU, move this flag into the subtargets. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* sunxi: fix network bringup on Olinuxino Micro boardsZoltan HERPAI2024-04-17
| | | | | | | It's the A13-based Olinuxino Micro which has only wireless interfaces. The A20-based board is a fully-fledged one which has an ethernet interface. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* sunxi: update a13-olimex-som DTS pathZoltan HERPAI2024-04-16
| | | | | | | | In preparation for supporting kernel 6.6, where the DTS files are grouped into vendors - similarly to what arm64 has been doing all along -, update the SUNXI_DTS var of this board to prepend it with SUNXI_DTS_DIR. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* sunxi: backport h616 thermal sensor supportChukun Pan2024-03-26
| | | | | | | Backport H616 thermal sensor support from linux-next. Tested on the Orange Pi Zero 3 (H618 SoC). Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
* sunxi: add support for Orange Pi Zero 3Chukun Pan2024-03-26
| | | | | | | | | | | | | | | | Key features: Allwinner H618 SoC (Quad core Cortex-A53) 1/1.5/2/4 GiB LPDDR4 DRAM 1 USB 2.0 type C port (Power + OTG) 1 USB 2.0 host port 1Gbps Ethernet port Micro-HDMI port MicroSD slot Installation: Write the image to SD Card with dd. Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
* treewide: disable spectre mitigation on unaffected Arm64 targetsQingfang Deng2024-03-23
| | | | | | | Cortex-A53 is not vulnerable to any Spectre variants. Ref: https://developer.arm.com/Arm%20Security%20Center/Speculative%20Processor%20Vulnerability Signed-off-by: Qingfang Deng <dqfext@gmail.com>
* treewide: disable spectre mitigation on unaffected Arm32 targetsQingfang Deng2024-03-23
| | | | | | | Cortex-A5 and Cortex-A7 are not vulnerable to any Spectre variants. Ref: https://developer.arm.com/Arm%20Security%20Center/Speculative%20Processor%20Vulnerability Signed-off-by: Qingfang Deng <dqfext@gmail.com>
* sunxi: mark upstreamed patches as suchTianling Shen2023-12-19
| | | | | | Also sort them to start from 001. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
* sunxi: remove outdated kernel 5.15 filesTianling Shen2023-12-19
| | | | | | We're on 6.1 now, these files can go. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
* sunxi: enable cpufreq driver for H6 SoCChukun Pan2023-10-28
| | | | | | | Allwinner H6 needs this driver to enable DVFS support. May also be used with H616/H618 SoC in the future. Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
* sunxi: fixes led for nanopi boardsChukun Pan2023-10-28
| | | | | | | | | | | | Kernel 5.15 already supports the NanoPi R1 and NanoPi R1S H5, and they use new LED bindings that do not match the existing settings in 01_leds. Update led settings to fixes that. List the led node on NanoPi R1S H5: root@OpenWrt:~# ls /sys/class/leds/ green:lan green:wan red:status Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
* sunxi: generalize top-level BOARDNAME and update suported SoCsSebastian Pflieger2023-09-24
| | | | | | Allwinner created to may SoC variants to list them all at top-level. Signed-off-by: Sebastian Pflieger <sebastian@pflieger.email>
* kernel: bump 6.1 to 6.1.54John Audia2023-09-23
| | | | | | | | | | | | | | | | | | | Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.1.54 Removed upstreamed: generic/backport-6.1/020-v6.3-02-UPSTREAM-mm-multi-gen-LRU-rename-lrugen-lists-to-lru.patch[1] ipq806x/patches-6.1/140-v6.5-hwspinlock-qcom-add-missing-regmap-config-for-SFPB-M.patch[2] All other patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.54&id=a73d04c460521e45f257d28d73df096e41ece324 2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.54&id=e93bc372dbc0bde133c854c03502a95617041972 Build system: x86/64 Build-tested: x86/64/AMD Cezanne Run-tested: x86/64/AMD Cezanne Signed-off-by: John Audia <therealgraysky@proton.me>
* sunxi: add support for Bananapi P2 ZeroZoltan HERPAI2023-09-18
| | | | | | | | | | | | | | | CPU: Allwinner H2+ quad-core Cortex-A7 @ 1.2GHz Memory: 512Mb DDR3 Storage: SDcard, 8GB eMMC Network: 10/100M ethernet, optional PoE support, Ampak AP6212 wifi + BT USB: 1x USB 2.0 OTG Other: 40-pin expansion header, mini-HDMI Flashing instructions: Standard sunxi SD card installation procedure - copy image to SD card, insert into SD card slot on the device and boot. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* sunxi: refresh kernel patchesChristian Marangi2023-09-18
| | | | | | Refresh kernel patches for sunxi target. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
* sunxi: add support for H616 SoC and Orangepi Zero 2Zoltan HERPAI2023-09-18
| | | | | | | | | | | | | | | | | | | Specifications: SoC: Allwinner H616 @ 1.5 Ghz DRAM: 1Gb LPDDR3 Power: 5V USB-C Video: HDMI (Type 2.0A - micro) Network: 10/100/1000Mbps Ethernet (Realtek RTL8211F), AW859A BT+wifi Storage: microSD / 2Mb SPI flash USB: 1 USB2.0 Host Debug Serial UART Flashing instructions: Standard sunxi SD card installation procedure - copy image to SD card, insert into SD card slot on the device and boot. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* sunxi: use kernel 6.1 as defaultZoltan HERPAI2023-09-16
| | | | Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* sunxi: add testing kernel 6.1Zoltan HERPAI2023-08-24
| | | | | | | | | | | | Compile-tested: all targets Runtime-tested: - Cortex-A53: Pine64+ - Cortex-A7: Bananapro, Orange Pi 2 - Cortex-A8: pcDuino v2 Patches refreshed. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* sunxi: copy patches from 5.15 to 6.1Zoltan HERPAI2023-08-24
| | | | | | To start the migration, we copy the patches from 5.15 to 6.1. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* sunxi: bananapro: add firmware files for Ampak 6181Zoltan HERPAI2023-08-12
| | | | | | | The Bananapro board has an Ampak 6181 onboard (BCM43362/1), enable the firmware files in the device profile, and add wpad-basic-mbedtls. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* sunxi: add support for Banana Pi M3Zoltan HERPAI2023-08-11
| | | | | | | | | | | | | | CPU Allwinner A83t Octa-core Cortex A7 @ 1.2GHz Memory 2Gb DDR3 Storage SDcard, SATA (via USB), 8GB eMMC Network 10/100/1000M ethernet, Ampak AP6212 wifi + BT USB 2x USB 2.0 Flashing instructions: Standard sunxi SD card installation procedure - copy image to SD card, insert into SD card slot on the device and boot. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* sunxi: add modules for AC100 MFD and RTCZoltan HERPAI2023-08-11
| | | | | | | | | | | | The X-Powers AC100 is a multi-function IC used to provide RTC and audio codec via RSB (reduced serial bus, an Allwinner- speciality). On some boards using the A80/A83T SoCs, aside from the RTC functionality, the RTC is used as a clocksource for the Ampak WiFi/BT modules. Add modules for the core MFD support and the RTC. Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
* kernel: remove CRYPTO_BLAKE2S from all >=5.15Christian Svensson2023-07-08
| | | | | | | | | This option was removed from upstream kernel back in 2022. See commits: 2d16803c562ecc644803d42ba98a8e0aef9c014e (>=6.0) 3dd33a09f5dc12ccb0902923c4c784eb0f8c7554 (>=5.15.61 backport) Signed-off-by: Christian Svensson <blue@cmd.nu>
* kernel: Set CONFIG_FRAME_WARN depending on targetHauke Mehrtens2023-06-02
| | | | | | | | This set the CONFIG_FRAME_WARN option depending on some target settings. It will use the default from the upstream kernel and not the hard coded value of 1024 now. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* treewide: remove files for building 5.10 kernelNick Hainke2023-05-12
| | | | | | | | | | | All targets are bumped to 5.15. Remove the old 5.10 patches, configs and files using: find target/linux -iname '*-5.10' -exec rm -r {} \; Further, remove the 5.10 include. Signed-off-by: Nick Hainke <vincent@systemli.org>
* kernel: fix handling of CONFIG_DYNAMIC_DEBUGTony Ambardar2023-05-03
| | | | | | | | | | Since CONFIG_DYNAMIC_DEBUG is already managed via the KERNEL_DYNAMIC_DEBUG setting in Config-kernel.in (default N), remove or disable it in target configs which unconditionally enable it, along with the related setting CONFIG_DYNAMIC_DEBUG_CORE. This saves several KB in the kernels for ipq40xx, ipq806x, filogic, mt7622, qoriq, and sunxi. Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
* sunxi: enable CONFIG_NVMEM_SYSFSJan-Niklas Burfeind2023-02-26
| | | | | | | | | | in both the stable and the testing kernel h2+/h3/h5 devices have a Secure ID that can be read from `/sys/bus/nvmem/devices/sunxi-sid0/nvmem`. Enabling CONFIG_NVMEM_SYSFS grants sysfs access from userspace. Signed-off-by: Jan-Niklas Burfeind <git@aiyionpri.me>
* treewide: replace wpad-basic-wolfssl defaultRosen Penev2023-02-04
| | | | | | | The newly merged mbedtls backend is smaller and has fewer ABI related issues than the wolfSSL one. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* sunxi: switch to kernel 5.15Stijn Tintel2023-01-09
| | | | | | | | | The testing kernel has been available since early 2022, and is running fine for several people. Let's switch to it by default. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> Tested-by: Karl Palsson <karlp@etactica.com> Tested-by: Jan-Niklas Burfeind <openwrt@aiyionpri.me>
* sunxi: ensure NanoPi R1 has unique MAC addressJan-Niklas Burfeind2022-12-25
| | | | | | | | | | | | | | | | | | | | Ensure the MAC address for all NanoPi R1 boards is assigned uniquely for each board. The vendor ships the device in two variants; one with and one without eMMC; but both without static mac-addresses. In order to assign both board types unique MAC addresses, fall back on the same method used for the NanoPi R2S and R4S in case the EEPROM chip is not present by generating the board MAC from the SD card CID. [0] https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R1#Hardware_Spec Similar too and based on: commit b5675f500daf ("rockchip: ensure NanoPi R4S has unique MAC address") Co-authored-by: David Bauer <mail@david-bauer.net> Signed-off-by: Jan-Niklas Burfeind <git@aiyionpri.me>
* sunxi: fix board_name for MarsBoard A10Chukun Pan2022-12-17
| | | | | | | The compatible in the device tree is "haoyu,a10-marsboard", modify the board_name to keep it consistent. Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
* sunxi: fix typo in device packages for MarsBoard A10Chukun Pan2022-12-17
| | | | | | | | The kmod prefix for sound-soc-sunxi is missing, fix it. Also add kmod-sound-core as dependence. Fixes: 6a35659 ("sunxi: Added profile for HAOYU Electronics Marsboard A10") Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
* sunxi: fix sunxi-ir kconfig and descriptionChukun Pan2022-12-12
| | | | | | | | | | | Removed a20 in description, since it only works for a10, a13 and a31. Also refreshed kernel config. Fixes: #10466 Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> (moved fixes, refreshed, added CONFIG_DVB_USB=n) Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* sunxi: modules: remove useless AddDepends/rtcChukun Pan2022-12-12
| | | | | | | | | AddDepends/rtc has been removed in commit 3da7fe6, same here. Fixes: 3da7fe6 ("kernel: remove useless AddDepends/rtc abstraction") Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn> (RTC_SUPPORT - though this is implied by the TARGET_sunxi) Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* kernel: disable CONFIG_CPU_LITTLE_ENDIAN in generic configAleksander Jan Bajkowski2022-10-21
| | | | | | | | | | | | | | | | | | | | | | | | | Endianness depends on CPU architecture. CONFIG_CPU_(BIG/LITTLE)_ENDIAN should be enabled on target or subtarget based on SoC architecture. Fixes warning: $ make kernel_oldconfig CONFIG_TARGET=subtarget ... .config:1008:warning: override: CPU_LITTLE_ENDIAN changes choice state .... Summary: - ARC - only the CONFIG_CPU_BIG_ENDIAN symbol is defined for this architeture. If it is disabled then the processor operates in LITTLE_ENDIAN mode (default), - ARM32 - CONFIG_CPU_LITTLE_ENDIAN symbol available since kernel 5.19. This option should be enabled after OpenWRT moves to kernel 6.x. After refreshing the kernel, the symbol disappears, - ARM64 - enabled CONFIG_CPU_LITTLE_ENDIAN, - MIPS - enabled relevant symbols, - POWERPC - enabled CONFIG_CPU_BIG_ENDIAN, - UML - Symbols are not defined for this architecture, - X86 - always little endian. Symbols are not defined for this architecture. Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
* kernel: bump 5.10 to 5.10.137Petr Štetiar2022-08-23
| | | | | | | | | | Removed following upstreamed patch: * bcm53xx: 081-next-ARM_dts_BCM53015-add-mr26.patch All other patches automagically rebased. Signed-off-by: Petr Štetiar <ynezz@true.cz>
* kernel: Activate CONFIG_GPIOLIB in generic configurationHauke Mehrtens2022-08-10
| | | | | | | | All targets expect the malta target already activate the CONFIG_GPIOLIB option. Move it to generic kernel configuration and also activate it for malta. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM]Tomasz Maciej Nowak2022-06-24
| | | | | | | | | | | | This is now built-in, enable so it won't propagate on target configs. Link: https://lkml.org/lkml/2022/1/3/168 Fixes: 79e7a2552e89 ("kernel: bump 5.15 to 5.15.44") Fixes: 0ca93670693b ("kernel: bump 5.10 to 5.10.119") Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com> (Link to Kernel's commit taht made it built-in, CRYPTO_LIB_BLAKE2S[_ARM|_X86] as it's selectable, 5.10 backport) Signed-off-by: Christian Lamparter <chunkeey@gmail.com>