aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* fix: run gpt_partition failed20240328th1520Han Gao2024-03-281-1/+4
| | | | Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
* include: light-c910.h: add fdtoverlay_addr_rHaaland Chen2024-03-271-0/+1
| | | | Signed-off-by: Haaland Chen <haaland@milkv.io>
* fix: remove find partuuid20240324Han Gao2024-03-241-2/+1
| | | | Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
* feat: add sdcard boot firstHan Gao2024-03-241-3/+4
| | | | Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
* configs: meles: use new fdt default nameHaaland Chen2024-03-213-3/+3
| | | | | | | Since T-HEAD Linux SDK V1.4.2, modified the kernel device tree naming rules, starting with th1520. Signed-off-by: Haaland Chen <haaland@milkv.io>
* feat: add format swap partition for resume20240131Han Gao2024-01-311-1/+2
| | | | Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
* Revert "fix(c9xx): don't flush dcache when invalidating"Han Gao2024-01-315-3/+17
| | | | This reverts commit adec30ace4cebb0554bb246b52eebaf37c1545c4.
* feat: enable load str firmwareHan Gao2024-01-311-2/+4
| | | | Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
* Add tag publish firmware20240127Han Gao2024-01-271-0/+11
| | | | Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
* fix error to written eth1addrHan Gao2024-01-241-1/+1
| | | | Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
* ci: add lc4a mainline dt name supportHan Gao2024-01-241-0/+12
| | | | Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
* ci: add mainline dt name supportHan Gao2024-01-241-0/+13
| | | | Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
* workaround: add delayHan Gao2024-01-221-0/+1
| | | | Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
* config: enable BOARD_RNG_SEEDHan Gao2024-01-2210-0/+10
| | | | Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
* config: update ROW16 to DDPHan Gao2024-01-223-3/+3
| | | | Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
* Linux_SDK_V1.4.2thead_admin2024-01-2241-228/+3126
| | | | Signed-off-by: thead_admin <occ_thead@service.alibaba.com>
* Linux_SDK_V1.3.3thead_admin2024-01-2214-73/+546
| | | | Signed-off-by: thead_admin <occ_thead@service.alibaba.com>
* ci: add build for lcon4a & lc4aHan Gao2023-12-261-0/+16
| | | | Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
* defconfig: add light_lpi4a_[cluster|console]_defconfigLu Hui2023-12-266-0/+484
|
* drivers: video: ilitek-ili9881c.c: add long delay panel resetLu Hui2023-12-261-2/+16
|
* arch: dts: light-lpi4a: allow pane0 ref by other dtsLu Hui2023-12-261-1/+1
|
* drivers: panel: add panel-mingjun-070bi30ia2Lu Hui2023-12-263-0/+499
|
* ci: update toolchainsHan Gao2023-12-151-21/+19
| | | | Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
* fix(c9xx): don't flush dcache when invalidatingGilbert Gilb's2023-12-155-17/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* board: light-c910: update milkv meles iopin initialization statusHaaland Chen2023-12-131-62/+60
| | | | Signed-off-by: Haaland Chen <haaland@milkv.io>
* ci: enable ci for meles 4g/8gHan Gao2023-12-031-0/+8
| | | | Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
* fix: set fdt_default_name for meles 4g/8gHan Gao2023-12-031-2/+2
| | | | Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
* configs: add milkv-meles singlerank ddr and dualrank ddr defconfigHaaland Chen2023-12-032-0/+178
| | | | Signed-off-by: Haaland Chen <haaland@milkv.io>
* riscv: dts: milkv-meles: turn on blue user ledHaaland Chen2023-12-031-0/+4
| | | | Signed-off-by: Haaland Chen <haaland@milkv.io>
* light-c910: set CONFIG_MISC_INIT_RHaaland Chen2023-12-031-0/+2
| | | | Signed-off-by: Haaland Chen <haaland@milkv.io>
* board: light-c910: add function light_c910_set_gpio_output_highHaaland Chen2023-12-031-0/+30
| | | | Signed-off-by: Haaland Chen <haaland@milkv.io>
* add Milk-V Meles boardHaaland Chen2023-12-037-5/+581
| | | | Signed-off-by: Haaland Chen <haaland@milkv.io>
* configs: fix default dtb file nameHan Gao2023-10-261-1/+1
| | | | Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
* chore: enable ci for beagle-aheadHan Gao2023-10-201-0/+4
| | | | Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
* chore: sync lpi4a configHan Gao2023-10-201-2/+8
| | | | Signed-off-by: Han Gao <gaohan@iscas.ac.cn>
* Update cape header GPIO pinmuxingDeepak Khatri2023-10-201-67/+67
|
* Modify GPIO default status for Beagle Bluetooth uart4 moduleBaozhu Zuo2023-10-201-0/+8
|
* Fix SD boot button issueDeepak Khatri2023-10-201-3/+11
|
* Update default mikroBus pinmuxingDeepak Khatri2023-10-201-10/+26
|
* Update debug port pinmuxDeepak Khatri2023-10-201-2/+2
| | | | To check if low drive strength is causing problem.
* Pinmux update: PullDown pinsDeepak Khatri2023-10-201-67/+67
|
* Update BeagleV Ahead pinmuxingDeepak Khatri2023-10-201-1/+330
|
* backport of: [PATCH] cmd: pxe: add support for FDT overlaysRobert Nelson2023-10-203-0/+113
| | | | Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
* pytest: add sandbox test for "extension" commandKory Maincent2023-10-206-0/+97
| | | | | | | | | | | | 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>
* cmd: add support for a new "extension" commandKory Maincent2023-10-206-0/+323
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* fdt_support: move fdt_valid from cmd_fdt.c to fdt_support.cKory Maincent2023-10-203-49/+48
| | | | | | | | | | | | 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>
* light_beagle_defconfig: enable CONFIG_OF_LIBFDT_OVERLAY=yRobert Nelson2023-10-201-0/+1
| | | | Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
* Modify_GPIO_default_status_for_Beagle_WIFI_BLE_moduleRobert Nelson2023-10-201-2/+6
| | | | Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
* light_beagle_defconfig: run savedefconfigRobert Nelson2023-10-201-35/+22
| | | | Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
* fix: ensure flashing img not to lose mac addressHan Gao2023-10-191-0/+11
| | | | Signed-off-by: Han Gao <gaohan@iscas.ac.cn>