[PATCH v6 7/7] board: htc: endeavoru: add One X support

2023-06-08 Thread Svyatoslav Ryhel
The HTC One X is a touchscreen-based, slate-sized smartphone designed and manufactured by HTC that runs the Android operating system. The One X features a 4.7" display, an Nvidia Tegra 3 quad-core chip, 1 GB of RAM and non-extendable 32 GB of internal storage. UART-A is default debug port.

[PATCH v6 4/7] board: asus: transformer: add ASUS Transformer T30 family support

2023-06-08 Thread Svyatoslav Ryhel
The ASUS Transformer T30 family are 2-in-1 detachable tablets and AiO developed by ASUS that run the Android operating system (TF600T runs Windows RT and P1801-T runs Android and Windows). The T30 Transformers feature a 10.1-inch display (apart P1801-T), an Nvidia Tegra 3 quad-core chip, 1/2 GB of

[PATCH v6 6/7] board: lg: x3: add Optimus 4X HD and Optimus Vu support

2023-06-08 Thread Svyatoslav Ryhel
LG X3 is a development board based on Nvidia Tegra 3 SoC on base of which Optimus 4X HD and Optimus Vu were created. Both smartphones feature a 4.7" and 5" panels respectively, an Nvidia Tegra 3 quad-core chip, 1 GB of RAM and 16/32 GB of internal storage. Optimux 4X HD additionally has a micro SD

[PATCH v6 5/7] board: asus: grouper: add Google Nexus 7 (2012) support

2023-06-08 Thread Svyatoslav Ryhel
Nexus 7 is a mini tablet computer co-developed by Google and Asus that runs the Android operating system. The Nexus 7 features a 7" display, an Nvidia Tegra 3 quad-core chip, 1 GB of RAM and 8/16 GB of internal storage. This patch brings support for all 3 known ASUS/Google devices: - Nexus 7

[PATCH v6 3/7] ARM: tegra: add SoC UID calculation function

2023-06-08 Thread Svyatoslav Ryhel
This is a small tool for calculation of SoC UID based on the same Linux function. It can be further used for generation of device unique data like mac address or exposing it as serial number. Tested-by: Andreas Westman Dorcsak # ASUS Grouper E1565 Tested-by: Svyatoslav Ryhel # LG P895 T30

[PATCH v6 2/7] configs: tegra-common-post: make PXE and DHCP boot targets optional

2023-06-08 Thread Svyatoslav Ryhel
From: Jonas Schwöbel Disabling the network related features in defconfig causes build to fail so make them optional. Tested-by: Andreas Westman Dorcsak # ASUS Grouper E1565 Tested-by: Svyatoslav Ryhel # LG P895 T30 Signed-off-by: Jonas Schwöbel Signed-off-by: Svyatoslav Ryhel ---

[PATCH v6 0/7] Tegra: add ASUS/Google Nexus 7 (2012) support

2023-06-08 Thread Svyatoslav Ryhel
This patchset adds support for native use of U-Boot on: - ASUS T30 Transformers (7 devices, all models); - ASUS/Google Nexus 7 (2012), both grouper and tilapia - LG Optimus 4X HD (P880) and Optimus Vu (P895) - HTC One X (endeavoru) as a replacement for the vendor bootloader. Current commits are

[PATCH v6 1/7] configs: tegra-common-post: add GPIO keyboard as STDIN device

2023-06-08 Thread Svyatoslav Ryhel
GPIO keyboard is used on many newly upstreamed devices. Tested-by: Andreas Westman Dorcsak # ASUS Grouper E1565 Tested-by: Svyatoslav Ryhel # LG P895 T30 Signed-off-by: Svyatoslav Ryhel --- include/configs/tegra-common-post.h | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff

Re: [PATCH] phy: phy-imx8mq-usb: add vbus regulator support

2023-06-08 Thread Adam Ford
On Thu, Jun 8, 2023 at 8:29 PM Tim Harvey wrote: > > Add support for enabling and disabling vbus-supply regulator found > on several imx8mp boards in the usb3_phy0 and usb3_phy1 nodes. > > Without this I suspect U-Boot usb does not work on the following: > - imx8mp-beacon-kit The Host-only port

[PATCH] phy: phy-imx8mq-usb: add vbus regulator support

2023-06-08 Thread Tim Harvey
Add support for enabling and disabling vbus-supply regulator found on several imx8mp boards in the usb3_phy0 and usb3_phy1 nodes. Without this I suspect U-Boot usb does not work on the following: - imx8mp-beacon-kit - imx8mp-msc-sm2s - imx8mp-verdin-wifi-dev Signed-off-by: Tim Harvey ---

Re: [PATCH v2] usb: musb-new: sunxi: remove unused define

2023-06-08 Thread Marek Vasut
On 6/8/23 20:45, Sam Edwards wrote: This is a remnant from when the USB controller driver managed the reset signal itself. A patch from the very end of 2018 changed this driver to delegate reset (and clock) management to the proper control unit driver, but left this unused define behind.

Re: [PATCH] cmd: usb: Prevent reset in usb tree/info command

