[PATCH 8/8] imx8mm_evk: add fastboot support

2020-10-11 Thread Peng Fan
Add fastboot support for U-Boot proper Signed-off-by: Peng Fan --- arch/arm/dts/imx8mm-evk-u-boot.dtsi | 17 + configs/imx8mm_evk_defconfig| 13 - include/configs/imx8mm_evk.h| 14 ++ 3 files changed, 43 insertions(+), 1 deletion(-) diff

[PATCH 7/8] usb: ci_udc: Convert driver to DM_USB_GADGET

2020-10-11 Thread Peng Fan
From: Sherry Sun Convert the ci_udc driver to driver model by using the uclass UCLASS_USB_GADGET_GENERIC. The clk and power of USB controller and USB PHY both are initialized by parsing the device tree nodes. If CONFIG_DM_USB_GADGET is defined, we use the ci_udc driver in DM way, if it does not

[PATCH 3/8] phy: nop-phy: add optional clk

2020-10-11 Thread Peng Fan
Add optional clk for nop phy Signed-off-by: Peng Fan --- drivers/phy/nop-phy.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/drivers/phy/nop-phy.c b/drivers/phy/nop-phy.c index a5eed20f3f..a1afdef736 100644 --- a/drivers/phy/nop-phy.c +++

[PATCH 6/8] imx8mm_evk: add usbotg1 host support

2020-10-11 Thread Peng Fan
Add tcpc port and pd switch code board code Add U-Boot specific dtsi property, we use nop-phy driver for the phy Add relevant config options Test: u-boot=> usb start starting USB... Bus usb@32e4: USB EHCI 1.00 scanning bus usb@32e4 for devices... 2 USB Device(s) found scanning usb

[PATCH 4/8] usb: imx: add i.MX usb ehci driver

2020-10-11 Thread Peng Fan
This driver is a modifed and cleaned-up version of drivers/usb/host/ehci-mx6.c, it is to replace the original ehci-mx6.c driver. It dropped the hardcoding code and only support driver model with phy/clk/regulator/etc enabled. The usbmisc code is handling "fsl,usbmisc" related driver code,

[PATCH 5/8] imx8m: enable usb power domain

2020-10-11 Thread Peng Fan
Enable usb power domain, we are not using a power domain driver now. Currently NXP use a ARM SIP based power domain driver, but this has been rejected by Linux Kernel, so we are thinking SCMI, however kernel stuff still not settle down, to make uboot feature work, we directly use SIP call for

[PATCH 1/8] tcpc: Add driver for USB typec port controller (TCPC)

2020-10-11 Thread Peng Fan
From: Ye Li The functionalities in this driver include: 1. USB power delivery support at dead battery 2. Support configure to UFP or DFP mode 3. Support callback to setup external PD switch. When PD process is enabled, we call this function only when SINK_VBUS is enabled to avoid system power

[PATCH 0/8] i.MX8MM: add host/gadget support

2020-10-11 Thread Peng Fan
This patchset is based on https://patchwork.ozlabs.org/project/uboot/list/?series=202112 https://patchwork.ozlabs.org/project/uboot/list/?series=202117 In this patchset, A new pure DM USB driver was added to driver/use/imx which will be used to hold i.MX DM USB stuff, the ehci-mx6.c will retire

[PATCH 2/8] power: regulator: add dummy helper

2020-10-11 Thread Peng Fan
Add dummy helper to enabling the header could be included when DM REGULATOR not enabled. Signed-off-by: Peng Fan --- include/power/regulator.h | 114 ++ 1 file changed, 114 insertions(+) diff --git a/include/power/regulator.h b/include/power/regulator.h

[PATCH] board: imx: address dd usage in README

2020-10-11 Thread Peng Fan
When using cygwin64 "dd (coreutils) 8.26 Packaged by Cygwin (8.26-2)", the last not 512bytes aligned data wat cut off and not burned into SD card. Saying the flash.bin size is 1085608 bytes, not 512bytes aligned. It only burned 1085440 bytes, the leaving 168 bytes were not burnned and cause boot

RE: [PATCH 00/17] Add support for MMC higher speed modes for TI's am65x, j721e and j7200 platforms

2020-10-11 Thread Peng Fan
> Subject: Re: [PATCH 00/17] Add support for MMC higher speed modes for TI's > am65x, j721e and j7200 platforms > > Hi Peng, > > On 08/10/20 10:42 am, Faiz Abbas wrote: > > The following patches add support for higher speeds in the SD card and > > eMMC for TI's am65x, j721e, j7200 platforms. > >

Re: [PATCH 01/17] mmc: sdhci: Add helper functions for UHS modes

2020-10-11 Thread Faiz Abbas
Hi, On 08/10/20 10:42 am, Faiz Abbas wrote: > Add a set_voltage() function which handles the switch from 3.3V to 1.8V > for SD card UHS modes. > > Signed-off-by: Faiz Abbas > --- Travisci is showing build issues for this patch with some boards. Will fix and repost for v2. Thanks, Faiz

Re: [PATCH v2 2/2] km/common: change ubicopy variable

