Commit Graph

149 Commits

Author SHA1 Message Date
AmadeusGhost
101db26c48 sunxi: orangepi-3: enable usb3 support 2021-07-06 23:18:25 +08:00
AmadeusGhost
035dca5f0b sunxi: backport phy driver for USB3 on H6 2021-07-06 23:16:21 +08:00
AmadeusGhost
0c678cfe87 sunxi: orangepi-3: backport IR receiver support 2021-07-06 00:06:45 +08:00
AmadeusGhost
5db9c41d22 sunxi: h6: enable gpu supply by default
The corresponding driver will be added later, and this seems very
complicated for me.
2021-07-06 00:03:49 +08:00
AmadeusGhost
b5a37a30b9 sunxi: orangepi-3: use real status led to show status 2021-07-06 00:02:42 +08:00
AmadeusGhost
659cbb7743 sunxi: orangepi-3: avoid random lan port mac address 2021-07-05 23:58:41 +08:00
AmadeusGhost
e416e1f5e9 Revert "sunxi: disable RTC on h3/h5"
This reverts commit 7686e88d07.
2021-07-05 23:54:38 +08:00
ElonH
f90a848331
kmod-rtc-sunxi: missing deps kmod-multimedia-input
(cherry picked from commit 91deb050bb)
2021-06-20 16:59:00 +08:00
Tianling Shen
c6ad48657b
sunxi: refresh kernel patches
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-06-20 13:12:46 +08:00
Tianling Shen
f01b7cd3cc
sunxi: add support for OrangePi 3
Specifications:

SoC Allwinner H6 @ 1.8 Ghz
DRAM    1Gb/2Gb LPDDR3
Power   DC 5V @ 2A, mircoUSB (OTG)
Video   HDMI (Type 2.0A - full)
Audio   3.5mm headphone plug, HDMI, on-board microphone
Network 10/100/1000Mbps Ethernet (Realtek RTL8211)
Storage 8G eMMC Flash (optional), microSD
USB     4 USB3.0 Host, 1 USB2.0 Host, 1 USB2.0 OTG
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.

Notice:
 Wirless is not working for now.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-06-20 13:12:45 +08:00
AmadeusGhost
13a3b44d07 sunxi: nanopi-r1s-h5: use mac address provided by eeprom
Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
2021-06-13 12:06:45 +08:00
AmadeusGhost
f2a7cf7ae7 Merge Mainline 2021-06-08 23:28:46 +08:00
Josef Schlehofer
b0789e5156 linux-firmware: update to version 20210315 and trim down broadcom FW
In there linux-firmware repository located in kernel, there were removed old
broadcom firmware [1] as they seem to be likely vulnerable to KrØØk vulnerability
(CVE-2019-15126), because Cypress released new versions and superseded
by it.

In OpenWrt, there is Makefile for cypress-firmware, which already provides
the same named packages like it was in linux-firmware. For example, cypress-firmware-43455-sdio
provides brcmfmac-firmware-43455-sdio [2].

[1] https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=0f0aefd733f70beae4c0246edbd2c158d5ce974c

[2] eeda8652f1/package/firmware/cypress-firmware/Makefile (L124)

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
2021-06-06 23:57:49 +08:00
Tianling Shen
b0f7ca7cd2
Merge Mainline
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-05-03 17:20:04 +08:00
AmadeusGhost
df1bfb1a6e sunxi: nanopi-r1s-h5: simplify mac address generation path
Idea was from eb85ab9 ("rockchip: use alternative CID path")

Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
2021-05-02 23:25:11 +08:00
AmadeusGhost
705dd55888 sunxi: nanopi-r1s-h5: remove non-existent usb node
(cherry picked from commit b8ec046701)
Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
2021-05-02 23:22:02 +08:00
AmadeusGhost
b8ec046701 sunxi: nanopi-r1s-h5: remove non-existent usb node
Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
2021-05-02 23:13:10 +08:00
John Audia
190a92b2fe kernel: bump 5.4 to 5.4.112
Ran update_kernel.sh in a fresh clone without any existing toolchains.

Removed upstreamed:
  mvebu/patches-5.4/319-ARM-dts-turris-omnia-configure-LED-2--INTn-pin-as-interrupt-pin.patch

Build system : x86_64
Build-tested : ipq806x/R7800
Run-tested   : ipq806x/R7800

No dmesg regressions, everything functional

Signed-off-by: John Audia <graysky@archlinux.us>
2021-04-18 23:32:26 +08:00
Zoltan HERPAI
1da7eabe9a sunxi: add support for H6 boards and OrangePiOnePlus
Specifications:

SoC	Allwinner H6 @ 1.8 Ghz
DRAM	1Gb LPDDR3
Power	DC 5V @ 3A
Video	HDMI (Type 2.0A - full)
Audio	HDMI, on-board microphone
Network	10/100/1000Mbps Ethernet (Realtek RTL8211)
Storage	microSD
USB	1 USB2.0 Host, 1 USB2.0 OTG
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>
2021-04-15 23:20:38 +08:00
Zoltan HERPAI
d9308a512e sunxi: add support for Banana Pi M2 Berry
CPU: Allwinner V40 quad-core Cortex A7 @ 1.2GHz
Memory: 1GB DDR3
Storage: SDcard, native SATA
Network: 10/100/1000M ethernet, Ampak AP6212 wifi + BT
USB: 4x USB 2.0