2023-06-08 Thread Marek Vasut
On 6/8/23 09:39, Xavier Drudis Ferran wrote: El Thu, Jun 08, 2023 at 12:05:18AM +0200, Marek Vasut deia: On 6/5/23 17:20, Xavier Drudis Ferran wrote: Add a check to avoid dommed (by null pointer dereference) recursive call, not only for UCLASS_BLK. When booting my Rock Pi 4B+ with a USB mass

Re: rk3328 efuse return just 0

2023-06-08 Thread Jonas Karlman
Hi Marek, On 2023-06-08 15:06, Belisko Marek wrote: > Hi, > > I'm using tip of actual master and with this small patches: > --- a/configs/rock-pi-e-rk3328_defconfig > +++ b/configs/rock-pi-e-rk3328_defconfig > @@ -73,6 +73,8 @@ CONFIG_FASTBOOT_BUF_ADDR=0x800800 >

[PULL] u-boot-usb/master

2023-06-08 Thread Marek Vasut
The following changes since commit 0a8a4b86422650d6955a2382796089735453902d: Merge tag 'u-boot-amlogic-20230607' of https://source.denx.de/u-boot/custodians/u-boot-amlogic (2023-06-07 12:17:06 -0400) are available in the Git repository at: git://source.denx.de/u-boot-usb.git master for

Re: [PATCH v2 8/8] configs: am62x_evm_*: Enable USB and DFU support

2023-06-08 Thread Marcel Ziswiler
Hi Sjoerd Thanks for this series. On Thu, 2023-04-06 at 20:55 +0200, Sjoerd Simons wrote: > Enable USB host as well as USB gadget and DFU support for a53; For the > r5 due to the smaller available size create a new config just for > DFU support > > Signed-off-by: Sjoerd Simons With the

[PULL] u-boot-sh/master_soc/fixes

2023-06-08 Thread Marek Vasut
The following changes since commit 661332a0744dad6a1a4bfbbdea2a4e5ae9835e52: Merge https://source.denx.de/u-boot/custodians/u-boot-sunxi (2023-06-07 22:05:16 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-sh.git master_soc/fixes for you to

[PULL] u-boot-sh/next_soc/v3x

2023-06-08 Thread Marek Vasut
The following changes since commit 3aa4fb12f4abd31bce7fe6294dd47fd0966a791a: Merge tag 'efi-next-20230608' of https://source.denx.de/u-boot/custodians/u-boot-efi into next (2023-06-08 11:19:27 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot

[PATCH v2 2/2] usb: musb-new: sunxi: make compatible with UDC/DM gadget model

2023-06-08 Thread Sam Edwards
Since many sunxi boards do not implement a `board_usb_init`, it's better if we just make the sunxi USB driver compatible with the DM gadget model, as many other musb-new variants already are. This change has been verified working on a T113s. Signed-off-by: Sam Edwards ---

[PATCH v2 1/2] usb: musb-new: sunxi: remove unwanted printfs

2023-06-08 Thread Sam Edwards
Per Marek's feedback, unconditional printfs in the probe function of this USB controller driver should be removed. This patch also slightly tidies up the return path, in preparation for DM support. Signed-off-by: Sam Edwards Cc: Marek Vasut --- drivers/usb/musb-new/sunxi.c | 8 ++-- 1

[PATCH v2 0/2] sunxi, usb: UDC/DM gadget model support

2023-06-08 Thread Sam Edwards
Happy Thursday, U-Boot list! Here is attempt 2 at making this USB controller driver compatible with DM's gadget model, following what most of the other musb variants do. v2 removes the unwanted printfs in the probe func, per feedback from Marek. I received no other feedback against v1 of this

Re: [PATCH v1] dt-bindings: riscv: deprecate riscv,isa

2023-06-08 Thread Conor Dooley
chanically, the conversion of the patch isn't difficult, but I'll still > > wait for Rob to come back before sending a v2. But that v2 will more > > than likely implement your suggestion. > > I haven't read the whole thread, but the initial proposal looks okay to > me. > > A

Re: [PATCH v1] dt-bindings: riscv: deprecate riscv,isa

