Re: [PATCH v3 1/6] drivers: Add a new framework for multiplexer devices

2020-06-16 Thread Simon Glass
On Thu, 11 Jun 2020 at 13:45, Pratyush Yadav wrote: > > From: Jean-Jacques Hiblot > > Add a new subsystem that handles multiplexer controllers. The API is the > same as in Linux. > > Signed-off-by: Jean-Jacques Hiblot > Signed-off-by: Pratyush Yadav > --- > drivers/Kconfig | 2

Re: [PATCH v2 02/10] test: pinmux: Add test for pin muxing

2020-06-16 Thread Sean Anderson
On 6/16/20 11:11 PM, Simon Glass wrote: > Hi Sean, > > On Sun, 7 Jun 2020 at 19:27, Sean Anderson wrote: >> >> This extends the pinctrl-sandbox driver to support pin muxing, and adds a >> test for that behaviour. The test is done in C and not python (like the >> existing tests for the pinctrl

Re: [PATCH v2 08/10] led: gpio: Default to using node name if label is absent

2020-06-16 Thread Sean Anderson
On 6/16/20 11:11 PM, Simon Glass wrote: > On Sun, 7 Jun 2020 at 19:27, Sean Anderson wrote: >> >> This more closely mirrors Linux's behaviour, and will make it easier to >> transition to using function+color in the future. >> >> Signed-off-by: Sean Anderson >> --- >> This patch was previously

Re: [PATCH v2 2/2] test: gpio: Add tests for the managed API

2020-06-16 Thread Simon Glass
On Fri, 29 May 2020 at 15:38, Pratyush Yadav wrote: > > From: Jean-Jacques Hiblot > > Add a test to verify that GPIOs can be acquired/released using the managed > API. Also check that the GPIOs are released when the consumer device is > removed. > > Signed-off-by: Jean-Jacques Hiblot > --- >

Re: [PATCH v3 4/6] cmd: Add a mux command

2020-06-16 Thread Simon Glass
On Thu, 11 Jun 2020 at 13:45, Pratyush Yadav wrote: > > This command lets the user list, select, and deselect mux controllers > introduced with the mux framework on the fly. It has 3 subcommands: > list, select, and deselect. > > List: Lists all the mux present on the system. The muxes are listed

Re: [PATCH] test_sleep.py: make sleep time and margin configurable

2020-06-16 Thread Simon Glass
Hi Stephen, On Mon, 8 Jun 2020 at 11:25, Stephen Warren wrote: > > On 6/8/20 11:12 AM, Simon Glass wrote: > > Hi Stephen, > > > > On Mon, 8 Jun 2020 at 10:43, Stephen Warren wrote: > >> > >> On 6/7/20 7:45 AM, Simon Glass wrote: > >>> On Thu, 4 Jun 2020 at 09:24, Heiko Schocher wrote: > >

Re: [PATCH v3 4/5] test/dm: fdtdec: Corect a typo in dm_test_fdtdec_set_carveout()

2020-06-16 Thread Simon Glass
On Tue, 9 Jun 2020 at 23:36, Bin Meng wrote: > > From: Bin Meng > > It should be "writable". > > Signed-off-by: Bin Meng > --- > > (no changes since v1) > > test/dm/fdtdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Simon Glass

Re: [PATCH] i2c: eeprom: Use reg property instead of offset and size

2020-06-16 Thread Simon Glass
Hi Michal, On Wed, 10 Jun 2020 at 07:18, Michal Simek wrote: > > Remove adhoc dt binding for fixed-partition definition for i2c eeprom. > fixed-partition are using reg property instead of offset/size pair. > > Signed-off-by: Michal Simek > --- > > Just build tested - ge_bx50v3_defconfig >

Re: [PATCH v2] i2c: eeprom: Use reg property instead of offset and size

2020-06-16 Thread Simon Glass
Hi Michal, On Tue, 16 Jun 2020 at 07:53, Michal Simek wrote: > > > > On 16. 06. 20 15:43, Simon Glass wrote: > > On Mon, 15 Jun 2020 at 07:41, Michal Simek wrote: > >> > >> Remove adhoc dt binding for fixed-partition definition for i2c eeprom. > >> fixed-partition are using reg property instead

Re: [PATCH v3 5/6] sandbox: Enable memio operations in board_init

2020-06-16 Thread Simon Glass
Hi Pratyush, On Thu, 11 Jun 2020 at 13:45, Pratyush Yadav wrote: > > initr_dm_devices() is called somewhere after board_init(). It can be > used by drivers to initialize devices to some default bootup state. > Those devices might use mmio read/write operations to perform the > initialization. >

Re: [RFC PATCH 1/4] common/image.c: image_decomp: put IH_COMP_XXX cases inside ifndef USE_HOSTCC

2020-06-16 Thread Simon Glass
Hi Rasmus, On Fri, 12 Jun 2020 at 05:02, Rasmus Villemoes wrote: > > When building host tools, the CONFIG_GZIP etc. symbols are not defined > anyway, so this does not (should not) change anything [1]. However, > since the host tools also don't include linux/kconfig.h, one cannot > use the

Re: [PATCH v3 03/15] configs: ns3: enable clock subsystem

2020-06-16 Thread Simon Glass
On Wed, 10 Jun 2020 at 04:41, Rayagonda Kokatanur wrote: > > Enable clock subsystem for ns3. > > Signed-off-by: Rayagonda Kokatanur > --- > configs/bcm_ns3_defconfig | 2 ++ > 1 file changed, 2 insertions(+) It feels like I have already reviewed some of these patches. Can you check if you

Re: [PATCH v3 3/5] test/dm: fdtdec: Add the missing gd declaration

2020-06-16 Thread Simon Glass
On Tue, 9 Jun 2020 at 23:36, Bin Meng wrote: > > From: Bin Meng > > Add DECLARE_GLOBAL_DATA_PTR since it is referenced in the test codes. > > Signed-off-by: Bin Meng > --- > > (no changes since v1) > > test/dm/fdtdec.c | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-by: Simon Glass You

Re: [PATCH v2 9/9] test: sandbox: add test for erase command

2020-06-16 Thread Simon Glass
On Tue, 16 Jun 2020 at 01:41, Patrick Delaunay wrote: > > Add test for the erase command tested on ENV in EXT4. > > Signed-off-by: Patrick Delaunay > --- > > (no changes since v1) > > configs/sandbox64_defconfig| 1 + > configs/sandbox_defconfig | 1 + >

Re: [PATCH v2 5/9] sandbox: support the change of env location

2020-06-16 Thread Simon Glass
On Tue, 16 Jun 2020 at 01:40, Patrick Delaunay wrote: > > Add support of environment location with a new sandbox command > 'env_loc'. > > When the user change the environment location with the command > 'env_loc ' the env is reinitialized and saved; > the GD_FLG_ENV_DEFAULT flag is also updated.

Re: Raspberry PI 4 and U-boot

2020-06-16 Thread Simon Glass
Hi Duncan, On Mon, 15 Jun 2020 at 11:31, Duncan Hare wrote: > > Is there U-Boot with Ethernet available in U-Boot for the Raspberry PI 4? > > If not is u-boot without Ethernet available for the Raspberry Pi 4, and and > interface spec available for the and Pi 4 Ethernet driver? > > I have read

Re: [PATCH v2 2/2] test: reset: Add tests for the managed API

2020-06-16 Thread Simon Glass
On Fri, 12 Jun 2020 at 06:08, Pratyush Yadav wrote: > > From: Jean-Jacques Hiblot > > The tests are basically the same as for the regular API. Except that > the reset are initialized using the managed API, and no freed manually. > > Signed-off-by: Jean-Jacques Hiblot > Signed-off-by: Pratyush

Re: [PATCH v3 2/6] dm: board: complete the initialization of the muxes in initr_dm()

2020-06-16 Thread Simon Glass
On Thu, 11 Jun 2020 at 13:45, Pratyush Yadav wrote: > > From: Jean-Jacques Hiblot > > This will probe the multiplexer devices that have a "u-boot,mux-autoprobe" > property. As a consequence they will be put in their idle state. > > Signed-off-by: Jean-Jacques Hiblot > Signed-off-by: Pratyush

Re: [PATCH 1/1] doc: random number generation

2020-06-16 Thread Simon Glass
On Sat, 13 Jun 2020 at 04:59, Heinrich Schuchardt wrote: > > Add random number generation APIs to the HTML documentation. > Fix style issues. > > Signed-off-by: Heinrich Schuchardt > --- > MAINTAINERS | 1 + > doc/api/index.rst | 1 + > doc/api/rng.rst | 17 + >

Re: [PATCH v3 3/6] drivers: mux: mmio-based syscon mux controller

2020-06-16 Thread Simon Glass
Hi Pratyush, On Thu, 11 Jun 2020 at 13:45, Pratyush Yadav wrote: > > From: Jean-Jacques Hiblot > > This adds a driver for mmio-based syscon multiplexers controlled by > bitfields in a syscon register range. > This is heavily based on the linux mmio-mux driver. > > Signed-off-by: Jean-Jacques

Re: [PATCH v3 02/15] arm: cpu: armv8: add L3 memory flush support

2020-06-16 Thread Simon Glass
On Wed, 10 Jun 2020 at 04:41, Rayagonda Kokatanur wrote: > > Add L3 memory flush support for NS3. > > Signed-off-by: Rayagonda Kokatanur > --- > arch/arm/cpu/armv8/Makefile | 1 + > arch/arm/cpu/armv8/bcmns3/Makefile | 5 ++ > arch/arm/cpu/armv8/bcmns3/lowlevel.S | 90

Re: [PATCH v3 5/5] test/dm: fdtdec: Add tests for fdtdec_add_reserved_memory()

2020-06-16 Thread Simon Glass
On Tue, 9 Jun 2020 at 23:36, Bin Meng wrote: > > From: Bin Meng > > This adds a test case to test the functionality of the fdtdec API > fdtdec_add_reserved_memory(). > > Signed-off-by: Bin Meng > --- > > Changes in v3: > - correct typo in the comments, and some minor rewording > >

Re: [PATCH v3 01/15] board: ns3: add support for Broadcom Northstar 3

2020-06-16 Thread Simon Glass
On Wed, 10 Jun 2020 at 04:41, Rayagonda Kokatanur wrote: > > Add support for Broadcom Northstar 3 SoC. > NS3 is a octo-core 64-bit ARMv8 Cortex-A72 processors > targeting a broad range of networking applications. > > Signed-off-by: Rayagonda Kokatanur > --- > arch/arm/Kconfig | 10

Re: [PATCH v2 05/10] gpio: dw: Fix warnings about casting int to pointer

2020-06-16 Thread Simon Glass
On Sun, 7 Jun 2020 at 19:27, Sean Anderson wrote: > > Change the type of gpio_dwabp_platdata.base from fdt_addr_t to a void > pointer, since we pass it to readl. > > Signed-off-by: Sean Anderson > Reviewed-by: Bin Meng > --- > This patch was previously submitted as part of >

Re: [RFC PATCH 1/1] gpio: Handle NULL pointers gracefully

2020-06-16 Thread Simon Glass
Hi Pratyush, On Mon, 8 Jun 2020 at 06:37, Pratyush Yadav wrote: > > On 01/06/20 11:08AM, Simon Glass wrote: > > Hi Pratyush, > > > > On Fri, 29 May 2020 at 16:04, Pratyush Yadav wrote: > > > > > > Prepare the way for a managed GPIO API by handling NULL pointers without > > > crashing or

Re: [PATCH v2 0/2] gpio: Add a managed API

2020-06-16 Thread Simon Glass
Hi Pratyush, On Mon, 8 Jun 2020 at 12:05, Pratyush Yadav wrote: > > Hi Simon, > > On 01/06/20 08:45AM, Simon Glass wrote: > > Hi Pratyush, > > > > On Mon, 1 Jun 2020 at 05:22, Pratyush Yadav wrote: > > > > > > On 31/05/20 08:08AM, Simon Glass wrote: > > > > Hi Pratyush, > > > > > > > > On Fri,

Re: [PATCH 1/1] sandbox: make RAM size configurable

2020-06-16 Thread Simon Glass
On Sun, 7 Jun 2020 at 10:47, Heinrich Schuchardt wrote: > > Up to now the RAM size of the sandbox is hard coded as 128 MiB. This does > not allow testing the correct handling of addresses outside the 32bit > range. 128 MiB is also rather small when tracing functions where the trace > is written

Re: [PATCH v2 08/10] led: gpio: Default to using node name if label is absent

2020-06-16 Thread Simon Glass
On Sun, 7 Jun 2020 at 19:27, Sean Anderson wrote: > > This more closely mirrors Linux's behaviour, and will make it easier to > transition to using function+color in the future. > > Signed-off-by: Sean Anderson > --- > This patch was previously submitted as part of >

Re: [PATCH v2 01/10] pinctrl: Add pinmux property support to pinctrl-generic

2020-06-16 Thread Simon Glass
Hi Sean, On Sun, 7 Jun 2020 at 19:27, Sean Anderson wrote: > > The pinmux property allows for smaller and more compact device trees, > especially when there are many pins which need to be assigned individually. > Instead of specifying an array of strings to be parsed as pins and a > function

Re: [PATCH v2 02/10] test: pinmux: Add test for pin muxing

2020-06-16 Thread Simon Glass
Hi Sean, On Sun, 7 Jun 2020 at 19:27, Sean Anderson wrote: > > This extends the pinctrl-sandbox driver to support pin muxing, and adds a > test for that behaviour. The test is done in C and not python (like the > existing tests for the pinctrl uclass) because it needs to call >

[PATCH v2 16/17] test/py: add a test for efi firmware update capsule of FIT image

2020-06-16 Thread AKASHI Takahiro
The test can run on sandbox build and it attempts to execute a firmware update via a capsule-on-disk, using a FIT image capsule, CONFIG_EFI_CAPSULE_FIT. To run this test successfully, you need configure U-Boot specifically; See test_capsule_firmware.py for requirements, and hence it won't run on

[PATCH v2 12/17] dfu: add dfu_write_by_alt()

2020-06-16 Thread AKASHI Takahiro
This function is a variant of dfu_write_by_name() and takes a DFU alt setting number for dfu configuration. It will be utilised to implement UEFI capsule management protocol for raw image in a later commit. Signed-off-by: AKASHI Takahiro --- drivers/dfu/dfu_alt.c | 47

[PATCH v2 14/17] cmd: add "efidebug capsule" command

2020-06-16 Thread AKASHI Takahiro
"efidebug capsule" is more or less a debugging utility. efidebug capsule update: invoke UpdateCapsule against data on memory efidebug capsule show: show a capsule header efidebug capsule result: dump a capsule result variable Signed-off-by: AKASHI Takahiro --- cmd/efidebug.c | 235

[PATCH v2 15/17] tools: add mkeficapsule command for UEFI capsule update

2020-06-16 Thread AKASHI Takahiro
This is a utility mainly for test purpose. mkeficapsule -f: create a test capsule file for FIT image firmware Having said that, you will be able to customize the code to fit your specific requirements for your platform. Signed-off-by: AKASHI Takahiro --- tools/Makefile | 3 +

[PATCH v2 17/17] test/py: add a test for uefi firmware update capsule of raw image

2020-06-16 Thread AKASHI Takahiro
The test can run on sandbox build and it attempts to execute a firmware update via a capsule-on-disk, using a raw image capsule, CONFIG_EFI_CAPSULE_RAW. To run this test successfully, you need configure U-Boot specifically; See test_capsule_firmware.py for requirements, and hence it won't run on

[PATCH v2 13/17] efi_loader: add firmware management protocol for raw image

2020-06-16 Thread AKASHI Takahiro
In this commit, a very simple firmware management protocol driver is implemented. It will take a binary image in a capsule file and apply the data using dfu backend storage drivers via dfu_write_by_alt() interface. So "dfu_alt_info" variable should be properly set to specify a device and location

[PATCH v2 11/17] efi_loader: add firmware management protocol for FIT image

2020-06-16 Thread AKASHI Takahiro
In this commit, a very simple firmware management protocol driver is implemented. It will take a common FIT image firmware in a capsule file and apply the data using dfu backend storage drivers via update_fit() interface. So "dfu_alt_info" variable should be properly set to specify a device and

[PATCH v2 08/17] efi_loader: capsule: add capsule_on_disk support

2020-06-16 Thread AKASHI Takahiro
Capsule data can be loaded into the system either via UpdateCapsule runtime service or files on a file system (of boot device). The latter case is called "capsules on disk", and actual updates will take place at the next boot time. In this commit, we will support capsule on disk mechanism.

[PATCH v2 07/17] efi_loader: define UpdateCapsule api

2020-06-16 Thread AKASHI Takahiro
In this commit, skeleton functions for capsule-related API's are added under CONFIG_EFI_UPDATE_CAPSULE configuration. Detailed implementation for a specific capsule type will be added in the succeeding patches. Signed-off-by: AKASHI Takahiro --- include/efi_api.h| 12 +++

[PATCH v2 10/17] efi_loader: capsule: support firmware update

2020-06-16 Thread AKASHI Takahiro
A capsule tagged with the guid, EFI_FIRMWARE_MANAGEMENT_CAPSULE_ID_GUID, is handled as a firmware update object. What efi_update_capsule() basically does is to load any firmware management protocol (or fmp) drivers contained in a capsule, find out an appropriate fmp driver and then invoke its

[PATCH v2 09/17] efi_loader: capsule: add memory range capsule definitions

2020-06-16 Thread AKASHI Takahiro
Memory range capsule gives us a way to notify that some memory regions should be left untouched across the next reset. See UEFI specification, section 8.5.3. Since how we should handle this kind of capsule is totally up to the system, no implementation will be added in this commit.

[PATCH v2 06/17] efi_loader: add option to initialise EFI subsystem early

2020-06-16 Thread AKASHI Takahiro
If this option, CONFIG_EFI_SETUP_EARLY, is enabled, the initialisation of UEFI subsystem will be done as part of U-Boot initialisation. Please note that this option won't be enabled explicitly by users, instead, should be enabled implicitly by other configuration options. Specifically, this

[PATCH v2 03/17] dfu: rename dfu_tftp_write() to dfu_write_by_name()

2020-06-16 Thread AKASHI Takahiro
This function is essentially independent from tffp, and will also be utilised in implementing UEFI capsule update in a later commit. So just give it a more generic name. In addition, a new configuration option, CONFIG_DFU_ALT, was introduced so that the file will be compiled with different

[PATCH v2 04/17] common: update: add a generic interface for FIT image

2020-06-16 Thread AKASHI Takahiro
The main purpose of this patch is to separate a generic interface for updating firmware using DFU drivers from "auto-update" via tftp. This function will also be used in implementing UEFI capsule update in a later commit. Signed-off-by: AKASHI Takahiro --- common/Kconfig | 16 +++

[PATCH v2 02/17] dfu: add a hidden reverse-dependency on UPDATE_TFTP

2020-06-16 Thread AKASHI Takahiro
DFU_OVER_TFTP support on "dfu" command relies on update_tftp() being available. Just explicitly add this dependency. Signed-off-by: AKASHI Takahiro --- drivers/dfu/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dfu/Kconfig b/drivers/dfu/Kconfig index

[PATCH v2 05/17] dfu: export dfu_list

2020-06-16 Thread AKASHI Takahiro
This variable will be utilized to enumerate all dfu entities for UEFI capsule firmware update in a later commit. Signed-off-by: AKASHI Takahiro --- drivers/dfu/dfu.c | 2 +- include/dfu.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/dfu/dfu.c

[PATCH v2 01/17] common: update_tftp: remove unnecessary build check

2020-06-16 Thread AKASHI Takahiro
Logically, the current update_tftp() should and does compile and work correctly even without satisfying the following condition: > #if defined(CONFIG_UPDATE_TFTP) && !defined(CONFIG_MTD_NOR_FLASH) > #error "CONFIG_UPDATE_TFTP and !CONFIG_MTD_NOR_FLASH needed for > legacy behaviour" > #endif It

[PATCH v2 00/17] efi_loader: add capsule update support

2020-06-16 Thread AKASHI Takahiro
Summary === 'UpdateCapsule' is one of runtime services defined in UEFI specification and its aim is to allow a caller (OS) to pass information to the firmware, i.e. U-Boot. This is mostly used to update firmware binary on devices by instructions from OS. While 'UpdateCapsule' is a runtime

[PATCHv2 29/31] spi: Enable missing CONFIG_SPL_DM_SPI support

2020-06-16 Thread Tom Rini
Due to how the Makefile logic is we currently get DM_SPI support in SPL enabled by having DM_SPI enabled for full U-Boot but not having CONFIG_SPL_DM_SPI set. Add this missing option to boards that were inadvertently making use of it. Cc: Adam Ford Cc: Akash Gajjar Cc: Anatolij Gustschin Cc:

Re: [PATCHv2 29/31] spi: Enable missing CONFIG_SPL_DM_SPI support

2020-06-16 Thread Simon Glass
On Tue, 16 Jun 2020 at 17:07, Tom Rini wrote: > > Due to how the Makefile logic is we currently get DM_SPI support in SPL > enabled by having DM_SPI enabled for full U-Boot but not having > CONFIG_SPL_DM_SPI set. Add this missing option to boards that were > inadvertently making use of it. > >

Re: [PATCH v2 1/2] drivers: gpio: Add a managed API to get a GPIO from the device-tree

2020-06-16 Thread Simon Glass
Hi Pratyush, On Fri, 29 May 2020 at 15:38, Pratyush Yadav wrote: > > From: Jean-Jacques Hiblot > > Add managed functions to get a gpio from the devce-tree, based on a > property name (minus the '-gpios' suffix) and optionally an index. > > When the device is unbound, the GPIO is automatically

Re: [RFC PATCH] allow choosing -Os/-O2 separately for SPL and TPL

2020-06-16 Thread Simon Glass
On Fri, 5 Jun 2020 at 02:37, Rasmus Villemoes wrote: > > It can be useful to build U-Boot proper with -O2, but still optimize > the SPL for size. So add separate config options for SPL and TPL. > > I had to move the Makefile logic to config.mk, since otherwise > SPL_TPL_ didn't seem to be known.

Re: [PATCH v4 4/5] dm: pci: Assign controller device node to root bridge

2020-06-16 Thread Simon Glass
Hi Nicolas, On Tue, 16 Jun 2020 at 08:09, Nicolas Saenz Julienne wrote: > > On Tue, 2020-06-16 at 07:43 -0600, Simon Glass wrote: > > Hi Nicolas, > > > > On Fri, 12 Jun 2020 at 10:47, Nicolas Saenz Julienne > > wrote: > > > There is no distinction in DT between the PCI controller device and the

Re: [PATCH v3 2/2] log: use BIT() instead of 1 <

2020-06-16 Thread Simon Glass
On Mon, 15 Jun 2020 at 13:24, Heinrich Schuchardt wrote: > > Use the BIT() macro when creating a bitmask for the logging fields. > > Signed-off-by: Heinrich Schuchardt > --- > v3: > new patch > --- > common/log_console.c | 14 +++--- > common/log_syslog.c | 14 +++--- >

Re: [PATCH v3 1/2] log: don't show function by default

2020-06-16 Thread Simon Glass
Hi Heinrich, On Mon, 15 Jun 2020 at 13:24, Heinrich Schuchardt wrote: > > The name of the function emitting a log message may be of interest for a > developer but is distracting for normal users. See the example below: > > try_load_entry() Booting: Debian > > Make the default format for log

[PATCHv2 30/31] spi: Update build guard for DM objects to cover SPL/TPL

2020-06-16 Thread Tom Rini
We need to ensure that in the cases where SPL / TPL do not use DM we do not try and build the core nor drivers that require DM. Cc: Jagan Teki Signed-off-by: Tom Rini --- drivers/spi/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/spi/Makefile

[PATCHv2 27/31] Convert CONFIG_BOOTM_NETBSD to Kconfig

2020-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_BOOTM_NETBSD Signed-off-by: Tom Rini --- configs/deneb_defconfig| 1 + configs/giedi_defconfig| 1 + configs/imx8qm_rom7720_a1_4G_defconfig | 1 + include/configs/capricorn-common.h | 4

[PATCHv2 31/31] Convert CONFIG_CADENCE_QSPI to Kconfig

2020-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_CADENCE_QSPI Signed-off-by: Tom Rini --- configs/k2g_evm_defconfig| 1 + configs/k2g_hs_evm_defconfig | 1 + drivers/spi/Makefile | 2 +- include/configs/k2g_evm.h| 1 - 4 files changed, 3 insertions(+), 2 deletions(-) diff

[PATCHv2 28/31] Kconfig: Remove CONFIG_CLOCKS_IN_MHZ

2020-06-16 Thread Tom Rini
This variable is unset anywhere and only unset on a number of platforms. Remove all relevant code. Signed-off-by: Tom Rini --- README | 13 - include/configs/MPC8536DS.h| 2 -- include/configs/MPC8540ADS.h | 2 -- include/configs/MPC8541CDS.h | 2

[PATCHv2 24/31] arm: imx: Finish migration from CONFIG_SECURE_BOOT to CONFIG_IMX_HAB

2020-06-16 Thread Tom Rini
There are a few remaining places where we say CONFIG_SECURE_BOOT rather than CONFIG_IMX HAB. Update these instances. Cc: Stefano Babic Cc: Fabio Estevam Cc: NXP i.MX U-Boot Team Cc: Eddy Petrișor Cc: Shawn Guo Cc: Priyanka Jain Fixes: d714a75fd4dc ("imx: replace CONFIG_SECURE_BOOT with

[PATCHv2 23/31] Convert CONFIG_CONSOLE_SCROLL_LINES to Kconfig

2020-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_CONSOLE_SCROLL_LINES Signed-off-by: Tom Rini --- include/configs/evb_px5.h| 1 - include/configs/evb_rk3308.h | 2 -- include/configs/evb_rk3328.h | 2 -- include/configs/firefly_rk3308.h | 2 -- include/configs/geekbox.h

[PATCHv2 26/31] arm: imx: Finish migration of CONFIG_CSF_SIZE to Kconfig

2020-06-16 Thread Tom Rini
While in most cases CSF_SIZE is handled via Kconfig we have some i.MX8M platforms that set the size based on the now-renamed CONFIG_SECURE_BOOT symbol. Update things so that CSF_SIZE itself depends on IMX_HAB being enabled and provide the default value for i.MX8M family of parts. Cc: Stefano

[PATCHv2 22/31] arm: toradex: Convert CONFIG_CONSOLE_MUX to Kconfig

2020-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_CONSOLE_MUX Cc: Igor Opaniuk Signed-off-by: Tom Rini --- configs/apalis_imx6_defconfig | 2 -- configs/colibri_imx6_defconfig | 2 -- include/configs/apalis_imx6.h | 1 - include/configs/colibri_imx6.h | 1 - 4 files changed, 6 deletions(-)

[PATCHv2 25/31] nxp: Finish switch to CONFIG_NXP_ESBC

2020-06-16 Thread Tom Rini
There are two remaining users of the CONFIG_SECURE_BOOT symbol that have not been migrated to another symbol. In this case, they should be using CONFIG_NXP_ESBC as their guard. Cc: Vladimir Oltean Fixes: 5536c3c9d0d1 ("freescale/layerscape: Rename the config CONFIG_SECURE_BOOT name")

[PATCHv2 20/31] Convert CONFIG_CMDLINE_EDITING to Kconfig

2020-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_CMDLINE_EDITING Signed-off-by: Tom Rini --- include/configs/ls1028a_common.h | 4 1 file changed, 4 deletions(-) diff --git a/include/configs/ls1028a_common.h b/include/configs/ls1028a_common.h index 44f2dc8f9b41..c191f74a3a61 100644 ---

[PATCHv2 19/31] Convert CONFIG_BUILD_TARGET to Kconfig

2020-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_BUILD_TARGET Signed-off-by: Tom Rini --- include/configs/db-88f6281-bp.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/db-88f6281-bp.h b/include/configs/db-88f6281-bp.h index cc51e6646ee3..e234b0bf9826 100644 ---

[PATCHv2 21/31] Convert CONFIG_CONS_INDEX to Kconfig

2020-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_CONS_INDEX Signed-off-by: Tom Rini --- configs/am43xx_evm_defconfig | 1 - configs/am43xx_evm_qspiboot_defconfig | 2 +- configs/am43xx_evm_rtconly_defconfig | 1 - configs/am43xx_evm_usbhost_boot_defconfig

[PATCHv2 17/31] Convert CONFIG_BOOTP_DNS2 to Kconfig

2020-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_BOOTP_DNS2 CONFIG_BOOTP_PXE_CLIENTARCH Signed-off-by: Tom Rini --- configs/am335x_baltos_defconfig | 1 + configs/am335x_boneblack_vboot_defconfig | 1 + configs/am335x_evm_defconfig | 1 +

[PATCHv2 16/31] arm: abb secu1: Convert CONFIG_BOOTDELAY to Kconfig

2020-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_BOOTDELAY Cc: Holger Brunck Signed-off-by: Tom Rini --- include/configs/socfpga_arria5_secu1.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/socfpga_arria5_secu1.h b/include/configs/socfpga_arria5_secu1.h index

[PATCHv2 18/31] Convert CONFIG_BOUNCE_BUFFER to Kconfig

2020-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_BOUNCE_BUFFER Signed-off-by: Tom Rini --- include/configs/px30_common.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/configs/px30_common.h b/include/configs/px30_common.h index d6c70601dd01..76d6ab1c8b4e 100644 ---

[PATCHv2 12/31] Convert CONFIG_BOOTARGS to Kconfig

2020-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_BOOTARGS Signed-off-by: Tom Rini --- configs/grpeach_defconfig | 2 ++ configs/imx28_xea_defconfig| 2 ++ configs/sama5d2_icp_mmc_defconfig | 1 + configs/socfpga_agilex_defconfig | 2 ++

[PATCHv2 15/31] arm: capricorn: Convert CONFIG_BOOTCOUNT_ENV et al to Kconfig

2020-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_BOOTCOUNT_ENV CONFIG_BOOTCOUNT_LIMIT Cc: Anatolij Gustschin Signed-off-by: Tom Rini --- configs/deneb_defconfig| 2 ++ configs/giedi_defconfig| 2 ++ include/configs/capricorn-common.h | 3 --- 3 files changed, 4

[PATCHv2 10/31] Convert CONFIG_BAUDRATE to Kconfig

2020-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_BAUDRATE Signed-off-by: Tom Rini --- README| 5 - include/configs/apalis-imx8.h | 3 --- include/configs/bcm_northstar2.h | 1 - include/configs/bcmstb.h | 1 - include/configs/colibri-imx8x.h | 3

[PATCHv2 11/31] Convert CONFIG_BOARD_EARLY_INIT_F et al to Kconfig

2020-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_BOARD_EARLY_INIT_F CONFIG_BOARD_EARLY_INIT_R Signed-off-by: Tom Rini --- configs/avnet_ultrazedev_cc_v1_0_ultrazedev_som_v1_0_defconfig | 1 + configs/deneb_defconfig| 1 + configs/giedi_defconfig

[PATCHv2 13/31] Convert CONFIG_BCH to Kconfig

2020-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_BCH Signed-off-by: Tom Rini --- configs/ge_bx50v3_defconfig | 1 + configs/mx53ppd_defconfig | 1 + include/configs/ge_bx50v3.h | 2 -- include/configs/mx53ppd.h | 2 -- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git

[PATCHv2 14/31] Convert CONFIG_BOARD_TYPES to Kconfig

2020-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_BOARD_TYPES Signed-off-by: Tom Rini --- configs/brsmarc1_defconfig | 1 + configs/mscc_jr2_defconfig | 1 + configs/mscc_luton_defconfig | 1 + configs/mscc_ocelot_defconfig | 1 + configs/mscc_serval_defconfig | 1 +

[PATCHv2 09/31] bk4r1: Re-convert CONFIG_AUTOBOOT_PROMPT et al to Kconfig

2020-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_AUTOBOOT_PROMPT CONFIG_AUTOBOOT_KEYED CONFIG_AUTOBOOT_STOP_STR Signed-off-by: Tom Rini --- configs/bk4r1_defconfig | 3 +++ include/configs/bk4r1.h | 6 -- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git

[PATCHv2 07/31] Convert CONFIG_ATMEL_NAND_HW_PMECC et al to Kconfig

2020-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_ATMEL_NAND_HW_PMECC CONFIG_ATMEL_NAND_HWECC CONFIG_NAND_ATMEL CONFIG_PMECC_CAP CONFIG_PMECC_SECTOR_SIZE Signed-off-by: Tom Rini --- configs/sam9x60ek_nandflash_defconfig | 4 configs/sam9x60ek_qspiflash_defconfig | 4

[PATCHv2 05/31] Convert CONFIG_AT91_GPIO to Kconfig

2020-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_AT91_GPIO Signed-off-by: Tom Rini --- arch/arm/mach-at91/include/mach/at91rm9200.h | 2 -- configs/at91rm9200ek_defconfig | 1 + configs/at91rm9200ek_ram_defconfig | 1 + configs/axm_defconfig| 1 +

[PATCHv2 08/31] Convert CONFIG_ATMEL_USART to Kconfig

2020-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_ATMEL_USART Signed-off-by: Tom Rini --- configs/at91rm9200ek_defconfig | 1 + configs/at91rm9200ek_ram_defconfig | 1 + configs/gurnard_defconfig | 1 + configs/picosam9g45_defconfig | 1 + configs/smartweb_defconfig |

[PATCHv2 04/31] Convert CONFIG_ARMV7_PSCI et al to Kconfig

2020-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_ARMV7_PSCI CONFIG_ARMV7_PSCI_NR_CPUS Cc: Tom Warren Cc: peter.ch...@data61.csiro.au Signed-off-by: Tom Rini --- arch/arm/mach-tegra/tegra124/Kconfig | 1 + include/configs/cei-tk1-som.h| 2 -- 2 files changed, 1 insertion(+), 2

[PATCHv2 06/31] Convert CONFIG_ATMEL_HLCD to Kconfig

2020-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_ATMEL_HLCD Signed-off-by: Tom Rini --- configs/at91sam9n12ek_mmc_defconfig | 1 + configs/at91sam9n12ek_nandflash_defconfig | 1 + configs/at91sam9n12ek_spiflash_defconfig | 1 + drivers/video/Kconfig | 1 -

[PATCHv2 03/31] Convert CONFIG_ARM_PL180_MMCI to Kconfig

2020-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_ARM_PL180_MMCI Signed-off-by: Tom Rini --- configs/vexpress_ca15_tc2_defconfig | 1 + configs/vexpress_ca5x2_defconfig| 1 + configs/vexpress_ca9x4_defconfig| 1 + drivers/mmc/Kconfig | 1 -

[PATCHv2 02/31] Convert CONFIG_ARCH_MISC_INIT to Kconfig

2020-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_ARCH_MISC_INIT Signed-off-by: Tom Rini --- configs/apalis-tk1_defconfig | 1 + configs/chiliboard_defconfig | 1 + include/configs/apalis-tk1.h | 2 -- include/configs/chiliboard.h | 1 - 4 files changed, 2 insertions(+), 3 deletions(-) diff

[PATCHv2 01/31] Convert CONFIG_AM335X_LCD to Kconfig

2020-06-16 Thread Tom Rini
This converts the following to Kconfig: CONFIG_AM335X_LCD Signed-off-by: Tom Rini --- configs/brxre1_defconfig | 1 + drivers/video/Kconfig| 1 - include/configs/brxre1.h | 3 --- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/configs/brxre1_defconfig

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-16 Thread Tom Rini
On Tue, Jun 16, 2020 at 06:01:24PM -0300, Fabio Estevam wrote: > On Tue, Jun 16, 2020 at 5:58 PM Tom Rini wrote: > > > I'm looking at the conversion now, thanks. > > When doing the DM_ETH conversion, this kernel commit may also help as > 'qca,clk-out-frequency' is also supported in U-Boot: > >

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-16 Thread Vladimir Oltean
On Wed, 17 Jun 2020 at 00:35, Tom Rini wrote: > > On Tue, Jun 16, 2020 at 11:37:17PM +0300, Vladimir Oltean wrote: > > On Tue, 16 Jun 2020 at 23:31, Tom Rini wrote: > > > > > > On Tue, Jun 16, 2020 at 11:21:08PM +0300, Vladimir Oltean wrote: > > > > On Tue, 16 Jun 2020 at 23:10, Tom Rini wrote:

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-16 Thread Vladimir Oltean
On Wed, 17 Jun 2020 at 00:57, Tom Rini wrote: > > On Wed, Jun 17, 2020 at 12:04:16AM +0300, Vladimir Oltean wrote: > > On Wed, 17 Jun 2020 at 00:01, Vladimir Oltean wrote: > > > > > > On Tue, 16 Jun 2020 at 23:58, Tom Rini wrote: > > > > > > > > On Tue, Jun 16, 2020 at 05:55:10PM -0300, Fabio

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-16 Thread Tom Rini
On Wed, Jun 17, 2020 at 12:01:39AM +0300, Vladimir Oltean wrote: > On Tue, 16 Jun 2020 at 23:58, Tom Rini wrote: > > > > On Tue, Jun 16, 2020 at 05:55:10PM -0300, Fabio Estevam wrote: > > > On Tue, Jun 16, 2020 at 5:51 PM Tom Rini wrote: > > > > > > > Ah. So this is probably why the DT being

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-16 Thread Tom Rini
On Wed, Jun 17, 2020 at 12:04:16AM +0300, Vladimir Oltean wrote: > On Wed, 17 Jun 2020 at 00:01, Vladimir Oltean wrote: > > > > On Tue, 16 Jun 2020 at 23:58, Tom Rini wrote: > > > > > > On Tue, Jun 16, 2020 at 05:55:10PM -0300, Fabio Estevam wrote: > > > > On Tue, Jun 16, 2020 at 5:51 PM Tom

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-16 Thread Tom Rini
On Tue, Jun 16, 2020 at 11:30:00PM +0200, Michael Walle wrote: > Am 16. Juni 2020 22:21:08 MESZ schrieb Vladimir Oltean : > >On Tue, 16 Jun 2020 at 23:10, Tom Rini wrote: > >> > >> On Tue, Jun 16, 2020 at 10:58:26PM +0300, Vladimir Oltean wrote: > >> > Hi Tom, > >> > > >> > On Tue, 16 Jun 2020 at

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-16 Thread Tom Rini
On Tue, Jun 16, 2020 at 11:37:17PM +0300, Vladimir Oltean wrote: > On Tue, 16 Jun 2020 at 23:31, Tom Rini wrote: > > > > On Tue, Jun 16, 2020 at 11:21:08PM +0300, Vladimir Oltean wrote: > > > On Tue, 16 Jun 2020 at 23:10, Tom Rini wrote: > > > > > > > > On Tue, Jun 16, 2020 at 10:58:26PM +0300,

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-16 Thread Michael Walle
Am 16. Juni 2020 22:21:08 MESZ schrieb Vladimir Oltean : >On Tue, 16 Jun 2020 at 23:10, Tom Rini wrote: >> >> On Tue, Jun 16, 2020 at 10:58:26PM +0300, Vladimir Oltean wrote: >> > Hi Tom, >> > >> > On Tue, 16 Jun 2020 at 22:55, Tom Rini wrote: >> > > >> > > Hey all, >> > > >> > > In commit

Re: Can't access mmc #0 on mt7623 when booted from external SD

2020-06-16 Thread David Woodhouse
On Tue, 2020-06-16 at 21:38 +0200, Michael Nazzareno Trimarchi wrote: > Have you already tried to dump the pinmux using the cmd? in both > situation? U-Boot> pinmux status -a --

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-16 Thread Vladimir Oltean
On Wed, 17 Jun 2020 at 00:01, Vladimir Oltean wrote: > > On Tue, 16 Jun 2020 at 23:58, Tom Rini wrote: > > > > On Tue, Jun 16, 2020 at 05:55:10PM -0300, Fabio Estevam wrote: > > > On Tue, Jun 16, 2020 at 5:51 PM Tom Rini wrote: > > > > > > > Ah. So this is probably why the DT being right isn't

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-16 Thread Vladimir Oltean
On Tue, 16 Jun 2020 at 23:58, Tom Rini wrote: > > On Tue, Jun 16, 2020 at 05:55:10PM -0300, Fabio Estevam wrote: > > On Tue, Jun 16, 2020 at 5:51 PM Tom Rini wrote: > > > > > Ah. So this is probably why the DT being right isn't helping then. If > > > you want to blind-convert I'm happy to

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-16 Thread Fabio Estevam
On Tue, Jun 16, 2020 at 5:58 PM Tom Rini wrote: > I'm looking at the conversion now, thanks. When doing the DM_ETH conversion, this kernel commit may also help as 'qca,clk-out-frequency' is also supported in U-Boot: commit 86b08bd5b99480b79a25343f24c1b8c4ddcb5c09 Author: Russell King Date:

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-16 Thread Tom Rini
On Tue, Jun 16, 2020 at 05:55:10PM -0300, Fabio Estevam wrote: > On Tue, Jun 16, 2020 at 5:51 PM Tom Rini wrote: > > > Ah. So this is probably why the DT being right isn't helping then. If > > you want to blind-convert I'm happy to test, otherwise do you have a > > similar board conversion for

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-16 Thread Fabio Estevam
On Tue, Jun 16, 2020 at 5:51 PM Tom Rini wrote: > Ah. So this is probably why the DT being right isn't helping then. If > you want to blind-convert I'm happy to test, otherwise do you have a > similar board conversion for me to look at? Thanks! Please try Vladimir's suggestion as it seems to

Re: U-Boot atheros PHY support and cubox ethernet

2020-06-16 Thread Tom Rini
On Tue, Jun 16, 2020 at 05:42:34PM -0300, Fabio Estevam wrote: > Hi Tom, > > On Tue, Jun 16, 2020 at 4:55 PM Tom Rini wrote: > > > > Hey all, > > > > In commit 4346df3392c0 ("phy: atheros: Make RGMII Tx delays actually > > configurable for AR8035") we brought in changes to get in to line with >

  1   2   3   >