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

2022-06-11 Thread Sean Anderson
On 6/12/22 12:19 AM, 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 up appropriate fom

[PATCH 08/12] doc: mkimage: Edit options for style and consistency

2022-06-11 Thread Sean Anderson
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 bug fixes (such as one option being documented twice). The main changes I made across

[PATCH 09/12] doc: mkimage: Add BUGS section

2022-06-11 Thread Sean Anderson
In leiu of a non-standard HOMEPAGE section, add a BUGS section with a link to the issue tracker. Signed-off-by: Sean Anderson --- doc/mkimage.1 | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/doc/mkimage.1 b/doc/mkimage.1 index 4a11c4ce25..80ecb3c3fe 100644 --- a/doc/

[PATCH 12/12] doc: Add man page for dumpimage

2022-06-11 Thread Sean Anderson
This tool seems a bit underloved. Unfortunately, it seems to be missing support for FIT images. Alas... Add a man page documenting it. The example is taken from commit a804b5ce2d ("Add dumpimage, a tool to extract data from U-Boot images"). Signed-off-by: Sean Anderson --- doc/dumpimage.1 | 10

[PATCH 11/12] doc: mkimage: Remove AUTHORS section

2022-06-11 Thread Sean Anderson
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 very first line is a hint that this man page uses tables. man(1) determines the format of a man pag

[PATCH 07/12] doc: mkimage: Use correct capitalization for NAME

2022-06-11 Thread Sean Anderson
The description in NAME should not be capitalized. Fix a grammatical error as well. Signed-off-by: Sean Anderson --- doc/mkimage.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/mkimage.1 b/doc/mkimage.1 index ae1ddbc330..b4296fddcc 100644 --- a/doc/mkimage.1 +++ b/doc/

[PATCH 10/12] doc: mkimage: Add SEE ALSO section

2022-06-11 Thread Sean Anderson
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 --- doc/mkimage.1 | 8 1 file changed, 8 insertions(+) diff --git a/doc/mkimage.1 b/doc/mkimage.1 index 80ecb3c3fe..6f4b66f046 100644 --- a/doc/mkimage.1 +++

[PATCH 06/12] doc: mkimage: Remove duplicate docs for -l

2022-06-11 Thread Sean Anderson
The -l option is documented twice. Remove the second documentation. The first documentation also suggests an implied second uimage-file-name parameter. E.g. mkimage [-l uimage-file-name] uimage-file-name This is misleading, so remove it. Wrap a few lines to 80 characters as well. Signed-

[PATCH 02/12] doc: mkimage: Use empty request instead of blank lines

2022-06-11 Thread Sean Anderson
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 Anderson --- doc/mkimage.1 | 110 +--

[PATCH 04/12] doc: mkimage: Regularize option documentation

2022-06-11 Thread Sean Anderson
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 arguments. Signed-off-by: Sean Anderson --- doc/mkimage.1

[PATCH 03/12] doc: mkimage: Add vertical/horizontal space to examples

2022-06-11 Thread Sean Anderson
This puts each example in a new paragraph and uses a hanging indent for continued lines to increase clarity. Signed-off-by: Sean Anderson --- doc/mkimage.1 | 35 +++ 1 file changed, 35 insertions(+) diff --git a/doc/mkimage.1 b/doc/mkimage.1 index 5ae3d92508..b9

[PATCH 05/12] doc: mkimage: Use subsection macro

2022-06-11 Thread Sean Anderson
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 --- doc/mkimage.1 | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/doc

[PATCH 01/12] doc: mkimage: Use standard style for synopsis