2020-10-11 Thread Heiko Schocher
Hello Holger, Am 09.10.2020 um 17:21 schrieb Holger Brunck: Instead having a hard coded value for "cramfsaddr" after compile time, we change it to take the variable "cramfsaddr" for the ubicopy variable. This makes sure that ubicopy uses the right address, even when the value for "cramfsaddr"

Re: [PATCH v2 1/2] km: adapt defines and variables for new memory layout

2020-10-11 Thread Heiko Schocher
Hello Holger, Am 09.10.2020 um 17:21 schrieb Holger Brunck: Due to increasing kernel image sizes we get problems when decompressing the kernel image. To fix this we need to change the addresses where we load and where we extract the kernel. Also we need to adapt the address where to load the

Re: [PATCH v2 2/5] ARM: dts: Mediatek: add i2c node support for mt8512

2020-10-11 Thread Simon Glass
On Wed, 30 Sep 2020 at 02:22, mingming lee wrote: > > From: Mingming Lee > > add i2c dts node support for mt8512 > > Signed-off-by: Mingming Lee > --- > arch/arm/dts/mt8512-bm1-emmc.dts | 12 ++ > arch/arm/dts/mt8512.dtsi | 38 +++- > 2 files

Re: [PATCH v2 3/5] configs: mt8512: Enable I2C related configs

2020-10-11 Thread Simon Glass
On Wed, 30 Sep 2020 at 02:22, mingming lee wrote: > > From: Mingming Lee > > Enable MTK I2C > Enable I2C basic command > > Signed-off-by: Mingming Lee > --- > configs/mt8512_bm1_emmc_defconfig | 3 +++ > 1 file changed, 3 insertions(+) Reviewed-by: Simon Glass Please check that the sorting

Re: [PATCH 3/3] cosmetic: image: Fix comments and the order of definitions

2020-10-11 Thread Simon Glass
On Tue, 6 Oct 2020 at 20:22, Naoki Hayama wrote: > > Fix some comments about functions. > Move genimg_get_comp_name() above genimg_get_short_name() because > genimg_get_comp_name() is related to get_table_entry_name(). > > Signed-off-by: Naoki Hayama > --- > > common/image.c | 20

Re: [PATCH 3/3] riscv: Move timer portions of SiFive CLINT to drivers/timer

2020-10-11 Thread Simon Glass
On Sun, 4 Oct 2020 at 14:30, Sean Anderson wrote: > > Half of this driver is a DM-based timer driver, and half is RISC-V-specific > IPI code. Move the timer portions in with the other timer drivers. The > KConfig is not moved, since it also enables IPIs. It could also be split > into two configs,

Re: [PATCH] video: rockchip: Add missing dpcd_write() call to link_train_ce()

2020-10-11 Thread Simon Glass
On Tue, 6 Oct 2020 at 14:40, Alper Nebi Yasak wrote: > > Found this by comparing it to the coreboot driver, a form of this call > was introduced there in their commit b9a7877568cf ("rockchip/*: refactor > edp driver"). This is copy-pasted from U-Boot's link_train_cr() slightly > above it. > >

Re: [PATCH 03/16] firmware: scmi: Include device_compat.h

2020-10-11 Thread Simon Glass
On Sun, 4 Oct 2020 at 19:40, Sean Anderson wrote: > > This header is necessary for the dev_xxx macros. > > Signed-off-by: Sean Anderson > --- > > drivers/firmware/scmi/mailbox_agent.c | 1 + > drivers/firmware/scmi/scmi_agent-uclass.c | 1 + > drivers/firmware/scmi/smt.c | 1 +

Re: [PATCH v2 3/3] ut: add small hush tests

2020-10-11 Thread Simon Glass
On Wed, 7 Oct 2020 at 01:21, Rasmus Villemoes wrote: > > This is primarily to add a test of the new "call" command, but we > might as well add some very basic tests as well. > > Signed-off-by: Rasmus Villemoes > --- > configs/sandbox64_defconfig | 1 + > configs/sandbox_defconfig | 1 + >

Re: verified boot changes since 2020.04

2020-10-11 Thread Simon Glass
Hi Rasmus, On Mon, 5 Oct 2020 at 08:10, Rasmus Villemoes wrote: > > Hi, > > I'm trying to keep our board in sync with upstream, but when trying to > port it to v2020.10-rc4, the kernel verification fails: > > ## Loading kernel from FIT Image at 0300 ... >Using 'conf-def.dtb'

Re: [PATCH 2/3] mkimage: Skip adding non-existent IDs to a list

2020-10-11 Thread Simon Glass
On Tue, 6 Oct 2020 at 20:22, Naoki Hayama wrote: > > In show_valid_options(), this patch introduces checking whether > a category has an entry ID. If not, adding it to a list for output > is skipped before calling qsort(). > This patch will affect all kinds of image header categories > (-A, -C,

Re: [PATCH v2 4/5] dt-binding: i2c: add bindings for mediatek i2c driver

2020-10-11 Thread Simon Glass
On Wed, 30 Sep 2020 at 02:22, mingming lee wrote: > > From: Mingming Lee > > add bindings for mediatek i2c driver Should indicate which version of linux this file comes from. > > Signed-off-by: Mingming Lee > --- > doc/device-tree-bindings/i2c/i2c-mtk.txt | 39 > 1

Re: [PATCH 11/16] timer: Include device_compat.h

2020-10-11 Thread Simon Glass
On Sun, 4 Oct 2020 at 19:40, Sean Anderson wrote: > > Necessary for dev_xxx. > > Signed-off-by: Sean Anderson > --- > > drivers/timer/timer-uclass.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) Reviewed-by: Simon Glass Also sorting the includes

