platform/kernel/u-boot-thead.git
17 months agoarch: dts: light-lpi4a: allow pane0 ref by other dts
Lu Hui [Mon, 25 Dec 2023 08:53:07 +0000 (16:53 +0800)]
arch: dts: light-lpi4a: allow pane0 ref by other dts

17 months agodrivers: panel: add panel-mingjun-070bi30ia2
Lu Hui [Mon, 25 Dec 2023 08:34:20 +0000 (16:34 +0800)]
drivers: panel: add panel-mingjun-070bi30ia2

18 months agoci: update toolchains
Han Gao [Wed, 13 Dec 2023 06:13:48 +0000 (14:13 +0800)]
ci: update toolchains

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
18 months agofix(c9xx): don't flush dcache when invalidating
Gilbert Gilb's [Mon, 13 Nov 2023 11:36:24 +0000 (12:36 +0100)]
fix(c9xx): don't flush dcache when invalidating

The data cache invalidation function for c9xx CPUs uses `dcache.cipa`
instruction. According to T-Head extension specification[1] section
3.1.5, this instruction also performs a cache clean along with the
invalidation.

On top of being incorrect, this leads to a serious issue on the
designware ethernet driver, where stalled cache may get flushed each
time we handle a new received packet[2]. As a result, received packet
are randomly corrupted with old cached data. This can easily be
reproduced by sending an ARP request to the device during a TFTP
transfer. The last TFTP block is treated as the ARP reply we just sent,
which makes U-Boot hang on the block.

Always use `dcache.ipa` instruction to invalidate dcache. Replace
existing usages of `dcache.ipa` with our implementation.

Note that this fix is slightly intrusive as it changes the cache
invalidation behavior in all drivers. However, I have not noticed any
side-effect during my tests.

[1] https://github.com/T-head-Semi/thead-extension-spec/releases/download/2.3.0/xthead-2023-11-10-2.3.0.pdf

[2] https://github.com/revyos/thead-u-boot/blob/918a8c89e056e3462031d6a498bb4fcc0c3526ce/drivers/net/designware.c#L475

18 months agoboard: light-c910: update milkv meles iopin initialization status
Haaland Chen [Mon, 11 Dec 2023 12:19:30 +0000 (20:19 +0800)]
board: light-c910: update milkv meles iopin initialization status

Signed-off-by: Haaland Chen <haaland@milkv.io>
18 months agoci: enable ci for meles 4g/8g
Han Gao [Sun, 3 Dec 2023 02:38:24 +0000 (10:38 +0800)]
ci: enable ci for meles 4g/8g

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
18 months agofix: set fdt_default_name for meles 4g/8g
Han Gao [Sun, 3 Dec 2023 02:37:26 +0000 (10:37 +0800)]
fix: set fdt_default_name for meles 4g/8g

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
18 months agoconfigs: add milkv-meles singlerank ddr and dualrank ddr defconfig
Haaland Chen [Thu, 30 Nov 2023 09:00:12 +0000 (17:00 +0800)]
configs: add milkv-meles singlerank ddr and dualrank ddr defconfig

Signed-off-by: Haaland Chen <haaland@milkv.io>
18 months agoriscv: dts: milkv-meles: turn on blue user led
Haaland Chen [Wed, 29 Nov 2023 09:19:18 +0000 (17:19 +0800)]
riscv: dts: milkv-meles: turn on blue user led

Signed-off-by: Haaland Chen <haaland@milkv.io>
18 months agolight-c910: set CONFIG_MISC_INIT_R
Haaland Chen [Wed, 29 Nov 2023 09:18:53 +0000 (17:18 +0800)]
light-c910: set CONFIG_MISC_INIT_R

Signed-off-by: Haaland Chen <haaland@milkv.io>
18 months agoboard: light-c910: add function light_c910_set_gpio_output_high
Haaland Chen [Wed, 29 Nov 2023 09:18:19 +0000 (17:18 +0800)]
board: light-c910: add function light_c910_set_gpio_output_high

Signed-off-by: Haaland Chen <haaland@milkv.io>
18 months agoadd Milk-V Meles board
Haaland Chen [Wed, 29 Nov 2023 07:37:33 +0000 (15:37 +0800)]
add Milk-V Meles board

