Pull request: u-boot-rockchip-20220630

2022-06-30 Thread Kever Yang
://source.denx.de/u-boot/custodians/u-boot-rockchip.git tags/u-boot-rockchip-20220630 for you to fetch changes up to fce1e9bba263fb5e3e589fdc5c2321f733e3de81: rockchip: pinebook-pro: sync PBP dtb to 5.18 (2022-06-29 11:43:05 +0800

Re: [PATCH 0/6] patman: Small fixes plus remove --no-tree from checkpatch for linux

2022-06-30 Thread Brian Norris
On Thu, Jun 30, 2022 at 02:08:03PM -0700, Doug Anderson wrote: > The whole point of this series is really to make it so that when we're > using patman for sending Linux patches that we don't pass "--no-tree" > to checkpatch. While doing that, though, I found a number of bugs > including an

Re: [PATCH 6/6] patman: Take project defaults into account for --help

2022-06-30 Thread Brian Norris
On Thu, Jun 30, 2022 at 02:08:09PM -0700, Doug Anderson wrote: > I'd like it so that when you do "patman send --help" and you're using > Linux that it show it the proper defaults for Linux. > > Signed-off-by: Douglas Anderson > --- > > tools/patman/main.py | 13 + > 1 file changed,

[PATCH 2/2] arm: apple: Add initial Apple M2 support

2022-06-30 Thread Janne Grunau
Apple's M2 SoC very similar to the M1 and can use the same memory map. The keyboard/trackpad on the MacBook Pro (13-inch, M2, 2022) uses "dockchannel" as transport instead of SPI and needs a new driver. USB, NVMe, uart, framebuffer and watchdog are working with the existing drivers.

[PATCH 1/2] iommu: Add M2 support to Apple DART driver

2022-06-30 Thread Janne Grunau
"apple,t8112-dart" uses an incompatible register interface but still offers the same functionality. This DART is found on the M2 and M1 Pro/Max/Ultra SoCs. Signed-off-by: Janne Grunau --- drivers/iommu/apple_dart.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff

Re: [PATCH 4/6] patman: Make most bool arguments BooleanOptionalAction

2022-06-30 Thread Brian Norris
On Thu, Jun 30, 2022 at 02:08:07PM -0700, Doug Anderson wrote: > For boolean arguments it's convenient to be able to specify both the > argument and its opposite on the command line. This is especially > convenient because you can change the default via the settings file > and being able express

[PATCH 6/6] patman: Take project defaults into account for --help

2022-06-30 Thread Douglas Anderson
I'd like it so that when you do "patman send --help" and you're using Linux that it show it the proper defaults for Linux. Signed-off-by: Douglas Anderson --- tools/patman/main.py | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tools/patman/main.py

[PATCH 5/6] patman: By default don't pass "--no-tree" to checkpatch for linux

2022-06-30 Thread Douglas Anderson
When you pass "--no-tree" to checkpatch it disables some extra checks that are important for Linux. Specifically I want checks like: warning: DT compatible string "boogie,woogie" appears un-documented check ./Documentation/devicetree/bindings/ Let's make the default for Linux to _not_ pass

[PATCH 4/6] patman: Make most bool arguments BooleanOptionalAction

2022-06-30 Thread Douglas Anderson
For boolean arguments it's convenient to be able to specify both the argument and its opposite on the command line. This is especially convenient because you can change the default via the settings file and being able express the opposite can be the only way to override things. Luckily python

[PATCH 3/6] patman: Don't look at sys.argv when parsing settings

2022-06-30 Thread Douglas Anderson
If you call the parser and tell it to parse but don't pass arguments in then it will default to looking at sys.argv. This isn't really what was intended and seems to have some side effects. Let's not do it. NOTE: to see some of the side effects, note that this patch breaks "patman -c1" if you

[PATCH 2/6] patman: Fix implicit command inserting

2022-06-30 Thread Douglas Anderson
The logic to insert an implicit command has always been a bit broken but it was masked by another bug fixed in the patch ("patman: Don't look at sys.argv when parsing settings"). Specifically, imagine that you're just calling patman like this: patman -c1 After the parse_known_args() command

[PATCH 1/6] patman: Fix updating argument defaults from settings

2022-06-30 Thread Douglas Anderson
Ever since commit 4600767d294d ("patman: Refactor how the default subcommand works"), when I use patman on the Linux tree I get grumbles about unknown tags. This is because the Linux default making process_tags be False wasn't working anymore. It appears that the comment claiming that the

[PATCH 0/6] patman: Small fixes plus remove --no-tree from checkpatch for linux

2022-06-30 Thread Douglas Anderson
The whole point of this series is really to make it so that when we're using patman for sending Linux patches that we don't pass "--no-tree" to checkpatch. While doing that, though, I found a number of bugs including an explanation about why recent version of patman have been yelling about "tags"

Re: [PATCH v6] board: purism: add the Purism Librem5 phone