Re: [PATCH v2 21/22] doc: Add log kerneldocs to documentation

2020-10-11 Thread Simon Glass
On Sat, 10 Oct 2020 at 13:44, Sean Anderson wrote: > > The functions in log.h are already mostly documented, so add them to the > generated documentation. > > Signed-off-by: Sean Anderson > --- > > Changes in v2: > - Add % before constants in kerneldocs > - Document log_level_t and

Re: [PATCH v2 07/22] log: Add function to create a filter with flags

2020-10-11 Thread Simon Glass
On Sat, 10 Oct 2020 at 13:44, Sean Anderson wrote: > > This function exposes a way to specify flags when creating a filter. > > Signed-off-by: Sean Anderson > --- > > (no changes since v1) > > common/log.c | 6 -- > include/log.h | 29 +++-- > 2 files changed, 31

Re: [PATCH v2 12/22] cmd: log: Use sub-commands for log

2020-10-11 Thread Simon Glass
On Sat, 10 Oct 2020 at 13:44, Sean Anderson wrote: > > This reduces duplicate code, and makes adding new sub-commands easier. > > Signed-off-by: Sean Anderson > --- > > (no changes since v1) > > cmd/log.c | 37 +++-- > 1 file changed, 7 insertions(+), 30

Re: [PATCH v2 10/22] log: Add filter flag to match greater than a log level

