Skip to content

Commit 57af771

Browse files
committed
add support for orangepi 5 max
1 parent a1fb200 commit 57af771

12 files changed

Lines changed: 713 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
- nanopi-r6c
3737
- nanopi-r6s
3838
- orangepi-5
39+
- orangepi-5-max
3940
- orangepi-5plus
4041
- powerstation-6
4142
- r58-mini

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Note that this list is subject to change at any time as devices gain better supp
3838

3939
## Bronze
4040
- [Radxa ROCK 5B+](https://radxa.com/products/rock5/5bp)
41+
- [Orange Pi 5 Max](http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/details/Orange-Pi-5-Max.html)
4142
- [Fydetab Duo](https://fydetabduo.com/)
4243
- [Firefly AIO-3588Q](https://en.t-firefly.com/product/industry/aio3588q)
4344
- [Firefly ITX-3588J](https://en.t-firefly.com/product/industry/itx3588j)
@@ -184,6 +185,7 @@ The firmware will now look for overrides in the partition of a selected boot opt
184185
| `rk3588s-rock-5a` | ROCK 5A |
185186
| `rk3588-rock-5-itx` | ROCK 5 ITX |
186187
| `rk3588s-orangepi-5` | Orange Pi 5 |
188+
| `rk3588-orangepi-5-max` | Orange Pi 5 Max |
187189
| `rk3588-orangepi-5-plus` | Orange Pi 5 Plus |
188190
| `rk3588s-9tripod-linux` | Indiedroid Nova |
189191
| `rk3588s-fydetab-duo` | Fydetab Duo |

configs/orangepi-5-max.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
DSC_FILE=edk2-rockchip/Platform/OrangePi/OrangePi5Max/OrangePi5Max.dsc
2+
PLATFORM_NAME=OrangePi5Max
3+
SOC=RK3588
279 KB
Binary file not shown.
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#/** @file
2+
#
3+
# ACPI table data and ASL sources required to boot the platform.
4+
#
5+
# Copyright (c) 2019-2021, ARM Limited. All rights reserved.
6+
# Copyright (c) Microsoft Corporation. All rights reserved.
7+
#
8+
# SPDX-License-Identifier: BSD-2-Clause-Patent
9+
#
10+
#**/
11+
12+
[Defines]
13+
INF_VERSION = 0x0001001A
14+
BASE_NAME = AcpiTables
15+
FILE_GUID = 7E374E25-8E01-4FEE-87F2-390C23C606CD
16+
MODULE_TYPE = USER_DEFINED
17+
VERSION_STRING = 1.0
18+
RK_COMMON_ACPI_DIR = Silicon/Rockchip/RK3588/AcpiTables
19+
20+
#
21+
# The following information is for reference only and not required by the build tools.
22+
#
23+
# VALID_ARCHITECTURES = AARCH64
24+
#
25+
26+
[Sources]
27+
Dsdt.asl
28+
$(RK_COMMON_ACPI_DIR)/Madt.aslc
29+
$(RK_COMMON_ACPI_DIR)/Fadt.aslc
30+
$(RK_COMMON_ACPI_DIR)/Gtdt.aslc
31+
$(RK_COMMON_ACPI_DIR)/Spcr.aslc
32+
$(RK_COMMON_ACPI_DIR)/Mcfg.aslc
33+
$(RK_COMMON_ACPI_DIR)/Dbg2.aslc
34+
$(RK_COMMON_ACPI_DIR)/Pptt.aslc
35+
36+
[Packages]
37+
ArmPkg/ArmPkg.dec
38+
ArmPlatformPkg/ArmPlatformPkg.dec
39+
EmbeddedPkg/EmbeddedPkg.dec
40+
MdeModulePkg/MdeModulePkg.dec
41+
MdePkg/MdePkg.dec
42+
Silicon/Rockchip/RockchipPkg.dec
43+
Silicon/Rockchip/RK3588/RK3588.dec
44+
45+
[FixedPcd]
46+
gArmTokenSpaceGuid.PcdArmArchTimerIntrNum
47+
gArmTokenSpaceGuid.PcdArmArchTimerHypIntrNum
48+
gArmTokenSpaceGuid.PcdArmArchTimerSecIntrNum
49+
gArmTokenSpaceGuid.PcdArmArchTimerVirtIntrNum
50+
gArmTokenSpaceGuid.PcdGicInterruptInterfaceBase
51+
gArmTokenSpaceGuid.PcdGicDistributorBase
52+
gArmTokenSpaceGuid.PcdGicRedistributorsBase
53+
gEfiMdeModulePkgTokenSpaceGuid.PcdSerialRegisterBase
54+
gRK3588TokenSpaceGuid.PcdI2S0Supported
55+
gRK3588TokenSpaceGuid.PcdI2S1Supported
56+
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxBase
57+
gRockchipTokenSpaceGuid.PcdRkMtlMailBoxSize
58+
gRockchipTokenSpaceGuid.PcdRkSdmmcCardDetectBroken
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
/** @file
2+
*
3+
* Differentiated System Definition Table (DSDT)
4+
*
5+
* Copyright (c) 2020, Pete Batard <pete@akeo.ie>
6+
* Copyright (c) 2018-2020, Andrey Warkentin <andrey.warkentin@gmail.com>
7+
* Copyright (c) Microsoft Corporation. All rights reserved.
8+
* Copyright (c) 2021, ARM Limited. All rights reserved.
9+
*
10+
* SPDX-License-Identifier: BSD-2-Clause-Patent
11+
*
12+
**/
13+
14+
#include "AcpiTables.h"
15+
16+
#define BOARD_I2S0_TPLG "i2s-jack"
17+
18+
#define BOARD_AUDIO_CODEC_HID "ESSX8388"
19+
#define BOARD_CODEC_I2C "\\_SB.I2C7"
20+
#define BOARD_CODEC_I2C_ADDR 0x11
21+
#define BOARD_CODEC_GPIO "\\_SB.GPI1"
22+
#define BOARD_CODEC_GPIO_PIN GPIO_PIN_PD3
23+
24+
DefinitionBlock ("Dsdt.aml", "DSDT", 2, "RKCP ", "RK3588 ", 2)
25+
{
26+
Scope (\_SB_)
27+
{
28+
include ("DsdtCommon.asl")
29+
30+
include ("Cpu.asl")
31+
32+
include ("Pcie.asl")
33+
include ("Sata.asl")
34+
include ("Emmc.asl")
35+
include ("Sdhc.asl")
36+
include ("Dma.asl")
37+
// include ("Gmac.asl")
38+
include ("Gpio.asl")
39+
include ("I2c.asl")
40+
include ("Uart.asl")
41+
// include ("Spi.asl")
42+
43+
include ("I2s.asl")
44+
45+
include ("Usb2Host.asl")
46+
include ("Usb3Host0.asl")
47+
include ("Usb3Host1.asl")
48+
49+
Scope (I2C7) {
50+
include ("Es8388.asl")
51+
}
52+
}
53+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#/** @file
2+
#
3+
# Copyright (c) 2024, Mario Bălănică <mariobalanica02@gmail.com>
4+
#
5+
# SPDX-License-Identifier: BSD-2-Clause-Patent
6+
#
7+
#**/
8+
9+
[Defines]
10+
INF_VERSION = 0x0001001A
11+
BASE_NAME = DeviceTree-Mainline
12+
FILE_GUID = 84492e97-a10f-49a7-85e9-025d1966b343
13+
MODULE_TYPE = USER_DEFINED
14+
VERSION_STRING = 1.0
15+
16+
[Sources]
17+
devicetree/mainline/upstream/src/arm64/rockchip/rk3588-orangepi-5-max.dts
18+
19+
[Packages]
20+
MdePkg/MdePkg.dec
21+
Silicon/Rockchip/RockchipPkg.dec
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#/** @file
2+
#
3+
# Copyright (c) 2024, Mario Bălănică <mariobalanica02@gmail.com>
4+
#
5+
# SPDX-License-Identifier: BSD-2-Clause-Patent
6+
#
7+
#**/
8+
9+
[Defines]
10+
INF_VERSION = 0x0001001A
11+
BASE_NAME = DeviceTree-Vendor
12+
FILE_GUID = d58b4028-43d8-4e97-87d4-4e3716136580
13+
MODULE_TYPE = USER_DEFINED
14+
VERSION_STRING = 1.0
15+
16+
[Binaries]
17+
BIN|devicetree/vendor/rk3588-orangepi-5-plus.dtb

0 commit comments

Comments
 (0)