Re: [PATCH v3 30/31] bootstd: doc: Add documentation

2022-01-22 Thread Mark Kettenis
> Date: Fri, 21 Jan 2022 23:05:34 +0100 > From: Heinrich Schuchardt > > On 1/21/22 20:17, Simon Glass wrote: > > Hi Mark, > > > > On Fri, 21 Jan 2022 at 11:23, Mark Kettenis wrote: > >> > >>> From: Simon Glass > >>> Date: Fri, 21 Jan 2022 09:53:37 -0700 > >>> > >>> Hi Mark, > >>> > >>> On Fri,

[PATCH 0/1] dm: serial: Remove old drivers and add migration deadline

2022-01-22 Thread Simon Glass
This series adds a migration deadline for converting serial drivers to driver model. Almost all drivers are already converted. Those that remain are: serial_ns16550.c which is really just a different ns16550.c usbtty.c Simon Glass (1): dm: serial: Add a migration deadline for serial M

[PATCH 1/1] dm: serial: Add a migration deadline for serial

2022-01-22 Thread Simon Glass
This probably should have been done a while back since it is a core system. Very few boards remain to be migrated. Addd a migration deadline for a year out. Signed-off-by: Simon Glass --- Makefile | 1 + doc/develop/driver-model/migration.rst | 8 2 files

[PATCH v5 00/13] kconfig: Add some new macros

2022-01-22 Thread Simon Glass
This series adds a few more macros to kconfig, along with a bit of refactoring of what is there. It also adds some basic tests for the kconfig macros. Finally, to make the tests work, it enhances buildman to support changing CONFIG options on the fly when building. Changes in v5: - Use 'source'

[PATCH v5 03/13] mmc: fsl: Use brackets around if()

2022-01-22 Thread Simon Glass
At present the IS_ENABLED() macro has extra brackets, making it possible to write: if IS_ENABLED(CONFIG_XXX) but it is a bit confusing. Add the missing brackets. Signed-off-by: Simon Glass --- (no changes since v1) drivers/mmc/fsl_esdhc_imx.c | 2 +- 1 file changed, 1 insertion(+), 1 dele

[PATCH v5 02/13] mips: Avoid using config_enabled() directly

2022-01-22 Thread Simon Glass
Use IS_ENABLED() instead, which is the correct macro for checking a CONFIG option. Signed-off-by: Simon Glass --- (no changes since v1) arch/mips/lib/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/lib/cache.c b/arch/mips/lib/cache.c index 51a8f433475..ec6

[PATCH v5 04/13] kconfig: Update IS_ENABLED() internals

2022-01-22 Thread Simon Glass
The config_enabled() macro currently uses 0 as the default value. Update it to allow any value, so we can pass it something else, such as a non-existent function, to produce a build error if it is not defined. Also tidy up the code style for IS_ENABLED() and drop the unnecessary brackets (the valu

[PATCH v5 01/13] imx: Don't define __ASSEMBLY__ in source files

2022-01-22 Thread Simon Glass
This is supposed to be a build-system flag. Move it there so we can define it before linux/kconfig.h is included. Signed-off-by: Simon Glass --- Changes in v5: - Use 'source' in subject instead of 'C' arch/arm/mach-imx/Makefile| 2 +- arch/arm/mach-imx/imx8m/imx

[PATCH v5 06/13] bloblist: Update to use conditional value

2022-01-22 Thread Simon Glass
Use the new IF_ENABLED_INT() feature to avoid needing our own inline function to handle this case. Tidy up the logic to ensure that the value is only used when present. Update the 'expected' comment also. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add new patch to upd

[PATCH v5 05/13] kconfig: Add support for conditional values

2022-01-22 Thread Simon Glass
At present if an optional Kconfig value needs to be used it must be bracketed by #ifdef. For example, with this Kconfig setup: config WIBBLE bool "Support wibbles, the world needs more wibbles" config WIBBLE_ADDR hex "Address of the wibble" depends on WIBBLE then the foll

[PATCH v5 07/13] patman: Update test_util to run doc tests

2022-01-22 Thread Simon Glass
At present this function does not run the doctests. Allow the caller to pass these modules in as strings. Update patman to use this. Signed-off-by: Simon Glass --- (no changes since v1) tools/dtoc/main.py| 2 +- tools/patman/main.py | 20 tools/patman/test_u

[PATCH v5 08/13] buildman: Add a flag to control the traceback

2022-01-22 Thread Simon Glass
At present the full horror of the Python traceback is shown by default. It is normally only useful for debugging. Turn it off by default and add a --debug flag to enable it. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/cmdline.py | 2 ++ tools/buildman/main.py| 3 +++

[PATCH v5 11/13] buildman: Provide a hint on how to debug thread crashes

2022-01-22 Thread Simon Glass
If a thread crashes it is helpful to try the operation again with threading disabled. Add a hint about that. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/builderthread.py | 2 +- tools/buildman/func_test.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-)

[PATCH v5 09/13] buildman: Make use of test_util

