summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2022-01-13Merge pull request #29 from hal-feng/JH7100_Multimedia_V0.1.0SDK_v2.0.0JH7100_Multimedia_V0.1.0andyhu-stf1-0/+14
riscv: dts: starfive: add watchdog node
2022-01-13riscv: dts: starfive: add watchdog nodeHal Feng1-0/+14
Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2022-01-12Merge pull request #28 from shalasaka/JH7100_Multimedia_V0.1.0andyhu-stf1-2/+2
riscv: dts: starfive: Modify devicee tree for VisionFive to support W…
2022-01-11riscv: dts: starfive: Modify devicee tree for VisionFive to support WM8960 ↵Som Qin1-2/+2
daughter board Modify the gpio node to keep i2s pins state. Signed-off-by: Som Qin <som.qin@starfivetech.com>
2022-01-07dts: fixed libcamera report locaton warning about imx219Andy Hu1-0/+2
Signed-off-by: 123curry <curry.zhang@starfivetech.com>
2022-01-06Merge pull request #27 from shalasaka/JH7100_Multimedia_V0.1.0_for_visionfiveandyhu-stf108-35/+1337
Add starfive visionfive board support at brach JH7100_Multimedia_V0.1.0
2022-01-06cmd/eeprom: fix data type issue for parse_numeric_paramJianlong.Huang1-2/+2
This patch fixs parse_numeric_param issue on some platfrom which has different sizes of int and long, like riscv64. On riscv64, int is 4 bytes, but long is 8 bytes. on this situation: ulong addr = parse_numeric_param(argv[index]); if argv[index] is "0x80000000", this "ulong addr" will be 0xffffffff80000000. Signed-off-by: Jianlong.Huang <jianlong.huang@starfivetech.com> Co-developed-by: Wei Fu <wefu@redhat.com> Signed-off-by: Wei Fu <wefu@redhat.com>
2022-01-05starfive: Fix the compile issue of starfive ID_EEPROMSom.Qin2-29/+29
The issue: Error: You must add new CONFIG options using Kconfig The following new ad-hoc CONFIG options were detected: CONFIG_STARFIVE_EEPROM_ATOM1_PSTR CONFIG_STARFIVE_EEPROM_ATOM1_PSTR_SIZE CONFIG_STARFIVE_EEPROM_ATOM1_SN_OFFSET CONFIG_STARFIVE_EEPROM_ATOM1_VSTR CONFIG_STARFIVE_EEPROM_ATOM1_VSTR_SIZE CONFIG_STARFIVE_EEPROM_HATS_SIZE_MAX CONFIG_STARFIVE_EEPROM_WP_OFFSET Signed-off-by: Som.Qin <som.qin@starfivetech.com>
2022-01-05starfive: apply VisionFive board changesSom.Qin1-0/+15
The VisionFive dts is base on Starlight dts, and the difference of rst gpio, eeprom and gmac should be applied. Signed-off-by: Som.Qin <som.qin@starfivetech.com>
2022-01-04Convert CONFIG_ID_EEPROM to KconfigTom Rini95-31/+75
This converts the following to Kconfig: CONFIG_ID_EEPROM Signed-off-by: Tom Rini <trini@konsulko.com>
2021-12-30starfive: add ID_EEPROM supoort for visionfive V1Wei Fu5-2/+775
This patch add ID_EEPROM (mac command) support for visionfive V1. Signed-off-by: Wei Fu <wefu@redhat.com>
2021-12-30starfive: add JH7100 VisionFive V1 Support.Jianlong.Huang3-0/+180
Signed-off-by: Jianlong.Huang <jianlong.huang@starfivetech.com>
2021-12-30net/phy: add YuTai Corp Ethernet PHYs(YT8511/YT8521) driverWalker Chen5-0/+290
This pathch adds YuTai Corp Ethernet PHYs(YT8511/YT8521) support. Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
2021-09-29TF Image: modify uboot env variable to support booting from tf cardu-boot-2021.10-rc5-Starlight-g6492303multimedia_v0.1_20211016multimedia_v0.1sw.multimedia2-0/+5
Signed-off-by: sw.multimedia <sw.multimedia@starfivetech.com> Signed-off-by: Curry Zhang <curry.zhang@starfivetech.com>
2021-09-29drivers/net/phy/marvell: setup LED config for JH7100 EVByanhong.wang1-0/+14
2021-09-29starfive: GPIO pin initsw.multimedia29-1/+149300
This patch should be removed, once we can do GPIO pin init in secondboot or ddrinit Include: starfive: Add init GPIO for ALSA audio framework starfive: remove useless gpio operation Signed-off-by: sw.multimedia <sw.multimedia@starfivetech.com> Signed-off-by: michael.yan <michael.yan@starfivetech.com> Signed-off-by: andy.hu <andy.hu@starfivetech.com>
2021-09-29starfive: Modify designware driver for JH7100TekkamanV2-13/+82
This patch is using internal RAM to improve performance (avoid flushing L2 cache): Modify designware driver by: 1, Modify gtxclk configuration by phydev->speed 2, Add Preseted mem support for mac descrtables and buffs 3, disable DMA memory range check when building for JH7100 The original patch is from 'Bo Li <bo.li@starfivetech.com>':
2021-09-29starfive(multimedia): Add pwmdac pinctl and keep 0,2,3,45 gpio for i2s to dtssw.multimedia2-6/+25
2021-09-29starfive(multimedia): apply starfive v4l2 pinctl to dtssw.multimedia3-5/+119
Signed-off-by: sw.multimedia <sw.multimedia@starfivetech.com>
2021-09-29starfive: apply the pinctl to dtssw.multimedia3-12/+597
2021-09-29starfive: Add v4l2 video sensor device and DRM framework in dtssw.multimedia3-21/+380
Signed-off-by: sw.multimedia <sw.multimedia@starfivetech.com> Signed-off-by: andy.hu <andy.hu@starfivetech.com> Signed-off-by: david.li <david.li@starfivetech.com> Signed-off-by: keithzhao <keith.zhao@starfivetech.com> Signed-off-by: Curry Zhang <curry.zhang@starfivetech.com>
2021-09-29starfive: dtsi fix for dma2psw.multimedia1-0/+1
2021-09-29starfive: Add more audio codecs support in dtssw.multimedia6-0/+128
2021-09-29starfive: add clock info in dts for audiosw.multimedia2-0/+154
2021-09-29starfive: add i2c dev info in dts for audiosw.multimedia1-6/+30
2021-09-29starfive: fix dts(linux)TekkamanV2-5/+12
1, ccache 2, mmc This patch adds the necessary info for mmc driver: bus-width = <4>; max-frequency = <?0000000>; 3, uart0(console) 4, SPI Nor Flash 5, Switch dtb to linux dts
2021-09-29starfive: Porting jh7100-beaglev-starlight.dts from linuxTekkamanV5-0/+1308
https://github.com/starfive-tech/linux/tree/beaglev
2021-09-29starfive: Add JH7100 supportTekkamanV15-0/+2338
This patch adds StarFive JH7100 main support, including Starlight and EVB support, ported from StarFive HiFive_U-Boot REPO. The original authors are bo.li <bo.li@starfivetech.com> Chenjieqin <Jessica.Chen@starfivetech.com> Huan.Feng <huan.feng@starfivetech.com> jack.zhu <jack.zhu@starfivetech.com> Jianlong Huang <jianlong.huang@starfivetech.com> ke.zhu <ke.zhu@starfivetech.com> Micheal Zhu <michael.zhu@starfivetech.com> Samin Guo <samin.guo@starfivetech.com> yanhong.wang <yanhong.wang@starfivetech.com> yiming.li <yiming.li@starfivetech.com> Note: 1, disable BTRFS(will trigger a link error with *some* RV64 GCC) But RV64 GCC on Fedora works well with enabling BTRFS. BTRFS will select ZSTD which will trigger a link error with *some* RV64 GCC: --- riscv64-unknown-linux-gnu-ld.bfd: /usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.0/libgcc.a(_clzsi2.o): can't link double-float modules with soft-float modules riscv64-unknown-linux-gnu-ld.bfd: failed to merge target specific data of file /usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.0/libgcc.a(_clzsi2.o) riscv64-unknown-linux-gnu-ld.bfd: /usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.0/libgcc.a(_clz.o): can't link double-float modules with soft-float modules riscv64-unknown-linux-gnu-ld.bfd: failed to merge target specific data of file /usr/lib/gcc/riscv64-unknown-linux-gnu/11.2.0/libgcc.a(_clz.o) make: *** [Makefile:1787: u-boot] Error 1 --- 2, enable OF_SEPARATE: This is required so that openSBI can add itself to /reserved-memory, and let EFI know about it. By Andreas Schwab <schwab@suse.de> 3, Set default fdtfile name By Andreas Schwab <schwab@suse.de>
2021-09-29starfive: Add JH7100 MMC driver supportTekkamanV3-0/+176
This driver modified from snps_dw_mmc.c Signed-off-by: TekkamanV <tekkamanv@starfivetech.com>
2021-09-29starfive: add JH71x0 serial driverTekkamanV3-0/+354
This driver ported from NS16550 Serial Port driver, It is a simplified version of drivers/serial/ns16550.c We may can merge it to ns16550 later. Signed-off-by: TekkamanV <tekkamanv@starfivetech.com>
2021-09-29starfive: add OTP driver for jh7100yanhong.wang3-0/+218
Signed-off-by: yanhong.wang <yanhong.wang@starfivetech.com>
2021-09-29sifive: make WayEnable can be configured by menuconfigTekkamanV2-0/+16
Signed-off-by:TekkamanV <tekkamanv@starfivetech.com>
2021-09-29sifive_cache: add flush_range func in sifive cache driverTekkamanV2-2/+82
Signed-off-by: TekkamanV <tekkamanv@starfivetech.com>
2021-09-29cache: add flush_range interface in cache_ops structTekkamanV2-0/+32
Signed-off-by: TekkamanV <tekkamanv@starfivetech.com>
2021-09-29riscv: add reset_misc function (__weak)TekkamanV2-0/+7
Signed-off-by: TekkamanV <tekkamanv@starfivetech.com>
2021-09-29riscv: Enable SYS_CLK_FREQ configTekkamanV1-1/+1
Signed-off-by: TekkamanV <tekkamanv@starfivetech.com>
2021-09-29riscv: Enable SYS_MALLOC_LEN configTekkamanV1-1/+1
Signed-off-by: TekkamanV <tekkamanv@starfivetech.com>
2021-09-29riscv: add #define in asm/io.h for cadence_qspi_apb.cTekkamanV1-0/+4
Signed-off-by: TekkamanV <tekkamanv@starfivetech.com>
2021-09-29mtd: Add SPI Nor Flash chip GD25LQ256D IDyanhong.wang1-0/+5
Signed-off-by: yanhong.wang <yanhong.wang@starfivetech.com>
2021-09-28Merge branch '2021-09-28-regression-fixes'Tom Rini13-32/+52
- Reintroduce creating internally the "nor%d" style names, in order to fix some use U-Boot use-cases involving the "mtd" command. - Fix a regression over the default SPI bus mode shown by having the compiled default actually start being used. The correct default here is 0. - Fix ethernet on imx7d-sdb - Fix a regression with MTD NAND devices when OF_LIVE is enabled
2021-09-28imx: imx7d-sdb: fix ethernet, sync .dts with linuxRasmus Villemoes1-3/+3
Commit 0d52bab46 (mx7dsabre: Enable DM_ETH) changed these flags from 0 (aka GPIO_ACTIVE_HIGH) to GPIO_ACTIVE_LOW. It claimed to "Also sync device tree with v5.5-rc1", but in the linux tree, these gpios have always been GPIO_ACTIVE_HIGH ever since this node was introduced around v4.13 (linux commit 184f39b5). I'm guessing that the reason for the GPIO_ACTIVE_LOW was to work around the behaviour of the soft-spi driver back then, which effectively defaulted to spi-mode 3 and not 0. That was arguably a bug in the soft-spi driver, which then got fixed in 0e146993bb3 (spi: add support for all spi modes with soft spi), but that commit then broke ethernet on this board. Fix it by setting the gpios as active high, which as a bonus actually brings us in sync with the .dts in the linux source tree. Without this, one gets Net: Could not get PHY for FEC0: addr 0 No ethernet found. With this, ethernet (at least ping and tftp) works as expected from the U-Boot shell. Cc: Fabio Estevam <festevam@gmail.com> Cc: Joris Offouga <offougajoris@gmail.com> Cc: "Christian Bräuner Sørensen" <yocto@bsorensen.net> Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
2021-09-28mtd: nand: raw: convert nand_dt_init() to ofnode_xx() interfacePatrice Chotard6-23/+18
nand_dt_init() is still using fdtdec_xx() interface. If OF_LIVE flag is enabled, dt property can't be get anymore. Updating all fdtdec_xx() interface to ofnode_xx() to solve this issue. For doing this, node parameter type must be ofnode. First idea was to convert "node" parameter to ofnode type inside nand_dt_init() using offset_to_ofnode(node). But offset_to_ofnode() is not bijective, in case OF_LIVE flag is enabled, it performs an assert(). So, this leads to update nand_chip struct flash_node field from int to ofnode and to update all nand_dt_init() callers. Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
2021-09-28mtd: spi: Set CONFIG_SF_DEFAULT_MODE default to 0Marek Vasut1-1/+1
Before e2e95e5e254 ("spi: Update speed/mode on change") most systems silently defaulted to SF bus mode 0. Now the mode is always updated, which causes breakage. It seems most SF which are used as boot media operate in bus mode 0, so switch that as the default. This should fix booting at least on Altera SoCFPGA, ST STM32, Xilinx ZynqMP, NXP iMX and Rockchip SoCs, which recently ran into trouble with mode 3. Marvell Kirkwood and Xilinx microblaze need to be checked as those might need mode 3. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachi-powergrids.com> Cc: Andreas Biessmann <andreas@biessmann.org> Cc: Eugen Hristev <eugen.hristev@microchip.com> Cc: Michal Simek <michal.simek@xilinx.com> Cc: Patrice Chotard <patrice.chotard@foss.st.com> Cc: Patrick Delaunay <patrick.delaunay@foss.st.com> Cc: Peng Fan <peng.fan@nxp.com> Cc: Siew Chin Lim <elly.siew.chin.lim@intel.com> Cc: Tom Rini <trini@konsulko.com> Cc: Valentin Longchamp <valentin.longchamp@hitachi-powergrids.com> Cc: Vignesh Raghavendra <vigneshr@ti.com>
2021-09-28mtd: spi: nor: force mtd name to "nor%d"Patrick Delaunay4-4/+23
Force the mtd name of spi-nor to "nor" + the driver sequence number: "nor0", "nor1"... beginning after the existing nor devices. This patch is coherent with existing "nand" and "spi-nand" mtd device names. When CFI MTD NOR device are supported, the spi-nor index is chosen after the last CFI device defined by CONFIG_SYS_MAX_FLASH_BANKS. When CONFIG_SYS_MAX_FLASH_BANKS_DETECT is activated, this config is replaced by to cfi_flash_num_flash_banks in the include file mtd/cfi_flash.h. This generic name "nor%d" can be use to identify the mtd spi-nor device without knowing the real device name or the DT path of the device, used with API get_mtd_device_nm() and is used in mtdparts command. This patch also avoids issue when the same NOR device is present 2 times, for example on STM32MP15F-EV1: STM32MP> mtd list SF: Detected mx66l51235l with page size 256 Bytes, erase size 64 KiB, \ total 64 MiB List of MTD devices: * nand0 - type: NAND flash - block size: 0x40000 bytes - min I/O: 0x1000 bytes - OOB size: 224 bytes - OOB available: 118 bytes - ECC strength: 8 bits - ECC step size: 512 bytes - bitflip threshold: 6 bits - 0x000000000000-0x000040000000 : "nand0" * mx66l51235l - device: mx66l51235l@0 - parent: spi@58003000 - driver: jedec_spi_nor - path: /soc/spi@58003000/mx66l51235l@0 - type: NOR flash - block size: 0x10000 bytes - min I/O: 0x1 bytes - 0x000000000000-0x000004000000 : "mx66l51235l" * mx66l51235l - device: mx66l51235l@1 - parent: spi@58003000 - driver: jedec_spi_nor - path: /soc/spi@58003000/mx66l51235l@1 - type: NOR flash - block size: 0x10000 bytes - min I/O: 0x1 bytes - 0x000000000000-0x000004000000 : "mx66l51235l" The same mtd name "mx66l51235l" identify the 2 instances mx66l51235l@0 and mx66l51235l@1. This patch fixes a ST32CubeProgrammer / stm32prog command issue with nor0 target on STM32MP157C-EV1 board introduced by commit b7f060565e31 ("mtd: spi-nor: allow registering multiple MTDs when DM is enabled"). Fixes: b7f060565e31 ("mtd: spi-nor: allow registering multiple MTDs when DM is enabled") Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com> [trini: Add <dm/device.h> to <mtd.h> for DM_MAX_SEQ_STR] Signed-off-by: Tom Rini <trini@konsulko.com>
2021-09-28mtd: cfi_flash: use cfi_flash_num_flash_banks only when supportedPatrick Delaunay1-1/+7
When CONFIG_SYS_MAX_FLASH_BANKS_DETECT is activated, CONFIG_SYS_MAX_FLASH_BANKS is replaced by cfi_flash_num_flash_banks, but this variable is defined in drivers/mtd/cfi_flash.c, which is compiled only when CONFIG_FLASH_CFI_DRIVER is activated, in U-Boot or in SPL when CONFIG_SPL_MTD_SUPPORT is activated. This patch deactivates this feature CONFIG_SYS_MAX_FLASH_BANKS_DETECT when flash cfi driver is not activated to avoid compilation issue in the next patch, when CONFIG_SYS_MAX_FLASH_BANKS is used in spi_nor_scan(). Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
2021-09-27Prepare v2021.10-rc5Tom Rini1-1/+1
Signed-off-by: Tom Rini <trini@konsulko.com>
2021-09-27Merge https://source.denx.de/u-boot/custodians/u-boot-marvellTom Rini2-1/+9
- turris_omnia: fix leaked mtd device (Marek) - phy: marvell: cp110: Fix SATA invert polarity (Denis)
2021-09-27phy: marvell: cp110: Support SATA invert polarityDenis Odintsov1-1/+6
In commit b24bb99d cp110 configuration initially done in u-boot was removed and delegated to atf firmware as smc call. That commit didn't account for later introduced in d13b740c SATA invert polarity support. This patch adds support of passing SATA invert polarity flags to atf firmware during the smc call. Signed-off-by: Denis Odintsov <shiva@mail.ru> Cc: Baruch Siach <baruch@tkos.co.il> Cc: Rabeeh Khoury <rabeeh@solid-run.com> Cc: Stefan Roese <sr@denx.de> Reviewed-by: Stefan Roese <sr@denx.de>
2021-09-27arm: mvebu: turris_omnia: fix leaked mtd deviceMarek Behún1-0/+3
After getting MTD device via get_mtd_device_nm(), we need to put it with put_mtd_device(), otherwise we get Removing MTD device #0 (mx25l6405d) with use count 1 before booting kernel. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Pali Rohár <pali@kernel.org> Tested-by: Pali Rohár <pali@kernel.org> Reviewed-by: Stefan Roese <sr@denx.de>
2021-09-26Merge tag 'efi-2021-10-rc5' of ↵Tom Rini4-23/+35
https://source.denx.de/u-boot/custodians/u-boot-efi Pull request for efi-2021-10-rc5 Documentation: * add /config bindings to HTML documentation UEFI * Fix number_of_algorithms field in TCG EFI Protocol