2022-06-30 Thread Angus Ainslie
Hi Stefano, On 2022-06-30 12:09, Stefano Babic wrote: Hi Angus, On 30.06.22 19:30, Angus Ainslie wrote: Hi All, Are there any remaining issues with this patch ? Rather yes, it was supposed that issues with dwc3 was already fixed, maybe another patch is missing - can you check this ?

Re: [GIT PULL] versal cadence qspi changes for v2022.10

2022-06-30 Thread Tom Rini
On Thu, Jun 30, 2022 at 03:18:41PM +0200, Michal Simek wrote: > Hi Tom, > > it is more then a month where my colleague sent 2 series for adding support > for > ospi to cadence qspi driver without any reaction from a spi maintainer. > > Here are links to that series >

[PATCH] log: force DEBUG when LOG_DEBUG is activated

2022-06-30 Thread Patrick Delaunay
When CONFIG_LOG is activated, if LOG_DEBUG is defined in a file and DEBUG is not defined the trace with debug() macro are not displayed, because the parameter cond : _DEBUG = 0 is checked in debug_cond(). With this patch the define DEBUG, used to force the trace generated by debug() macro, is

Adding a zynq board

2022-06-30 Thread Christopher Bowman
Greetings, I have a board (Diligent Arty-Z7) for which I have a working U-boot. I’m not sure I’ve done it right but it does work on my board. I’d like to contribute this back and get it in U-boot. I see there is a configuration configs/xilinx_zynq_virt_defconfig which includes

Re: [PATCH] arm: dts: stm32mp1: Drop fastboot and stm32prog trigger gpios on DHCOM

2022-06-30 Thread Marek Vasut
On 6/30/22 16:19, Johann Neuhauser wrote: PA13 and PA14 are used for USB power control and can't be used to enforce fastboot or stm32prog mode by pressing a button. Defining CONFIG_FASTBOOT/CONFIG_CMD_STM32PROG without this patch applied results in fastboot/stm32prog always starting, because

Re: [PATCH] sunxi-nand: fix the PIO instead of DMA implementation

2022-06-30 Thread Markus Hoffrogge
Am Do., 30. Juni 2022 um 16:01 Uhr schrieb andrés ramírez : > > Hi. Markus. > > > "Markus" == Markus Hoffrogge writes: > > Markus> Hi Miquel, hi Maxime, could you probably run a test on a newer > Allwinner SOC - like e.g. > Markus> SUNI8, SUNI9, SUNI50 or newer, since I can test it

Re: [PATCH] sunxi-nand: fix the PIO instead of DMA implementation

2022-06-30 Thread andrés ramírez
Hi. Markus. > "Markus" == Markus Hoffrogge writes: Markus> Hi Miquel, hi Maxime, could you probably run a test on a newer Allwinner SOC - like e.g. Markus> SUNI8, SUNI9, SUNI50 or newer, since I can test it on a SUNI7 (A20) board only? I have a topwise A721 tablet which is sun4i

[PATCH] arm: dts: stm32mp1: Drop fastboot and stm32prog trigger gpios on DHCOM

2022-06-30 Thread Johann Neuhauser
PA13 and PA14 are used for USB power control and can't be used to enforce fastboot or stm32prog mode by pressing a button. Defining CONFIG_FASTBOOT/CONFIG_CMD_STM32PROG without this patch applied results in fastboot/stm32prog always starting, because PA13/PA14 are always low during boot. So drop

RE: [RFC] Proposed location to host the firmware handoff specification.

2022-06-30 Thread Dan Handley
Hi Simon A couple of important points: * TF-A does not aim to replace U-Boot SPL; it aims to reduce fragmentation in secure firmware. The permissive license may not be ideal but from an OSS PoV, but it enables much wider adoption than other licensing schemes. But that's perhaps a philosophical

Re: [PATCH] board_init: Do not reserve MALLOC_F area on stack if non-zero MALLOC_F_ADDR

2022-06-30 Thread Tom Rini
On Thu, Jun 30, 2022 at 04:06:22AM -0600, Simon Glass wrote: > Hi Marek, > > On Sat, 25 Jun 2022 at 11:58, Marek Vasut wrote: > > > > In case the MALLOC_F_ADDR is set to non-zero value, the early malloc area is > > not going to be placed just below stack top, but elsewhere. Do not reserve > >

[GIT PULL] versal cadence qspi changes for v2022.10

2022-06-30 Thread Michal Simek
Hi Tom, it is more then a month where my colleague sent 2 series for adding support for ospi to cadence qspi driver without any reaction from a spi maintainer. Here are links to that series https://lore.kernel.org/all/20220512100535.16364-1-ashok.reddy.s...@xilinx.com/

Re: [PATCH] sunxi-nand: fix the PIO instead of DMA implementation

2022-06-30 Thread Michael Nazzareno Trimarchi
Hi On Thu, Jun 30, 2022 at 9:31 AM Maxime Ripard wrote: > > On Thu, Jun 30, 2022 at 09:13:22AM +0200, Miquel Raynal wrote: > > Hi Markus, > > > > + Maxime, for the record :) > > > > mhoffro...@gmail.com wrote on Thu, 30 Jun 2022 01:26:39 +0200: > > > > > The sunxi nand SPL loader was broken at