2023-06-08 Thread Rob Herring
On Tue, May 30, 2023 at 03:12:12PM +0100, Conor Dooley wrote: > On Thu, May 18, 2023 at 10:42:34PM +0100, Conor Dooley wrote: > > On Thu, May 18, 2023 at 02:30:53PM -0400, Sean Anderson wrote: > > > > > > > Why not just have something like > > > > > > mycpu { > > > ... > > > riscv,isa { > >

Re: [PATCH v5 4/7] board: asus: transformer: add ASUS Transformer T30 family support

2023-06-08 Thread Svyatoslav Ryhel
чт, 8 черв. 2023 р. о 20:09 Tom Rini пише: > > On Thu, Jun 08, 2023 at 07:54:54PM +0300, Svyatoslav Ryhel wrote: > > чт, 8 черв. 2023 р. о 19:40 Tom Rini пише: > > > > > > On Thu, Jun 08, 2023 at 06:11:57PM +0300, Svyatoslav Ryhel wrote: > > > > вт, 6 черв. 2023 р. о 22:47 Tom Rini пише: > > >

Re: [PATCH] usb: musb-new: sunxi: remove unused define

2023-06-08 Thread Sam Edwards
Hi Marek, Please add missing commit message and send V2. Ah, apologies! I had (mistakenly) believed that the summary line would be a sufficient commit message for something so trivial. Instead I did a little research into how this got here and wrote a quick explanation of why it's unused.

[PATCH v2] usb: musb-new: sunxi: remove unused define

2023-06-08 Thread Sam Edwards
This is a remnant from when the USB controller driver managed the reset signal itself. A patch from the very end of 2018 changed this driver to delegate reset (and clock) management to the proper control unit driver, but left this unused define behind. Signed-off-by: Sam Edwards Reviewed-by:

[RFC PATCH v9 10/23] global_data.h: add GD_FLG_HUSH_OLD_PARSER flag

2023-06-08 Thread Francis Laniel
This flag is used to indicate we are using the hush parser. Reviewed-by: Simon Glass Signed-off-by: Francis Laniel --- common/cli.c | 2 ++ include/asm-generic/global_data.h | 4 2 files changed, 6 insertions(+) diff --git a/common/cli.c b/common/cli.c index

[RFC PATCH v9 21/23] test: hush: Fix loop tests for hush 2021

2023-06-08 Thread Francis Laniel
Modifies return code got from while loop as hush 2021 always returns 0 from while loop. Reviewed-by: Simon Glass Signed-off-by: Francis Laniel --- test/hush/loop.c | 34 ++ 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/test/hush/loop.c

[RFC PATCH v9 23/23] DO NOT MERGE: only to make CI happy

2023-06-08 Thread Francis Laniel
This commit set CONFIG_HUSH_PARSER_2021 as the default to trigger the CI with this parser. Nonetheless, the keymile (i.e. VENDOR_KM) board family is not compatible with new 2021 hush parser. Indeed, This boards used set_local_var() to store some variables as local shell. They then used

[RFC PATCH v9 22/23] cli: hush_2021: Add upstream commits up to 25th May 2023.

2023-06-08 Thread Francis Laniel
This commit adds the following hush busybox upstream commits: b5be8da350b5 ("hush: make "false" built-in") 6824298ab4d3 ("hush: fix ELIF cmd1;cmd2 THEN ... not executing cmd2, closes 15571") 3a7f00eadcf4 ("hush: add comment about abort on syntax error %{^}") acae889dd972 ("ash,hush: tab

[RFC PATCH v9 20/23] cli: hush_2021: Enable loops

2023-06-08 Thread Francis Laniel
Enables the use of for, while and until loops for command line as well as with run_command(). Signed-off-by: Francis Laniel Reviewed-by: Simon Glass --- common/cli_hush_2021.c | 1 + common/cli_hush_upstream.c | 15 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff

[RFC PATCH v9 19/23] cli: hush_2021: Enable if keyword

2023-06-08 Thread Francis Laniel
Adds support for "if then else" construct both for command line interface and through run_command(). Signed-off-by: Francis Laniel Reviewed-by: Simon Glass --- common/cli_hush_2021.c | 11 +++ common/cli_hush_upstream.c | 12 2 files changed, 15 insertions(+), 8

[RFC PATCH v9 16/23] test: hush: Fix instructions list tests for hush 2021

2023-06-08 Thread Francis Laniel
Modifies the expected result for hush 2021. Indeed, there were bugs in actual U-Boot hush which were fixed in upstream Busybox. As hush 2021 is based on upstream Busybox, these bugs no longer exist. Reviewed-by: Simon Glass Signed-off-by: Francis Laniel --- test/hush/list.c | 69

[RFC PATCH v9 13/23] cli: hush_2021: Enable variables expansion for hush 2021

2023-06-08 Thread Francis Laniel
Enables variables expansion for hush 2021, both for local and environment variables. So the following commands: foo=bar echo $foo setenv bar foo echo $bar leads to "bar" and "foo" being printed on console output. Signed-off-by: Francis Laniel Reviewed-by: Simon Glass --- common/cli_hush_2021.c

[RFC PATCH v9 17/23] test: hush: Fix variable expansion tests for hush 2021

2023-06-08 Thread Francis Laniel
Modifies the expected result for hush 2021. Indeed, there were bugs in actual U-Boot hush which were fixed in upstream Busybox. As hush 2021 is based on upstream Busybox, these bugs no longer exist. Reviewed-by: Simon Glass Signed-off-by: Francis Laniel --- test/hush/dollar.c | 79

[RFC PATCH v9 15/23] cli: add hush 2021 as parser for run_command*()

2023-06-08 Thread Francis Laniel
Enables using, in code, hush 2021 as parser for run_command function family. It also enables the command run to be used by CLI user of hush 2021. Reviewed-by: Simon Glass Signed-off-by: Francis Laniel --- common/cli.c | 63 --

[RFC PATCH v9 18/23] cli: hush_2021: Enable using < and > as string compare operators

2023-06-08 Thread Francis Laniel
In Busybox hush, '<' and '>' are used as redirection operators. For example, cat foo > bar will write content of file foo inside file bar. In U-Boot, we do not have file system, so we can hardly redirect command output inside a file. But, in actual U-Boot hush, these operators ('<' and '>') are

[RFC PATCH v9 14/23] cli: hush_2021: Add functions to be called from run_command()

2023-06-08 Thread Francis Laniel
run_command() is called internally by the command run and it can also be called directly from U-Boot code, e.g. to do unit tests. This commit adds this path to go to hush 2021. Signed-off-by: Francis Laniel Reviewed-by: Simon Glass --- common/cli_hush_upstream.c | 66

[RFC PATCH v9 12/23] cli: Enables using hush 2021 parser as command line parser

2023-06-08 Thread Francis Laniel
If one defines HUSH_2021_PARSER, it is then possible to use 2021 parser with: => cli get old => cli set 2021 => cli get 2021 Reviewed-by: Simon Glass Signed-off-by: Francis Laniel --- cmd/Kconfig | 8 + cmd/cli.c | 7 - common/Makefile

[RFC PATCH v9 11/23] cmd: Add new cli command

2023-06-08 Thread Francis Laniel
This command can be used to print the current parser with 'cli print'. It can also be used to set the current parser with 'cli set'. For the moment, only one value is valid for set: old. Signed-off-by: Francis Laniel --- cmd/Makefile | 2 + cmd/cli.c | 120

[RFC PATCH v9 09/23] cli: Add menu for hush parser

2023-06-08 Thread Francis Laniel
For the moment, the menu contains only entry: HUSH_OLD_PARSER which is the default. The goal is to prepare the field to add a new hush parser which guarantees actual behavior is still correct. Reviewed-by: Simon Glass Signed-off-by: Francis Laniel --- cmd/Kconfig | 13 +

[RFC PATCH v9 08/23] cli: Port Busybox 2021 hush to U-Boot

2023-06-08 Thread Francis Laniel
Adds new file cli_hush_2021.c, it is a copy of Busybox hush file as it was of time to commit 37460f5da. This commit modifies Busybox hush to not compile some part specific to Busybox and adds some code needed by U-Boot. The modifications consists mainly on adding code #if(n)def guards. For the

[RFC PATCH v9 06/23] test: hush: Test hush loops

2023-06-08 Thread Francis Laniel
The added tests verifies correct behavior of for, while and until loops. Signed-off-by: Francis Laniel Reviewed-by: Simon Glass --- test/hush/Makefile | 1 + test/hush/loop.c | 65 ++ 2 files changed, 66 insertions(+) create mode 100644

[RFC PATCH v9 05/23] test: hush: Test hush commands list

2023-06-08 Thread Francis Laniel
Verifies behavior of commands separated by ';', '&&' and '||'. Signed-off-by: Francis Laniel Reviewed-by: Simon Glass --- test/hush/Makefile | 1 + test/hush/list.c | 79 ++ 2 files changed, 80 insertions(+) create mode 100644 test/hush/list.c

[RFC PATCH v9 04/23] test: hush: Test hush variable expansion

2023-06-08 Thread Francis Laniel
Verifies shell variables are replaced by their values. Reviewed-by: Simon Glass Signed-off-by: Francis Laniel --- test/hush/Makefile | 1 + test/hush/dollar.c | 167 +++ test/py/tests/test_ut.py | 8 +- 3 files changed, 175 insertions(+), 1

[RFC PATCH v9 03/23] test/py: hush_if_test: Remove the test file

2023-06-08 Thread Francis Laniel
5804ebfeb1ce ("test: hush: Test hush if/else") translated this test to a C test, so this python file is no more needed. Signed-off-by: Francis Laniel Reviewed-by: Simon Glass --- test/py/tests/test_hush_if_test.py | 197 - 1 file changed, 197 deletions(-) delete

[RFC PATCH v9 02/23] test: hush: Test hush if/else

2023-06-08 Thread Francis Laniel
As asked in commit 9c6bf1715f6a ("test/py: hush_if_test: Add tests to cover octal/hex values"), this commit translates test_hush_if_test.py to a C test. Signed-off-by: Francis Laniel Reviewed-by: Simon Glass --- test/hush/Makefile | 1 + test/hush/if.c | 316

[RFC PATCH v9 01/23] test: Add framework to test hush behavior

2023-06-08 Thread Francis Laniel
Introduce a new subcommand to ut: ut hush. For the moment, this command does nothing, future commits will add tests which will be run on command call. Note that CONFIG_HUSH_PARSER must be defined to compile this new subcommand. Signed-off-by: Francis Laniel Reviewed-by: Simon Glass ---

[RFC PATCH v9 00/23] Modernize U-Boot shell

2023-06-08 Thread Francis Laniel
Hi. During 2021 summer, Sean Anderson wrote a contribution to add a new shell, based on LIL, to U-Boot [1, 2]. While one of the goals of this contribution was to address the fact actual U-Boot shell, which is based on Busybox hush, is old there was a discussion about adding a new shell versus

rk3328 efuse return just 0

2023-06-08 Thread Belisko Marek
Hi, I'm using tip of actual master and with this small patches: --- a/configs/rock-pi-e-rk3328_defconfig +++ b/configs/rock-pi-e-rk3328_defconfig @@ -73,6 +73,8 @@ CONFIG_FASTBOOT_BUF_ADDR=0x800800 CONFIG_FASTBOOT_CMD_OEM_FORMAT=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y +CONFIG_MISC=y

Re: [PATCH v2] dt-bindings: riscv: deprecate riscv,isa

2023-06-08 Thread Conor Dooley
On Thu, Jun 08, 2023 at 11:49:08AM -0600, Rob Herring wrote: > On Thu, 08 Jun 2023 17:54:05 +0100, Conor Dooley wrote: > > As a result of implementing Sean's suggestion, I believe I need to add > > riscv,isa-extensions as an exception to the rules preventing vendor > > properties being of object

Re: [lwip-devel] [RFC PATCH 0/5] LWIP stack integration

2023-06-08 Thread Ilias Apalodimas
Thanks Maxim, On Thu, 8 Jun 2023 at 13:14, Maxim Uvarov wrote: > > Ilias asked to make more clear results to compare the original stack and LWIP > stack. So the difference between the current U-boot stack and the LWIP stack > with 3 network commands is: > a) 18Kb - ls -lh size > b) 15Kb -

Re: [u-boot/next] Pull request efi-next-20230608

2023-06-08 Thread Tom Rini
are available in the Git repository at: > > https://source.denx.de/u-boot/custodians/u-boot-efi.git > tags/efi-next-20230608 > > for you to fetch changes up to b6f954e5b09545d18a150e4a4431a648e41ff287: > > test/py: efi_capsule: test for FMP versioning (2023-06-08 09:20:36 +0

Re: Pull request: u-boot-sunxi/master for 2023.07

2023-06-08 Thread Tom Rini
On Thu, Jun 08, 2023 at 01:30:36AM +0100, Andre Przywara wrote: > Hi Tom, > > a small late pull request for Allwinner. The main feature is just a DT > update, matching the v6.4 Linux kernel DT files. This also enables a board > (LCTech Pi F1C200s) which got its .dts file merged into Linux. Plus

Re: [PATCH v2] dt-bindings: riscv: deprecate riscv,isa

2023-06-08 Thread Rob Herring
conditional failed, one must be fixed: '$ref' is a required property 'allOf' is a required property hint: A vendor property needs a $ref to types.yaml from schema $id: http://devicetree.org/meta-schemas/vendor-props.yaml#

Re: [PATCH v5 4/7] board: asus: transformer: add ASUS Transformer T30 family support

2023-06-08 Thread Svyatoslav Ryhel
8 червня 2023 р. 20:09:41 GMT+03:00, Tom Rini написав(-ла): >On Thu, Jun 08, 2023 at 07:54:54PM +0300, Svyatoslav Ryhel wrote: >> чт, 8 черв. 2023 р. о 19:40 Tom Rini пише: >> > >> > On Thu, Jun 08, 2023 at 06:11:57PM +0300, Svyatoslav Ryhel wrote: >> > > вт, 6 черв. 2023 р. о 22:47 Tom Rini

Re: [PATCH v5 4/7] board: asus: transformer: add ASUS Transformer T30 family support

2023-06-08 Thread Tom Rini
On Thu, Jun 08, 2023 at 07:54:54PM +0300, Svyatoslav Ryhel wrote: > чт, 8 черв. 2023 р. о 19:40 Tom Rini пише: > > > > On Thu, Jun 08, 2023 at 06:11:57PM +0300, Svyatoslav Ryhel wrote: > > > вт, 6 черв. 2023 р. о 22:47 Tom Rini пише: > > > > > > > > On Tue, Jun 06, 2023 at 10:40:53PM +0300,

[PATCH v2] dt-bindings: riscv: deprecate riscv,isa

2023-06-08 Thread Conor Dooley
From: Conor Dooley intro = When the RISC-V dt-bindings were accepted upstream in Linux, the base ISA etc had yet to be ratified. By the ratification of the base ISA, incompatible changes had snuck into the specifications - for example the Zicsr and Zifencei extensions were spun out of the

Re: [PATCH v5 4/7] board: asus: transformer: add ASUS Transformer T30 family support

2023-06-08 Thread Svyatoslav Ryhel
чт, 8 черв. 2023 р. о 19:40 Tom Rini пише: > > On Thu, Jun 08, 2023 at 06:11:57PM +0300, Svyatoslav Ryhel wrote: > > вт, 6 черв. 2023 р. о 22:47 Tom Rini пише: > > > > > > On Tue, Jun 06, 2023 at 10:40:53PM +0300, Svyatoslav Ryhel wrote: > > > > > > > > > > > > 6 червня 2023 р. 22:19:44

Re: [PATCH v5 4/7] board: asus: transformer: add ASUS Transformer T30 family support

2023-06-08 Thread Tom Rini
On Thu, Jun 08, 2023 at 06:11:57PM +0300, Svyatoslav Ryhel wrote: > вт, 6 черв. 2023 р. о 22:47 Tom Rini пише: > > > > On Tue, Jun 06, 2023 at 10:40:53PM +0300, Svyatoslav Ryhel wrote: > > > > > > > > > 6 червня 2023 р. 22:19:44 GMT+03:00, Tom Rini > > > написав(-ла): > > > >On Tue, Jun 06,

Re: [PATCH v5 2/2] serial: zynqmp: Fetch baudrate from dtb and update

2023-06-08 Thread Tom Rini
On Thu, Jun 08, 2023 at 10:50:36AM +0200, Michal Simek wrote: > > > On 6/7/23 21:13, Tom Rini wrote: > > On Thu, May 25, 2023 at 09:32:59AM +0530, Venkatesh Yadav Abbarapu wrote: > > > > > From: Algapally Santosh Sagar > > > > > > The baudrate configured in .config is taken by default by

[PATCH 12/12] arm: dts: stm32: Add partitions in flash0 and nand node for stm32mp15xx-dhcom/dhcor

2023-06-08 Thread Patrick Delaunay
Add partitions subnode in flash0 for stm32mp157xx-dhcom/dhcor boards. Signed-off-by: Patrick Delaunay --- arch/arm/dts/stm32mp15xx-dhcom-u-boot.dtsi | 27 ++ arch/arm/dts/stm32mp15xx-dhcor-u-boot.dtsi | 27 ++ configs/stm32mp15_dhcom_basic_defconfig|

[PATCH 10/12] stm32mp: stm32prog: Remove tee_detected from stm32prog_data struct

2023-06-08 Thread Patrick Delaunay
From: Patrice Chotard As stm32prog_get_tee_partitions() is no more used, remove tee_detected boolean from stm32prog_data struct and all code using it. Signed-off-by: Patrice Chotard Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c | 9 -

[PATCH 11/12] configs: stm32mp1: disable CMD_MTDPARTS

2023-06-08 Thread Patrick Delaunay
From: Patrice Chotard Disable CMD_MTDPARTS as it's no more needed and it is strongly encouraged to avoid using this command anymore. (see comments in ./cmd/Kconfig:2422). Signed-off-by: Patrice Chotard Signed-off-by: Patrick Delaunay --- configs/stm32mp13_defconfig | 1 -

[PATCH 09/12] board: st: remove board_mtdparts_default

2023-06-08 Thread Patrick Delaunay
Remove the function board_mtdparts_default and the associated file or configs, only used by the CONFIG_SYS_MTDPARTS_RUNTIME now removed. Signed-off-by: Patrick Delaunay --- board/st/common/Kconfig| 66 --- board/st/common/Makefile | 1 -

[PATCH 08/12] board: stm32mp1: use fdt_copy_fixed_partitions

2023-06-08 Thread Patrick Delaunay
Copy the fixed partition nodes from U-Boot device tree to Linux kernel device tree to dynamically configure the MTD partitions. fdt_copy_fixed_partitions is only based on device tree and replace the function fdt_fixup_mtdparts based on mtdparts variable; the variable mtdid and mtdparts are not

[PATCH 07/12] configs: stm32mp: Disable SYS_MTDPARTS_RUNTIME for stm32mp15 and stm32mp13

2023-06-08 Thread Patrick Delaunay
From: Patrice Chotard As we don't use anymore MTDPARTS_xx Kconfig variables (MTDPARTS_NAND0_BOOT, MTDPARTS_NOR0_BOOT...), disable SYS_MTDPARTS_RUNTIME. Signed-off-by: Patrice Chotard Signed-off-by: Patrick Delaunay --- configs/stm32mp13_defconfig | 1 -

[PATCH 06/12] arm: dts: stm32: Add partitions in flash0 and nand node for stm32mp15xx-ev1

2023-06-08 Thread Patrick Delaunay
From: Patrice Chotard Add partitions subnode in flash0 and nand nodes for all stm32mp157xx-ev1 boards. Update only the file stm32mp157c-ev1-*u-boot.dtsi, included by other files stm32mp15*-ev1-*-u-boot.dtsi. For SCMI variant of device tree used with stm32mp15_defconfig add partitions needed by

[PATCH 05/12] arm: dts: stm32: Align stm32mp15xx-*-scmi-u-boot.dtsi file

2023-06-08 Thread Patrick Delaunay
Update "secure" version of STM32 boards based on SCMI when RCC_TZCR.TZEN=1 stm32mp15xx-*-scmi-u-boot.dtsi with latest patches on files stm32mp15xx-*-u-boot.dtsi. Signed-off-by: Patrick Delaunay --- arch/arm/dts/stm32mp157a-dk1-u-boot.dtsi | 1 +

[PATCH 04/12] stm32mp: stm32prog: Remove usage of "mtdparts" function

2023-06-08 Thread Patrick Delaunay
From: Patrice Chotard Motivation for this patch is to remove usage of function define in cmd/mtdparts.c interface, based on env variables mtdids and mtdparts: mtdparts_init() and find_dev_and_part(). See commit 938db6fe5da3 ("cmd: mtdparts: describe as legacy") Now, all MTD devices are

[PATCH 00/12] stm32mp1: use U-Boot device tree to configure MTD partitions

2023-06-08 Thread Patrick Delaunay
Add the MTD partitions subnode in U-Boot device tree for all stm32mp13 and stm32mp15 boards and no more rely on mtdids and mtdparts variables or CONFIG_SYS_MTDPARTS_RUNTIME. When these variables are absent, the required OF fallback is performed in mtd_probe_devices() with commit dc339bf784f0

[PATCH 02/12] fdt_support: add fdt_copy_fixed_partitions function

2023-06-08 Thread Patrick Delaunay
Add a new function fdt_copy_fixed_partitions to copy the fixed partition nodes from U-Boot device tree to Linux kernel device tree and to dynamically configure the MTD partitions. This function fdt_copy_fixed_partitions is only based on device tree with livetree compatible function and replace

[PATCH 03/12] dfu: mtd: remove direct call of mtdparts_init function

2023-06-08 Thread Patrick Delaunay
With MTD support in driver model, the direct call of mtdparts_init should be avoided and replaced by mtd_probe_devices. With the modificaton when MTDIDS/MTDPARTS are empty the OF fallback with partition describe in device tree is correctly performed, introduced by commit dc339bf784f0 ("mtd: add

[PATCH 01/12] fdt_support: include dm/ofnode.h

2023-06-08 Thread Patrick Delaunay
This patch is a preliminary patch to use ofnode function is fdt_support to read the U-Boot device tree with livetree compatible functions. Signed-off-by: Patrick Delaunay --- common/fdt_support.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/fdt_support.c

Re: [PATCH v5 4/7] board: asus: transformer: add ASUS Transformer T30 family support

2023-06-08 Thread Svyatoslav Ryhel
вт, 6 черв. 2023 р. о 22:47 Tom Rini пише: > > On Tue, Jun 06, 2023 at 10:40:53PM +0300, Svyatoslav Ryhel wrote: > > > > > > 6 червня 2023 р. 22:19:44 GMT+03:00, Tom Rini > > написав(-ла): > > >On Tue, Jun 06, 2023 at 10:18:47AM +0300, Svyatoslav Ryhel wrote: > > > > > >> The ASUS Transformer

[PATCH 3/3] stm32mp: stm32prog: Add support of FWU_MDATA partition type

2023-06-08 Thread Patrick Delaunay
Add support of "FWU_MDATA" partition type in flashlayout to select the TF-A firmware update metadata partition type guid, associated to U-Boot "system" partition type guid, FWU_MDATA_GUID introduced by commit 2eaedc95164f ("FWU: Add FWU metadata structure and driver for accessing metadata") and

[PATCH 1/3] stm32mp: stm32prog: Add support of ENV partition type

2023-06-08 Thread Patrick Delaunay
Add support of "ENV" partition type in flashlayout to select the "u-boot-env" GUID, with PARTITION_U_BOOT_ENVIRONMENT = 3de21764-95bd-54bd-a5c3-4abe786f38a8, that mean a partition holding a U-Boot environment introduced by commit c0364ce1c695 ("doc/README.gpt: define partition type GUID for U-Boot

[PATCH 2/3] stm32mp: stm32prog: Add support of ESP partition type

2023-06-08 Thread Patrick Delaunay
Add support of "ESP" partition type in flashlayout to select the "EFI System Partition", associated to U-Boot "system" partition type guid, PARTITION_SYSTEM_GUID = C12A7328-F81F-11d2-BA4B-00A0C93EC93B. This partition is the bootable partition for efi boot. Signed-off-by: Patrick Delaunay ---

Reading squashfs from spi nor mtd device

2023-06-08 Thread Mike Looijmans
Been banging my head most of the day, can't figure it out. Have squashfs support compiled in, and can load files and so from MMC device. What I really want is to read (kernel etc) from a QSPI NOR flash (using mtd I guess?) For mmc it's easy: Zynq> sqfsls mmc 0:2     bin/   

Re: [lwip-devel] [RFC PATCH 0/5] LWIP stack integration

2023-06-08 Thread Maxim Uvarov
Ilias asked to make more clear results to compare the original stack and LWIP stack. So the difference between the current U-boot stack and the LWIP stack with 3 network commands is: a) 18Kb - ls -lh size b) 15Kb - bloat-o-meter script total line report. BOM=linux/scripts/bloat-o-meter (script)

[PATCH 2/2] arm64: zynqmp: Fix lockstep mode cpu release functionality

2023-06-08 Thread Venkatesh Yadav Abbarapu
For lockstep mode, cpu_release function is expecting to execute on R5 core 0, if there is attempt to pass other than R5 core 0, through an error saying "Lockstep mode should run on R5 core 0 only". Signed-off-by: Venkatesh Yadav Abbarapu --- arch/arm/mach-zynqmp/mp.c | 4 1 file changed, 4

[PATCH 1/2] arm64: zynqmp: Fix tcminit mode param

2023-06-08 Thread Venkatesh Yadav Abbarapu
While invoking "zynqmp tcminit mode" command (which is invalid command) on U-Boot, it just works. Check the mode param, if it is valid then only initialize the TCM. Signed-off-by: Venkatesh Yadav Abbarapu --- board/xilinx/zynqmp/cmds.c | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH 0/2] Fix the tcminit command