Signed-off-by: Haaland Chen <haaland@milkv.io>
19 months agoconfigs: fix default dtb file name
Han Gao [Wed, 25 Oct 2023 18:52:22 +0000 (02:52 +0800)]
configs: fix default dtb file name

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
19 months agochore: enable ci for beagle-ahead
Han Gao [Wed, 2 Aug 2023 02:30:16 +0000 (10:30 +0800)]
chore: enable ci for beagle-ahead

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
19 months agochore: sync lpi4a config
Han Gao [Wed, 2 Aug 2023 02:28:05 +0000 (10:28 +0800)]
chore: sync lpi4a config

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
19 months agoUpdate cape header GPIO pinmuxing
Deepak Khatri [Sat, 10 Jun 2023 20:19:32 +0000 (01:49 +0530)]
Update cape header GPIO pinmuxing

19 months agoModify GPIO default status for Beagle Bluetooth uart4 module
Baozhu Zuo [Fri, 9 Jun 2023 10:30:41 +0000 (06:30 -0400)]
Modify GPIO default status for Beagle Bluetooth uart4 module

19 months agoFix SD boot button issue
Deepak Khatri [Wed, 31 May 2023 21:44:33 +0000 (03:14 +0530)]
Fix SD boot button issue

19 months agoUpdate default mikroBus pinmuxing
Deepak Khatri [Sun, 7 May 2023 18:49:35 +0000 (00:19 +0530)]
Update default mikroBus pinmuxing

19 months agoUpdate debug port pinmux
Deepak Khatri [Thu, 13 Apr 2023 12:11:43 +0000 (17:41 +0530)]
Update debug port pinmux

To check if low drive strength is causing problem.

19 months agoPinmux update: PullDown pins
Deepak Khatri [Mon, 10 Apr 2023 17:44:58 +0000 (23:14 +0530)]
Pinmux update: PullDown pins

19 months agoUpdate BeagleV Ahead pinmuxing
Deepak Khatri [Sun, 9 Apr 2023 17:47:10 +0000 (23:17 +0530)]
Update BeagleV Ahead pinmuxing

19 months agobackport of: [PATCH] cmd: pxe: add support for FDT overlays
Robert Nelson [Tue, 14 Feb 2023 22:35:27 +0000 (16:35 -0600)]
backport of: [PATCH] cmd: pxe: add support for FDT overlays

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
19 months agopytest: add sandbox test for "extension" command
Kory Maincent [Tue, 4 May 2021 17:31:23 +0000 (19:31 +0200)]
pytest: add sandbox test for "extension" command

This commit extends the sandbox to implement a dummy
extension_board_scan() function and enables the extension command in
the sandbox configuration. It then adds a test that checks the proper
functionality of the extension command by applying two Device Tree
overlays to the sandbox Device Tree.

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
[trini: Limit to running on sandbox]
Signed-off-by: Tom Rini <trini@konsulko.com>
19 months agocmd: add support for a new "extension" command
Kory Maincent [Tue, 4 May 2021 17:31:22 +0000 (19:31 +0200)]
cmd: add support for a new "extension" command

This patch adds a new "extension" command, which aims at detecting
extension boards connected to the hardware platform, and apply the
Device Tree overlays that describe the hardware present on those
extension boards.

In order to enable this mechanism, board-specific code must implement
the extension_board_scan() function that fills in a linked list of
"struct extension", each describing one extension board. In addition,
the board-specific code must select the SUPPORT_EXTENSION_SCAN Kconfig
boolean.

Based on this:

 - "extension scan" makes the generic code call the board-specific
   extension_board_scan() function to retrieve the list of detected
   extension boards.

 - "extension list" allows to list the detected extension boards.

 - "extension apply <number>|all" allows to apply the Device Tree
   overlay(s) corresponding to one, or all, extension boards

The latter requires two environment variables to exist and set one variable
to run:

 - extension_overlay_addr: the RAM address where to load the Device
   Tree overlays

 - extension_overlay_cmd: the U-Boot command to load one overlay.
   Indeed, the location and mechanism to load DT overlays is very setup
   specific.

 - extension_overlay_name: set by the command: the name of the DT which
   will be load during the execution.

When calling the command described in the extension_overlay_cmd
variable, the variable extension_overlay_name will be defined. So a
typical extension_overlay_cmd will look like this:

  extension_overlay_cmd=load mmc 0:1 $extension_overlay_addr /boot/$extension_overlay_name

Here is an example on how to use it:
=> run loadfdt
=> fdt addr $fdtaddr
=> setenv extension_overlay_addr 0x1000
=> setenv extension_overlay_cmd 'load mmc 0:1 ${extension_overlay_addr} /boot/${extension_overlay_name}'
=> extension scan
Found 1 extension board(s).
=> extension apply 0
519 bytes read in 3 ms (168.9 KiB/s)

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Reviewed-by: Maxime Ripard <maxime@cerno.tech>
19 months agofdt_support: move fdt_valid from cmd_fdt.c to fdt_support.c
Kory Maincent [Tue, 4 May 2021 17:31:21 +0000 (19:31 +0200)]
fdt_support: move fdt_valid from cmd_fdt.c to fdt_support.c