Re: [PATCH 8/8] fs: erofs: add unaligned read range handling

2022-06-30 Thread Huang Jianan
在 2022/6/29 19:38, Qu Wenruo 写道: I'm not an expert on erofs, but my quick glance didn't expose any special handling on unaligned range, thus I think the U-boot erofs driver doesn't really support unaligned read range. This patch will add erofs_get_blocksize() so erofs can benefit from the

RE: [Update license 1/1] drivers: clk: Update license for Intel N5X device

2022-06-30 Thread Chee, Tien Fong
> -Original Message- > From: Chong, Teik Heng > Sent: Wednesday, 29 June, 2022 1:52 PM > To: u-boot@lists.denx.de > Cc: Lukasz ; Sean ; Simon > ; Chaplin, Kris ; > Hea, Kok Kiang ; Chee, Tien Fong > ; Lim, Elly Siew Chin > ; Kho, Sin Hui ; > Lokanathan, Raaj ; Maniyam, Dinesh > ; Ng,

[PATCH v3] EFI: Fix ReadBlocks API reading incorrect sector for UCLASS_PARTITION devices

2022-06-30 Thread Paul Barbieri
The requsted partition disk sector incorrectly has the parition start sector added in twice for UCLASS_PARTITION devices. The efi_disk_rw_blocks() routine adds the diskobj->offset to the requested lba. When the device is a UCLASS_PARTITION, the dev_read() or dev_write() routine is called which

Re: [PATCH] sunxi-nand: fix the PIO instead of DMA implementation

2022-06-30 Thread Markus Hoffrogge
Hi Miquel, hi Maxime, could you probably run a test on a newer Allwinner SOC - like e.g. SUNI8, SUNI9, SUNI50 or newer, since I can test it on a SUNI7 (A20) board only? The only aspect that makes me wonder is, that it did work on your hardware before at all. Maybe this is, since that

xilinx uboot gpio ctrl

2022-06-30 Thread 张鹏
Hi, https://github.com/Xilinx/u-boot-xlnx My device is ad9361+7z035,when I tested the led, I found that the gpio pin value cannot be changed. leds(gpio) : 58 59 60 61 (Works no problem in linux system) cmd: gpio s 58 gpio: pin 58 (gpio 58) value is 1 Warning: value of pin is

[PATCH] sunxi-nand: fix the PIO instead of DMA implementation

2022-06-30 Thread Markus Hoffrogge
The sunxi nand SPL loader was broken at least for SUN4I, SUN5I and SUN7I SOCs since the implementation change from DMA to PIO usage - commit 6ddbb1e. Root cause for this issue is the NFC control flag NFC_CTL_RAM_METHOD being set by method nand_apply_config. This flag controls the bus being used

[PATCH v2] EFI: Fix ReadBlocks API reading incorrect sector for UCLASS_PARTITION devices

2022-06-30 Thread Paul Barbieri
The requsted partition disk sector incorrectly has the parition start sector added in twice for UCLASS_PARTITION devices. The efi_disk_rw_blocks() routine adds the diskobj->offset to the requested lba. When the device is a UCLASS_PARTITION, the dev_read() or dev_write() routine is called which

Re: [RFC] Proposed location to host the firmware handoff specification.

2022-06-30 Thread Ilias Apalodimas
Hi all, Thanks for pushing on this On Thu, 30 Jun 2022 at 12:24, Simon Glass wrote: > > Hi Jose, > > I don't think this is correct. TF-A is a project that aims to replace > U-Boot SPL (and perhaps other components) with more closed firmware, > e.g. the permissive license. > > This spec needs to

Re: [PATCH RFC 6/8] fs: sandboxfs: add sandbox_fs_get_blocksize()

2022-06-30 Thread Qu Wenruo
On 2022/6/30 18:06, Simon Glass wrote: On Tue, 28 Jun 2022 at 01:28, Qu Wenruo wrote: This is to make sandboxfs to report blocksize it supports for _fs_read() to handle unaligned read. Unlike all other fses, sandboxfs can handle unaligned read/write without any problem since it's calling

Re: [PATCH 3/4] doc: codingstyle: Remove comment about '//' style comments

2022-06-30 Thread Simon Glass
On Mon, 27 Jun 2022 at 11:17, Tom Rini wrote: > > For some time now we've allowed for '//' style comments, which mirrors > the Linux kernel. So drop this point here. > > Signed-off-by: Tom Rini > --- > doc/develop/codingstyle.rst | 5 - > 1 file changed, 5 deletions(-) Oh I didn't know

Re: [PATCH] board_init: Do not reserve MALLOC_F area on stack if non-zero MALLOC_F_ADDR