Installation:
Use the standard sunxi installation to an SD-card.

While the board is very similar to the M2 Ultra board
(the V40 is the automotive version of the R40), as both
the u-boot and kernel supports them separately, and some
pins are different, let's add a separate device spec.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2021-04-13 23:24:23 +08:00
AmadeusGhost
7a8af2599f sunxi: disable LPAE on cortexa7
It seems that this option will take up 64 MB of memory.
Ref: https://github.com/coolsnowwolf/lede/issues/6667
2021-04-11 23:40:35 +08:00
AmadeusGhost
7686e88d07 sunxi: disable RTC on h3/h5
The in-SoC RTC is more disruptive than useful
without a battery connected.
2021-04-11 23:37:56 +08:00
Zoltan HERPAI
bb43311043 sunxi: disable LPAE on cortexa8
LPAE should be disabled as the Cortex-A8 cores don't support it,
and the kernel will crash on boot if it's enabled.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2021-04-11 23:28:23 +08:00
Tianling Shen
03c8db5bf6
Merge Mainline
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-04-10 14:38:11 +08:00
AmadeusGhost
4b855e35fc sunxi/h5: set max cpu freq to 1296MHz 2021-04-08 23:27:46 +08:00
Tianling Shen
0c6e721a78
kernel: bump to 4.9.264, 4.14.228, 4.19.184
Resolve conflicted:
- generic/pending-4.19/611-netfilter_match_bypass_default_table.patch

Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-04-04 20:08:14 +08:00
Zoltan HERPAI
6ec43e6372 sunxi: enable wifi module on Pine64 boards
The Pine64(+) and the SoPine64 baseboard has an optional BT+WiFi
module, carrying an RTL8723BS. The wifi part is connected via
SDIO, the BT part is connected via UART. The BT part requires
additional code changes in the drivers so we'll skip that until 5.10.
Aside from a DTS patch to enable the wifi module, add the required
packages into the device definitions.

[    8.996970] RTL8723BS: module init start
[    9.000922] RTL8723BS: rtl8723bs v4.3.5.5_12290.20140916_BTCOEX20140507-4E40
[    9.007965] RTL8723BS: rtl8723bs BT-Coex version = BTCOEX20140507-4E40
[    9.014785] pnetdev = 000000009bdd5000
[    9.047780] RTL8723BS: rtw_ndev_init(wlan0)
[    9.053349] RTL8723BS: module init ret =0

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2021-03-30 23:13:04 +08:00
Zoltan HERPAI
bb80b5a02d sunxi: enable MUSB in A53 subtarget
The Pine64(+) and the SoPine64 baseboard has two USB ports. One of
these (the lower) is connected directly to a USB host, the other
one's (upper) PHY is shared with the separate OTG controller. In
order to get it working, MUSB support needs to be enabled.

As there are other targets which compile MUSB support into the kernel
and not package it into modules, the same is done here.

[    1.348760] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[    1.357029] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.364250] usb usb5: Product: MUSB HDRC host driver
[    1.369219] usb usb5: Manufacturer: Linux 5.4.99 musb-hcd
[    1.374617] usb usb5: SerialNumber: musb-hdrc.1.auto
[    1.379891] hub 5-0:1.0: USB hub found
[    1.383677] hub 5-0:1.0: 1 port detected
[...]
[  697.299440] usb 1-1: new high-speed USB device number 2 using ehci-platform
[  697.461855] usb 1-1: New USB device found, idVendor=090c, idProduct=1000, bcdDevice=11.00
[  697.470038] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  697.477180] usb 1-1: Product: USB Flash Disk

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2021-03-30 23:12:35 +08:00
Tianling Shen
4a24bd4db0
kernel: bump to 4.9.262, 4.14.227, 4.19.183
Resolve conflicted:
- layerscape/patches-4.14/809-flexcan-support-layerscape.patch

Refreshed all patches.

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2021-03-27 01:15:23 +08:00
AmadeusGhost
b9ae8b7c93 Merge Mainline 2021-03-26 20:28:03 +08:00
AmadeusGhost
284c9b6345 sunxi: h5: add 1.2GHz CPU OPP 2021-03-26 20:12:53 +08:00
Register
a52382d5d7 sunxi: h3: add more cpu operating points
Signed-off-by: Register <458892+aieu@users.noreply.github.com>
[Fixed format issues, add 960MHz and remove overclock part]
Signed-off-by: AmadeusGhost <amadeus@immortalwrt.org>
2021-03-26 20:09:43 +08:00
Jason A. Donenfeld
f0ef17aa8c kernel-5.4: bump to 5.4.102 and refresh patches
5.4.102 backported a lot of stuff that our WireGuard backport already
did, in addition to other patches we had, so those patches were
removed from that part of the series. In the process other patches were
refreshed or reworked to account for upstream changes.