2023-06-08 Thread Venkatesh Yadav Abbarapu
Fix the tcminit mode param and cpu release lockstep functionality. Venkatesh Yadav Abbarapu (2): arm64: zynqmp: Fix tcminit mode param arm64: zynqmp: Fix lockstep mode cpu release functionality arch/arm/mach-zynqmp/mp.c | 4 board/xilinx/zynqmp/cmds.c | 5 + 2 files changed, 9

Re: [PATCH 1/2] usb: musb-new: sunxi: only perform SRAM initialization when necessary

2023-06-08 Thread Andre Przywara
On Wed, 7 Jun 2023 17:16:43 -0600 Sam Edwards wrote: > Only the older (ca. A10, A20) sunxis need this poke for the MUSB to > function. Mimic the Linux kernel and add a `has_sram` flag to the config > structure that is only set for the specific compatibles that require > this initialization.

Re: [PATCH 1/8] common: spl: spl: Update stack pointer address

2023-06-08 Thread Nikhil M Jain
Hi Devarsh, On 12/05/23 13:39, Devarsh Thakkar wrote: Hi Nikhil, Vignesh, Tom, Nikhil, Thanks for the patch. On 11/05/23 15:29, Nikhil M Jain wrote: I think more apt subject would be "Update stack pointer after relocation" At SPL stage when stack is relocated, the stack pointer needs to be