2022-01-22 Thread Simon Glass
Use test_util to run the tests, with the ability to select a single test to run, if desired. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/main.py | 26 +++--- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/tools/buildman/main.py b/too

[PATCH v5 10/13] buildman: Add helper functions for updating .config files

2022-01-22 Thread Simon Glass
At present the only straightforward way to write tests that need a slightly different configuration is to create a new board with its own configuration. This is cumbersome. It would be useful if buildman could adjust the configuration of a build on the fly. In preparation for this, add a utility l

[PATCH v5 12/13] buildman: Allow adjusting board config on the fly

2022-01-22 Thread Simon Glass
Add a -a option to specify changes to the config before the build commences. For example buildman -a ~CONFIG_CMDLINE disables CONFIG_CMDLINE before doing the build. This makes it easier to try things out as well as to write tests without creating a new board or manually manging the .config fi

[PATCH v5 13/13] test: Add some tests for kconfig.h

2022-01-22 Thread Simon Glass
The macros in this file are a little confusing and we currently have no tests to check that they work as expected. Add some tests which check the macros in C code. Add a few tests which check that the build errors are generated correctly too, using buildman's -a option. Signed-off-by: Simon Glass

Re: [PATCH 1/8] nvme: Split out PCI support

2022-01-22 Thread Mark Kettenis
> From: Simon Glass > Date: Fri, 21 Jan 2022 18:40:11 -0700 > > Hi Mark, > > On Fri, 14 Jan 2022 at 04:05, Mark Kettenis wrote: > > > > Apple SoCs have an integrated NVMe controller that isn't connected > > over a PCIe bus. In preparation for adding support for this NVMe > > controller, split o

[PATCH 0/3] ide: Convert some options to Kconfig

2022-01-22 Thread Simon Glass
This converts some IDE options to use Kconfig, thus allowing the sandbox config.h file to shrink a little more. It also drops some dead code. Simon Glass (3): ide: Drop CONFIG_IDE_AHB Convert CONFIG_SYS_IDE_MAXBUS et al to Kconfig Drop CONFIG_SYS_PIO_MODE README

[PATCH 1/3] ide: Drop CONFIG_IDE_AHB

2022-01-22 Thread Simon Glass
This is not used in U-Boot anymore. Drop it. Signed-off-by: Simon Glass --- README | 8 drivers/block/ide.c | 22 -- include/ide.h | 7 --- 3 files changed, 37 deletions(-) diff --git a/README b/README index 9ebd4f2345a..4cad8f8356c 100644

[PATCH 3/3] Drop CONFIG_SYS_PIO_MODE

2022-01-22 Thread Simon Glass
This option is not used in U-Boot. Drop it. Signed-off-by: Simon Glass --- include/configs/r2dplus.h| 5 - scripts/config_whitelist.txt | 1 - 2 files changed, 6 deletions(-) diff --git a/include/configs/r2dplus.h b/include/configs/r2dplus.h index 49dcdbe4914..04b34814805 100644 --- a/

[PATCH 2/3] Convert CONFIG_SYS_IDE_MAXBUS et al to Kconfig

2022-01-22 Thread Simon Glass
This converts the following to Kconfig: CONFIG_SYS_IDE_MAXBUS CONFIG_SYS_IDE_MAXDEVICE CONFIG_SYS_ATA_BASE_ADDR CONFIG_SYS_ATA_STRIDE CONFIG_SYS_ATA_DATA_OFFSET CONFIG_SYS_ATA_REG_OFFSET CONFIG_SYS_ATA_ALT_OFFSET CONFIG_SYS_ATA_IDE0_OFFSET CONFIG_SYS_ATA_IDE1_OFFSET CO

Re: [PATCH 1/8] nvme: Split out PCI support

2022-01-22 Thread Simon Glass
Hi Mark, On Sat, 22 Jan 2022 at 05:48, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Fri, 21 Jan 2022 18:40:11 -0700 > > > > Hi Mark, > > > > On Fri, 14 Jan 2022 at 04:05, Mark Kettenis wrote: > > > > > > Apple SoCs have an integrated NVMe controller that isn't connected > > > over a P

Re: [PATCH 17/23] video: Convert CONFIG_VIDEO_LOGO to Kconfig

2022-01-22 Thread Pali Rohár
On Friday 19 November 2021 13:24:01 Simon Glass wrote: > This converts the following to Kconfig: >CONFIG_VIDEO_LOGO > > Note that this option depends on CONFIG_DM_VIDEO now, since cfb_console is > deprecated. The only relevant code is now in splash.c > > Drop the check for DM_VIDEO in that fi

Re: [PATCH 4/8] nvme: Introduce driver ops

2022-01-22 Thread Mark Kettenis
> From: Simon Glass > Date: Fri, 21 Jan 2022 18:40:19 -0700 > > Hi Mark, > > On Fri, 14 Jan 2022 at 04:05, Mark Kettenis wrote: > > > > The NVMe storage controller integrated on Apple SoCs deviates > > from the NVMe standard in two aspects. It uses a "linear" > > submission queue and it integr