2020-10-11 Thread Simon Glass
On Sat, 10 Oct 2020 at 13:44, Sean Anderson wrote: > > This is the compliment of the existing behavior to match only messages with complement > a log level less than a threshold. This is primarily useful in conjunction > with LOGFF_DENY. > > Signed-off-by: Sean Anderson > --- > > (no changes

Re: [PATCH v2 08/22] log: Add filter flag to deny on match

2020-10-11 Thread Simon Glass
On Sat, 10 Oct 2020 at 13:44, Sean Anderson wrote: > > Without this flag, log filters can only explicitly accept messages. > Allowing denial makes it easier to filter certain subsystems. Unlike > allow-ing filters, deny-ing filters are added to the beginning of the > filter list. This should do

Re: [PATCH v2 14/22] cmd: log: Move log test to end of help string

2020-10-11 Thread Simon Glass
On Sat, 10 Oct 2020 at 13:44, Sean Anderson wrote: > > This is probably what a typical user is least interested in. Move it to the > end of the description. > > Signed-off-by: Sean Anderson > --- > > (no changes since v1) > > cmd/log.c | 10 +- > 1 file changed, 5 insertions(+), 5

Re: [PATCH] tools: image-host.c: use correct output format

2020-10-11 Thread Simon Glass
On Thu, 8 Oct 2020 at 12:51, Heinrich Schuchardt wrote: > > When building on a 32bit host the following warning occurs: > > tools/image-host.c: In function ‘fit_image_read_data’: > tools/image-host.c:296:56: warning: format ‘%ld’ expects argument of > type ‘long int’, but argument 3 has type

Re: [PATCH 1/2] dm: core: Add late driver remove option

2020-10-11 Thread Simon Glass
Hi Marek, On Sun, 11 Oct 2020 at 10:03, Marek Vasut wrote: > > Add another flag to the DM core which could be assigned to drivers and > which makes those drivers call their remove callbacks last, just before > booting OS and after all the other drivers finished with their remove > callbacks.

Re: [PATCH v2 11/22] test: Add test for LOGFF_MIN

2020-10-11 Thread Simon Glass
On Sat, 10 Oct 2020 at 13:44, Sean Anderson wrote: > > This tests log filters matching on a minimum level. > > Signed-off-by: Sean Anderson > --- > > (no changes since v1) > > test/log/log_test.c | 23 +++ > test/py/tests/test_log.py | 5 + > 2 files changed, 28

Re: [PATCH v2 16/22] cmd: log: Make "log level" print all log levels

2020-10-11 Thread Simon Glass
On Sat, 10 Oct 2020 at 13:44, Sean Anderson wrote: > > This makes the log level command print all valid log levels. The default > log level is annotated. This provides an easy way to see which log levels > are compiled-in. > > Signed-off-by: Sean Anderson > --- > > Changes in v2: > - New > >

Re: [PATCH v2 06/22] log: Expose some helper functions

2020-10-11 Thread Simon Glass
On Sat, 10 Oct 2020 at 13:44, Sean Anderson wrote: > > These functions are required by "cmd: log: Add commands to manipulate > filters" and "test: Add a test for log filter-*". > > Signed-off-by: Sean Anderson > --- > > Changes in v2: > - Expose log_has_cat and log_has_file for filter tests > >

Re: [PATCH v4 1/3] env: split env_import_redund() into 2 functions

2020-10-11 Thread Simon Glass
On Sat, 10 Oct 2020 at 02:28, Heiko Schocher wrote: > > split from env_import_redund() the part which checks > which Environment is valid into a separate function > called env_check_redund() and call it from env_import_redund(). > > So env_check_redund() can be used from places which also > need

Re: [PATCH v2 2/3] allow positional arguments with "run" command

2020-10-11 Thread Simon Glass
On Wed, 7 Oct 2020 at 01:21, Rasmus Villemoes wrote: > > Currently, the only way to emulate functions with arguments in the > U-Boot shell is by doing "foo=arg1; bar=arg2; run func" and having > "func" refer to $foo and $bar. That works, but is a bit clunky, and > also suffers from foo and bar

Re: [PATCH v2 19/22] cmd: log: Add commands to manipulate filters

2020-10-11 Thread Simon Glass
On Sat, 10 Oct 2020 at 13:44, Sean Anderson wrote: > > This adds several commands to add, list, and remove log filters. Due to the > complexity of adding a filter, `log filter-list` uses options instead of > positional arguments. > > These commands have been added as subcommands to log by using a

Re: [PATCH v2 20/22] test: Add a test for log filter-*

2020-10-11 Thread Simon Glass
On Sat, 10 Oct 2020 at 13:44, Sean Anderson wrote: > > This exercises a few success and failure modes of the log filter-* > commands. log filter-list is not tested because it's purely informational. > I don't think there's a good way to test it except by testing if the output > of the command

Re: [PATCH v3 22/27] video: omap: add panel driver

2020-10-11 Thread Simon Glass
On Sun, 11 Oct 2020 at 06:22, Dario Binacchi wrote: > > The previous version of am335x-fb.c contained the functionalities of two > drivers that this patch has split. It was a video type driver that used > the same registration compatible string that now registers a panel type > driver. The proof

Re: [PATCH v2 22/22] doc: Update logging documentation

2020-10-11 Thread Simon Glass
On Sat, 10 Oct 2020 at 13:44, Sean Anderson wrote: > > This updates logging documentation with some examples of the new commands > added in the previous commits. It also removes some items from the to-do > list which have been implemented. > > Signed-off-by: Sean Anderson > --- > > Changes in

Re: [PATCH v2 15/22] cmd: log: Add commands to list categories and drivers

2020-10-11 Thread Simon Glass
On Sat, 10 Oct 2020 at 13:44, Sean Anderson wrote: > > This allows users to query which categories and drivers are available on > their system. This allows them to construct filter-add commands without > (e.g.) adjusting the log format to show categories and drivers. > > Signed-off-by: Sean

Re: [PATCH] dm: core: fix typo in device.h

2020-10-11 Thread Simon Glass
On Sun, 11 Oct 2020 at 06:27, Dario Binacchi wrote: > > Replace 'a the' with 'the' in include/dm/device.h. > > Signed-off-by: Dario Binacchi > --- > > include/dm/device.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Simon Glass

Re: [PATCH v3 2/3] global_data.h: add Sphinx documentation

2020-10-11 Thread Simon Glass
On Mon, 5 Oct 2020 at 00:35, Heinrich Schuchardt wrote: > > Add the missing Sphinx documentation for struct global_data and > gd_board_type(). > > Signed-off-by: Heinrich Schuchardt > --- > v3: > Avoid duplicate comments: comments replaced by Sphinx documentation > should be

Re: [PATCH 1/3] image: Add a function to modify category information

2020-10-11 Thread Simon Glass
On Tue, 6 Oct 2020 at 20:21, Naoki Hayama wrote: > > Add a generic function which can check whether a category has an > entry ID. > > Signed-off-by: Naoki Hayama > --- > > common/image.c | 18 ++ > include/image.h | 9 + > 2 files changed, 27 insertions(+) >

Re: [PATCH v2 13/22] cmd: log: Split off log level parsing

2020-10-11 Thread Simon Glass
On Sat, 10 Oct 2020 at 13:44, Sean Anderson wrote: > > Move parsing of log level into its own function so it can be re-used. This > also adds support for using log level names instead of just the integer > equivalent. > > Signed-off-by: Sean Anderson > --- > > Changes in v2: > - Print an error

Re: [PATCH 16/16] dm: Don't undefine dev_xxx macros

2020-10-11 Thread Simon Glass
On Sun, 4 Oct 2020 at 19:40, Sean Anderson wrote: > > Now that linux/compat.h does not define these macros, we do not need to > undefine them. > > Signed-off-by: Sean Anderson > --- > > include/dm/device_compat.h | 20 > 1 file changed, 20 deletions(-) > Reviewed-by: Simon

Re: [PATCH 2/3] timer: Add _TIMER suffix to Andes PLMT Kconfig

2020-10-11 Thread Simon Glass
On Sun, 4 Oct 2020 at 14:30, Sean Anderson wrote: > > This matches the naming scheme of other timer drivers. > > Signed-off-by: Sean Anderson > --- > > arch/riscv/cpu/ax25/Kconfig | 2 +- > drivers/timer/Kconfig | 2 +- > drivers/timer/Makefile | 2 +- > 3 files changed, 3

Re: [PATCH v2 09/22] test: Add tests for LOGFF_DENY

2020-10-11 Thread Simon Glass
On Sat, 10 Oct 2020 at 13:44, Sean Anderson wrote: > > This adds some tests for log filters which deny if they match. > > Signed-off-by: Sean Anderson > --- > > (no changes since v1) > > test/log/log_test.c | 69 +++ > test/py/tests/test_log.py | 21

Re: [PATCH v2 05/22] log: Use CONFIG_IS_ENABLED() for LOG_TEST

2020-10-11 Thread Simon Glass
On Sat, 10 Oct 2020 at 13:43, Sean Anderson wrote: > > Checkpatch complains about using #ifdef for CONFIG variables. > > Signed-off-by: Sean Anderson > --- > > (no changes since v1) > > cmd/log.c | 4 ++-- > test/log/log_test.c | 2 +- > 2 files changed, 3 insertions(+), 3

Re: [PATCH v2 1/1] sandbox: make SDL window resizable

2020-10-11 Thread Simon Glass
On Fri, 9 Oct 2020 at 15:44, Heinrich Schuchardt wrote: > > Without resizing the SDL window showed by > > ./u-boot -D -l > > is not legible on a high resolution screen. > > Allow resizing the window > > Signed-off-by: Heinrich Schuchardt > --- > v2: > Do not maximize the window. >

Re: [PATCH v4 2/3] env: Access Environment in SPI flashes before relocation

2020-10-11 Thread Simon Glass
On Sat, 10 Oct 2020 at 02:28, Heiko Schocher wrote: > > Enable the new Kconfig option ENV_SPI_EARLY if you want > to use Environment in SPI flash before relocation. > Call env_init() and than you can use env_get_f() for > accessing Environment variables. > > Signed-off-by: Heiko Schocher > --- >

Re: [PATCH v2 04/22] log: Add new category names to log_cat_name

2020-10-11 Thread Simon Glass
On Sat, 10 Oct 2020 at 13:43, Sean Anderson wrote: > > Without every category between LOGC_NONE and LOGC_COUNT present in > log_cat_name, log_get_cat_by_name will dereference NULL pointers if it > doesn't find a name early enough. > > Fixes: c3aed5db59 ("sandbox: spi: Add more logging") > Fixes:

Re: [PATCH 1/4] firmware: zynqmp: Swap addr_hi/low when PM_FPGA_LOAD is called

2020-10-11 Thread Simon Glass
On Wed, 7 Oct 2020 at 07:40, Michal Simek wrote: > > Don't know reason but in regular flow addr_hi/low are swapped in ATF. It > means when fpga load is done from EL3 there is a need to swap it for PMUFW > to load bitstream. > > Signed-off-by: Michal Simek > --- > >

Re: [PATCH] Makefile: Fix u-boot-nodtb.bin target

2020-10-11 Thread Simon Glass
On Wed, 7 Oct 2020 at 07:39, Pali Rohár wrote: > > This change fixes two issues when building u-boot-nodtb.bin target: > > * Remove intermediate binary u-boot-nodtb.bin from disk when static_rela > call (which modifies u-boot-nodtb.bin binary) failed. It is required > because previous objcopy

Re: [PATCH 1/1] lib: rsa: superfluous initialization in rsa_verify()

2020-10-11 Thread Simon Glass
On Thu, 8 Oct 2020 at 12:53, Heinrich Schuchardt wrote: > > Remove initialization of ret with unused value. > > Signed-off-by: Heinrich Schuchardt > --- > lib/rsa/rsa-verify.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Simon Glass

Re: [PATCH v2 1/3] cli_hush.c: refactor handle_dollar() to prepare for "run with arguments"

2020-10-11 Thread Simon Glass
On Wed, 7 Oct 2020 at 01:21, Rasmus Villemoes wrote: > > A later patch will add handling of $1 through $9 as well as $#, using > the same SPECIAL_VAR_SYMBOL handling as is currently used for $?. So > move that case to an explicit #ifdef __U_BOOT__ branch, and > consolidate a few of the #ifndef

Re: [PATCH v2 03/22] log: Add additional const qualifier to arrays

2020-10-11 Thread Simon Glass
On Sat, 10 Oct 2020 at 13:43, Sean Anderson wrote: > > Both these arrays and their members are const. Fixes checkpatch complaint. > > Signed-off-by: Sean Anderson > --- > > Changes in v2: > - New > > common/log.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Simon

Re: [PATCH v2 1/2] spl: Use standard FIT entries

2020-10-11 Thread Simon Glass
On Mon, 5 Oct 2020 at 02:53, Michal Simek wrote: > > SPL is creating fit-images DT node when loadables are recorded in selected > configuration. Entries which are created are using entry-point and > load-addr property names. But there shouldn't be a need to use non standard > properties because

Re: [PATCH 05/10] test: Add a test for fdtdec_setup_mem_size_base et al.

2020-10-11 Thread Simon Glass
On Tue, 29 Sep 2020 at 08:18, Sean Anderson wrote: > > This adds a test for the various methods of extracting ram_base and > ram_size from a device tree. > > Signed-off-by: Sean Anderson > --- > > arch/sandbox/dts/test.dts | 12 ++ > configs/sandbox64_defconfig| 2 +- >

Re: [PATCH 15/16] linux/compat.h: Remove redefinition of dev_xxx macros

2020-10-11 Thread Simon Glass
On Sun, 4 Oct 2020 at 19:40, Sean Anderson wrote: > > All users of these functions now include dm/device_compat.h directly. > > Signed-off-by: Sean Anderson > --- > > include/linux/compat.h | 28 > 1 file changed, 28 deletions(-) > Reviewed-by: Simon Glass

Re: [PATCH v2 2/2] spl: fdt: Record load/entry fit-images entries in 64bit format

2020-10-11 Thread Simon Glass
On Mon, 5 Oct 2020 at 02:53, Michal Simek wrote: > > The commit 9f45aeb93727 ("spl: fit: implement fdt_record_loadable") which > introduced fdt_record_loadable() state there spl_fit.c is not 64bit safe. > Based on my tests on Xilinx ZynqMP zcu102 platform there shouldn't be a > problem to record

Re: [PATCH 1/3] riscv: Move Andes PLMT driver to drivers/timer

2020-10-11 Thread Simon Glass
On Sun, 4 Oct 2020 at 14:29, Sean Anderson wrote: > > This is a regular timer driver, and should live with the other timer > drivers. > > Signed-off-by: Sean Anderson > --- > > MAINTAINERS| 1 + > arch/riscv/Kconfig

Re: [PATCH v2 1/2] doc: Document timer API

2020-10-11 Thread Simon Glass
On Wed, 7 Oct 2020 at 12:37, Sean Anderson wrote: > > This adds kerneldocs for . > > I don't know who should maintain doc/api/timer.rst, since the timer > subsystem seems to be maintained by SoC maintainers. MAINTAINERS is left > un-updated for the moment. > > Signed-off-by: Sean Anderson > ---

Re: [PATCH v2 5/5] MAINTAINERS: add i2c driver to ARM MEDIATEK

2020-10-11 Thread Simon Glass
On Wed, 30 Sep 2020 at 02:22, mingming lee wrote: > > From: Mingming Lee > > add Mediatek i2c controller driver to ARM MEDIATEK. > > Signed-off-by: Mingming Lee > --- > MAINTAINERS | 2 ++ > 1 file changed, 2 insertions(+) > Reviewed-by: Simon Glass

Re: [PATCH 02/16] dm: syscon: Set LOG_CATEGORY

2020-10-11 Thread Simon Glass
On Sun, 4 Oct 2020 at 19:40, Sean Anderson wrote: > > We call log_debug, but do not have a category set. > > Signed-off-by: Sean Anderson > --- > > drivers/core/syscon-uclass.c | 2 ++ > 1 file changed, 2 insertions(+) Reviewed-by: Simon Glass

Re: [PATCH 04/10] lib: fdt: Add fdtdec_setup_mem_size_base_highest

2020-10-11 Thread Simon Glass
On Tue, 29 Sep 2020 at 08:18, Sean Anderson wrote: > > This is very similar to fdtdec_setup_mem_size_base_lowest, except we pick > the highest ram bank, instead of the lowest. This is helpful for boards > which use separate but contiguous ram banks, as it leaves the most space > for loading

Re: [PATCH 10/16] tee: optee: Include device_compat.h

2020-10-11 Thread Simon Glass
On Sun, 4 Oct 2020 at 19:40, Sean Anderson wrote: > > Necessary for dev_xxx. > > Signed-off-by: Sean Anderson > --- > > drivers/tee/optee/core.c | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Simon Glass

Re: [PATCH 1/1] video: support colors in truetype console

2020-10-11 Thread Simon Glass
Hi Heinrich, On Wed, 30 Sep 2020 at 16:59, Heinrich Schuchardt wrote: > > In the UEFI context we use colored output. When printing truetype letters > we have to interpolate the pixel color between the foreground and > background color according to the gray value of the font pixel. > > We could

RE: [PATCH 0/2] Refactor AST2500 reset control

2020-10-11 Thread ChiaWei Wang
Hi Tom, Thanks for the review. > -Original Message- > From: Tom Rini > Sent: Thursday, October 8, 2020 11:52 PM > To: ChiaWei Wang > Cc: Ryan Chen ; max...@google.com; > u-boot@lists.denx.de; BMC-SW > Subject: Re: [PATCH 0/2] Refactor AST2500 reset control > > On Thu, Oct 08, 2020 at

Re: [PATCH 00/17] Add support for MMC higher speed modes for TI's am65x, j721e and j7200 platforms

2020-10-11 Thread Lokesh Vutla
Hi Peng, On 08/10/20 10:42 am, Faiz Abbas wrote: > The following patches add support for higher speeds in the SD card and > eMMC for TI's am65x, j721e, j7200 platforms. > > After these patches j721e and j7200 will support ultra high speed while > am65x will support upto high speed modes. > >

[v2 1/2] reset: ast2500: Use SCU for reset control

2020-10-11 Thread Chia-Wei, Wang
The System Control Unit (SCU) controller of Aspeed SoCs provides the reset control for each peripheral. This patch refactors the reset method to leverage the SCU reset control. Thus the driver dependency on watchdog including dedicated WDT API and reset flag encoding can be eliminated. The

[v2 0/2] Refactor AST2500 reset control

2020-10-11 Thread Chia-Wei, Wang
This patch series refactors the reset method to use the System Control Unit (SCU) reset control for simplicity. In addition, the naming of reset driver and Kconfig option is also refined for future consistency. v2: - Rebase patches to fix conflict Chia-Wei, Wang (2): reset: ast2500:

[v2 2/2] cosmetic: reset: ast2500: Rename driver and configs

2020-10-11 Thread Chia-Wei, Wang
1. Rename AST2500 reset driver from ast2500-reset.c to reset-ast2500.c 2. Rename AST2500 reset kconfig option from AST2500_RESET to RESET_AST2500 Signed-off-by: Chia-Wei, Wang --- drivers/reset/Kconfig | 2 +- drivers/reset/{ast2500-reset.c => reset-ast2500.c}

Re: [PATCH v2] log: Allow LOG_DEBUG to always enable log output

2020-10-11 Thread Tom Rini
On Sun, Sep 27, 2020 at 09:55:34AM -0600, Simon Glass wrote: > At present if CONFIG_LOG enabled, putting LOG_DEBUG at the top of a file > (before log.h inclusion) causes _log() to be executed for every log() > call, regardless of the build- or run-time logging level. > > However there is no

Re: [PATCH 2/4] log: Drop #ifdef in log_test

2020-10-11 Thread Tom Rini
On Sat, Sep 12, 2020 at 12:28:48PM -0600, Simon Glass wrote: > This is not needed as the Makefile only builds the file if CONFIG_LOG_TEST > is enabled. Drop it. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 3/4] log: Add a way to enable/disable a log device

