]> git.dujemihanovic.xyz Git - u-boot.git/log
u-boot.git
5 months agoMerge patch series "api: Remove duplicate newlines"
Tom Rini [Mon, 15 Jul 2024 18:28:22 +0000 (12:28 -0600)]
Merge patch series "api: Remove duplicate newlines"

This removes a number of duplicate newlines throughout the codebase.

5 months agoxtensa: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:36 +0000 (15:19 +0200)]
xtensa: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agox86: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:35 +0000 (15:19 +0200)]
x86: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agotools: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:34 +0000 (15:19 +0200)]
tools: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agotest: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:33 +0000 (15:19 +0200)]
test: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agosh: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:32 +0000 (15:19 +0200)]
sh: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoscripts: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:31 +0000 (15:19 +0200)]
scripts: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agosandbox: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:30 +0000 (15:19 +0200)]
sandbox: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoppc: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:29 +0000 (15:19 +0200)]
ppc: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agopost: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:28 +0000 (15:19 +0200)]
post: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agonios2: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:27 +0000 (15:19 +0200)]
nios2: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agonet: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:26 +0000 (15:19 +0200)]
net: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agomips: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:25 +0000 (15:19 +0200)]
mips: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agomicroblaze: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:24 +0000 (15:19 +0200)]
microblaze: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agom68k: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:23 +0000 (15:19 +0200)]
m68k: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agolib: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:22 +0000 (15:19 +0200)]
lib: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agofs: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:21 +0000 (15:19 +0200)]
fs: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoexamples: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:20 +0000 (15:19 +0200)]
examples: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoenv: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:19 +0000 (15:19 +0200)]
env: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agodisk: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:18 +0000 (15:19 +0200)]
disk: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agocommon: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:17 +0000 (15:19 +0200)]
common: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agocmd: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:16 +0000 (15:19 +0200)]
cmd: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoboot: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:15 +0000 (15:19 +0200)]
boot: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: mach: sunxi: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:14 +0000 (15:19 +0200)]
arm: mach: sunxi: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: mach: stm32: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:13 +0000 (15:19 +0200)]
arm: mach: stm32: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: mach: socfpga: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:12 +0000 (15:19 +0200)]
arm: mach: socfpga: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: mach: renesas: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:11 +0000 (15:19 +0200)]
arm: mach: renesas: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: mach: marvell: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:10 +0000 (15:19 +0200)]
arm: mach: marvell: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: mach: imx: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:09 +0000 (15:19 +0200)]
arm: mach: imx: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: mach: exynos: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:08 +0000 (15:19 +0200)]
arm: mach: exynos: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: mach: ti: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:07 +0000 (15:19 +0200)]
arm: mach: ti: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: mach: at91: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:06 +0000 (15:19 +0200)]
arm: mach: at91: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: include: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:05 +0000 (15:19 +0200)]
arm: include: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: include: tegra: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:04 +0000 (15:19 +0200)]
arm: include: tegra: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: include: sunxi: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:03 +0000 (15:19 +0200)]
arm: include: sunxi: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: include: rockchip: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:02 +0000 (15:19 +0200)]
arm: include: rockchip: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: include: ti: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:01 +0000 (15:19 +0200)]
arm: include: ti: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: include: imx: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:19:00 +0000 (15:19 +0200)]
arm: include: imx: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: include: amlogic: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:18:59 +0000 (15:18 +0200)]
arm: include: amlogic: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: include: nxp: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:18:58 +0000 (15:18 +0200)]
arm: include: nxp: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: include: hisilicon: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:18:57 +0000 (15:18 +0200)]
arm: include: hisilicon: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: include: fsl: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:18:56 +0000 (15:18 +0200)]
arm: include: fsl: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: dts: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:18:55 +0000 (15:18 +0200)]
arm: dts: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarm: cpu: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:18:54 +0000 (15:18 +0200)]
arm: cpu: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoarc: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:18:53 +0000 (15:18 +0200)]
arc: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoapi: Remove duplicate newlines
Marek Vasut [Sat, 13 Jul 2024 13:18:52 +0000 (15:18 +0200)]
api: Remove duplicate newlines

Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoMerge https://source.denx.de/u-boot/custodians/u-boot-marvell
Tom Rini [Mon, 15 Jul 2024 14:25:59 +0000 (08:25 -0600)]
Merge https://source.denx.de/u-boot/custodians/u-boot-marvell

- mvebu: Migrate to upstream DT for Synology DS116 (Armada 385) board
  (Tony)
- mvebu: Enable bootstd and other modernization for Synology DS414
  (Armada XP) board (Tony)