Re: [PATCH] firmware: zynqmp: Extend debug message to show parameters

2023-06-08 Thread Michal Simek
On 6/1/23 13:34, Michal Simek wrote: Also print more arguments not just ID when xilinx_pm_request is called. It helps to decode what firmware is asked to do. Signed-off-by: Michal Simek --- drivers/firmware/firmware-zynqmp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

Re: [PATCH] arm64: zynqmp: Fix return code from do_zynqmp_pmufw()

2023-06-08 Thread Michal Simek
On 6/1/23 13:25, Michal Simek wrote: zynqmp_pmufw_node() can also return values like -ENODEV which means that NODE has been already configured that's why don't propagate this error code. Signed-off-by: Michal Simek --- The same technique was used on power domain driver by this patch

[PATCH] pinctrl: rockchip: Fix Data Abort exception in SPL

2023-06-08 Thread Jonas Karlman
Using CONFIG_ARMV8_SPL_EXCEPTION_VECTORS=y and CONFIG_OF_LIVE=y triggers a Data Abort exception from unaligned memory access when the pinctrl driver iterate node properties, e.g. for UART2 on RK3568. setting mux of GPIO0-24 to 1 setting mux of GPIO0-24 to 1 "Synchronous Abort" handler, esr

[u-boot/next] Pull request efi-next-20230608