Re: [PATCH 2/8] mailbox: apple: Add driver for Apple IOP mailbox

2022-01-22 Thread Mark Kettenis
> From: Simon Glass > Date: Fri, 21 Jan 2022 18:40:12 -0700 > > On Fri, 14 Jan 2022 at 04:05, Mark Kettenis wrote: > > > > This mailbox driver provides a communication channel with the > > Apple IOP controllers found on Apple SoCs. These IOP controllers > > are used to implement various functio

Re: [PATCH 3/8] arm: apple: Add RTKit support

2022-01-22 Thread Mark Kettenis
> From: Simon Glass > Date: Fri, 21 Jan 2022 18:40:14 -0700 > > Hi Mark, > > On Fri, 14 Jan 2022 at 04:05, Mark Kettenis wrote: > > > > Most Apple IOPs run a firmware that is based on what Apple calls > > RTKit. RTKit implements a common mailbox protocol. This code > > provides an implementati

Re: [PATCH 6/8] power: domain: apple: Add reset support

2022-01-22 Thread Mark Kettenis
> From: Simon Glass > Date: Fri, 21 Jan 2022 18:40:23 -0700 > > Hi Mark, > > On Fri, 14 Jan 2022 at 04:05, Mark Kettenis wrote: > > > > The power management controller found on Apple SoCs als provides > > a way to reset all devices within a power domain. This is needed > > to cleanly shutdown t

Re: [PATCH 7/8] nvme: apple: Add driver for Apple NVMe storage controller

2022-01-22 Thread Mark Kettenis
> From: Simon Glass > Date: Fri, 21 Jan 2022 18:40:24 -0700 > > Hi Mark, > > On Fri, 14 Jan 2022 at 04:05, Mark Kettenis wrote: > > > > Add a driver for the NVMe storage controller integrated on > > Apple SoCs. This NVMe controller isn't PCI based and deviates > > from the NVMe standard in its

Re: [PATCH 1/8] nvme: Split out PCI support

2022-01-22 Thread Mark Kettenis
> From: Simon Glass > Date: Sat, 22 Jan 2022 06:18:18 -0700 > > Hi Mark, > > On Sat, 22 Jan 2022 at 05:48, Mark Kettenis wrote: > > > > > From: Simon Glass > > > Date: Fri, 21 Jan 2022 18:40:11 -0700 > > > > > > Hi Mark, > > > > > > On Fri, 14 Jan 2022 at 04:05, Mark Kettenis wrote: > > > > >

Re: [PATCH 17/23] video: Convert CONFIG_VIDEO_LOGO to Kconfig

2022-01-22 Thread Tom Rini
On Sat, Jan 22, 2022 at 02:26:11PM +0100, Pali Rohár wrote: > On Friday 19 November 2021 13:24:01 Simon Glass wrote: > > This converts the following to Kconfig: > >CONFIG_VIDEO_LOGO > > > > Note that this option depends on CONFIG_DM_VIDEO now, since cfb_console is > > deprecated. The only rele

Re: [PATCH 17/23] video: Convert CONFIG_VIDEO_LOGO to Kconfig

2022-01-22 Thread Pali Rohár
Adding other Maemo developers... On Saturday 22 January 2022 10:29:34 Tom Rini wrote: > This is perhaps as good/bad time as any to ask about the conversion > efforts for N900 USB things that were discussed before? Perhaps it is also a good/bad time for reminding that some N900 U-Boot patches are

Re: [PATCH 1/2] spi: apple: Add driver for Apple SPI controller

2022-01-22 Thread Mark Kettenis
> From: Simon Glass > Date: Fri, 21 Jan 2022 18:40:25 -0700 Hi Simon, > Hi Mark, > > On Sun, 16 Jan 2022 at 10:06, Mark Kettenis wrote: > > > > Add a driver for the SPI controller integrated on Apple SoCs. > > This is necessary to support the keyboard on Apple Silicon laopts > > since their ke

Re: [PATCH 2/2] input: apple: Add support for Apple SPI keyboard

2022-01-22 Thread Mark Kettenis
> From: Simon Glass > Date: Fri, 21 Jan 2022 18:40:27 -0700 Hi Simon, > Hi Mark, > > On Sun, 16 Jan 2022 at 10:06, Mark Kettenis wrote: > > > > This driver adds support for the keyboard on Apple Silicon laptops. > > The controller for this keyboard sits on an SPI bus and uses an > > Apple-spec

Re: [PATCH v2] tools: mkimage: Call verify_header after writing image to disk

2022-01-22 Thread Pali Rohár
On Friday 21 January 2022 21:15:43 Tom Rini wrote: > On Sat, Jan 22, 2022 at 02:44:22AM +0100, Pali Rohár wrote: > > On Friday 21 January 2022 16:21:33 Tom Rini wrote: > > > On Fri, Jan 14, 2022 at 06:34:43PM +0100, Pali Rohár wrote: > > > > > > > If image backend provides verify_header callback t

Re: [PATCH v2] tools: mkimage: Call verify_header after writing image to disk