2022-06-30 Thread Simon Glass
Hi Marek, On Sat, 25 Jun 2022 at 11:58, Marek Vasut wrote: > > In case the MALLOC_F_ADDR is set to non-zero value, the early malloc area is > not going to be placed just below stack top, but elsewhere. Do not reserve > MALLOC_F bytes in this case, as that wastes stack space and may even cause >

Re: [PATCH v3 06/14] doc: mkimage: Rearrange/remove some options

2022-06-30 Thread Simon Glass
On Sat, 25 Jun 2022 at 11:12, Sean Anderson wrote: > > This moves some options which work in any mode to the general options > section. -p is moved to after -E/-B since those options are related. This > also adds documentation for -h and -V. > > The -F, -l, and -G options are documented twice.

Re: [PATCH v3 09/14] doc: mkimage: Add BUGS section

2022-06-30 Thread Simon Glass
On Sat, 25 Jun 2022 at 11:12, Sean Anderson wrote: > > In leiu of a non-standard HOMEPAGE section, add a BUGS section with a link > to the issue tracker. > > Signed-off-by: Sean Anderson > --- > > (no changes since v1) > > doc/mkimage.1 | 7 +-- > 1 file changed, 5 insertions(+), 2

Re: [PATCH v3 11/14] doc: mkimage: Remove AUTHORS section

2022-06-30 Thread Simon Glass
On Sat, 25 Jun 2022 at 11:12, Sean Anderson wrote: > > Per man-pages(7), "use of an AUTHORS section is strongly discouraged." > Remove it, and instead add some copyright notices and an SPDX. The default > license for U-Boot is GPL2, so that's what I put. The copyright dates are > based on the

Re: [PATCH v3 08/14] doc: mkimage: Edit options for style and consistency

2022-06-30 Thread Simon Glass
On Sat, 25 Jun 2022 at 11:12, Sean Anderson wrote: > > This makes a variety of changes for the options to make them > typographically consistent, clarify their meaning, and fix grammatical (or > other) errors. Many of the changes here are stylistic, though there are a > few fixes. The main

Re: [PATCH v3 05/14] doc: mkimage: Use subsection macro

2022-06-30 Thread Simon Glass
On Sat, 25 Jun 2022 at 11:12, Sean Anderson wrote: > > The options are divided up into several subsections. Use the appropriate > macro. While we're at it, rename the headings to better reflect the > contents of their sections. > > Signed-off-by: Sean Anderson > --- > > Changes in v3: > - Remove

Re: [PATCH v3 04/14] doc: mkimage: Regularize option documentation

2022-06-30 Thread Simon Glass
On Sat, 25 Jun 2022 at 11:12, Sean Anderson wrote: > > Square brackets are commonly used to denote optional parts of a command. > However, all option arguments are mandatory. Remove these brackets. This > also removes some unnecessary quotation marks, and uses hyphens to connect > words in option

Re: [PATCH RFC 1/8] fs: fat: unexport file_fat_read_at()

2022-06-30 Thread Simon Glass
On Tue, 28 Jun 2022 at 01:28, Qu Wenruo wrote: > > That function is only utilized inside fat driver, unexport it. > > Signed-off-by: Qu Wenruo > --- > fs/fat/fat.c | 4 ++-- > include/fat.h | 2 -- > 2 files changed, 2 insertions(+), 4 deletions(-) Reviewed-by: Simon Glass > > diff --git

Re: [PATCH 4/4] doc: Migrate Process wiki page to sphinx

2022-06-30 Thread Simon Glass
On Mon, 27 Jun 2022 at 11:18, Tom Rini wrote: > > Move the current Process wiki page to doc/develop/process.rst. The > changes here are for formatting or slight rewording so that it reads > well when linking to other sphinx documents. > > Signed-off-by: Tom Rini > --- > doc/develop/index.rst

Re: [PATCH RFC 6/8] fs: sandboxfs: add sandbox_fs_get_blocksize()

2022-06-30 Thread Simon Glass
On Tue, 28 Jun 2022 at 01:28, Qu Wenruo wrote: > > This is to make sandboxfs to report blocksize it supports for > _fs_read() to handle unaligned read. > > Unlike all other fses, sandboxfs can handle unaligned read/write without > any problem since it's calling read()/write(), which doesn't

Re: [PATCH 2/4] doc: Migrate DesignPrinciples wiki page to sphinx

2022-06-30 Thread Simon Glass
On Mon, 27 Jun 2022 at 11:18, Tom Rini wrote: > > Move the current DesignPrinciples wiki page to > doc/develop/designprinciples.rst. The changes here are for formatting > or slight rewording so that it reads well when linking to other sphinx > documents. > > Signed-off-by: Tom Rini > --- >

Re: [PATCH 1/4] doc: Migrate CodingStyle wiki page to sphinx

2022-06-30 Thread Simon Glass
On Mon, 27 Jun 2022 at 11:17, Tom Rini wrote: > > Move the current CodingStyle wiki page to doc/develop/codingstyle.rst. > The changes here are for formatting or slight rewording so that it reads > well when linking to other sphinx documents. > > Signed-off-by: Tom Rini > --- >

