-
Notifications
You must be signed in to change notification settings - Fork 2
Add a733 supports #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
CodeChenL
wants to merge
7
commits into
radxa-pkg:main
Choose a base branch
from
CodeChenL:add_a733
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
6216b20
feat: submodule: update and add tools
CodeChenL 78279c5
build: add some vendor u-boot blobs
CodeChenL 438f144
feat: add build support
CodeChenL 6448fb0
feat: add patches for build radxa-cubie-a7s
CodeChenL cd7a81a
feat: add radxa-a733 and radxa-cubie-a7s packages
CodeChenL 3483885
feat: setup.sh: add support for vendor packaged blobs
CodeChenL e11d5db
fix: add some patches
CodeChenL File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -1,8 +1,12 @@ | ||
| [submodule "src"] | ||
| path = src | ||
| url = https://github.com/apritzel/u-boot.git | ||
| branch = a523-beta | ||
| url = https://github.com/dlan17/u-boot | ||
| branch = allwinner/A733/boot | ||
| [submodule "atf"] | ||
| path = atf | ||
| url = https://github.com/jernejsk/arm-trusted-firmware.git | ||
| branch = a523 | ||
| url = https://github.com/dlan17/trusted-firmware-a | ||
| branch = A733 | ||
| [submodule "tools"] | ||
| path = tools | ||
| url = https://gitlab.com/tina5.0_aiot/lichee/tools.git | ||
| branch = product-aiot-stable |
Submodule atf
updated
13 files
RadxaYuntian marked this conversation as resolved.
Show resolved
Hide resolved
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains hidden or 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,3 @@ | ||
| [package] | ||
| item=u-boot, u-boot-sunxi-with-spl-with-head.bin | ||
| item=dtb, u-boot-sunxi-with-spl.fit.fit |
Binary file not shown.
Binary file not shown.
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,3 @@ | ||
| u-boot/0001-feat-add-radxa-cubie-a7s-supports.patch | ||
| u-boot/0002-spl-only-a733-use-ram-as-boot-device.patch | ||
| u-boot/0003-sunxi-a527-radxa-reduce-DDR-clock-frequency.patch |
271 changes: 271 additions & 0 deletions
271
debian/patches/u-boot/0001-feat-add-radxa-cubie-a7s-supports.patch
This file contains hidden or 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,271 @@ | ||
| From 543191d8a919c3e1f1e3ea155da8d62059da1636 Mon Sep 17 00:00:00 2001 | ||
| From: Jiali Chen <[email protected]> | ||
| Date: Mon, 26 Jan 2026 06:15:43 +0000 | ||
| Subject: [PATCH] feat: add radxa-cubie-a7s supports | ||
|
|
||
| Directly copied from radxa-cubie-a7a, | ||
| only modified some name field | ||
|
|
||
| Signed-off-by: Jiali Chen <[email protected]> | ||
| --- | ||
| src/arch/arm/dts/sun60i-a733-cubie-a7s.dts | 211 +++++++++++++++++++++++++ | ||
| src/configs/radxa-cubie-a7s_defconfig | 29 ++++ | ||
| 2 files changed, 240 insertions(+) | ||
| create mode 100644 src/arch/arm/dts/sun60i-a733-cubie-a7s.dts | ||
| create mode 100644 src/configs/radxa-cubie-a7s_defconfig | ||
|
|
||
| diff --git a/src/arch/arm/dts/sun60i-a733-cubie-a7s.dts b/src/arch/arm/dts/sun60i-a733-cubie-a7s.dts | ||
| new file mode 100644 | ||
| index 00000000000..6b2cff2d6e7 | ||
| --- /dev/null | ||
| +++ b/src/arch/arm/dts/sun60i-a733-cubie-a7s.dts | ||
| @@ -0,0 +1,211 @@ | ||
| +// SPDX-License-Identifier: (GPL-2.0-only OR MIT) | ||
| +// Copyright (C) 2025 Arm Ltd. | ||
| + | ||
| +/dts-v1/; | ||
| + | ||
| +#include "sun60i-a733.dtsi" | ||
| + | ||
| +#include <dt-bindings/gpio/gpio.h> | ||
| + | ||
| +/ { | ||
| + model = "Radxa A7S"; | ||
| + compatible = "radxa,cubie-a7s", "allwinner,sun60i-a733"; | ||
| + | ||
| + aliases { | ||
| + serial0 = &uart0; | ||
| + }; | ||
| + | ||
| + chosen { | ||
| + stdout-path = "serial0:115200n8"; | ||
| + }; | ||
| + | ||
| + reg_vcc5v: vcc5v { | ||
| + /* board wide 5V supply from the USB-C connector */ | ||
| + compatible = "regulator-fixed"; | ||
| + regulator-name = "vcc-5v"; | ||
| + regulator-min-microvolt = <5000000>; | ||
| + regulator-max-microvolt = <5000000>; | ||
| + regulator-always-on; | ||
| + }; | ||
| + | ||
| + reg_usb_vbus: vbus { | ||
| + compatible = "regulator-fixed"; | ||
| + regulator-name = "usb-vbus"; | ||
| + regulator-min-microvolt = <5000000>; | ||
| + regulator-max-microvolt = <5000000>; | ||
| + vin-supply = <®_vcc5v>; | ||
| + gpio = <&r_pio 0 2 GPIO_ACTIVE_HIGH>; /* PL2 */ | ||
| + enable-active-high; | ||
| + }; | ||
| +}; | ||
| + | ||
| +&uart0 { | ||
| + pinctrl-names = "default"; | ||
| + pinctrl-0 = <&uart0_pb_pins>; | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&mmc0 { | ||
| + bus-width = <4>; | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&mmc2 { | ||
| + bus-width = <8>; | ||
| + cap-mmc-hw-reset; | ||
| + mmc-ddr-1_8v; | ||
| + mmc-hs200-1_8v; | ||
| + non-removable; | ||
| + vmmc-supply = <®_cldo5>; | ||
| + vqmmc-supply = <®_dc1sw2>; | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&usb_otg { | ||
| + dr_mode = "peripheral"; | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&usbphy { | ||
| + usb0_vbus-supply = <®_vcc5v>; | ||
| + usb1_vbus-supply = <®_usb_vbus>; | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&ehci0 { | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&ohci0 { | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&ehci1 { | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&ohci1 { | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&gmac0 { | ||
| + phy-mode = "rgmii-id"; | ||
| + phy-handle = <&ext_rgmii1_phy>; | ||
| + phy-supply = <®_dc1sw1>; | ||
| + | ||
| + tx-internal-delay-ps = <1200>; | ||
| + rx-internal-delay-ps = <1000>; | ||
| + | ||
| + status = "okay"; | ||
| +}; | ||
| + | ||
| +&mdio0 { | ||
| + ext_rgmii1_phy: ethernet-phy@1 { | ||
| + compatible = "ethernet-phy-ieee802.3-c22"; | ||
| + reg = <1>; | ||
| + reset-gpios = <&pio 7 16 GPIO_ACTIVE_LOW>; /* PH16 */ | ||
| + reset-assert-us = <10000>; | ||
| + reset-deassert-us = <150000>; | ||
| + }; | ||
| +}; | ||
| + | ||
| +&r_i2c0 { | ||
| + status = "okay"; | ||
| + | ||
| + axp318w: pmic@36 { | ||
| + compatible = "x-powers,axp318w"; | ||
| + reg = <0x36>; | ||
| + #interrupt-cells = <1>; | ||
| + interrupt-controller; | ||
| + interrupt-parent = <&nmi_intc>; | ||
| + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; | ||
| + status = "okay"; | ||
| + | ||
| + vin1-supply = <®_vcc5v>; | ||
| + vin2-supply = <®_vcc5v>; | ||
| + vin3-supply = <®_vcc5v>; | ||
| + | ||
| + regulators { | ||
| + reg_dcdc1: dcdc1 { | ||
| + regulator-always-on; | ||
| + regulator-min-microvolt = <900000>; | ||
| + regulator-max-microvolt = <1160000>; | ||
| + regulator-name = "vdd-cpul"; | ||
| + }; | ||
| + | ||
| + reg_dc1sw1: dc1sw1 { | ||
| + regulator-always-on; | ||
| + regulator-min-microvolt = <3300000>; | ||
| + regulator-max-microvolt = <3300000>; | ||
| + regulator-name = "vdd-swout1"; | ||
| + }; | ||
| + | ||
| + reg_dc1sw2: dc1sw2 { | ||
| + regulator-always-on; | ||
| + regulator-min-microvolt = <3300000>; | ||
| + regulator-max-microvolt = <3300000>; | ||
| + regulator-name = "vdd-swout2"; | ||
| + }; | ||
| + | ||
| + aldo1 { | ||
| + regulator-min-microvolt = <1800000>; | ||
| + regulator-max-microvolt = <1800000>; | ||
| + regulator-name = "vcc-mipi-dsi"; | ||
| + }; | ||
| + | ||
| + /* Supplies the SYSFB */ | ||
| + reg_dcdc2_323: dcdc2 { | ||
| + regulator-always-on; | ||
| + regulator-min-microvolt = <800000>; | ||
| + regulator-max-microvolt = <800000>; | ||
| + regulator-name = "vdd-sys"; | ||
| + }; | ||
| + | ||
| + /* Supplies the "big" cluster (1.8 GHz cores) */ | ||
| + reg_dcdc3_323: dcdc3 { | ||
| + regulator-always-on; | ||
| + regulator-min-microvolt = <900000>; | ||
| + regulator-max-microvolt = <1000000>; | ||
| + regulator-name = "vdd-cpub"; | ||
| + }; | ||
| + | ||
| + /* DCDC4 is polyphased with DCDC1 */ | ||
| + | ||
| + /* Supplies the "small" cluster (1.8 GHz cores) */ | ||
| + reg_dcdc5_323: dcdc5 { | ||
| + regulator-always-on; | ||
| + regulator-min-microvolt = <800000>; | ||
| + regulator-max-microvolt = <1000000>; | ||
| + regulator-name = "vdd-cpul"; | ||
| + }; | ||
| + | ||
| + reg_cldo1: cldo1 { | ||
| + regulator-min-microvolt = <1800000>; | ||
| + regulator-max-microvolt = <1800000>; | ||
| + regulator-name = "vcc-pm"; | ||
| + }; | ||
| + | ||
| + reg_cldo2: cldo2 { | ||
| + regulator-min-microvolt = <1800000>; | ||
| + regulator-max-microvolt = <1800000>; | ||
| + regulator-name = "vcc-hdmi"; | ||
| + }; | ||
| + | ||
| + reg_cldo3: cldo3 { | ||
| + regulator-min-microvolt = <1800000>; | ||
| + regulator-max-microvolt = <1800000>; | ||
| + regulator-name = "vcc-dram"; | ||
| + }; | ||
| + | ||
| + reg_cldo4: cldo4 { | ||
| + /* not connected */ | ||
| + }; | ||
| + | ||
| + reg_cldo5: cldo5 { | ||
| + regulator-min-microvolt = <1800000>; | ||
| + regulator-max-microvolt = <1800000>; | ||
| + regulator-name = "vcc-pc"; | ||
| + }; | ||
| + }; | ||
| + }; | ||
| +}; | ||
| diff --git a/src/configs/radxa-cubie-a7s_defconfig b/src/configs/radxa-cubie-a7s_defconfig | ||
| new file mode 100644 | ||
| index 00000000000..0ae73a5dbd9 | ||
| --- /dev/null | ||
| +++ b/src/configs/radxa-cubie-a7s_defconfig | ||
| @@ -0,0 +1,29 @@ | ||
| +CONFIG_ARM=y | ||
| +CONFIG_ARCH_SUNXI=y | ||
| +CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y | ||
| +CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x4F000000 | ||
| +CONFIG_DEFAULT_DEVICE_TREE="sun60i-a733-cubie-a7s" | ||
| +CONFIG_SPL=y | ||
| +CONFIG_MACH_SUN60I_A733=y | ||
| +CONFIG_MMC_SUNXI_SLOT_EXTRA=2 | ||
| +# CONFIG_VIDEO_SUNXI is not set | ||
| +# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set | ||
| +CONFIG_SPL_LOAD_FIT_ADDRESS=0x48200000 | ||
| +CONFIG_BOOTDELAY=3 | ||
| +CONFIG_SPL_RAM_DEVICE=y | ||
| +CONFIG_CMD_DFU=y | ||
| +CONFIG_CMD_I2C=y | ||
| +CONFIG_NET_RANDOM_ETHADDR=y | ||
| +CONFIG_SYS_I2C_MVTWSI=y | ||
| +CONFIG_SUPPORT_EMMC_BOOT=y | ||
| +CONFIG_DM_MDIO=y | ||
| +CONFIG_DM_ETH_PHY=y | ||
| +CONFIG_DWC_ETH_QOS=y | ||
| +CONFIG_DWC_ETH_QOS_SUNXI=y | ||
| +CONFIG_RGMII=y | ||
| +CONFIG_RMII=y | ||
| +CONFIG_REGULATOR_AXP=y | ||
| +CONFIG_USB_EHCI_HCD=y | ||
| +CONFIG_USB_OHCI_HCD=y | ||
| +CONFIG_USB_MUSB_GADGET=y | ||
| +CONFIG_USB_ETH_CDC=y | ||
| -- | ||
| 2.52.0 | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.