2023-06-08 Thread Heinrich Schuchardt
-20230608 for you to fetch changes up to b6f954e5b09545d18a150e4a4431a648e41ff287: test/py: efi_capsule: test for FMP versioning (2023-06-08 09:20:36 +0200) Gitlab CI showed no issues: https://source.denx.de/u-boot/custodians/u-boot-efi/-/pipelines/16516

Re: [PATCH] arm64: zynqmp: Fix command error values properly

2023-06-08 Thread Michal Simek
On 6/1/23 13:21, Michal Simek wrote: Process errors from command via cmd_process_error() as is done on Versal. When internal function returns different number then CMD_RET_SUCCESS(0), CMD_RET_FAILURE(1) or CMD_RET_USAGE(-1) shell react on these errors by throwing an error like "exit not

Re: [PATCH v2] PCI: zynqmp: Add ZynqMP NWL PCIe root port driver

2023-06-08 Thread Michal Simek
On 5/25/23 11:49, Stefan Roese wrote: This patch adds the PCIe controller driver for the Xilinx / AMD ZynqMP NWL PCIe Bridge as root port. The driver source is partly copied from the Linux PCI driver and modified to enable usage in U-Boot (e.g. simplified and interrupt support removed).

Re: [PATCH v5 2/2] serial: zynqmp: Fetch baudrate from dtb and update