Re: [PATCH v3 13/14] doc: mkimage: Further document -o and -R

2022-06-30 Thread Simon Glass
On Sat, 25 Jun 2022 at 11:12, Sean Anderson wrote: > > Despite the original description of these options, they are not always > image names, or even files. Some image types use these options to convey > configuration directly. Re-document these options as configuration options. > > Additionally,

Re: [PATCH v3 14/14] doc: Add man page for dumpimage

2022-06-30 Thread Simon Glass
On Sat, 25 Jun 2022 at 11:12, Sean Anderson wrote: > > This tool seems a bit underloved. Unfortunately, it seems to be missing > support for FIT images. Alas... Flat Image Tree Images - I think just FIT is enough > > Add a man page documenting it. The example is taken from commit a804b5ce2d >

Re: [PATCH v3 12/14] mkimage: Add long options

2022-06-30 Thread Simon Glass
On Sat, 25 Jun 2022 at 11:12, Sean Anderson wrote: > > The mkimage command has had many options added over the years. > Unfortunately, we are starting to run out of short options. Recent options > don't have any obvious relation to their meaning (e.g. -o/-g). Fortunately, > long options exist.

Re: [PATCH v3 10/14] doc: mkimage: Add SEE ALSO section

2022-06-30 Thread Simon Glass
On Sat, 25 Jun 2022 at 11:12, Sean Anderson wrote: > > This adds a SEE ALSO section to link to similar man pages, as well as to > the U-Boot documentation. > > Signed-off-by: Sean Anderson > --- > > (no changes since v1) > > doc/mkimage.1 | 8 > 1 file changed, 8 insertions(+) >

Re: [PATCH v3 07/14] doc: mkimage: Use correct capitalization for NAME

2022-06-30 Thread Simon Glass
On Sat, 25 Jun 2022 at 11:12, Sean Anderson wrote: > > The description in NAME should not be capitalized. Fix a grammatical error > as well. > > Signed-off-by: Sean Anderson > --- > > (no changes since v1) > > doc/mkimage.1 | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by:

Re: [PATCH v3 01/14] doc: mkimage: Use standard style for synopsis

2022-06-30 Thread Simon Glass
On Sat, 25 Jun 2022 at 11:12, Sean Anderson wrote: > > The synopsis section is a bit messy. As an example, "uimage file name" is > printed in italics, bold, and roman (depending on the line). This cleans > things up and converts the synopsis section to use standard style. The > .SY/.YS macros set

Re: [PATCH v3 02/14] doc: mkimage: Use empty request instead of blank lines

2022-06-30 Thread Simon Glass
On Sat, 25 Jun 2022 at 11:12, Sean Anderson wrote: > > Blank lines do not have well-defined semantics in fill mode (the default). > Instead, use empty requests (.) where vertical space is necessary for > readability. There are a few places where we use a paragraph instead. > > Signed-off-by: Sean

Re: [PATCH v3 03/14] doc: mkimage: Reformat examples

2022-06-30 Thread Simon Glass
On Sat, 25 Jun 2022 at 11:12, Sean Anderson wrote: > > This puts each example in a new paragraph and uses a hanging indent for > continued lines to increase clarity. We use tabs instead of .in or .RS for > the indent because it renders properly in both man and mandoc (which is > what many common

Re: [PATCH 12/20] arm: Remove PXA architecture support

2022-06-30 Thread Simon Glass
On Sat, 25 Jun 2022 at 09:06, Tom Rini wrote: > > With the last platform for this architecture removed, remove the rest of > the architecture support as well. > > Cc: Marek Vasut > Signed-off-by: Tom Rini > --- > MAINTAINERS |7 - > README

Re: [PATCH] regmap: fix some comments

2022-06-30 Thread Simon Glass
On Fri, 24 Jun 2022 at 09:20, Ralph Siemsen wrote: > > Correct spelling and copy/paste errors in comments. > > Fixes 1c4db59d9b ("regmap: Add support for regmap fields") > > Signed-off-by: Ralph Siemsen > --- > include/regmap.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-)

Re: [PATCH 3/3] doc: environment: Further expand on Image locations and provide example

2022-06-30 Thread Simon Glass
On Mon, 20 Jun 2022 at 08:32, Tom Rini wrote: > > Start by elaborating on what some of our constraints tend to be with > image location values, and document where these external constraints > come from. Provide a new subsection, an example based on the TI ARMv7 > OMAP2PLUS families of chips,

Re: [PATCH 2/3] doc: environment: Expand on fdt_addr, initrd_addr and loadaddr

2022-06-30 Thread Simon Glass
On Mon, 20 Jun 2022 at 08:32, Tom Rini wrote: > > - Explain why fdt_addr and initrd_addr should not be set to disable > relocation normally. > - Provide some advice on the typical loadaddr default value. > > Signed-off-by: Tom Rini > --- > doc/usage/environment.rst | 15 --- > 1