2022-01-22 Thread Pali Rohár
On Saturday 22 January 2022 17:31:18 Pali Rohár wrote: > On Friday 21 January 2022 21:15:43 Tom Rini wrote: > > On Sat, Jan 22, 2022 at 02:44:22AM +0100, Pali Rohár wrote: > > > On Friday 21 January 2022 16:21:33 Tom Rini wrote: > > > > On Fri, Jan 14, 2022 at 06:34:43PM +0100, Pali Rohár wrote: >

Re: [PATCH v2] tools: mkimage: Call verify_header after writing image to disk

2022-01-22 Thread Tom Rini
On Sat, Jan 22, 2022 at 05:31:18PM +0100, Pali Rohár wrote: > On Friday 21 January 2022 21:15:43 Tom Rini wrote: > > On Sat, Jan 22, 2022 at 02:44:22AM +0100, Pali Rohár wrote: > > > On Friday 21 January 2022 16:21:33 Tom Rini wrote: > > > > On Fri, Jan 14, 2022 at 06:34:43PM +0100, Pali Rohár wrot

Re: [PATCH 2/8] mailbox: apple: Add driver for Apple IOP mailbox

2022-01-22 Thread Simon Glass
Hi Mark, On Sat, 22 Jan 2022 at 06:54, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Fri, 21 Jan 2022 18:40:12 -0700 > > > > On Fri, 14 Jan 2022 at 04:05, Mark Kettenis wrote: > > > > > > This mailbox driver provides a communication channel with the > > > Apple IOP controllers found on

Re: [PATCH 7/8] nvme: apple: Add driver for Apple NVMe storage controller

2022-01-22 Thread Simon Glass
Hi Mark, On Sat, 22 Jan 2022 at 07:45, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Fri, 21 Jan 2022 18:40:24 -0700 > > > > Hi Mark, > > > > On Fri, 14 Jan 2022 at 04:05, Mark Kettenis wrote: > > > > > > Add a driver for the NVMe storage controller integrated on > > > Apple SoCs. Thi

Re: [PATCH 6/8] power: domain: apple: Add reset support

2022-01-22 Thread Simon Glass
Hi Mark, On Sat, 22 Jan 2022 at 07:12, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Fri, 21 Jan 2022 18:40:23 -0700 > > > > Hi Mark, > > > > On Fri, 14 Jan 2022 at 04:05, Mark Kettenis wrote: > > > > > > The power management controller found on Apple SoCs als provides > > > a way to r

Re: [PATCH 4/8] nvme: Introduce driver ops

2022-01-22 Thread Simon Glass
Hi Mark, On Sat, 22 Jan 2022 at 06:33, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Fri, 21 Jan 2022 18:40:19 -0700 > > > > Hi Mark, > > > > On Fri, 14 Jan 2022 at 04:05, Mark Kettenis wrote: > > > > > > The NVMe storage controller integrated on Apple SoCs deviates > > > from the NVMe

Re: [PATCH 17/23] video: Convert CONFIG_VIDEO_LOGO to Kconfig

2022-01-22 Thread Simon Glass
Hi Pali, On Sat, 22 Jan 2022 at 06:26, Pali Rohár wrote: > > On Friday 19 November 2021 13:24:01 Simon Glass wrote: > > This converts the following to Kconfig: > >CONFIG_VIDEO_LOGO > > > > Note that this option depends on CONFIG_DM_VIDEO now, since cfb_console is > > deprecated. The only rele

Re: [PATCH 3/8] arm: apple: Add RTKit support

2022-01-22 Thread Simon Glass
Hi Mark, On Sat, 22 Jan 2022 at 06:59, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Fri, 21 Jan 2022 18:40:14 -0700 > > > > Hi Mark, > > > > On Fri, 14 Jan 2022 at 04:05, Mark Kettenis wrote: > > > > > > Most Apple IOPs run a firmware that is based on what Apple calls > > > RTKit. RTK

Re: [PATCH 7/8] nvme: apple: Add driver for Apple NVMe storage controller

2022-01-22 Thread Mark Kettenis
> From: Simon Glass > Date: Sat, 22 Jan 2022 10:17:08 -0700 > > Hi Mark, > > On Sat, 22 Jan 2022 at 07:45, Mark Kettenis wrote: > > > > > From: Simon Glass > > > Date: Fri, 21 Jan 2022 18:40:24 -0700 > > > > > > Hi Mark, > > > > > > On Fri, 14 Jan 2022 at 04:05, Mark Kettenis wrote: > > > > >

Re: [PATCH V2] phy: nop-phy: Enable reset-gpios support

2022-01-22 Thread Adam Ford
On Fri, Jan 21, 2022 at 3:18 PM Tom Rini wrote: > > On Mon, Jan 17, 2022 at 05:45:59PM -0600, Adam Ford wrote: > > > Some usb-nop-xceiv devices use a gpio to put them in and > > out of reset. Add a reset function to put them into that > > state. This is similar to how Linux handles the > > usb-n

Re: [PATCH] arm: rmobile: rzg2_beacon: Migrate reset to SYSRESET_PSCI