2020-10-11 Thread Tom Rini
On Sat, Sep 12, 2020 at 12:28:49PM -0600, Simon Glass wrote: > At present all log devices are enabled by default. Add a function to allow > devices to be disabled or enabled at runtime. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

Re: [PATCH 1/1] doc: remove redundant doc/README.log

2020-10-11 Thread Tom Rini
On Mon, Sep 14, 2020 at 10:12:19AM +0200, Heinrich Schuchardt wrote: > doc/README.log was already moved to doc/develop/logging.rst but has been > recreated by an incorrect merge. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom

Re: [PATCH 4/4] log: Disable the syslog driver by default

2020-10-11 Thread Tom Rini
On Sat, Sep 12, 2020 at 12:28:50PM -0600, Simon Glass wrote: > This driver interferes with other sandbox tests since it causes log output > to be interspersed with "No ethernet found." messages. Disable this driver > by default. > > Enable it for the syslog tests so that they still pass. > >

Re: [PATCH 3/3] log: syslog: Handle errors in net_init

2020-10-11 Thread Tom Rini
On Sat, Sep 12, 2020 at 05:45:44PM -0400, Sean Anderson wrote: > Since the previous patch, net_init now exposes some errors, so check for > them. > > Signed-off-by: Sean Anderson > Reviewed-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 2/3] net: Expose some errors generated in net_init