2022-06-11 Thread Sean Anderson
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 up appropriate fomatting for command synopsis sections (such a

[PATCH 00/12] doc: mkimage: Rework and refactor the man page

2022-06-11 Thread Sean Anderson
This gives a facelift for the mkimage man page, bringing it in line with the style perscribed by man-pages(7) and groff_man_style(7). I have tried to remove typographical and grammatical errors and inconsistencies wherever possible. The man page now both looks and feels closer to other Linux man pa

Re: [PATCH 2/2] efi_loader: create boot options without file path

2022-06-11 Thread AKASHI Takahiro
On Sat, Jun 11, 2022 at 05:22:08AM +, Heinrich Schuchardt wrote: > Allow creating boot options without file path, e.g. > > efidebug boot add -b 0001 'short dev only' host 0:1 '' > efidebug boot add -B 0002 'long dev only' host 0:1 '' So the "subject" is a bit misleading. Your intensio

[PATCH v10 13/13] fpga: zynqmp: support loading encrypted bitfiles

2022-06-11 Thread Oleksandr Suvorov
From: Adrian Fiergolski Add supporting new compatible string "u-boot,zynqmp-fpga-enc" to handle loading encrypted bitfiles. This feature requires encrypted FSBL, as according to UG1085: "The CSU automatically locks out the AES key, stored in either BBRAM or eFUSEs, as a key source to the AES en

[PATCH v10 12/13] fpga: zynqmp: support loading authenticated images

2022-06-11 Thread Oleksandr Suvorov
Add supporting new compatible string "u-boot,zynqmp-fpga-ddrauth" to handle loading authenticated images (DDR). Based on solution by Jorge Ramirez-Ortiz Signed-off-by: Oleksandr Suvorov --- Changes in v10: - Support DDR images only if FPGA_LOAD_SECURE enabled. boot/Kconfig

[PATCH v10 11/13] fpga: zynqmp: add bitstream compatible checking

2022-06-11 Thread Oleksandr Suvorov
Check whether the FPGA ZynqMP driver supports the given bitstream image type. Signed-off-by: Oleksandr Suvorov --- Changes in v10: - fix grammar; drivers/fpga/zynqmppl.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/drivers/fpga/zynqmppl.c b/drivers/fpga/zynq

[PATCH v10 10/13] fpga: zynqmp: optimize zynqmppl_load() code

2022-06-11 Thread Oleksandr Suvorov
Optimize function code preparing to add secure bitstream types support. Signed-off-by: Oleksandr Suvorov --- (no changes since v1) drivers/fpga/zynqmppl.c | 27 +-- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/drivers/fpga/zynqmppl.c b/drivers/fpga/zy

[PATCH v10 09/13] fpga: xilinx: pass compatible flags to load() callback

2022-06-11 Thread Oleksandr Suvorov
These flags may be used to check whether an FPGA driver is able to load a particular FPGA bitstream image. Signed-off-by: Oleksandr Suvorov --- (no changes since v1) drivers/fpga/spartan2.c | 2 +- drivers/fpga/spartan3.c | 2 +- drivers/fpga/versalpl.c | 2 +- drivers/fpga/virtex2.c | 2 +-

[PATCH v10 07/13] fpga: pass compatible flags to fpga_load()

2022-06-11 Thread Oleksandr Suvorov
These flags may be used to check whether an FPGA driver is able to load a particular FPGA bitstream image. Signed-off-by: Oleksandr Suvorov --- (no changes since v1) boot/image-board.c| 4 ++-- cmd/fpga.c| 8 common/spl/spl_fit.c | 6 -- drivers/fpga/fpga.c | 5

[PATCH v10 08/13] spl: fit: pass real compatible flags to fpga_load()

2022-06-11 Thread Oleksandr Suvorov
Convert taken FPGA image "compatible" string to a binary compatible flag and pass it to an FPGA driver. Signed-off-by: Oleksandr Suvorov --- Changes in v10: - made the message about ignoring legacy compatibe option as debug common/spl/spl_fit.c | 10 +++--- 1 file changed, 7 insertions(+),

[PATCH v10 06/13] fpga: xilinx: pass compatible flags to xilinx_load()

2022-06-11 Thread Oleksandr Suvorov
This flag is used to check whether a Xilinx FPGA driver is able to load a particular FPGA bitstream image. Signed-off-by: Oleksandr Suvorov --- (no changes since v1) drivers/fpga/fpga.c | 2 +- drivers/fpga/xilinx.c | 2 +- include/xilinx.h | 2 +- 3 files changed, 3 insertions(+), 3 de

[PATCH v10 05/13] fpga: add fpga_compatible2flag

2022-06-11 Thread Oleksandr Suvorov
Add a "compatible" string to binary flag converter, which uses a callback str2flag() of given FPGA driver if available. Signed-off-by: Oleksandr Suvorov --- Changes in v10: - fix mixed types of return value; drivers/fpga/fpga.c | 24 include/fpga.h | 1 + 2 files

[PATCH v10 04/13] fpga: zynqmp: add str2flags call

2022-06-11 Thread Oleksandr Suvorov
Add a call to convert FPGA "compatible" string to a binary flag. Signed-off-by: Oleksandr Suvorov --- (no changes since v1) drivers/fpga/zynqmppl.c | 9 + include/xilinx.h| 1 + 2 files changed, 10 insertions(+) diff --git a/drivers/fpga/zynqmppl.c b/drivers/fpga/zynqmppl.c in

[PATCH v10 03/13] fpga: xilinx: add bitstream flags to driver desc

2022-06-11 Thread Oleksandr Suvorov
Store a set of supported bitstream types in xilinx_desc structure. It will be used to determine whether an FPGA image is able to be loaded with a given driver. Signed-off-by: Oleksandr Suvorov --- Changes in v10: - move FPGA flags to macros; - initialize xilinx_desc structs directly, removing *_

[PATCH v10 02/13] fpga: xilinx: add missed identifier names

2022-06-11 Thread Oleksandr Suvorov
Function definition arguments should also have identifier names. Add missed ones to struct xilinx_fpga_op callbacks, unifying code. Signed-off-by: Oleksandr Suvorov --- (no changes since v1) include/xilinx.h | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include

[PATCH v10 01/13] fpga: add option for loading FPGA secure bitstreams

2022-06-11 Thread Oleksandr Suvorov
It allows using this feature without enabling the "fpga loads" command. Signed-off-by: Oleksandr Suvorov Tested-by: Ricardo Salveti Co-developed-by: Adrian Fiergolski Signed-off-by: Adrian Fiergolski --- (no changes since v1) cmd/Kconfig | 3 ++- drivers/fpga/Kconfig| 14 ++

[PATCH v10 00/13] fpga: zynqmp: Adding support of loading authenticated images

2022-06-11 Thread Oleksandr Suvorov
This patchset introduces support for the authenticated and encrypted FPGA images on ZynqMP boards, besides that introducing common way to pass the compatible property to any fpga driver. It bases on the initial work by Jorge Ramirez-Ortiz https://patchwork.ozlabs.org/project/uboot/patch/2021101

[PATCH V3 1/2] mtd: allow getting MTD device associated with a specific DT node

2022-06-11 Thread Rafał Miłecki
From: Rafał Miłecki MTD subsystem API allows interacting with MTD devices (e.g. reading, writing, handling bad blocks). So far a random driver could get MTD device only by its name (get_mtd_device_nm()). This change allows getting them also by a DT node. This API is required for drivers handling

[PATCH V3 2/2] nvmem: add driver handling U-Boot environment variables

2022-06-11 Thread Rafał Miłecki
From: Rafał Miłecki U-Boot stores its setup as environment variables. It's a list of key-value pairs stored on flash device with a custom header. This commit adds an NVMEM driver that: 1. Provides NVMEM access to environment vars binary data 2. Extracts variables as NVMEM cells Current Linux's

Re: [SPAM] Xilinx Zynq-7000 : Help petalinux patch u-boot env vars

2022-06-11 Thread Xavier Drudis Ferran
El Fri, Jun 10, 2022 at 11:32:59PM -0700, RisingEdgeIndustries deia: > Hello, > > I'm trying to update some of the u-boot environment variables when I build > my linux Image using petalinux for the zynq 7000 (zedboard). > Hello, not an expert, but I hope I can help and that people correct me i f

Re: [PATCH v3 0/3] stm32mp: prepare RCC support for STM32MP13

2022-06-11 Thread Sean Anderson
On 6/2/22 9:05 AM, Patrick Delaunay wrote: Prepare the support of STM32MP13 RCC, the reset and clock controller - update of the RCC MISC driver to bind the correct clock and reset driver - reset driver, same than STM32MP15x = drivers/reset/stm32-reset.c - clock driver, add a stm32 sub directory

Re: [PATCH 2/2] clk: sunxi: Add support for the D1 CCU

2022-06-11 Thread Sean Anderson
On 4/30/22 11:38 PM, Samuel Holland wrote: Since the D1 CCU binding is defined, we can add support for its gates/resets, following the pattern of the existing drivers. Signed-off-by: Samuel Holland --- drivers/clk/sunxi/Kconfig | 6 + drivers/clk/sunxi/Makefile

Re: [PATCH 1/3] phy: stm32-usbphyc: add counter of PLL consumer

2022-06-11 Thread Sean Anderson
On 5/17/22 3:42 AM, Patrick DELAUNAY wrote: Hi Sean, On 5/11/22 18:48, Sean Anderson wrote: On 5/10/22 5:51 AM, Amelie Delaunay wrote: Hi Patrick, Hi Sean, On 5/9/22 16:37, Patrick DELAUNAY wrote: Hi Sean, On 5/8/22 20:21, Sean Anderson wrote: On 4/26/22 8:37 AM, Patrick Delaunay wrote: A

Re: [PATCH] arm64: dts: imx8mq-kontron-pitx-imx8m-u-boot.dtsi: disable assigned clocks

2022-06-11 Thread Heiko Thiery
Hi Marek, Am Sa., 11. Juni 2022 um 12:15 Uhr schrieb Marek Vasut : > > On 6/11/22 08:09, Heiko Thiery wrote: > > With the move to use DM_CLK the boards uart stops working. The used > > properties are not supported by the imx8mq clock driver. Thus > > the correct baudrate cannot be selected. Remove

Re: [PATCH resend 1/2] imx: imx8mq: default select CLK_IMX8MQ

2022-06-11 Thread Tom Rini
On Sat, Jun 11, 2022 at 02:59:39PM +0200, Heiko Thiery wrote: > Hi Tom, > > Am Sa., 11. Juni 2022 um 14:51 Uhr schrieb Tom Rini : > > > > On Sat, Jun 11, 2022 at 07:51:59AM +0200, Heiko Thiery wrote: > > > Hi Tom, > > > > > > Am Fr., 3. Juni 2022 um 21:49 Uhr schrieb Tom Rini : > > > > > > > > On

Re: [u-boot PATCH 2/3] tools/fdtgrep: Include __symbols__ table

2022-06-11 Thread Tom Rini
On Sat, Jun 11, 2022 at 11:43:48AM +0300, Roger Quadros wrote: > On 10/06/2022 16:42, Tom Rini wrote: > > On Mon, May 09, 2022 at 10:29:35AM +0300, Roger Quadros wrote: > > > >> This is required for overlays to work at SPL. > >> > >> Signed-off-by: Roger Quadros > > > > This breaks booting my dr

Re: [PATCH resend 1/2] imx: imx8mq: default select CLK_IMX8MQ

2022-06-11 Thread Heiko Thiery
Hi Tom, Am Sa., 11. Juni 2022 um 14:51 Uhr schrieb Tom Rini : > > On Sat, Jun 11, 2022 at 07:51:59AM +0200, Heiko Thiery wrote: > > Hi Tom, > > > > Am Fr., 3. Juni 2022 um 21:49 Uhr schrieb Tom Rini : > > > > > > On Mon, May 23, 2022 at 07:38:27PM +0800, Peng Fan (OSS) wrote: > > > > > > > From: P

Re: [PATCH resend 1/2] imx: imx8mq: default select CLK_IMX8MQ

2022-06-11 Thread Tom Rini
On Sat, Jun 11, 2022 at 07:51:59AM +0200, Heiko Thiery wrote: > Hi Tom, > > Am Fr., 3. Juni 2022 um 21:49 Uhr schrieb Tom Rini : > > > > On Mon, May 23, 2022 at 07:38:27PM +0800, Peng Fan (OSS) wrote: > > > > > From: Peng Fan > > > > > > Since the power domain driver default select CONFIG_CLK, so

Re: [PATCH 7/8] binman_sym: guard with CONFIG_IS_ENABLED(BINMAN_SYMBOLS)

2022-06-11 Thread Alper Nebi Yasak
On 11/06/2022 13:32, Peng Fan (OSS) wrote: > 在 2022/6/11 0:47, Alper Nebi Yasak 写道: >> I have sent a patch [1] that fixes the build error mentioned here, which >> should be used instead of this patch. Please: >> >> - Rebase on top of that series [1] >> - Maybe drop config changes in 1/8 and 2/8 (th

[PATCH V2 48/48] tools: image: support i.MX93

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Support build i.MX93 container image with mkimage Signed-off-by: Peng Fan --- include/imx8image.h | 15 +++-- tools/imx8image.c | 79 + 2 files changed, 78 insertions(+), 16 deletions(-) diff --git a/include/imx8image.h b/includ

[PATCH V2 47/48] board: freescale: imx93_evk: support ethernet

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Add ethernet support Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/imx-regs.h | 7 + board/freescale/imx93_evk/imx93_evk.c | 32 +++ configs/imx93_11x11_evk_defconfig | 9 +++ 3 files changed, 48 insertions(+) diff --git a/

[PATCH V2 46/48] net: dwc_eth_qos: intrdouce eqos hook eqos_get_enetaddr

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan i.MX has specific hook to get MAC address, so introduce a hook and move i.MX code to its own driver Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos.c | 9 ++--- drivers/net/dwc_eth_qos.h | 1 + drivers/net/dwc_eth_qos_imx.c | 12 +++- 3 files changed, 1

[PATCH V2 45/48] net: eqos: add function to get phy node and address

2022-06-11 Thread Peng Fan (OSS)
From: Ye Li Since new atheros PHY driver needs to access its PHY node through phy device, we have to assign the phy node in ethernet controller driver. Otherwise the PHY driver will fail to get some nodes and properties. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos

[PATCH V2 44/48] net: dwc_eth_qos: move i.MX code out

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Move i.MX code to a standalone file to make it easy for adding new platform support Signed-off-by: Peng Fan --- drivers/net/Makefile | 1 + drivers/net/dwc_eth_qos.c | 92 -- drivers/net/dwc_eth_qos.h | 2 + drivers/net/dwc_eth_qos_i

[PATCH V2 43/48] net: dwc_eth_qos: public some functions

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Move macros and structures to header file and make some functions public, so that could used by other files, this is to prepare split platform specific config to one file. Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos.c | 280 +- drivers

[PATCH V2 42/48] net: dwc_eth_qos: fix build break when CLK not enabled

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan When CONFIG_CLK is not enabled, there will be buil break: "error: ‘eqos’ undeclared (first use in this function)" Should not guard the eqos under CONFIG_CLK macro Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

[PATCH V2 41/48] net: fec_mxc: support i.MX93

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Support i.MX93 in fec_mxc driver Signed-off-by: Peng Fan --- drivers/net/Kconfig | 2 +- drivers/net/fec_mxc.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 84d859c21eb..8cf8621467f 100644 --- a/drivers

[PATCH V2 39/48] imx: imx93_evk: Add basic board support

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Add basic board codes and defconfig for i.MX93 11x11 EVK board. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/dts/Makefile |3 + arch/arm/dts/imx93-11x11-evk-u-boot.dtsi | 157 +++ arch/arm/dts/imx93-11x11-evk.dts | 527 +++

[PATCH V2 40/48] imx: imx93_evk: Set ARM clock to 1.7Ghz

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Set ARM clock to OD frequency 1.7Ghz, since we have set PMIC VDD_SOC to Overdrive voltage 0.9V Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/clock.h | 4 +++- arch/arm/mach-imx/imx9/clock.c | 9 + board/freescale/imx93_evk/spl.c

[PATCH V2 38/48] arm: dts: Add i.MX93 SoC DTSi file

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Add the DTSi file and DT header files for i.MX93 SoC Signed-off-by: Ye Li Signed-off-by: Alice Guo Signed-off-by: Peng Fan --- arch/arm/dts/imx93.dtsi | 688 include/dt-bindings/clock/imx93-clock.h | 203 +++ include/dt-bindings/pow

[PATCH V2 36/48] ddr: imx: Add i.MX9 DDR controller driver

2022-06-11 Thread Peng Fan (OSS)
From: Ye Li Since i.MX9 uses same DDR PHY with i.MX8M, split the DDRPHY to a common directory under imx, then use dedicated ddr controller driver for each iMX9 and iMX8M. The DDRPHY registers are space compressed, so it needs conversion to access the DDRPHY address. Introduce a common PHY addres

[PATCH V2 37/48] ddr: imx9: enable Performance monitor counter

2022-06-11 Thread Peng Fan (OSS)
From: Ye Li Add Kconfig for enabling reference events counter in DDRC performance monitor by default Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/ddr/imx/imx9/Kconfig| 6 ++ drivers/ddr/imx/imx9/ddr_init.c | 4 2 files changed, 10 insertions(+) diff --git a/drivers/d

[PATCH V2 35/48] imx: imx9: clock: Add DDR clock support

2022-06-11 Thread Peng Fan (OSS)
From: Ye Li Implement the DDR driver clock interfaces for set DDR rate and bypass DDR PLL Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/clock.h | 3 ++ arch/arm/mach-imx/imx9/clock.c | 41 ++ 2 files changed, 44 insertions(+)

[PATCH V2 34/48] imx: imx9: Support multiple env storages at runtime

2022-06-11 Thread Peng Fan (OSS)
From: Ye Li Select env storages according to boot device at runtime Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/soc.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/mach-imx/imx9/soc.c b/arch/arm/mach-imx/imx9/soc.c

[PATCH V2 33/48] imx: imx9: Support booting m33 from Acore

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Add bootaux command to support on-demand booting M33 from u-boot. It kicks M33 via ATF by "bootaux 0x201e 0" Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/Makefile | 4 + arch/arm/mach-imx/imx9/imx_bootaux.c | 133 +++ arch/arm/mach-imx/im

[PATCH V2 31/48] imx: imx9: Add MIX power init

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Add power init of MEDIAMIX, MLMIX and DDRMIX. And clear isolation of MIPI DSI/CSI, USBPHY after the power up. SPL should call the power init in its boot sequence before accessing above three MIX and USB. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/imx-regs.h | 1

[PATCH V2 32/48] imx: imx9: Add M33 release prepare function

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan To support on-demand booting M33 image from A core. SPL needs to follow M33 kick up sequence to release M33 firstly, then set M33 CPUWAIT signal. ATF will clear CPUWAIT to kick M33 to run. The prepare function also works around the M33 TCM ECC issue by clean the TCM. Also enable s

[PATCH V2 30/48] imx: imx9: Add gpio registers structure

2022-06-11 Thread Peng Fan (OSS)
From: Ye Li Add GPIO registers structure for iMX93, so that we can enable lpgpio driver Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/Kconfig | 1 + arch/arm/include/asm/arch-imx9/gpio.h | 20 2 files changed, 21 insertions(+) diff --git

[PATCH V2 29/48] misc: fuse: update the code for accessing fuse of i.MX93

2022-06-11 Thread Peng Fan (OSS)
From: Alice Guo Sentinel have read access of OTP shadow register 0-511, and fsb have read access of shadow 0-51/312-511. Reviewed-by: Ye Li Signed-off-by: Alice Guo Signed-off-by: Peng Fan --- drivers/misc/sentinel/fuse.c | 86 +++- 1 file changed, 74 insertio

[PATCH V2 28/48] misc: fuse: support to access fuse on i.MX93

2022-06-11 Thread Peng Fan (OSS)
From: Alice Guo i.MX93 fuse can be accessed through FSB and s400-api. Add mapping tables for i.MX93. The offset address of FSB accessing OTP shadow registers is different between i.MX8ULP and i.MX93, so use macro to define the offset address instead of hardcode. Signed-off-by: Alice Guo Signed-

[PATCH V2 27/48] misc: imx8ulp: move fuse.c from imx8ulp to sentinel

2022-06-11 Thread Peng Fan (OSS)
From: Alice Guo The i.MX93 platform wants to reuse drivers/misc/imx8ulp/fuse.c. Moving fuse.c from the folder imx8ulp to sentinel makes it can be used by other platforms. Signed-off-by: Alice Guo Signed-off-by: Peng Fan --- drivers/misc/Makefile | 2 -- drivers/misc/imx8ul

[PATCH V2 26/48] misc: S400_API: Rename imx8ulp_s400_msg to sentinel_msg

2022-06-11 Thread Peng Fan (OSS)
From: Ye Li Use more generic name for S40x msg structure Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/s400_api.h | 2 +- arch/arm/mach-imx/imx8ulp/rdc.c | 2 +- arch/arm/mach-imx/imx9/trdc.c| 2 +- drivers/misc/sentinel/s400_api.c

[PATCH V2 25/48] imx: imx9: Get the chip revision through S400 API

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Update the get chip revision methond to use S400 API, also record other information like lifecycle and UID to global data. Signed-off-by: Peng Fan --- arch/arm/include/asm/global_data.h | 3 ++ arch/arm/mach-imx/imx9/soc.c | 49 +- 2 files chan

[PATCH V2 24/48] imx: imx9: Add AHAB boot support

2022-06-11 Thread Peng Fan (OSS)
From: Ye Li Add AHAB driver for iMX9 to do authentication by calling sentinel API Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/Kconfig | 5 + arch/arm/mach-imx/imx9/Makefile | 1 + arch/arm/mach-imx/imx9/ahab.c | 346 3 files

[PATCH V2 23/48] imx: imx9: Add TRDC driver for TRDC init

2022-06-11 Thread Peng Fan (OSS)
From: Ye Li Add TRDC driver to iMX9. The TRDC init splits to two phases: 1. Early init phase will release TRDC from Sentinel and open write permission to the memory where SPL image runs. Sentinel will set the memory to RX only after ROM authentication for the OEM closed part. 2. Init pha

[PATCH V2 22/48] misc: s400_api: introduce ahab_release_m33_trout

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Introduce Sentinel API ahab_release_m33_trout to make sure sentinel release M33 trout and make sure M33 could boot. Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/s400_api.h | 1 + drivers/misc/sentinel/s400_api.c | 25 2 files change

[PATCH V2 21/48] misc: S400_API: New API for FW status and chip info

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Add new API to get sentinel FW status and SoC chip info Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/s400_api.h | 13 + drivers/misc/sentinel/s400_api.c | 61 2 files changed, 74 insertions(+) diff --git a/

[PATCH V2 20/48] misc: S400_API: Update release RDC API

2022-06-11 Thread Peng Fan (OSS)
From: Ye Li To support more RDC instances on i.MX93, update API to latest definition. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/s400_api.h | 2 +- drivers/misc/sentinel/s400_api.c | 21 + 2 files changed, 18 insertions(+), 5 de

[PATCH V2 19/48] misc: s4mu: Support iMX93 with Sentinel MU

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Move i.MX8ULP MU registers structure to driver to avoid add a copy for i.MX9 Add compatible string for iMX93 Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/imx-regs.h | 25 --- drivers/misc/sentinel/s4mu.c | 26

[PATCH V2 18/48] misc: imx: S400_API: Move S400 MU and API to a common place

2022-06-11 Thread Peng Fan (OSS)
From: Ye Li Since iMX9 uses S401 which shares the API with iMX8ULP. So move S400 MU driver and API to a common place and selected by CONFIG_IMX_SENTINEL Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/Kconfig | 4 + arch/arm/include/asm/global_data.h

[PATCH V2 17/48] imx: imx9: support romapi

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan i.MX9 shares same ROM API with i.MX8ULP, so make the i.MX8ULP the function prototype common and usable by i.MX9. Also include mmc env functions that use ROM API. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 4 -- arch/arm/include/asm/mach-imx/sys

[PATCH V2 16/48] imx: imx9: disable watchdog

2022-06-11 Thread Peng Fan (OSS)
From: Ye Li Disable all 3 wdogs on AIPS2 and unmask SRC reset trigger for WDOG3-5 Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/imx-regs.h | 4 ++ arch/arm/mach-imx/imx9/soc.c | 45 ++- 2 files changed, 48 insertions(+), 1 de

[PATCH V2 15/48] imx: imx9: Add function to initialize timer

2022-06-11 Thread Peng Fan (OSS)
From: Jian Li Add timer_init to update ARM arch timer with correct frequency from system counter and enable system counter. Signed-off-by: Jian Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/imx-regs.h | 1 + arch/arm/mach-imx/imx9/soc.c | 19 +++

[PATCH V2 14/48] spl: Use SPL_FIT_IMAGE_TINY for iMX9

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Select SPL_FIT_IMAGE_TINY for i.MX9 Signed-off-by: Peng Fan --- common/spl/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 2ad2351c6eb..9e93d3f12a0 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig

[PATCH V2 13/48] mmc: fsl_esdhc_imx: Support i.MX9

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Support i.MX9 for fsl_esdhc_imx driver Signed-off-by: Peng Fan --- drivers/mmc/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig index c8f9709d2d4..fe3ea96c128 100644 --- a/drivers/mmc/Kconfig +++ b/drivers/mmc/

[PATCH V2 12/48] imx: imx9: Add CCM and clock API support

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Add clock API to support CCM root clock and LPCG setting Set the CCM AUTHEN register to allow non-secure world to set root clock and lpcg. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/ccm_regs.h | 266 arch/arm/include/asm/arch-imx9/c

[PATCH V2 11/48] imx: pinctrl: add pinctrl and pinfunc file for i.MX93

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Add the pinctrl driver and pinfunc header file to support iMX93 Signed-off-by: Peng Fan --- arch/arm/dts/imx93-pinfunc.h| 625 drivers/pinctrl/nxp/Kconfig | 13 + drivers/pinctrl/nxp/Makefile| 1 + drivers/pinctrl/nxp/pinct

[PATCH V2 08/48] imx: add basic i.MX9 support

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Add i.MX9 Kconfig and basic files for the new SoC Signed-off-by: Peng Fan --- arch/arm/Kconfig| 11 + arch/arm/include/asm/arch-imx/cpu.h | 2 + arch/arm/include/asm/arch-imx9/clock.h | 0 arch/arm/include/asm/arch-imx9/gpio.h

[PATCH V2 10/48] gpio: pca953x: support pcal6524

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Support pcal6524 IO expander driver Signed-off-by: Peng Fan --- drivers/gpio/pca953x_gpio.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/gpio/pca953x_gpio.c b/drivers/gpio/pca953x_gpio.c index e98e1e56dbc..4654f9e0989 100644 --- a/drivers/gpio/pca953x_gpio.c +

[PATCH V2 09/48] fsl_lpuart: add i.MX9 support

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan i.MX9 shares same register layout as i.MX7ULP, so add the i.MX9 define here. Signed-off-by: Peng Fan --- include/fsl_lpuart.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fsl_lpuart.h b/include/fsl_lpuart.h index 18e5cc15d61..93c996b764b 100644 ---

[PATCH V2 07/48] imx: add USB2_BOOT type

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Add USB2_BOOT type for i.MX8ULP and i.MX9 Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/boot_mode.h | 1 + arch/arm/mach-imx/imx_romapi.c| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/mach-imx/boot_mode.h b/arc

[PATCH V2 06/48] imx: move get_boot_device to common file

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan i.MX8MN/P/ULP supports ROM API, they have almost same get_boot_device implementation, so move to a common file. And when support i.MX9, no need to include the other function copy. Since sys_proto.h is included in imx_romapi.c, there will be build warning for i.MX8M because wdog_re

[PATCH V2 05/48] imx: move get_boot_device to common header

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Most i.MX implements get_boot_device, move it to common header to simplify code Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8/sys_proto.h| 1 - arch/arm/include/asm/arch-imx8m/sys_proto.h | 1 - arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 1 - arch/arm/inc

[PATCH V2 04/48] imx: simplify dependency with SPL_BOOTROM_SUPPORT

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan For SoCs support ROM API, CONFIG_SPL_BOOTROM_SUPPORT is needed, so use this macro to guard the code to avoid extend the list. And drop the guard with structure definition, there is no need. Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/sys_proto.h | 2 -- arch/arm/m

[PATCH V2 03/48] imx: spl: Allow iMX7/8/8M to overwrite spl_board_boot_device

2022-06-11 Thread Peng Fan (OSS)
From: Ye Li Move the default mapping of spl_boot_device to weak function of spl_board_boot_device. So that every board of iMX7/8/8M can overwrite this function to implement specific mapping. Reviewed-by: Peng Fan Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/spl.c | 80 +

[PATCH V2 02/48] imx: Change USB boot device type

2022-06-11 Thread Peng Fan (OSS)
From: Ye Li The SPL SDP is configured as BOOT_DEVICE_BOARD, so when booting from USB, change its type to BOOT_DEVICE_BOARD, so we can use SDP. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/spl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/

[PATCH V2 01/48] arm: makefile: cleanup mach-imx usage

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan All the SoCs use mach-imx has CONFIG_MACH_IMX selected, so the macro could be the gate to build arch/arm/mach-imx to simplify the rules. Signed-off-by: Peng Fan --- arch/arm/Makefile | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/arch/arm/Makef

[PATCH V2 00/48] imx: support i.MX93

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan V2: Drop patch 35 in V1 Rebased on Tom's next branch to update board support, since Tom migrated some Kconfig options This patchset is to support i.MX93, during the development, there are some code cleanup and restructure to make i.MX93 code porting cleaner. i.MX9 is a new i.M

Re: [PATCH] fdtdec: drop needlessly convoluted CONFIG_PHANDLE_CHECK_SEQ

2022-06-11 Thread Rasmus Villemoes
On 08/06/2022 16.18, eugen.hris...@microchip.com wrote: > On 5/19/22 3:16 PM, Rasmus Villemoes wrote: >> On 19/05/2022 13.50, Aswath Govindraju wrote: >> >>> Understood, thanks for the explanation. I am good with this patch. >>> >>> Acked-by: Aswath Govindraju >>> >> >> Thanks. >> >> For completen

Re: [PATCH V2 00/17] imx: patches in queue

2022-06-11 Thread Stefano Babic
On 11.06.22 14:20, Peng Fan (OSS) wrote: From: Peng Fan Stefano, Is there a chance to get this into your next branch, then into Tom's next branch? Yes, I will do in this way. Stefano There are often conflicts when applying after pending some time. V2: Rebased on Tom's next branc

Re: [PATCH 00/49] imx: support i.MX93

2022-06-11 Thread Peng Fan (OSS)
Stefano, From: Peng Fan This patchset is to support i.MX93, during the development, there are some code cleanup and restructure to make i.MX93 code porting cleaner. i.MX9 is a new i.MX family and i.MX93 is the first one that we would support in upstream. It features two Cortex-A55 core, one N

Xilinx Zynq-7000 : Help petalinux patch u-boot env vars

2022-06-11 Thread RisingEdgeIndustries
Hello, I'm trying to update some of the u-boot environment variables when I build my linux Image using petalinux for the zynq 7000 (zedboard). Looking at the configs folder I found the "xilinx_zynq_virt_defconfig". So my first question is the following. Does this file contain the environment va

[PATCH V2 17/17] imx: phycore_imx8mm/p: clean up board watchdog code

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan pinctrl_wdog already marked u-boot,dm-spl, so clean up board code. The set_wdog_reset() function is not necessary as this is handled by the imx_watchdog.c driver due to the 'fsl,ext-reset-output' property being set. Signed-off-by: Peng Fan Tested-by: Teresa Remmet --- board/ph

[PATCH V2 16/17] imx: imx8mn-kontron-n801x: enable pinctrl_wdog in SPL

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Mark pinctrl_wdog as u-boot,dm-spl to clean up board code, The set_wdog_reset() function is not necessary as this is handled by the imx_watchdog.c driver due to the 'fsl,ext-reset-output' property being set. Signed-off-by: Peng Fan --- arch/arm/dts/imx8mm-kontron-n801x-u-boot.d

[PATCH V2 14/17] imx: imx8mn_var_som: clean up board watchdog code

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan pinctrl_wdog already marked u-boot,dm-spl, so clean up board code. The set_wdog_reset() function is not necessary as this is handled by the imx_watchdog.c driver due to the 'fsl,ext-reset-output' property being set. Signed-off-by: Peng Fan Tested-by: Ariel D'Alessandro --- boa

[PATCH V2 15/17] imx: imx8mp_rsb7320a1: enable wdog driver model in SPL

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Mark wdog1/pinctrl_wdog as u-boot,dm-spl to clean up board code, The set_wdog_reset() function is not necessary as this is handled by the imx_watchdog.c driver due to the 'fsl,ext-reset-output' property being set. Signed-off-by: Peng Fan --- arch/arm/dts/imx8mp-rsb3720-a1-u-boo

[PATCH V2 13/17] imx: imx8mn-beacon: enable pinctrl_wdog in SPL

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Mark pinctrl_wdog as u-boot,dm-spl to clean up board code, The set_wdog_reset() function is not necessary as this is handled by the imx_watchdog.c driver due to the 'fsl,ext-reset-output' property being set. Signed-off-by: Peng Fan --- arch/arm/dts/imx8mn-beacon-kit-u-boot.dtsi

[PATCH V2 12/17] imx: imx8mm/n/p-venice: enable pinctrl_wdog in SPL

2022-06-11 Thread Peng Fan (OSS)
From: Peng Fan Mark pinctrl_wdog as u-boot,dm-spl to clean up board code, The set_wdog_reset() function is not necessary as this is handled by the imx_watchdog.c driver due to the 'fsl,ext-reset-output' property being set. Signed-off-by: Peng Fan --- arch/arm/dts/imx8mm-venice-u-boot.dtsi |

  1   2   >