2022-01-22 Thread Adam Ford
On Tue, Jan 11, 2022 at 8:22 AM Adam Ford wrote: > > On Fri, Dec 17, 2021 at 1:48 PM Adam Ford wrote: > > > > Instead of a custom cpu_reset function, use the sysreset_psci > > instead to reduce redundant code clutter. > > > > Signed-off-by: Adam Ford > > Marek, > > Gentle ping on this one. > > >

[PATCH V3] phy: nop-phy: Enable reset-gpios support

2022-01-22 Thread Adam Ford
Some usb-nop-xceiv devices use a gpio to put them in and out of reset. Add a reset function to put them into that state. This is similar to how Linux handles the usb-nop-xceiv driver. Signed-off-by: Adam Ford --- V3: Encapsulate the nop_phy_ops reference to nop_phy_reset in an if-def so i

[PATCH V2 1/2] arm: dts: imx8mm-beacon: Resync dtsi with Kernel 5.17-rc1

2022-01-22 Thread Adam Ford
Resync the SOM and baseboar files with the device trees that will be included in 5.17-RC1 when it's cut. This will improve pinmuxing for USDHC1 and add USB functionality. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/imx8mm-beacon-baseboard.dtsi b/arch/arm/dts/imx8mm-beacon-baseboard.dtsi

[PATCH V2 2/2] imx: imx8mm_beacon: Enable USB

2022-01-22 Thread Adam Ford
With the updated device tree's having USB support, enable in U-Boot. This also requires the addition of the imx8m power domain, since the USB is gated by the power domain controller. Signed-off-by: Adam Ford --- V2: Rebase on master. Change imx8mm-beacon-kit-u-boot to default to host mode

Re: [PATCH 7/8] nvme: apple: Add driver for Apple NVMe storage controller

2022-01-22 Thread Simon Glass
Hi Mark, On Sat, 22 Jan 2022 at 10:41, Mark Kettenis wrote: > > > From: Simon Glass > > Date: Sat, 22 Jan 2022 10:17:08 -0700 > > > > Hi Mark, > > > > On Sat, 22 Jan 2022 at 07:45, Mark Kettenis wrote: > > > > > > > From: Simon Glass > > > > Date: Fri, 21 Jan 2022 18:40:24 -0700 > > > > > > >

Re: [PATCH 17/23] video: Convert CONFIG_VIDEO_LOGO to Kconfig

2022-01-22 Thread Tom Rini
On Sat, Jan 22, 2022 at 04:41:42PM +0100, Pali Rohár wrote: > Adding other Maemo developers... > > On Saturday 22 January 2022 10:29:34 Tom Rini wrote: > > This is perhaps as good/bad time as any to ask about the conversion > > efforts for N900 USB things that were discussed before? > > Perhaps i

Re: [PATCH 3/8] arm: apple: Add RTKit support

2022-01-22 Thread Mark Kettenis
> From: Simon Glass > Date: Sat, 22 Jan 2022 10:17:14 -0700 > > Hi Mark, > > On Sat, 22 Jan 2022 at 06:59, Mark Kettenis wrote: > > > > > From: Simon Glass > > > Date: Fri, 21 Jan 2022 18:40:14 -0700 > > > > > > Hi Mark, > > > > > > On Fri, 14 Jan 2022 at 04:05, Mark Kettenis wrote: > > > > >

Re: [PATCH 6/8] power: domain: apple: Add reset support

2022-01-22 Thread Mark Kettenis
> From: Simon Glass > Date: Sat, 22 Jan 2022 10:17:10 -0700 Hi Simon, > Hi Mark, > > On Sat, 22 Jan 2022 at 07:12, Mark Kettenis wrote: > > > > > From: Simon Glass > > > Date: Fri, 21 Jan 2022 18:40:23 -0700 > > > > > > Hi Mark, > > > > > > On Fri, 14 Jan 2022 at 04:05, Mark Kettenis wrote:

[PATCH v2 0/9] Apple M1 NVMe storage support

2022-01-22 Thread Mark Kettenis
This adds support for the (rather quirky) NVMe storage controller integrated on Apple SoCs. This makes it possible to boot from the NVMe storage that is present on all the M1 machines that Apple has released so far. The series has been designed to have as little impact on the existing NVMe suppor

[PATCH v2 2/9] mailbox: apple: Add driver for Apple IOP mailbox

2022-01-22 Thread Mark Kettenis
This mailbox driver provides a communication channel with the Apple IOP controllers found on Apple SoCs. These IOP controllers are used to implement various functions such as the System Manegement Controller (SMC) and NVMe storage. It allows sending and receiving a 96-bit message over a single ch

[PATCH v2 3/9] arm: apple: Change SoC name from "m1" into "apple"

2022-01-22 Thread Mark Kettenis
U-Boot is expected to support multiple generations of Apple SoCs in a single binary with a single defconfig. Therefore it makes more sense to set SYS_SOC to "apple". Signed-off-by: Mark Kettenis --- arch/arm/include/asm/{arch-m1 => arch-apple}/uart.h | 0 arch/arm/mach-apple/Kconfig