Re: [PATCH 1/3] doc: environment: Drop u-boot_addr_r

2022-06-30 Thread Simon Glass
On Mon, 20 Jun 2022 at 08:31, Tom Rini wrote: > > This variable is never set nor explained why it would be set, drop it. > > Signed-off-by: Tom Rini > --- > doc/usage/environment.rst | 1 - > 1 file changed, 1 deletion(-) Reviewed-by: Simon Glass

Re: [RFC] Proposed location to host the firmware handoff specification.

2022-06-30 Thread Simon Glass
Hi Jose, I don't think this is correct. TF-A is a project that aims to replace U-Boot SPL (and perhaps other components) with more closed firmware, e.g. the permissive license. This spec needs to be in a neutral place, not captive of one project. Given its close relationship to device tree, I

Re: [PATCH] sunxi-nand: fix the PIO instead of DMA implementation

2022-06-30 Thread Maxime Ripard
On Thu, Jun 30, 2022 at 10:04:31AM +0200, Markus Hoffrogge wrote: > Hi Miquel, hi Maxime, > > could you probably run a test on a newer Allwinner SOC - like e.g. > SUNI8, SUNI9, SUNI50 or newer, since I can test it on a SUNI7 (A20) > board only? > > The only aspect that makes me wonder is, that

[PATCH 2/2] net: dwc_eth_qos: cosmetic: reorder include files

2022-06-30 Thread Patrick Delaunay
Reorder include files in the U-Boot expected order. Signed-off-by: Patrick Delaunay --- drivers/net/dwc_eth_qos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dwc_eth_qos.c b/drivers/net/dwc_eth_qos.c index 0c2ba206056..97279839baf 100644 ---

[PATCH 1/2] net: dwc_eth_qos: restore support of not cache-aligned descriptor

2022-06-30 Thread Patrick Delaunay
Solve an issue with AXI_WIDTH_32 on a the 64 bytes cache line platform; in this case the requested descriptor padding length should be 12 but the associated parameter EQOS_DMA_CH0_CONTROL.DSL is limited to 3bits = 7. As the DMA descriptor can't be correctly aligned with the cache line, the

Re: [PATCH v2] EFI: Fix ReadBlocks API reading incorrect sector for UCLASS_PARTITION devices

2022-06-30 Thread Heinrich Schuchardt
On 6/29/22 19:44, Paul Barbieri wrote: The requsted partition disk sector incorrectly has the parition start sector added in twice for UCLASS_PARTITION devices. The efi_disk_rw_blocks() routine adds the diskobj->offset to the requested lba. When the device is a UCLASS_PARTITION, the dev_read()

Re: [PATCH 03/10] stm32mp: add support of STM32MP13x Rev.Y

2022-06-30 Thread Patrick DELAUNAY
Hi, On 6/30/22 10:16, Patrick Delaunay wrote: Add support of STM32MP13x Rev.Y for the Silicon revision REV_ID = 0x1003. Signed-off-by: Patrick Delaunay --- Changes in v2: - fix value of CPU_REV1_2 = 0x1003, because minor version in REV_ID is bitfield at SoC level (0 = 0, 1 = 1, 2 = 3, 3 =

[PATCH v2 09/10] configs: stm32mp13: activate I2C support

2022-06-30 Thread Patrick Delaunay
Activate the I2C driver in STM32MP13x config. Signed-off-by: Patrick Delaunay --- (no changes since v1) configs/stm32mp13_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/stm32mp13_defconfig b/configs/stm32mp13_defconfig index 9b0c5a36b04..f58c73b7c79 100644 ---

[PATCH v2 10/10] configs: stm32mp13: activate some command

2022-06-30 Thread Patrick Delaunay
Activate useful commands in STM32MP13x config, already activated in stm32mp15_defconfig. Signed-off-by: Patrick Delaunay --- (no changes since v1) configs/stm32mp13_defconfig | 16 1 file changed, 16 insertions(+) diff --git a/configs/stm32mp13_defconfig

[PATCH v2 08/10] configs: stm32mp13: activate RTC support

2022-06-30 Thread Patrick Delaunay
Activate the RTC driver in STM32MP13x config. Signed-off-by: Patrick Delaunay --- (no changes since v1) configs/stm32mp13_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/stm32mp13_defconfig b/configs/stm32mp13_defconfig index 3fa1642b2e4..9b0c5a36b04 100644 ---

[PATCH v2 07/10] configs: stm32mp13: activate RNG support

2022-06-30 Thread Patrick Delaunay
Activate the RNG driver provided by OP-TEE. Signed-off-by: Patrick Delaunay --- (no changes since v1) configs/stm32mp13_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/stm32mp13_defconfig b/configs/stm32mp13_defconfig index b5dcec78f51..3fa1642b2e4 100644 ---

[PATCH v2 06/10] configs: stm32mp13: Add support for baudrates higher than 115200

2022-06-30 Thread Patrick Delaunay
On STM32MP13x STMicroelectronics boards, the UART can reliably go up to 400 bauds when connected to the external ST-LINKV3. This patch adds the support of higher baudrates on STMicroelectronics STM32MP13x boards with ST-LINKV3. Signed-off-by: Patrick Delaunay --- (no changes since v1)

[PATCH v2 05/10] ARM: dts: stm32mp13: activate led on STM32MP13F-DK

2022-06-30 Thread Patrick Delaunay
Activate the led managed in stm32mp1 board for U-Boot indication in STM32MP13F-DK device tree. Signed-off-by: Patrick Delaunay --- (no changes since v1) arch/arm/dts/stm32mp135f-dk-u-boot.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCH v2 04/10] ARM: dts: stm32mp13: alignment with v5.19