2023-06-08 Thread Michal Simek
On 6/7/23 21:13, Tom Rini wrote: On Thu, May 25, 2023 at 09:32:59AM +0530, Venkatesh Yadav Abbarapu wrote: From: Algapally Santosh Sagar The baudrate configured in .config is taken by default by serial. If change of baudrate is required then the .config needs to changed and u-boot

Re: [PATCH] cmd: usb: Prevent reset in usb tree/info command

2023-06-08 Thread Xavier Drudis Ferran
El Thu, Jun 08, 2023 at 12:05:18AM +0200, Marek Vasut deia: > On 6/5/23 17:20, Xavier Drudis Ferran wrote: > > Add a check to avoid dommed (by null pointer dereference) recursive > > call, not only for UCLASS_BLK. > > > > When booting my Rock Pi 4B+ with a USB mass storage stick plugged > > into

Re: [PATCH v7 2/2] phy: rockchip-inno-usb2: Implement clock operations for usb2phy clock

2023-06-08 Thread Jagan Teki
On Mon, Jun 5, 2023 at 8:37 PM Xavier Drudis Ferran wrote: > > This clock doesn't seem needed but appears in a phandle list used by > ehci-generic.c to bulk enable it. The phandle list comes from linux, > where it is needed for suspend/resume to work [1]. > > My tests give the same results with

[PATCH] board_f: Relocate fdt if SKIP_RELOC and fdt is in bss

2023-06-08 Thread Kunihiko Hayashi
There are cases that the devicetree blob is placed after _end, such as fdt_find_separate() returns _end. This is in bss area cleared before relocation. When GD_FLG_SKIP_RELOC is set, the blob is still in bss, but will be cleared. As a result, the devicetree become invalid. To avoid this issue,

Re: [PATCH v7 0/2] arm: dts: rockchip: rk3399: usb: ehci: Fix EHCI probe in rk3399 to access peripherals by USB 2

2023-06-08 Thread Xavier Drudis Ferran
El Wed, Jun 07, 2023 at 11:42:40PM +0200, Marek Vasut deia: > On 6/5/23 17:04, Xavier Drudis Ferran wrote: > > EHCI probing in Rock pi 4 currently fails. > > > > Add a clock driver for usb2phy so that probing EHCI does not fail when > > missing one of the clocks in the bundle for usb_host0_ehci,