[PATCH v2 4/9] arm: apple: Add RTKit support

2022-01-22 Thread Mark Kettenis
Most Apple IOPs run a firmware that is based on what Apple calls RTKit. RTKit implements a common mailbox protocol. This code provides an implementation of the AP side of this protocol, providing a function to initialize RTKit-based firmwares as well as a function to do a clean shutdown of this fi

[PATCH v2 6/9] nvme: Add shutdown function

2022-01-22 Thread Mark Kettenis
Add a function to disable the NVMe controller. This will be used to let the driver for the NVMe storage integrated on Apple SoCs shutdown the NVMe controller such we can shutdown the NVMe IOP controller in a clean way afterwards before handing control to the OS. Signed-off-by: Mark Kettenis Revie

[PATCH v2 5/9] nvme: Introduce driver ops

2022-01-22 Thread Mark Kettenis
The NVMe storage controller integrated on Apple SoCs deviates from the NVMe standard in two aspects. It uses a "linear" submission queue and it integrates an NVMMU that needs to be programmed for each NVMe command. Introduce driver ops such that we can set up the linear submission queue and progr

[PATCH v2 7/9] power: domain: apple: Add reset support

2022-01-22 Thread Mark Kettenis
The power management controller found on Apple SoCs als provides a way to reset all devices within a power domain. This is needed to cleanly shutdown the NVMe controller before we hand over control to the OS. Signed-off-by: Mark Kettenis Reviewed-by: Simon Glass Tested on: Macbook Air M1 Tested-

[PATCH v2 1/9] nvme: Split out PCI support

2022-01-22 Thread Mark Kettenis
Apple SoCs have an integrated NVMe controller that isn't connected over a PCIe bus. In preparation for adding support for this NVMe controller, split out the PCI support into its own file. This file is selected through a new CONFIG_NVME_PCI Kconfig option, so do a wholesale replacement of CONFIG_NV

[PATCH v2 8/9] nvme: apple: Add driver for Apple NVMe storage controller

2022-01-22 Thread Mark Kettenis
Add a driver for the NVMe storage controller integrated on Apple SoCs. This NVMe controller isn't PCI based and deviates from the NVMe standard in its implementation of the command submission queue and the integration of an NVMMU that needs to be managed. This commit tweaks the core NVMe code to

[PATCH v2 9/9] configs: apple: Add NVMe boot target

2022-01-22 Thread Mark Kettenis
Add a boot target for NVMe such that we can boot from NVMe. Signed-off-by: Mark Kettenis --- include/configs/apple.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/configs/apple.h b/include/configs/apple.h index 3e5fb495f1..47faad8150 100644 --- a/include/configs/apple.h +++

[PATCH 1/3] arm: dts: imx8mn-beacon: Resync dtsi with Kernel 5.17-rc1

2022-01-22 Thread Adam Ford
Resync the SOM and baseboard files with the device trees that will be included in 5.17-RC1 when it's cut. This will improve pinmuxing for USDHC1 and add USB functionality. Add edits to imx8mn-beacon-kit-u-boot for enabling USB. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/imx8mn-beacon-b

[PATCH 3/3] configs: imx8mn_beacon_2g_defconfig: Sync with standard model

2022-01-22 Thread Adam Ford
Sync'ing the imx8mn_beacon_2g_defconfig with the standard model means making the configs the same with one additional flag because the 2G version has a different RAM. Signed-off-by: Adam Ford diff --git a/configs/imx8mn_beacon_2g_defconfig b/configs/imx8mn_beacon_2g_defconfig index 8b98d687ec..

[PATCH 2/3] imx: imx8mn_beacon: Enable USB

2022-01-22 Thread Adam Ford
With the updated device tree's having USB support, enable in U-Boot. This also requires the addition of the imx8m power domain, since the USB is gated by the power domain controller. Signed-off-by: Adam Ford diff --git a/configs/imx8mn_beacon_defconfig b/configs/imx8mn_beacon_defconfig index cf

Re: [PATCH 2/3] imx: imx8mn_beacon: Enable USB

2022-01-22 Thread Fabio Estevam
Hi Adam, On Sat, Jan 22, 2022 at 4:48 PM Adam Ford wrote: > CONFIG_OF_LIBFDT_OVERLAY=y > CONFIG_IMX_WATCHDOG=y > + Unneeded blank line in this and in the next patch. Reviewed-by: Fabio Estevam

Re: [PATCH 1/3] arm: dts: imx8mn-beacon: Resync dtsi with Kernel 5.17-rc1

2022-01-22 Thread Fabio Estevam
On Sat, Jan 22, 2022 at 4:48 PM Adam Ford wrote: > > Resync the SOM and baseboard files with the device trees that will > be included in 5.17-RC1 when it's cut. This will improve pinmuxing > for USDHC1 and add USB functionality. Add edits to > imx8mn-beacon-kit-u-boot for enabling USB. > > Signe