2022-06-30 Thread Patrick Delaunay
Device tree alignment with Linux kernel v5.19-rc1 with: - ARM: dts: stm32: add UserPA13 button on stm32mp135f-dk - ARM: dts: stm32: add blue led (Linux heartbeat) on stm32mp135f-dk - ARM: dts: stm32: add EXTI interrupt-parent to pinctrl node on stm32mp131 - ARM: dts: stm32: enable RTC support on

[PATCH v2 03/10] stm32mp: add support of STM32MP13x Rev.Y

2022-06-30 Thread Patrick Delaunay
Add support of STM32MP13x Rev.Y for the Silicon revision REV_ID = 0x1003. Signed-off-by: Patrick Delaunay --- Changes in v2: - fix value of CPU_REV1_2 = 0x1003, because minor version in REV_ID is bitfield at SoC level (0 = 0, 1 = 1, 2 = 3, 3 = 7, 4 =F, )

[PATCH v2 02/10] rng: stm32mp1_rng: add conditional reset feature for STM32MP13x

2022-06-30 Thread Patrick Delaunay
From: Lionel Debieve New IP adds a conditional reset that impact the clock error management. It is now linked to a new compatible. Signed-off-by: Lionel Debieve Signed-off-by: Patrick Delaunay --- (no changes since v1) drivers/rng/stm32mp1_rng.c | 61 +-

[PATCH v2 01/10] i2c: stm32: add support for the st,stm32mp13 SOC

2022-06-30 Thread Patrick Delaunay
The stm32mp13 soc differs from the stm32mp15 in terms of clear register offset for controlling the FMP (Fast Mode Plus). Signed-off-by: Patrick Delaunay --- (no changes since v1) drivers/i2c/stm32f7_i2c.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/i2c/stm32f7_i2c.c

[PATCH 08/10] configs: stm32mp13: activate RTC support

2022-06-30 Thread Patrick Delaunay
Activate the RTC driver in STM32MP13x config. Signed-off-by: Patrick Delaunay --- (no changes since v1) configs/stm32mp13_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/stm32mp13_defconfig b/configs/stm32mp13_defconfig index 3fa1642b2e4..9b0c5a36b04 100644 ---

[PATCH 06/10] configs: stm32mp13: Add support for baudrates higher than 115200

2022-06-30 Thread Patrick Delaunay
On STM32MP13x STMicroelectronics boards, the UART can reliably go up to 400 bauds when connected to the external ST-LINKV3. This patch adds the support of higher baudrates on STMicroelectronics STM32MP13x boards with ST-LINKV3. Signed-off-by: Patrick Delaunay --- (no changes since v1)

[PATCH 10/10] configs: stm32mp13: activate some command

2022-06-30 Thread Patrick Delaunay
Activate useful commands in STM32MP13x config, already activated in stm32mp15_defconfig. Signed-off-by: Patrick Delaunay --- (no changes since v1) configs/stm32mp13_defconfig | 16 1 file changed, 16 insertions(+) diff --git a/configs/stm32mp13_defconfig

[PATCH 07/10] configs: stm32mp13: activate RNG support

2022-06-30 Thread Patrick Delaunay
Activate the RNG driver provided by OP-TEE. Signed-off-by: Patrick Delaunay --- (no changes since v1) configs/stm32mp13_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/stm32mp13_defconfig b/configs/stm32mp13_defconfig index b5dcec78f51..3fa1642b2e4 100644 ---

[PATCH 09/10] configs: stm32mp13: activate I2C support

2022-06-30 Thread Patrick Delaunay
Activate the I2C driver in STM32MP13x config. Signed-off-by: Patrick Delaunay --- (no changes since v1) configs/stm32mp13_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/stm32mp13_defconfig b/configs/stm32mp13_defconfig index 9b0c5a36b04..f58c73b7c79 100644 ---

[PATCH 01/10] i2c: stm32: add support for the st,stm32mp13 SOC

2022-06-30 Thread Patrick Delaunay
The stm32mp13 soc differs from the stm32mp15 in terms of clear register offset for controlling the FMP (Fast Mode Plus). Signed-off-by: Patrick Delaunay --- (no changes since v1) drivers/i2c/stm32f7_i2c.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/i2c/stm32f7_i2c.c

[PATCH 02/10] rng: stm32mp1_rng: add conditional reset feature for STM32MP13x