2020-10-11 Thread Tom Rini
On Sat, Sep 12, 2020 at 05:45:43PM -0400, Sean Anderson wrote: > net_init does not always succeed, and there is no existing mechanism to > discover errors. This patch allows callers of net_init (such as net_init) > to handle errors. The root issue is that eth_get_dev can fail, but > net_init_loop

Re: [PATCH v2 1/2] log: Allow LOG_DEBUG to always enable log output

2020-10-11 Thread Tom Rini
On Sat, Sep 12, 2020 at 11:13:34AM -0600, Simon Glass wrote: > At present if CONFIG_LOG enabled, putting LOG_DEBUG at the top of a file > (before log.h inclusion) causes _log() to be executed for every log() > call, regardless of the build- or run-time logging level. > > However there is no

Re: [PATCH 1/4] log: Add a flag to enable log drivers

2020-10-11 Thread Tom Rini
On Sat, Sep 12, 2020 at 12:28:47PM -0600, Simon Glass wrote: > At present there is no way to disable a log driver. But the syslog driver > causes (attempted) network traffic in sandbox every time a log message > is printed, which is often. > > Add a flag to enable a log driver. Adjust struct

Re: [PATCH v2 2/2] lib: Allow hexdump to be used in SPL

2020-10-11 Thread Tom Rini
On Sat, Sep 12, 2020 at 11:13:35AM -0600, Simon Glass wrote: > It is sometimes useful to output hex dumps in SPL. Add a config option to > allow this. > > Signed-off-by: Simon Glass > Reviewed-by: Stefan Roese Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP

[PATCH] mips: dts: tweak codingstyle for adding new boards

2020-10-11 Thread Du Huanpeng
Signed-off-by: Du Huanpeng --- arch/mips/dts/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/mips/dts/Makefile b/arch/mips/dts/Makefile index dc85901..c07bbc5 100644 --- a/arch/mips/dts/Makefile +++ b/arch/mips/dts/Makefile @@ -1,8 +1,7 @@ #

Re: [PATCH v4 07/27] rockchip: Enable building a SPI ROM image on bob

2020-10-11 Thread Emmanuel Vadot
Hi Simon, On Sun, 19 Jul 2020 13:55:58 -0600 Simon Glass wrote: > Add a simple binman config and enable CONFIG_HAS_ROM so that U-Boot > produces a ROM for bob. > > Signed-off-by: Simon Glass > --- > > Changes in v4: > - Use CONFIG_ROCKCHIP_SPI_IMAGE to select the image > >

[PATCH 1/2] dm: core: Add late driver remove option

2020-10-11 Thread Marek Vasut
Add another flag to the DM core which could be assigned to drivers and which makes those drivers call their remove callbacks last, just before booting OS and after all the other drivers finished with their remove callbacks. This is necessary for things like clock drivers, where the other drivers

[PATCH 2/2] clk: renesas: Tear clock controller down last before booting OS