Re: [PATCH V2 1/2] arm: dts: imx8mm-beacon: Resync dtsi with Kernel 5.17-rc1

2022-01-22 Thread Fabio Estevam
On Sat, Jan 22, 2022 at 3:27 PM Adam Ford wrote: > > Resync the SOM and baseboar files with the device trees that will > be included in 5.17-RC1 when it's cut. This will improve pinmuxing > for USDHC1 and add USB functionality. > > Signed-off-by: Adam Ford Reviewed-by: Fabio Estevam

Pull request for efi-2022-04-rc1-2

2022-01-22 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit 6a685753ce8b6b02b67d64b239143bf19eda63c9: Merge branch '2022-01-18-platform-updates' (2022-01-18 16:07:33 -0500) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2022-04-rc1-2 for you to f

Re: [PATCH V2 2/2] imx: imx8mm_beacon: Enable USB

2022-01-22 Thread Fabio Estevam
Hi Adam, On Sat, Jan 22, 2022 at 3:27 PM Adam Ford wrote: > > With the updated device tree's having USB support, enable in > U-Boot. This also requires the addition of the imx8m power > domain, since the USB is gated by the power domain controller. > > Signed-off-by: Adam Ford > --- > V2: Reba

Re: [PATCH V2 2/2] imx: imx8mm_beacon: Enable USB

2022-01-22 Thread Adam Ford
On Sat, Jan 22, 2022 at 2:14 PM Fabio Estevam wrote: > > Hi Adam, > > On Sat, Jan 22, 2022 at 3:27 PM Adam Ford wrote: > > > > With the updated device tree's having USB support, enable in > > U-Boot. This also requires the addition of the imx8m power > > domain, since the USB is gated by the pow

Re: [PATCH v2 1/2] cmd: source: Use script from default config

2022-01-22 Thread Sven Schwermer
Hi Tom, I didn't think this would result in a size increase. Could you elaborate? When generating FIT images with Yocto, you won't get a /images/default property which is inconsistent with the FIT spec. This is an example of how Yocto spits out FIT images which I believe is consistent with the

Re: CONFIG_SYS_SPL_ARGS_ADDR

2022-01-22 Thread Sven Schwermer
Hi Tom, I think you have have misunderstood me. I meant fdt_addr, the member of struct spl_image_info, not an environment variable with that name. Does that make sense? Best regards, Sven On 1/11/22 17:17, Tom Rini wrote: On Sat, Jan 01, 2022 at 08:00:45PM +0100, Sven Schwermer wrote: Hi,

[PATCH V2] imx8mm_beacon/imx8mn_beacon: Update build instructions

2022-01-22 Thread Adam Ford
With binman generating flash.bin, it's not longer necessary to specify either the location of ATF nor is it necessary to specify building flash.bin, so let's update the build instructions to remove those. While in here, update the revision of ATF and DDR firmware so both Mini and Nano reference th

Re: [PATCH V2] imx8mm_beacon/imx8mn_beacon: Update build instructions

2022-01-22 Thread Fabio Estevam
On Sat, Jan 22, 2022 at 5:48 PM Adam Ford wrote: > > With binman generating flash.bin, it's not longer necessary to s/not/no > diff --git a/board/beacon/imx8mm/README b/board/beacon/imx8mm/README > index 03d9412f0d..c65acef22d 100644 > --- a/board/beacon/imx8mm/README > +++ b/board/beacon/imx8mm

Re: [PATCH] arm: rmobile: rzg2_beacon: Migrate reset to SYSRESET_PSCI

2022-01-22 Thread Marek Vasut
On 1/22/22 18:50, Adam Ford wrote: On Tue, Jan 11, 2022 at 8:22 AM Adam Ford wrote: On Fri, Dec 17, 2021 at 1:48 PM Adam Ford wrote: Instead of a custom cpu_reset function, use the sysreset_psci instead to reduce redundant code clutter. Signed-off-by: Adam Ford Marek, Gentle ping on th

Re: [PATCH v2 3/9] arm: apple: Change SoC name from "m1" into "apple"