This commit involved `update_kernel.sh -v -u 5.4`.

Cc: John Audia <graysky@archlinux.us>
Cc: David Bauer <mail@david-bauer.net>
Cc: Petr Štetiar <ynezz@true.cz>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-03-05 12:07:01 +08:00
CN_SZTL
842881e337
sunxi: add r8152 patches for customized LEDs
Move these patches out of generic and put into specific targets for easy maintaince.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-17 19:38:52 +08:00
Adrian Schmutzler
afbac3f8ad target: use SPDX license identifiers on scripts
Use SPDX license tags to allow machines to check licenses.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2021-02-11 12:08:24 +08:00
Adrian Schmutzler
0cd3943f36 target: use SPDX license identifiers on Makefiles
Use SPDX license tags to allow machines to check licenses.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2021-02-11 12:05:39 +08:00
CN_SZTL
7ed8a3dc50
kernel: bump to 4.9.257, 4.14.221, 4.19.175
Resolve conflicted:
 - layerscape/patches-4.14/302-dts-support-layerscape.patch

Refreshed all patches.

Signed-off-by: CN_SZTL <cnsztl@project-openwrt.eu.org>
2021-02-10 19:37:50 +08:00
Adrian Schmutzler
b164057876 sunxi: use wpad-basic-wolfssl for Sinovoip Banana Pi M2 Ultra
The idea of commit a14f5bb4bd was to use wpad-basic-wolfssl
consistently throughout the whole trunk, so use it here as well.

Fixes: 50fdddae05 ("BPi-M2U kernel modules for onboard WiFi")

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2021-02-10 16:31:57 +08:00
AmadeusGhost
eaa1406dd4 sunxi: a53: image: add missing predigestion
Fixes: ef1eee2 ("sunxi: add support for FriendlyARM NanoPi R1S H5")
2021-02-10 16:30:19 +08:00
AmadeusGhost
ecd317d8f4 sunxi: backport h5 cpufreq support from upstream linux 2021-02-10 16:21:08 +08:00
AmadeusGhost
0d6e831f2c sunxi: backport thermal sensor driver from upstream linux 2021-02-10 12:20:23 +08:00
AmadeusGhost
ef1eee23f6 sunxi: add support for FriendlyARM NanoPi R1S H5
(cherry picked from commit 144c82515c and
3adf449fa9)

Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
2021-02-10 12:17:12 +08:00
AmadeusGhost
7e779f435c sunxi: Nanopi R1S H5: add missing device package
That is required by the Reset button.

Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
2021-02-09 12:40:22 +08:00
AmadeusGhost
dcc01b6832 sunxi: remove outdated rtc package for a31/h3/r40 devices
The rtc-sunxi module only supports Allwinner A10/A20, for Allwinner
A31/h3/h5, use rtc-sun6i instead, which isn't support build as a
kernel module, just put it into default config.

Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
2021-02-09 12:22:13 +08:00
AmadeusGhost
9d29451fe9 Merge Mainline 2021-02-06 18:50:03 +08:00
AmadeusGhost
9b5659f066 autocore-arm: add target sunxi support 2021-02-05 18:23:44 +08:00
AmadeusGhost
a956b8d05e sunxi: add cpufreq support for Allwinner H5 2021-02-05 18:19:45 +08:00
AmadeusGhost
3adf449fa9 sunxi: use stable MAC-address for NanoPi R1S H5
Idea from a8a17fd223

Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
2021-02-05 18:16:09 +08:00
AmadeusGhost
144c82515c sunxi: add support for FriendlyARM NanoPi R1S H5
Specification:
  CPU: Allwinner H5, Quad-core Cortex-A53
  DDR3 RAM: 512MB
  Network: 10/100/1000M Ethernet x 2
  WiFi: RTL8189ETV, 802.11b/g/n 1T1R
  USB Host: Type-A x 1
  MicroSD Slot x 1
  MicroUSB: for power input
  Debug Serial Port: 3Pin pin-header
  LED: WAN, LAN, SYS
  KEY: Reset
  Power Supply: DC 5V/2A

Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
2021-02-05 18:12:53 +08:00
Jayantajit Gogoi
d20975bfbc sunxi: add support for FriendlyARM NanoPi R1
Specification:

- CPU: Allwinner H3, Quad-core Cortex-A7 Up to 1.2GHz
- DDR3 RAM: 512MB/1GB
- Network:
    10/100/1000M Ethernet x 1,
    10/100M Ethernet x 1
- WiFi: 802.11b/g/n, with SMA antenna interface
- USB Host: Type-A x2
- MicroSD Slot x 1
- MicroUSB: for OTG and power input
- Debug Serial Port: 3Pin 2.54mm pitch pin-header
- LED:
    nanopi:red:status
    nanopi:green:wan
    nanopi:green:lan
- KEY:
    reset
- Power Supply: DC 5V/2A

Installation:

- Write the image to SD Card with dd
- Boot NanoPi from the SD Card

Signed-off-by: Jayantajit Gogoi <jayanta.gogoi525@gmail.com>
2021-02-05 18:01:10 +08:00