2020-10-11 Thread Marek Vasut
Once all the other drivers got torn down in preparation for the OS to start, tear down the clock controller last. The clock controller must be torn down last as some of the clock which get turned off might have still been needed during the teardown stage of the other drivers. Signed-off-by: Marek

[PATCH 2/2] clk: renesas: Synchronize Gen2 MSTP teardown tables

2020-10-11 Thread Marek Vasut
Synchronize Gen2 MSTP teardown tables with datasheet Rev.2.00 Feb 01, 2016. This corrects the following bits: - added H2 MSTP3[10] SCIF2 - added H2/M2/E2 MSTP7[29] TCON - removed E2 MSTP5[22] Thermal Sensor - removed E2 MSTP10[31,24:22] SRC0, SRC7:9 Signed-off-by: Marek Vasut Cc:

[PATCH 1/2] clk: renesas: Only ever access documented bits in clock driver teardown

2020-10-11 Thread Marek Vasut
The clock driver used a heavy-handed approach where it turned off all available clocks, while also possibly setting bits which are not documented in the R-Car datasheet. Update the tables so that only the bits which are documented are set or cleared when tearing down the clock driver. Note that

Re: [BUG] mx6cuboxi : broken MMC support

2020-10-11 Thread Fabio Estevam
Hi François, On Sun, Oct 11, 2020 at 12:27 PM François Perrad wrote: > In interactive mode, I found a mismatch with ftdfile. > Now, it works. > And I could update MX6 Cubox on Buildroot. Excellent, just saw your Buildroot fix, thanks!

Re: [BUG] mx6cuboxi : broken MMC support

2020-10-11 Thread François Perrad
Le dim. 11 oct. 2020 à 16:18, Fabio Estevam a écrit : > Hi François, > > On Sun, Oct 11, 2020 at 5:08 AM François Perrad > wrote: > > > After changing the 3 occurrences of "mmc 0:1",the fdt file and kernel > are not correctly loaded. > > (nothing happens after the message "Starting kernel ...")

Re: [BUG] mx6cuboxi : broken MMC support

2020-10-11 Thread Fabio Estevam
Hi François, On Sun, Oct 11, 2020 at 5:08 AM François Perrad wrote: > After changing the 3 occurrences of "mmc 0:1",the fdt file and kernel are not > correctly loaded. > (nothing happens after the message "Starting kernel ...") > > Here the full log : > > U-Boot SPL 2020.07 (Oct 11 2020 -

[PATCH v3 00/27] Add DM support for omap PWM backlight

2020-10-11 Thread Dario Binacchi
The series was born from the need to manage the PWM backlight of the display connected to my beaglebone board. To hit the target, I had to develop drivers for PWM management which in turn relied on drivers for managing timers and clocks, all developed according to the driver model. My intention

[PATCH 2/2] video: backlight: fix pwm's duty cycle calculation

2020-10-11 Thread Dario Binacchi
For levels equal to the maximum value, the duty cycle must be equal to the period. Signed-off-by: Dario Binacchi Reviewed-by: Simon Glass --- drivers/video/pwm_backlight.c | 2 +- test/dm/panel.c | 12 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git

[PATCH 0/2] PWM backlight patches from 'Add DM support for omap PWM backlight' series

2020-10-11 Thread Dario Binacchi
As suggested by Grygorii Strashko I have removed these patches from the 'Add DM support for omap PWM backlight' series and grouped them into this one. One of the two patches has already been reviewed by Simon Glass. Dario Binacchi (2): video: backlight: fix pwm data structure description

[PATCH 1/2] video: backlight: fix pwm data structure description

2020-10-11 Thread Dario Binacchi
The description of the 'max_level' field was incorrectly assigned to the 'min_level' field. Signed-off-by: Dario Binacchi --- drivers/video/pwm_backlight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/pwm_backlight.c b/drivers/video/pwm_backlight.c index

Re: [PATCH v3 05/27] clk: add clk_round_rate()

2020-10-11 Thread Sean Anderson
On 10/11/20 8:13 AM, Dario Binacchi wrote: > It returns the rate which will be set if you ask clk_set_rate() to set > that rate. It provides a way to query exactly what rate you'll get if > you call clk_set_rate() with that same argument. > So essentially, clk_round_rate() and clk_set_rate() are

[PATCH] dm: core: fix typo in device.h

2020-10-11 Thread Dario Binacchi
Replace 'a the' with 'the' in include/dm/device.h. Signed-off-by: Dario Binacchi --- include/dm/device.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/dm/device.h b/include/dm/device.h index ac3b6c1b8a..993c9e6c5a 100644 --- a/include/dm/device.h +++

  1   2   >