Move the fdt_valid function to fdt_support.
This changes allow to be able to test the validity of a devicetree in
other c files.

Update code syntax.

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Maxime Ripard <maxime@cerno.tech>
19 months agolight_beagle_defconfig: enable CONFIG_OF_LIBFDT_OVERLAY=y
Robert Nelson [Tue, 14 Feb 2023 17:22:11 +0000 (11:22 -0600)]
light_beagle_defconfig: enable CONFIG_OF_LIBFDT_OVERLAY=y

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
19 months agoModify_GPIO_default_status_for_Beagle_WIFI_BLE_module
Robert Nelson [Thu, 5 Jan 2023 01:13:34 +0000 (19:13 -0600)]
Modify_GPIO_default_status_for_Beagle_WIFI_BLE_module

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
19 months agolight_beagle_defconfig: run savedefconfig
Robert Nelson [Thu, 27 Apr 2023 19:12:29 +0000 (14:12 -0500)]
light_beagle_defconfig: run savedefconfig

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
19 months agofix: ensure flashing img not to lose mac address
Han Gao [Wed, 18 Oct 2023 17:35:17 +0000 (01:35 +0800)]
fix: ensure flashing img not to lose mac address

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
19 months agofastboot: Fix overflow when calculating chunk size
Sean Anderson [Thu, 27 May 2021 16:02:34 +0000 (12:02 -0400)]
fastboot: Fix overflow when calculating chunk size

If a chunk was larger than 4GiB, then chunk_data_sz would overflow and
blkcnt would not be calculated correctly. Upgrade it to a u64 and cast
its multiplicands as well. Also fix bytes_written while we're at it.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
21 months agoinclude: configs: light-c910.h: allow boot partition use other filesystem type
Lu Hui [Wed, 23 Aug 2023 09:53:55 +0000 (17:53 +0800)]
include: configs: light-c910.h: allow boot partition use other filesystem type

21 months agoLinux_SDK_V1.2.1
thead_admin [Mon, 7 Aug 2023 03:22:40 +0000 (11:22 +0800)]
Linux_SDK_V1.2.1

Signed-off-by: thead_admin <occ_thead@service.alibaba.com>
22 months agoUpdate dtb name: add vendor name path to CONFIG_DEFAULT_FDT_FILE
Nekorouter [Tue, 8 Aug 2023 05:32:42 +0000 (13:32 +0800)]
Update dtb name: add vendor name path to CONFIG_DEFAULT_FDT_FILE

22 months agochore: add ums gadget for light-val-a
Han Gao [Tue, 1 Aug 2023 16:50:40 +0000 (00:50 +0800)]
chore: add ums gadget for light-val-a

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
22 months agochore: add 16g ci & modify SYS_PROMPT
Han Gao [Tue, 1 Aug 2023 16:24:16 +0000 (00:24 +0800)]
chore: add 16g ci & modify SYS_PROMPT

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
22 months agoadd default fdt filenames
Icenowy Zheng [Tue, 1 Aug 2023 16:46:29 +0000 (00:46 +0800)]
add default fdt filenames

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
Co-Authored-By: Han Gao <gaohan@iscas.ac.cn>
Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
22 months agofix 16g dram print
Icenowy Zheng [Wed, 26 Jul 2023 08:41:24 +0000 (16:41 +0800)]
fix 16g dram print

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
22 months agoadd config for 16G board
Icenowy Zheng [Fri, 21 Jul 2023 06:19:49 +0000 (14:19 +0800)]
add config for 16G board

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
22 months agoadd row16 option
Icenowy Zheng [Fri, 21 Jul 2023 06:19:34 +0000 (14:19 +0800)]
add row16 option

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
22 months agofix: disable custom logo
Han Gao [Sat, 29 Jul 2023 20:05:47 +0000 (04:05 +0800)]
fix: disable custom logo

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
22 months agofeat: update SDK1.2.0
Han Gao [Sat, 29 Jul 2023 19:57:28 +0000 (03:57 +0800)]
feat: update SDK1.2.0

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
22 months agoTypo in spl.c
Spacefish [Mon, 24 Jul 2023 15:44:44 +0000 (17:44 +0200)]
Typo in spl.c

Small typo in comment