2022-01-22 Thread Simon Glass
On Sat, 22 Jan 2022 at 12:38, Mark Kettenis wrote: > > U-Boot is expected to support multiple generations of Apple SoCs > in a single binary with a single defconfig. Therefore it makes > more sense to set SYS_SOC to "apple". > > Signed-off-by: Mark Kettenis > --- > arch/arm/include/asm/{arch-m1

Re: [PATCH 00/40] RFC: rpi: Enable ACPI booting on ARM with Raspberry Pi 4

2022-01-22 Thread Simon Glass
Hi, On Tue, 14 Dec 2021 at 20:28, Simon Glass wrote: > > Hi Bin, > > On Wed, 1 Dec 2021 at 09:04, Simon Glass wrote: > > > > At present in U-Boot ACPI tables are only generated for x86 devices. It is > > possible to build them for ARM as well. That is the subject of this > > series. > > > > The

Re: [PATCH] arm: rmobile: rzg2_beacon: Migrate reset to SYSRESET_PSCI

2022-01-22 Thread Adam Ford
On Sat, Jan 22, 2022 at 4:12 PM Marek Vasut wrote: > > On 1/22/22 18:50, Adam Ford wrote: > > On Tue, Jan 11, 2022 at 8:22 AM Adam Ford wrote: > >> > >> On Fri, Dec 17, 2021 at 1:48 PM Adam Ford wrote: > >>> > >>> Instead of a custom cpu_reset function, use the sysreset_psci > >>> instead to red

Re: [PATCH v4 3/4] arm: kirkwood: Pogoplug-V4 : Add board implementation files

2022-01-22 Thread Tony Dinh
Hi Pali, On Fri, Jan 21, 2022 at 1:33 PM Tony Dinh wrote: > > Hi Pali and Stefan, > > On Fri, Jan 21, 2022 at 2:01 AM Pali Rohár wrote: > > > > On Thursday 20 January 2022 17:50:54 Tony Dinh wrote: > > > diff --git a/board/cloudengines/pogo_v4/pogo_v4.c > > > b/board/cloudengines/pogo_v4/pogo_v

Re: [PATCH] arm: rmobile: rzg2_beacon: Migrate reset to SYSRESET_PSCI

2022-01-22 Thread Marek Vasut
On 1/23/22 00:50, Adam Ford wrote: On Sat, Jan 22, 2022 at 4:12 PM Marek Vasut wrote: On 1/22/22 18:50, Adam Ford wrote: On Tue, Jan 11, 2022 at 8:22 AM Adam Ford wrote: On Fri, Dec 17, 2021 at 1:48 PM Adam Ford wrote: Instead of a custom cpu_reset function, use the sysreset_psci instea

[PULL] u-boot-sh/master

2022-01-22 Thread Marek Vasut
The following changes since commit e6786b0354372c8a68d01e4d633a19cdce373b70: Merge branch '2022-01-21-Kconfig-migrations' (2022-01-21 14:01:41 -0500) are available in the Git repository at: git://source.denx.de/u-boot-sh.git master for you to fetch changes up to 16f4d36c7b8b6aeb0374485acb9

Re: [PATCH v5 25/29] image: Remove #ifdefs from select_ramdisk()

2022-01-22 Thread Art Nikpal
hi Neil > Revert "image: Remove #ifdefs from select_ramdisk()" > This reverts commit f33a2c1bd0fb371511a485cac1f182ba50db51be. > > This causes a crash on some platforms as seen here: > https://lore.kernel.org/r/f153017b-c41a-0d32-67b9-f288e695f...@baylibre.com/ Maybe the next patch was the

Re: [PATCH v2] image-board: fix wrong implementation ram disk address setup from cmdline

2022-01-22 Thread Art Nikpal
On Tue, Jan 18, 2022 at 3:47 AM Tom Rini wrote: > > On Thu, Nov 25, 2021 at 11:08:59AM +0800, Artem Lapkin wrote: > > > Problem > > > > Wrong implementation logic: ramdisk cmdline image address always ignored! > > Next block { rd_addr = hextoul(select, NULL) } unusable for raw initrd. > > > > We h

Re: [PATCH] arm: mvebu: Espressobin: Fix URLs in comments

2022-01-22 Thread Stefan Roese
On 1/21/22 12:01, Pali Rohár wrote: Use versioned URLs for line numbers as branches are moving in the time and use master branch for mv-ddr-marvell where is up-to-date code. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- board/Marvell/mvebu_armada-37xx/board.c |

Re: [PATCH 1/3] ide: Drop CONFIG_IDE_AHB

2022-01-22 Thread Stefan Roese
On 1/22/22 13:53, Simon Glass wrote: This is not used in U-Boot anymore. Drop it. Signed-off-by: Simon Glass Reviewed-by: Stefan Roese Thanks, Stefan --- README | 8 drivers/block/ide.c | 22 -- include/ide.h | 7 --- 3 files cha

Re: [PATCH 2/3] Convert CONFIG_SYS_IDE_MAXBUS et al to Kconfig

2022-01-22 Thread Stefan Roese
On 1/22/22 13:53, Simon Glass wrote: This converts the following to Kconfig: CONFIG_SYS_IDE_MAXBUS CONFIG_SYS_IDE_MAXDEVICE CONFIG_SYS_ATA_BASE_ADDR CONFIG_SYS_ATA_STRIDE CONFIG_SYS_ATA_DATA_OFFSET CONFIG_SYS_ATA_REG_OFFSET CONFIG_SYS_ATA_ALT_OFFSET CONFIG_SYS_ATA_

Re: [PATCH 3/3] Drop CONFIG_SYS_PIO_MODE

2022-01-22 Thread Stefan Roese
On 1/22/22 13:53, Simon Glass wrote: This option is not used in U-Boot. Drop it. Signed-off-by: Simon Glass Reviewed-by: Stefan Roese Thanks, Stefan --- include/configs/r2dplus.h| 5 - scripts/config_whitelist.txt | 1 - 2 files changed, 6 deletions(-) diff --git a/include/c