5 months agoMerge tag 'efi-2024-10-rc1-2' of https://source.denx.de/u-boot/custodians/u-boot-efi
Tom Rini [Mon, 15 Jul 2024 14:21:46 +0000 (08:21 -0600)]
Merge tag 'efi-2024-10-rc1-2' of https://source.denx.de/u-boot/custodians/u-boot-efi

Pull request efi-2024-10-rc1-2

Documentation:

* use current versions of certifi and urllib3 for building documentation
* add bootelf command documentation
* correct the description of the Goldfish RTC driver
* correct heading level of itest examples

UEFI:

* print device-tree in dtbdump.efi
* consider CONFIG_EFI_IGNORE_OSINDICATIONS in TestEfiCapsuleFirmwareRaw
* correct cmd_capsule_esl_gen invocation in scripts/Makefile.lib
* use capsule CRT instead of ESL file when building capsules

Others:

* let ENV_IS_IN_EXT4 enable SYS_MMC_ENV_DEV
* check if CONFIG_SYS_MMC_ENV_DEV is defined in mmc_get_env_dev

5 months agoarm: mvebu: Enable bootstd and other modernization for Synology DS414 (Armada XP...
Tony Dinh [Mon, 8 Jul 2024 04:39:03 +0000 (21:39 -0700)]
arm: mvebu: Enable bootstd and other modernization for Synology DS414 (Armada XP) board

- Switch to standard boot (in include/configs/ds414.h and
configs/ds414_defconfig)
- Implement board_late_init() to ensure successful enumeration
of USB3 devices
- Remove unnecessary checkboard()
- Updated IDENT_STRING to indicate this u-boot supports both Synology
DS414 and DS214+ boards
- Add SYS_THUMB_BUILD to reduce binary size
- Add NET_RANDOM_ETHADDR
- Add CONFIG_LBA48 and CONFIG_SYS_64BIT_LBA to support >2TB HDD/SDD

Signed-off-by: Tony Dinh <mibodhi@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Acked-by: Phil Sutter <phil@nwl.cc>
5 months agoarm: dts: mvebu: Migrate to upstream DT for Synology DS116 (Armada 385) board
Tony Dinh [Wed, 22 May 2024 21:51:59 +0000 (14:51 -0700)]
arm: dts: mvebu: Migrate to upstream DT for Synology DS116 (Armada 385) board

Enable OF_UPSTREAM to use upstream DT and add marvell/ prefix to the
DEFAULT_DEVICE_TREE in DS116 defconfig. Remove current DTS in
arch/arm/dts/ directory.

Signed-off-by: Tony Dinh <mibodhi@gmail.com>
Acked-by: Sumit Garg <sumit.garg@linaro.org>
Reviewed-by: Stefan Roese <sr@denx.de>
5 months agodoc: add bootelf command documentation
Maxim Moskalets [Sun, 30 Jun 2024 14:19:52 +0000 (17:19 +0300)]
doc: add bootelf command documentation

Signed-off-by: Maxim Moskalets <maximmosk4@gmail.com>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
5 months agosunxi: CONFIG_SYS_MMC_ENV_DEV undeclared
Heinrich Schuchardt [Sun, 31 Mar 2024 02:37:17 +0000 (04:37 +0200)]
sunxi: CONFIG_SYS_MMC_ENV_DEV undeclared

bananapi_m64_defconfig with CONFIG_ENV_IS_NOWHERE results in:

    board/sunxi/board.c: In function 'mmc_get_env_dev':
    board/sunxi/board.c:535:24: error:
    'CONFIG_SYS_MMC_ENV_DEV' undeclared (first use in this function)
      535 |                 return CONFIG_SYS_MMC_ENV_DEV;
          |                        ^~~~~~~~~~~~~~~~~~~~~~

Check if CONFIG_SYS_MMC_ENV_DEV is defined.

Fixes: 1011ebc72bda ("sunxi: Select environment MMC based on boot device")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
5 months agoenv: ENV_IS_IN_EXT4 should enable SYS_MMC_ENV_DEV
Heinrich Schuchardt [Sun, 31 Mar 2024 02:37:16 +0000 (04:37 +0200)]
env: ENV_IS_IN_EXT4 should enable SYS_MMC_ENV_DEV

When enabling CONFIG_ENV_IS_IN_EXT4 the environment might be stored on
an mmc device similar to the CONFIG_ENV_IS_IN_FAT case.

Fixes: 7d080773347c ("Convert CONFIG_SYS_MMC_ENV_DEV et al to Kconfig")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
5 months agodoc/sphinx/requirements.txt: Bump certifi and urllib3
Tom Rini [Mon, 8 Jul 2024 15:18:13 +0000 (09:18 -0600)]
doc/sphinx/requirements.txt: Bump certifi and urllib3

As reported by GitHub dependabot, both of these packages should be
bumped to their latest versions to address security issues (neither of
which has a CVE assigned).

Reported-by: GitHub dependabot
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
5 months agotest: test for ignore OsIndications
Ilias Apalodimas [Thu, 4 Jul 2024 14:43:16 +0000 (17:43 +0300)]
test: test for ignore OsIndications

The tests we currently have expect the firmware update to fail
when OsIndications is not set properly. However, we have a Kconfig flag
that explicitly ignores that variable. Adjust the tests accordingly

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
5 months agodoc: fix heading level of itest examples
Heinrich Schuchardt [Mon, 1 Jul 2024 20:42:42 +0000 (22:42 +0200)]
doc: fix heading level of itest examples

The Examples section should be on the second heading level.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
5 months agortc: fix the description of the Goldfish RTC driver
Heinrich Schuchardt [Mon, 1 Jul 2024 06:50:24 +0000 (08:50 +0200)]
rtc: fix the description of the Goldfish RTC driver

Replace the incorrect description that was copied from another driver.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
5 months agoefi_loader: print device-tree in dtbdump.efi
Heinrich Schuchardt [Sat, 29 Jun 2024 07:00:46 +0000 (09:00 +0200)]
efi_loader: print device-tree in dtbdump.efi

The dtbdump.efi binary can be used for testing the EFI_DT_FIXUP_PROTOCOL.
It provides a command to load a file and have it fixed up and a
command to save the resulting file.

Add a command 'dump' for displaying the device-tree.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Tested-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
5 months agoscripts/Makefile.lib: EFI: Use capsule CRT instead of ESL file
Jonathan Humphreys [Thu, 13 Jun 2024 20:27:53 +0000 (15:27 -0500)]
scripts/Makefile.lib: EFI: Use capsule CRT instead of ESL file

The EFI Capsule ESL file (EFI Signature List File) used for authentication
is a binary generated from the EFI Capsule public key certificate. Instead
of including it in the source repo, automatically generate it from the
certificate file during the build process.

Currently, sandbox is the only device using this, so removed its ESL file
and set the (new) CONFIG_EFI_CAPSULE_CRT_FILE config to point to its public
key certificate.

Signed-off-by: Jonathan Humphreys <j-humphreys@ti.com>
5 months agoscripts/Makefile.lib: fixes: Embed capsule public key in platform's dtb
Jonathan Humphreys [Thu, 13 Jun 2024 20:27:52 +0000 (15:27 -0500)]
scripts/Makefile.lib: fixes: Embed capsule public key in platform's dtb

The call to cmd_capsule_esl_gen was made directly rather than using the
"cmd,xxx" syntax.

Fixes: c7d4dfcd ("scripts/Makefile.lib: Embed capsule public key in
platform's dtb")

Signed-off-by: Jonathan Humphreys <j-humphreys@ti.com>
5 months agoMerge https://source.denx.de/u-boot/custodians/u-boot-sh
Tom Rini [Sat, 13 Jul 2024 23:47:04 +0000 (17:47 -0600)]
Merge https://source.denx.de/u-boot/custodians/u-boot-sh

5 months agoMerge https://source.denx.de/u-boot/custodians/u-boot-usb
Tom Rini [Sat, 13 Jul 2024 23:46:54 +0000 (17:46 -0600)]
Merge https://source.denx.de/u-boot/custodians/u-boot-usb

5 months agodt-bindings: clock: rcar-gen2: Remove obsolete header files
Geert Uytterhoeven [Fri, 12 Jul 2024 13:17:38 +0000 (15:17 +0200)]
dt-bindings: clock: rcar-gen2: Remove obsolete header files

The clock definitions in <dt-bindings/clock/r8a779?-clock.h> were
superseded by those in <dt-bindings/clock/r8a779?-cpg-mssr.h> a long
time ago.

In fact U-Boot never used <dt-bindings/clock/r8a779?-clock.h>.
The unused headers, their replacements, and the corresponding
r8a779?.dtsi files were introduced together in U-Boot v2018.03.

Fixes: 16b6e4aa3732cee1 ("ARM: dts: rmobile: Import R8A7790 DTS from Linux 4.15-rc8")
Fixes: edd15fcffba31452 ("ARM: dts: rmobile: Import R8A7791 DTS from Linux 4.15-rc8")
Fixes: a3fb9ff3b33fae05 ("ARM: dts: rmobile: Import R8A7792 DTS from Linux 4.15-rc8")
Fixes: 92aa09959271d08f ("ARM: dts: rmobile: Import R8A7793 DTS from Linux 4.15-rc8")
Fixes: 9a26fc5a73fe2369 ("ARM: dts: rmobile: Import R8A7794 DTS from Linux 4.15-rc8")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
5 months agoeth: asix88179: reset during probe
Caleb Connolly [Tue, 18 Jun 2024 14:57:57 +0000 (16:57 +0200)]
eth: asix88179: reset during probe

In some cases (consistently in my case with an embedded board) the
ethernet controller will time out on the first init but always succeed
after reset.

Let's reset the controller during probe so we always start with it in a
known state, and don't have wait for the first asix_wait_link() to
time out.

Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
Reviewed-by: Marek Vasut <marex@denx.de>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
5 months agoturris_1x: Normalize Kconfig usage
Tom Rini [Sat, 13 Jul 2024 14:38:38 +0000 (08:38 -0600)]
turris_1x: Normalize Kconfig usage

We don't set many options in the board Kconfig entry file but instead
use defconfigs, select in some cases on the target itself, or update the
"default" options of the main entries when needed. In this case we can
remove most of the board Kconfig entries and just add them to the
defconfig like other platforms.

Signed-off-by: Tom Rini <trini@konsulko.com>
5 months agoMerge patch series "Add Turris 1.x board"
Tom Rini [Fri, 12 Jul 2024 19:07:54 +0000 (13:07 -0600)]
Merge patch series "Add Turris 1.x board"

Marek Mojík <marek.mojik@nic.cz> says:

Hello all,

this is a continuation of previous work by Pali to add support for the
Turris 1.x board. As the patches were based on u-boot v2022.04, a
nontrivial rebasing was needed.

Some notes:
- Some options that are in SD defconfig are disabled in NOR defconfig
  because over the years u-boot grew and the old NOR defconfig will not
  fit into NOR memory.
- SD boot with RAM larger than 2GB will only allocate 2GB of RAM (We
  were not able to fix this yet)

5 months agopowerpc: Add support for CZ.NIC Turris 1.x routers
Pali Rohár [Thu, 6 Jun 2024 16:33:26 +0000 (18:33 +0200)]
powerpc: Add support for CZ.NIC Turris 1.x routers

Add support for CZ.NIC Turris 1.x routers.

CZ.NIC Turris 1.0 (RTRS01) and 1.1 (RTRS02) are open source routers, they
have dual-core PowerPC Freescale P2020 CPU and are based on reference
Freescale P2020RDB-PC-A board design.

Hardware design is fully open source, all firmware and hardware design
files are available at Turris project website:

https://docs.turris.cz/hw/turris-1x/turris-1x/
https://project.turris.cz/en/hardware.html

The P2020 BootROM can load U-Boot either from NOR flash or from SD card.
We add the new defconfigs, turris_1x_nor_defconfig, which configures
U-Boot for building the NOR image, and turris_1x_sdcard_defconfig, which
configures U-Boot for building an image suitable for SD card.

The defconfig for NOR image is stripped-down a - many config options
enabled in SD defconfig are disabled for NOR defconfig. This is because
U-Boot grew non-trivially in the last two years and it would not fit
into the space allocated for U-Boot in the NOR memory. In the future we
may try to use LTO to reduce the size of the code and enable more
options.

The design of CZ.NIC Turris 1.x routers is based on Freescale P2020RDB-PC-A
board, so some code from boards/freescale/p1_p2_rdb_pc is used and linked
into Turris 1.x board code.

Turris 1.x code in this patch uses modern distroboot and can boot Linux
kernel from various locations, including NAND, SD card, USB flash disks,
NVMe disks or SATA disks (connected to extra SATA/SCSI PCIe controllers).
Via distroboot is implemented also rescue NOR boot for factory recovery,
triggered by reset button, like on other existing Turris routers.

SD boot with RAM larger than 2GB will only allocate 2GB of RAM (We were
not able to fix this yet)

[ Because various CONFIG_ macros were migrated to Kconfig since the last
  time this worked on upstream U-Boot (in 2022), a non-trivial rebasing
  was needed and some issues were solved. ]

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Mojík <marek.mojik@nic.cz>
Reviewed-by: Marek Behún <kabel@kernel.org>
5 months agopowerpc: use CONFIG_IS_ENABLED() when checking for DM_SERIAL in include/asm/config.h
Marek Mojík [Thu, 6 Jun 2024 16:33:25 +0000 (18:33 +0200)]
powerpc: use CONFIG_IS_ENABLED() when checking for DM_SERIAL in include/asm/config.h

Use the CONFIG_IS_ENABLED() macro when checking for DM_SERIAL so that
CFG_SYS_NS16550_CLK is not defined as get_serial_clock() in SPL if SPL
does not have DM_SERIAL enabled.

Signed-off-by: Marek Mojík <marek.mojik@nic.cz>
Reviewed-by: Marek Behún <kabel@kernel.org>
5 months agopowerpc: mpc85xx: use CONFIG_VAL() for SYS_MONITOR_BASE in start.s
Marek Mojík [Thu, 6 Jun 2024 16:33:24 +0000 (18:33 +0200)]
powerpc: mpc85xx: use CONFIG_VAL() for SYS_MONITOR_BASE in start.s

Use CONFIG_VAL() for SYS_MONITOR_BASE in start.S so that correct value
is used for SPL.

Signed-off-by: Marek Mojík <marek.mojik@nic.cz>
Reviewed-by: Marek Behún <kabel@kernel.org>
5 months agopowerpc: mpc8xxx: Extend find_law() to find_law_by_addr_id()
Pali Rohár [Thu, 6 Jun 2024 16:33:23 +0000 (18:33 +0200)]
powerpc: mpc8xxx: Extend find_law() to find_law_by_addr_id()

The find_law() function searches for LAW just by physical address. This
is unsuitable for cases with overlapping LAWs. Extend it to
find_law_by_addr_id(), which searches for LAW by physical address and
target id.

Add a static inline definition of the original find_law() into fsl_law.h
header.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Mojík <marek.mojik@nic.cz>
Reviewed-by: Marek Behún <kabel@kernel.org>
5 months agoboard: freescale: p1_p2_rdb_pc: Add weak function p1_p2_rdb_pc_fix_fdt_model() for...
Pali Rohár [Thu, 6 Jun 2024 16:33:22 +0000 (18:33 +0200)]
board: freescale: p1_p2_rdb_pc: Add weak function p1_p2_rdb_pc_fix_fdt_model() for fixing DT model string

This allows boards to fixup / overwrite DT model string when booting OS.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Mojík <marek.mojik@nic.cz>
Reviewed-by: Marek Behún <kabel@kernel.org>
5 months agoboard_f: Add support for CONFIG_OF_BOARD_FIXUP for XIP images
Pali Rohár [Thu, 6 Jun 2024 16:33:21 +0000 (18:33 +0200)]
board_f: Add support for CONFIG_OF_BOARD_FIXUP for XIP images

When U-Boot is running from flash memory (execute in place) then
gd->fdt_blob before relocation points to read-only flash memory.

So U-Boot calls board_fix_fdt() with read-only gd->fdt_blob pointer which
cause immediate CPU crash when callback is trying to modify gd->fdt_blob.

Fix this issue by introducing a new config option OF_INITIAL_DTB_READONLY
which moves fix_fdt callback after the reloc_fdt callback. This makes
CONFIG_OF_BOARD_FIXUP working also if U-Boot before relocation is not
running from read/write (S)RAM memory.

This is required for mpc85xx boards when booting from flash NOR.

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Mojík <marek.mojik@nic.cz>
Reviewed-by: Marek Behún <kabel@kernel.org>
5 months agoMerge tag 'rpi-2024.10-rc1' of https://source.denx.de/u-boot/custodians/u-boot-raspbe...
Tom Rini [Fri, 12 Jul 2024 17:06:10 +0000 (11:06 -0600)]
Merge tag 'rpi-2024.10-rc1' of https://source.denx.de/u-boot/custodians/u-boot-raspberrypi

Updates for RPi for 2024.10:

- board: rpi: remove leftover CONFIG_HW_WATCHDOG block
- arm: bcm283x: remove unused empty hw_watchdog_disable
- board: raspberrypi: Fix format specifier for printing rev_scheme
- Revert "arm: dts: bcm283x: Add minimal smbios information"

5 months agoboard: rpi: remove leftover CONFIG_HW_WATCHDOG block
Rasmus Villemoes [Fri, 12 Jul 2024 09:07:25 +0000 (11:07 +0200)]
board: rpi: remove leftover CONFIG_HW_WATCHDOG block

This was added in commit 45a6d231b2f (bcm2835_wdt: support for the
BCM2835/2836 watchdog), which did do 'select HW_WATCHDOG'. That
incarnation of the watchdog driver later got removed in
c7adc0b5f98 (watchdog: bcm2835_wdt: Remove unused BCM283x watchdog
driver and its references), but this block was left behind.

Another rpi watchdog driver has since been added, but that does not
select HW_WATCHDOG, so this remains dead and unused. Remove it.

Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
5 months agoarm: bcm283x: remove unused empty hw_watchdog_disable
Rasmus Villemoes [Fri, 12 Jul 2024 09:07:24 +0000 (11:07 +0200)]
arm: bcm283x: remove unused empty hw_watchdog_disable

This empty stub was originally added as one branch of an #ifdef in
commit 45a6d231b2f (bcm2835_wdt: support for the BCM2835/2836
watchdog). That incarnation of the rpi watchdog driver was later
removed in c7adc0b5f98 (watchdog: bcm2835_wdt: Remove unused BCM283x
watchdog driver and its references), but this now unused stub was left
behind. The later (re-)added rpi watchdog driver does not define a
hw_watchdog_disable() function, as that is properly integrated in the
watchdog framework.

Reviewed-by: Stefan Roese <sr@denx.de>
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
5 months agoboard: raspberrypi: Fix format specifier for printing rev_scheme
Francois Berder [Tue, 9 Jul 2024 12:20:48 +0000 (14:20 +0200)]
board: raspberrypi: Fix format specifier for printing rev_scheme

rev_scheme is an unsigned integer and must not be printed
as a signed integer.

Signed-off-by: Francois Berder <fberder@outlook.fr>
Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
5 months agoRevert "arm: dts: bcm283x: Add minimal smbios information"
Peter Robinson [Tue, 14 May 2024 13:07:19 +0000 (14:07 +0100)]
Revert "arm: dts: bcm283x: Add minimal smbios information"

This reverts commit 33041972727e84d3f95e26c83322521f61827584.

With the ability to generate this SMBIOS details autmotically the
small amount of details that this patch provided are generated
automatically so this is now obsolete so we can just drop it.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Acked-by: Matthias Brugger <mbrugger@suse.com>
5 months agoMerge tag 'u-boot-dfu-20240711' of https://source.denx.de/u-boot/custodians/u-boot-dfu
Tom Rini [Thu, 11 Jul 2024 22:12:39 +0000 (16:12 -0600)]
Merge tag 'u-boot-dfu-20240711' of https://source.denx.de/u-boot/custodians/u-boot-dfu

u-boot-dfu-20240711

Usb gadget:
- A welcome cleanup: epautoconf workaround is dropped to use
  .match_ep() instead
- Introduce handle_interrupts() op for USB_GADGET_GENERIC, which
  allows a per-driver interrupt handling

Fastboot:
- Fix mssing include when building with TCP only

5 months agotest/py/tests/test_fpga.py: Correct check for legacy image format support
Tom Rini [Wed, 3 Jul 2024 21:19:09 +0000 (15:19 -0600)]
test/py/tests/test_fpga.py: Correct check for legacy image format support

The build option to support images of type 'IMAGE_FORMAT_LEGACY' is
CONFIG_LEGACY_IMAGE_FORMAT so update the pytest to check for the correct
option.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
5 months agommc: am654_sdhci: Add the quirk to set TESTCD bit
Emanuele Ghidoli [Tue, 2 Jul 2024 19:54:29 +0000 (21:54 +0200)]
mmc: am654_sdhci: Add the quirk to set TESTCD bit

The ARASAN MMC controller on Keystone 3 class of devices need the SDCD
line to be connected for proper functioning.

In cases where this can't be connected, add a quirk to force the
controller into test mode and set the TESTCD bit. Use the flag
"ti,fails-without-test-cd", to implement this above quirk when required.

Additionally, this quirk also avoids waiting for the controller debounce
time.

This commit is similar to linux kernel commit c7666240ec76
("drivers: mmc: sdhci_am654: Add the quirk to set TESTCD bit").

Signed-off-by: Emanuele Ghidoli <emanuele.ghidoli@toradex.com>
5 months agoboard: phytec: k3: k3_ddrss_patch: Add ddr phy reg count
Dominik Haller [Tue, 2 Jul 2024 09:22:40 +0000 (11:22 +0200)]
board: phytec: k3: k3_ddrss_patch: Add ddr phy reg count

Add and use the correct number of ddr phy registers to update the
corresponding settings.

Fixes: cbf5c99ef317 ("board: phytec: common: Introduce a method to inject DDR timings deltas")
Signed-off-by: Dominik Haller <d.haller@phytec.de>
Reviewed-by: Wadim Egorov <w.egorov@phytec.de>
5 months agoomap3: igep0x00: Switch to the I2C driver model
Javier Martinez Canillas [Fri, 28 Jun 2024 23:17:04 +0000 (01:17 +0200)]
omap3: igep0x00: Switch to the I2C driver model

When building with the igep00x0_defconfig, the following warning is shown:

  $ make -j $(nproc)
  ...
    LD      spl/u-boot-spl
    OBJCOPY spl/u-boot-spl-nodtb.bin
    SYM     spl/u-boot-spl.sym
    CAT     spl/u-boot-spl-dtb.bin
    COPY    spl/u-boot-spl.bin
    MKIMAGE MLO
  ===================== WARNING ======================
  This board does not use CONFIG_DM_I2C (Driver Model
  for I2C drivers). Please update the board to use
  CONFIG_DM_I2C before the v2022.04 release. Failure to
  update by the deadline may result in board removal.
  See doc/develop/driver-model/migration.rst for more info.
  ====================================================

The only reason why I2C is enabled for the IGEP boards is that the TWL4030
driver requires it.

But both the TWL4034 and the OMAP I2C controller drivers were converted to
the driver model by commits daa69ffe3d4d ("drivers: i2c: omap24xx_i2c:
adopt omap_i2c driver to driver model") and fb1b7712ad3f power: make most
tps drivers and the twl4030 driver compatible with DM_I2C") respectively.

So there's no reason anymore to keep using the I2C legacy API and instead
the DM_I2C option could just be enabled.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Enric Balletbo i Serra <eballetbo@gmail.com>
5 months agocmd: add resize for FDT in bootelf
Maxim Moskalets [Fri, 28 Jun 2024 08:34:11 +0000 (11:34 +0300)]
cmd: add resize for FDT in bootelf

In some FDTs, there is not enough free memory to add nodes, so this
operation fails.

Signed-off-by: Maxim Moskalets <maximmosk4@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
5 months agogpt: allow spaces in partition list
Mikhail Kshevetskiy [Thu, 27 Jun 2024 11:29:04 +0000 (14:29 +0300)]
gpt: allow spaces in partition list

This allows spliting partition list to several lines in environment file

ex:
--------------------
gpt_partition_list=
name=boot1,size=5MiB,start=0x100000;
name=boot2,size=5MiB;
name=rootfs1,size=70MiB;
name=rootfs2,size=70MiB;
name=overlay1,size=20MiB;
name=overlay2,size=20MiB;
name=art,size=4MiB;

Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Tested-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
5 months agoinclude/fastboot.h: add missing types.h include
Caleb Connolly [Fri, 21 Jun 2024 01:51:02 +0000 (03:51 +0200)]
include/fastboot.h: add missing types.h include

Fixes a compile error when building with only the TCP fastboot
implementation.

Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20240621015135.1570605-1-caleb.connolly@linaro.org
[mkorpershoek: wrapped commit msg to fix checkpatch]
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
5 months agoMerge patch series "mediatek: cumulative trivial fix for OF_UPSTREAM support"
Tom Rini [Mon, 8 Jul 2024 17:56:59 +0000 (11:56 -0600)]
Merge patch series "mediatek: cumulative trivial fix for OF_UPSTREAM support"

Christian Marangi <ansuelsmth@gmail.com> says:

This is an initial series that have all the initial trivial
fixes required for usage of OF_UPSTREAM for the mediatek SoC

This also contains the pcie-gen3 driver and the required tphy
support driver to make it work.

Subsequent series will follow with conversion of the mtk-clk
to permit usage of OF_UPSTREAM and upstream clk ID.

MT7981, MT7986 and MT7988 migration to upstream clock ID
is complete and working on MT7623.

Series CI tested with PR: https://github.com/u-boot/u-boot/pull/590

5 months agoclk: mediatek: mt7986: support alternative compatible for fixed-plls
Christian Marangi [Mon, 24 Jun 2024 21:03:40 +0000 (23:03 +0200)]
clk: mediatek: mt7986: support alternative compatible for fixed-plls

Support alternative compatible for fixed-plls clocks used upstream with
the compatible mediatek,mt7986-apmixedsys.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 months agoclk: mediatek: mt7988: support alternative compatible for fixed-plls
Christian Marangi [Mon, 24 Jun 2024 21:03:39 +0000 (23:03 +0200)]
clk: mediatek: mt7988: support alternative compatible for fixed-plls

Support alternative compatible for fixed-plls clocks used upstream with
the compatible mediatek,mt7988-apmixedsys.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 months agopci: mediatek: make pcie-phy optional for gen3
Christian Marangi [Mon, 24 Jun 2024 21:03:38 +0000 (23:03 +0200)]
pci: mediatek: make pcie-phy optional for gen3

Set pcie-phy optional for PCIe gen3. MT7988 doesn't require it and
making it mandatory prevent the driver to correctly probe.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 months agopinctrl: mediatek: mt7981: init device before relocation
Christian Marangi [Mon, 24 Jun 2024 21:03:37 +0000 (23:03 +0200)]
pinctrl: mediatek: mt7981: init device before relocation

Upstream kernel linux define pinctrl for uart0, hence this pin group
and pinctrl driver is needed before relocation. Add DM_FLAG_PRE_RELOC
flag to init and mute mtk_serial error on early serial init.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 months agopinctrl: mediatek: add support for gpio-controller property in root node
Christian Marangi [Mon, 24 Jun 2024 21:03:36 +0000 (23:03 +0200)]
pinctrl: mediatek: add support for gpio-controller property in root node

Add support for gpio-controller property in root pinctrl node.
This is to follow upstream linux DTSI that doesn't define the
gpio-controller and cells in dedicated nodes.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 months agoclk: mediatek: mt7981: support alternative compatible for fixed-plls
Christian Marangi [Mon, 24 Jun 2024 21:03:35 +0000 (23:03 +0200)]
clk: mediatek: mt7981: support alternative compatible for fixed-plls

Support alternative compatible for fixed-plls clocks used upstream with
the compatible mediatek,mt7981-apmixedsys.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 months agommc: mediatek: add support for upstream linux clock and property
Christian Marangi [Mon, 24 Jun 2024 21:03:34 +0000 (23:03 +0200)]
mmc: mediatek: add support for upstream linux clock and property

Add support for upstream linux clock and map U-Boot property to the one
use in upstream linux where supported.

Also add handling for the use_internal_cd that on upstream is hardcoded
enabled on mt7620.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 months agoserial: mediatek: add special handling for highspeed and linux compat
Christian Marangi [Mon, 24 Jun 2024 21:03:33 +0000 (23:03 +0200)]
serial: mediatek: add special handling for highspeed and linux compat

Upstream linux serial driver use a different logic to setup serial regs.

They have 2 interval:
- < 115200 we use lowspeed regs and 16 * baud
- >= 115200 we use highspeed

We currently use force_highspeed property to force usage of highspeed
regs even with low baud rate.

Add special handling if the upstream compatible is used where we just
apply the same interval with anything >= 115200 in highspeed simulating
force_highspeed.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 months agoserial: mediatek: add support for bus clock and enable it
Christian Marangi [Mon, 24 Jun 2024 21:03:32 +0000 (23:03 +0200)]
serial: mediatek: add support for bus clock and enable it

Upstream linux also provide the additional optional bus clock.

Add support for it and also enable the baud and bus clock on probe.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 months agoi2c: mediatek: add support for optional arb and pmic clock
Christian Marangi [Mon, 24 Jun 2024 21:03:31 +0000 (23:03 +0200)]
i2c: mediatek: add support for optional arb and pmic clock

Add support for optional arb and pmic clock for i2c provided in upstream
linux DTSI.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
5 months agonet: mediatek: handle alternative name for pn_swap property
Christian Marangi [Mon, 24 Jun 2024 21:03:30 +0000 (23:03 +0200)]
net: mediatek: handle alternative name for pn_swap property

Handle alternative name for pn_swap property as upstream linux use
mediatek,pnswap.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 months agospi: mtk_spim: add support for upstream mediatek, spi-ipm compatible
Christian Marangi [Mon, 24 Jun 2024 21:03:29 +0000 (23:03 +0200)]
spi: mtk_spim: add support for upstream mediatek, spi-ipm compatible

Upstream kernel linux use a different compatible mediatek,spi-ipm.

Add support for this compatible and add handling for the additional
clock similar to how it's done by the upstream driver and handling for
all the property enabled by default.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 months agopci: mediatek: add PCIe controller support for filogic silicon
John Crispin [Mon, 24 Jun 2024 21:03:28 +0000 (23:03 +0200)]
pci: mediatek: add PCIe controller support for filogic silicon

Add MediaTek GEN3 PCIe controller support for filogic silicon.
This is adapted from the Linux version of the driver.

Signed-off-by: John Crispin <john@phrozen.org>
[ fix minor problems, fix checkpatch errors ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
5 months agophy: phy-mtk-tphy: add support for phy type switch
Christian Marangi [Mon, 24 Jun 2024 21:03:27 +0000 (23:03 +0200)]
phy: phy-mtk-tphy: add support for phy type switch

Add support for PHY type switch via the mediatek topmisc syscon.

This is needed on mt7981 to make the PCIe correctly work and display
LinkUp.

Follow the same implementation done on Linux kernel with the usage of
the mediatek,syscon-type property.

Example:

u3port0: usb-phy@11e10700 {
reg = <0x11e10700 0x900>;
clocks = <&topckgen CK_TOP_USB3_PHY_SEL>;
clock-names = "ref";
#phy-cells = <1>;
mediatek,syscon-type = <&topmisc 0x218 0>;
status = "okay";
};

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>