22 months agoriscv: Fix build against binutils 2.38
Alexandre Ghiti [Mon, 3 Oct 2022 16:07:54 +0000 (18:07 +0200)]
riscv: Fix build against binutils 2.38

The following description is copied from the equivalent patch for the
Linux Kernel proposed by Aurelien Jarno:

>From version 2.38, binutils default to ISA spec version 20191213. This
means that the csr read/write (csrr*/csrw*) instructions and fence.i
instruction has separated from the `I` extension, become two standalone
extensions: Zicsr and Zifencei. As the kernel uses those instruction,
this causes the following build failure:

arch/riscv/cpu/mtrap.S: Assembler messages:
arch/riscv/cpu/mtrap.S:65: Error: unrecognized opcode `csrr a0,scause'
arch/riscv/cpu/mtrap.S:66: Error: unrecognized opcode `csrr a1,sepc'
arch/riscv/cpu/mtrap.S:67: Error: unrecognized opcode `csrr a2,stval'
arch/riscv/cpu/mtrap.S:70: Error: unrecognized opcode `csrw sepc,a0'

Signed-off-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Christian Stewart <christian@paral.in>
Reviewed-by: Rick Chen <rick@andestech.com>
22 months agofix: unknown CSR 'mhcr' (arch/riscv/cpu/c9xx/cpu.c)
Han Gao [Sun, 23 Jul 2023 08:28:03 +0000 (16:28 +0800)]
fix: unknown CSR 'mhcr' (arch/riscv/cpu/c9xx/cpu.c)

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
22 months agofeat: add gcc-12 build
Han Gao [Sun, 23 Jul 2023 08:24:32 +0000 (16:24 +0800)]
feat: add gcc-12 build

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
23 months agofix: save mac address
Han Gao [Thu, 13 Jul 2023 23:02:31 +0000 (07:02 +0800)]
fix: save mac address

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
23 months agofeat: update slogan
Han Gao [Wed, 12 Jul 2023 14:13:38 +0000 (22:13 +0800)]
feat: update slogan

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
23 months agofeat: add extlinux boot
Han Gao [Wed, 12 Jul 2023 09:27:12 +0000 (17:27 +0800)]
feat: add extlinux boot

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
23 months agofeat: add ruyisdk logo
Han Gao [Tue, 11 Jul 2023 19:36:50 +0000 (03:36 +0800)]
feat: add ruyisdk logo

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
23 months agofix: repair check mac vaild timing
Han Gao [Tue, 11 Jul 2023 18:38:27 +0000 (02:38 +0800)]
fix: repair check mac vaild timing

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
23 months agofix: fix and add ums gadget(usb mass storage gadget)
chainsx [Mon, 3 Jul 2023 17:31:28 +0000 (01:31 +0800)]
fix: fix and add ums gadget(usb mass storage gadget)

23 months agofix: fix the problem of wrong overwritten mac address
wu-yue-yu [Tue, 27 Jun 2023 03:24:48 +0000 (05:24 +0200)]
fix: fix the problem of wrong overwritten mac address

2 years agofix: set fixed mac addrs (#1)
ztd [Mon, 15 May 2023 11:19:21 +0000 (13:19 +0200)]
fix: set fixed mac addrs (#1)

* fix: set fixed mac addr

2 years agofeat: add ci build
Han Gao [Tue, 9 May 2023 18:36:47 +0000 (02:36 +0800)]
feat: add ci build

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
2 years agofix: ftbfs
Han Gao [Tue, 9 May 2023 18:25:53 +0000 (02:25 +0800)]
fix: ftbfs

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
2 years agofix: fix bootargs
Han Gao [Tue, 9 May 2023 18:23:55 +0000 (02:23 +0800)]
fix: fix bootargs

Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
2 years agoENV_SETTINGS
t61230 [Thu, 6 Apr 2023 01:47:05 +0000 (01:47 +0000)]
ENV_SETTINGS

2 years agoLinux_SDK_V1.1.2
thead_admin [Sun, 5 Mar 2023 14:36:05 +0000 (22:36 +0800)]
Linux_SDK_V1.1.2

2 years agoLinux_SDK_V1.0.3
thead_admin [Wed, 4 Jan 2023 05:12:02 +0000 (13:12 +0800)]
Linux_SDK_V1.0.3

2 years agoLinux_SDK_V1.0.2
thead_admin [Tue, 22 Nov 2022 07:50:04 +0000 (15:50 +0800)]
Linux_SDK_V1.0.2

2 years agoLinux_SDK_V0.9.5
thead_admin [Tue, 13 Sep 2022 03:04:33 +0000 (11:04 +0800)]
Linux_SDK_V0.9.5