2022-06-30 Thread Patrick Delaunay
From: Lionel Debieve New IP adds a conditional reset that impact the clock error management. It is now linked to a new compatible. Signed-off-by: Lionel Debieve Signed-off-by: Patrick Delaunay --- (no changes since v1) drivers/rng/stm32mp1_rng.c | 61 +-

[PATCH 04/10] ARM: dts: stm32mp13: alignment with v5.19

2022-06-30 Thread Patrick Delaunay
Device tree alignment with Linux kernel v5.19-rc1 with: - ARM: dts: stm32: add UserPA13 button on stm32mp135f-dk - ARM: dts: stm32: add blue led (Linux heartbeat) on stm32mp135f-dk - ARM: dts: stm32: add EXTI interrupt-parent to pinctrl node on stm32mp131 - ARM: dts: stm32: enable RTC support on

[PATCH 03/10] stm32mp: add support of STM32MP13x Rev.Y

2022-06-30 Thread Patrick Delaunay
Add support of STM32MP13x Rev.Y for the Silicon revision REV_ID = 0x1003. Signed-off-by: Patrick Delaunay --- Changes in v2: - fix value of CPU_REV1_2 = 0x1003, because minor version in REV_ID is bitfield at SoC level (0 = 0, 1 = 1, 2 = 3, 3 = 7, 4 =F, )

[PATCH 05/10] ARM: dts: stm32mp13: activate led on STM32MP13F-DK

2022-06-30 Thread Patrick Delaunay
Activate the led managed in stm32mp1 board for U-Boot indication in STM32MP13F-DK device tree. Signed-off-by: Patrick Delaunay --- (no changes since v1) arch/arm/dts/stm32mp135f-dk-u-boot.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCH v2 3/3] mmc: stm32_sdmmc2: introduce of_to_plat ops

2022-06-30 Thread Patrick Delaunay
Add the uclass ops of_to_plat to parse the device tree properties to respect the expected sequence by the driver model. Signed-off-by: Patrick Delaunay --- (no changes since v1) drivers/mmc/stm32_sdmmc2.c | 95 -- 1 file changed, 50 insertions(+), 45

[PATCH v2 1/3] mmc: stm32_sdmmc2: cosmetic: rename stm32_sdmmc_bind

2022-06-30 Thread Patrick Delaunay
Rename stm32_sdmmc_bind to stm32_sdmmc2_bind as all other functions in SDMMCv2 driver series-changes: 2 - fix typo in commit message (/oter function/other functions/) Signed-off-by: Patrick Delaunay --- (no changes since v1) drivers/mmc/stm32_sdmmc2.c | 4 ++-- 1 file changed, 2

[PATCH v2 2/3] mmc: stm32_sdmmc2: remove privdata

2022-06-30 Thread Patrick Delaunay
All the elements of privdata are static and build from device tree, they are moved in platdata to prepare the support of ops of_to_plat. Signed-off-by: Patrick Delaunay --- (no changes since v1) drivers/mmc/stm32_sdmmc2.c | 145 ++--- 1 file changed, 70

Re: [PATCH] MAINTAINERS: Add Dario and Michael as nand maintainers

2022-06-30 Thread Frieder Schrempf
Am 29.06.22 um 17:57 schrieb Michael Trimarchi: > Both of us are working on Nand subsystem on several architectures and > we have boards and projects to improve the subsystem in uboot. The idea > is to garantee quick feedback on patches sent on mailing list and most > of the time the possibilities

Re: [PATCH] sunxi-nand: fix the PIO instead of DMA implementation

2022-06-30 Thread Maxime Ripard
On Thu, Jun 30, 2022 at 09:13:22AM +0200, Miquel Raynal wrote: > Hi Markus, > > + Maxime, for the record :) > > mhoffro...@gmail.com wrote on Thu, 30 Jun 2022 01:26:39 +0200: > > > The sunxi nand SPL loader was broken at least for SUN4I, > > SUN5I and SUN7I SOCs since the implementation change

Re: [PATCH] sunxi-nand: fix the PIO instead of DMA implementation

2022-06-30 Thread Miquel Raynal
Hi Markus, + Maxime, for the record :) mhoffro...@gmail.com wrote on Thu, 30 Jun 2022 01:26:39 +0200: > The sunxi nand SPL loader was broken at least for SUN4I, > SUN5I and SUN7I SOCs since the implementation change > from DMA to PIO usage - commit 6ddbb1e. > > Root cause for this issue is the

Re: [PATCH] distroboot: Fix ubifs

2022-06-30 Thread Alexander Dahl
Hello, Am Mittwoch, 29. Juni 2022, 15:55:27 CEST schrieb Pali Rohár: > Hello! > > On Wednesday 29 June 2022 15:36:57 Alexander Dahl wrote: > > Hello Pali, > > > > had a look at this patch, and have some questions. See below. > > > > Am Dienstag, 31. Mai 2022, 10:32:36 CEST schrieb Pali Rohár: