Re: Please pull u-boot-marvell/master

2023-04-14 Thread Tom Rini
On Fri, Apr 14, 2023 at 08:09:05AM +0200, Stefan Roese wrote: > Hi Tom, > > please pull the following Marvell MVEBU related patches: > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: Pull request: u-boot-sunxi/master for v2023.07

2023-04-14 Thread Tom Rini
On Thu, Apr 13, 2023 at 11:20:48AM +0100, Andre Przywara wrote: > Hi Tom, > > please pull the sunxi/master branch, containing the first part of the > 2023.07 changes. > > The biggest change is some refactoring of the H616 DRAM driver, which > allows better fine-tuning for each board, and is the

Re: [PATCH] board: ti: j721s2: Add support to detect daughtercards

2023-04-14 Thread Tom Rini
On Tue, Apr 11, 2023 at 01:09:23PM +0530, Siddharth Vadapalli wrote: > Hello Tom, > > On 10/04/23 19:00, Tom Rini wrote: > > On Mon, Apr 10, 2023 at 11:40:15AM +0530, Siddharth Vadapalli wrote: > > > >> From: Kishon Vijay Abraham I > >> > >> Add support to detect daughtercards (GESI Ethernet car

[PATCH V3 1/3] net: phy: dp83867: Explicitly check against sgmii

2023-04-14 Thread Nishanth Menon
dp83867 driver only supports sgmii and not all the newer protocols. Drop the usage of the generic phy_interface_is_sgmii function and just matchup to the specific mode supported. Reported-by: Tom Rini Suggested-by: Marek Vasut Suggested-by: Marek Behún Link: https://lore.kernel.org/all/b82ac32

[PATCH V3 2/3] net: phy: Drop phy_interface_is_sgmii

2023-04-14 Thread Nishanth Menon
Recent commit 75d28899e3e9 ("net: phy: Synchronize PHY interface modes with Linux") reordered the enum definitions. This caused the range of enums that this api was checking to go bad. There aren't anymore users of phy_interface_is_sgmii, so, just drop it. Also the protocols are so very different

[PATCH V3 3/3] net: phy: Make phy_interface_is_rgmii a switch statement

2023-04-14 Thread Nishanth Menon
Recent commit 75d28899e3e9 ("net: phy: Synchronize PHY interface modes with Linux") reordered the enum definitions. This exposed a problem in range checking functions to identify the interface type. Though this specific api wasn't impacted (all the RGMII definitions remained within range), this exp

[PATCH V3 0/3] net: phy: phy_interface_is_rgmii update, drop phy_interface_is_sgmii

2023-04-14 Thread Nishanth Menon
Originally reported by Tom[1], turned out to be that recent commit 75d28899e3e9 ("net: phy: Synchronize PHY interface modes with Linux") reordered the enum definitions which in turn broke the range checks. we are left with two options: a) check against explicit values to help reuse as much as poss

Re: [PATCH v3 0/5] enable DMA and CPSW nodes for am62ax SoC family

2023-04-14 Thread Nishanth Menon
On 13:01-20230414, Bryan Brattlof wrote: > Hello again everyone! > > This patch series syncs TI's am62ax device tree files with what has been > merged in the v6.3-rc6 of the Linux Kernel. This series will also enable > YMODEM support to make automated testing (which uses the U

Re: [PATCH v3 3/5] arm: dts: add DMA and CPSW nodes for uboot

2023-04-14 Thread Nishanth Menon
On 13:01-20230414, Bryan Brattlof wrote: > Update the uboot dtsi to enable DMA and CPSW at the uboot level > > Signed-off-by: Bryan Brattlof > --- > arch/arm/dts/k3-am62a7-r5-sk.dts | 8 > arch/arm/dts/k3-am62a7-sk-u-boot.dtsi | 26 +-

Re: [PATCH v2 2/5] arm: dts: sync am62ax dtbs with linux v6.3-rc4

2023-04-14 Thread Bryan Brattlof
Hi Tom On April 2, 2023 thus sayeth Bryan Brattlof: > To enable Ethernet support at the uboot level, pull the device tree > files from the v6.3-rc4 version of the Linux kernel. > > Signed-off-by: Bryan Brattlof > --- > arch/arm/dts/k3-am62a-main.dtsi | 365 ++ > a

[PATCH v3 2/5] arm: dts: sync am62ax dtbs with linux v6.3-rc6

2023-04-14 Thread Bryan Brattlof
To enable Ethernet support at the uboot level, pull the device tree files from the v6.3-rc6 version of the Linux kernel. Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am62a-main.dtsi | 365 ++ arch/arm/dts/k3-am62a-mcu.dtsi| 51 + arch/arm/dts/k3-am62a-

[PATCH v3 3/5] arm: dts: add DMA and CPSW nodes for uboot

2023-04-14 Thread Bryan Brattlof
Update the uboot dtsi to enable DMA and CPSW at the uboot level Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am62a7-r5-sk.dts | 8 arch/arm/dts/k3-am62a7-sk-u-boot.dtsi | 26 +- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/arch/arm/dt

[PATCH v3 5/5] configs: am62ax: enable ymodem support for a53 spl

2023-04-14 Thread Bryan Brattlof
Automated testing inside TI currently relies on loading the boot-loaders into the SoC via UART. Enable SPL_YMODEM_SUPPORT so our testing infrastructure can boot (and test) our boards. Fixes: 719bd650c30e8 ("configs: introduce configs for the am62a") Signed-off-by: Bryan Brattlof --- configs/am62

[PATCH v3 4/5] configs: enable net features for am62ax

2023-04-14 Thread Bryan Brattlof
Enable DMA and CPSW options we now support for the am62ax SoC family Signed-off-by: Bryan Brattlof --- configs/am62ax_evm_a53_defconfig | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configs/am62ax_evm_a53_defconfig b/configs/am62ax_evm_a53_defconfig index 46a95a692e9ac

[PATCH v3 1/5] dma: ti: k3-udma: Introduce DMA support for the am62ax

2023-04-14 Thread Bryan Brattlof
From: Vignesh Raghavendra In preparation for enabling ethernet for the am62ax family of SoCs, introduce the initial DMA channel settings for the am62ax Signed-off-by: Vignesh Raghavendra [b...@ti.com: expanded on commit message] Signed-off-by: Bryan Brattlof --- drivers/dma/ti/Makefile

[PATCH v3 0/5] enable DMA and CPSW nodes for am62ax SoC family

2023-04-14 Thread Bryan Brattlof
Hello again everyone! This patch series syncs TI's am62ax device tree files with what has been merged in the v6.3-rc6 of the Linux Kernel. This series will also enable YMODEM support to make automated testing (which uses the UART boot method to load the bootloaders into the SoC) Thanks for review

Re: [PATCH v4 1/6] FWU: Add FWU metadata access driver for MTD storage regions

2023-04-14 Thread Jassi Brar
On Fri, Apr 14, 2023 at 8:56 AM Michal Simek wrote: > On 4/10/23 05:56, Jassi Brar wrote: > > On Wed, 29 Mar 2023 at 07:00, Michal Simek wrote: > >> On 3/27/23 23:15, jassisinghb...@gmail.com wrote: > > > >>> diff --git a/drivers/fwu-mdata/raw_mtd.c b/drivers/fwu-mdata/raw_mtd.c > >>> new file mo

Re: [PATCH v5 00/17] Basic StarFive JH7110 RISC-V SoC support

2023-04-14 Thread Matthias Brugger
On 13/04/2023 12:05, yanhong wang wrote: On 2023/4/13 17:03, Torsten Duwe wrote: On Thu, 13 Apr 2023 10:05:28 +0800 yanhong wang wrote: the definition of DT refers to Linux and is consistent with the definition framework of Linux. This is one of the desired goals, to avoid confusion,

Re: [PATCH v4 3/6] tools: Add mkfwumdata tool for FWU metadata image

2023-04-14 Thread Jassi Brar
On Fri, Apr 14, 2023 at 8:53 AM Michal Simek wrote: > > > > On 4/10/23 06:05, Jassi Brar wrote: > > On Wed, 29 Mar 2023 at 07:29, Michal Simek wrote: > >> On 3/27/23 23:16, jassisinghb...@gmail.com wrote: > > > >>> diff --git a/tools/mkfwumdata.c b/tools/mkfwumdata.c > >>> new file mode 100644 >

[PATCH v3] watchdog: arm_smc_wdt: add watchdog support

2023-04-14 Thread Lionel Debieve
Implement a ARM SMCCC based driver that allow to use a secure watchdog on the platform. Signed-off-by: Lionel Debieve Reviewed-by: Patrick Delaunay Reviewed-by: Stefan Roese Tested-by: Patrick Delaunay --- Changes in v3: - Adds missing log error when probe failed Changes in v2: - Adds log me

Re: [PATCH 1/3] dt-bindings: misc: esm: Add ESM support for TI K3 devices

2023-04-14 Thread Krzysztof Kozlowski
On 14/04/2023 12:52, Neha Malcom Francis wrote: > Document the binding for TI K3 ESM (Error Signaling Module) block. > > Signed-off-by: Neha Malcom Francis > --- > .../devicetree/bindings/misc/esm-k3.yaml | 54 +++ > 1 file changed, 54 insertions(+) > create mode 100644 Doc

Support for NXP S32K3 Family

2023-04-14 Thread Ashok Kumar
Hi Folks, I am trying to build a u-boot boot-loader for my S32K344 board. Can you guys please help me, which defconf/config file is suitable for my S32K344 board for building a u-boot binaries? Regards Ashok

Re: [PATCH] mtd: cfi: respect reg address length

2023-04-14 Thread Nuno Sá
Hi Stefan, On Fri, 2023-04-14 at 08:57 +0200, Stefan Roese wrote: > Hi Nuno, > > On 3/27/23 15:22, Nuno Sá wrote: > > flash_get_size() will get the flash size from the device itself and > > go > > through all erase regions to read protection status. However, the > > device > > mappable region (eg

Re: [PATCH v4 0/9] Add video damage tracking

2023-04-14 Thread Antonio Murdaca
Hi, this patch set applies cleanly on 2023.01 and solves the issue on the rockpro64 where the grub would take forever to draw on the screen. Thanks

[PATCH] arm: mach-k3: am62a7: Enable QoS for DSS

2023-04-14 Thread Aradhya Bhatia
Enable Quality of Service (QoS) blocks for Display SubSystem (DSS), by servicing the DSS - DDR traffic from the Real-Time (RT) queue. This is done by setting the DSS DMA orderID to 8. The C7x and VPAC have been overwhelming the DSS's access to the DDR (when it was accessing via the Non Real-Time (

Re: [PATCH v5 0/6] FWU: Add support for mtd backed feature on DeveloperBox

2023-04-14 Thread Michal Simek
On 4/11/23 01:01, jaswinder.si...@linaro.org wrote: From: Jassi Brar Introduce support for mtd backed storage for FWU feature and enable it on Synquacer platform based DeveloperBox. This revision is rebased onto patchset that trims the FWU api https://lore.kernel.org/u-boot/2023030623174

Re: [PATCH] dt/bindings: fwu-mdata-mtd: drop changes outside FWU

2023-04-14 Thread Michal Simek
On 4/11/23 07:38, Krzysztof Kozlowski wrote: On 11/04/2023 01:21, jaswinder.si...@linaro.org wrote: From: Jassi Brar Any requirement of FWU should not require changes to bindings of other subsystems. For example, for mtd-backed storage we can do without requiring 'fixed-partitions' children

Re: [PATCH v4 1/6] FWU: Add FWU metadata access driver for MTD storage regions

2023-04-14 Thread Michal Simek
On 4/10/23 05:56, Jassi Brar wrote: On Wed, 29 Mar 2023 at 07:00, Michal Simek wrote: On 3/27/23 23:15, jassisinghb...@gmail.com wrote: diff --git a/drivers/fwu-mdata/raw_mtd.c b/drivers/fwu-mdata/raw_mtd.c new file mode 100644 index 00..4b1a10073a --- /dev/null +++ b/drivers/fwu-

Re: [PATCH v4 3/6] tools: Add mkfwumdata tool for FWU metadata image

2023-04-14 Thread Michal Simek
On 4/10/23 06:05, Jassi Brar wrote: On Wed, 29 Mar 2023 at 07:29, Michal Simek wrote: On 3/27/23 23:16, jassisinghb...@gmail.com wrote: diff --git a/tools/mkfwumdata.c b/tools/mkfwumdata.c new file mode 100644 index 00..43dabf3b72 --- /dev/null +++ b/tools/mkfwumdata.c @@ -0,0 +1,

Re: [PATCH v4 3/6] tools: Add mkfwumdata tool for FWU metadata image

2023-04-14 Thread Michal Simek
On 4/10/23 06:25, Jassi Brar wrote: On Wed, 29 Mar 2023 at 15:02, Simon Glass wrote: Hi, On Tue, 28 Mar 2023 at 10:16, wrote: From: Masami Hiramatsu Add 'mkfwumdata' tool to generate FWU metadata image for the meta-data partition to be used in A/B Update imeplementation. Signed-off-b

Re: [PATCH v4 6/6] fwu: DeveloperBox: add support for FWU

2023-04-14 Thread Michal Simek
On 4/10/23 06:21, Jassi Brar wrote: On Wed, 29 Mar 2023 at 08:02, Michal Simek wrote: On 3/27/23 23:16, jassisinghb...@gmail.com wrote: . + +void fwu_plat_get_bootidx(uint *boot_idx) +{ + int ret; + u32 active_idx; + u32 *bootidx = boot_idx; + + ret = fwu_get_active_in

Re: [PATCH 2/2] reset: rockchip: implement rk3588 lookup table

2023-04-14 Thread Sebastian Reichel
Hi Kever, On Fri, Apr 14, 2023 at 12:03:00PM +0300, Eugen Hristev wrote: > On 4/14/23 10:02, Kever Yang wrote: > > On 2023/4/13 19:36, Eugen Hristev wrote: > > > The current DT bindings for the rk3588 clock use a different ID than the > > > one that is supposed to be written to the hardware regist

Re: [PATCH V2 2/2] net: phy: Make phy_interface_is_rgmii a switch statement

2023-04-14 Thread Marek Vasut
On 4/14/23 06:24, Nishanth Menon wrote: Recent commit 75d28899e3e9 ("net: phy: Synchronize PHY interface modes with Linux") reordered the enum definitions. This exposed a problem in range checking functions to identify the interface type. Though this specific api was'nt impacted (all the RGMII de

Re: [PATCH V2 1/2] net: phy: Make phy_interface_is_sgmii a switch statement

2023-04-14 Thread Marek Vasut
On 4/14/23 06:24, Nishanth Menon wrote: Recent commit 75d28899e3e9 ("net: phy: Synchronize PHY interface modes with Linux") reordered the enum definitions. This caused the range of enums that this api was checking to go bad. While it is possible for the phy drivers to practically use the enum's

[PATCH] include: configs: j721e_evm: Fix name_fdt for J7200

2023-04-14 Thread Neha Malcom Francis
Currently, name_fdt is not set for J7200, fix this so right DTB is picked during boot. Signed-off-by: Neha Malcom Francis --- board/ti/j721e/j721e.env | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/ti/j721e/j721e.env b/board/ti/j721e/j721e.env index 446395adfa..222b5b12dd 100644 ---

Re: [PATCH 0/3] Add support for ESM

2023-04-14 Thread Neha Malcom Francis
Please ignore following patches, send by mistake. Sorry for the spam! On 14/04/23 16:22, Neha Malcom Francis wrote: ESM (Error Signaling Module) is a fundamental IP responsible for handling safety events. The driver currently present in U-Boot is responsible for configuring ESM. This patch serie

Re: [PATCH 2/2] sunxi: binman: Fix U-Boot offset when SPL is not 32 KiB

2023-04-14 Thread Andre Przywara
On Sat, 21 Jan 2023 17:25:17 -0600 Samuel Holland wrote: Hi Samuel, > On sunxi boards, SPL looks for U-Boot at a 32 KiB offset, unless SPL is > larger than 32 KiB, in which case U-Boot immediately follows SPL. See > the logic in spl_mmc_get_uboot_raw_sector() and spl_spi_load_image(). > > In tw

[PATCH 3/3] arm64: dts: ti: k3-j7200: Add ESM support

2023-04-14 Thread Neha Malcom Francis
Add address entry mapping ESM on J7200. Signed-off-by: Neha Malcom Francis --- arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 6 ++ arch/arm64/boot/dts/ti/k3-j7200.dtsi | 1 + 2 files changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j7200-main.dtsi b/arch/arm64/boot/dts/ti

[PATCH 0/3] Add support for ESM

2023-04-14 Thread Neha Malcom Francis
ESM (Error Signaling Module) is a fundamental IP responsible for handling safety events. The driver currently present in U-Boot is responsible for configuring ESM. This patch series adds dt-binding and nodes for J721E and J7200. This goes towards end goal of having DTB sync with that of U-Boot as w

[PATCH 2/3] arm64: dts: ti: k3-j721e: Add ESM support

2023-04-14 Thread Neha Malcom Francis
Add address entry mapping ESM on J721E. Signed-off-by: Neha Malcom Francis --- arch/arm64/boot/dts/ti/k3-j721e.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721e.dtsi b/arch/arm64/boot/dts/ti/k3-j721e.dtsi index b912143b6a11..52bcde601eb8 100644 --- a/arch/

[PATCH 1/3] dt-bindings: misc: esm: Add ESM support for TI K3 devices

2023-04-14 Thread Neha Malcom Francis
Document the binding for TI K3 ESM (Error Signaling Module) block. Signed-off-by: Neha Malcom Francis --- .../devicetree/bindings/misc/esm-k3.yaml | 54 +++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/esm-k3.yaml diff --git a/

Re: [PATCH u-boot 3/4] sunxi: eMMC: Add comments explaining mapping between bootpart and mmc_switch_part()

2023-04-14 Thread Andre Przywara
On Thu, 13 Apr 2023 23:10:56 +0200 Pali Rohár wrote: > Mapping between bootpart taken from EXT_CSD_EXTRACT_BOOT_PART() and > Partition Access bits used by the mmc_switch_part() function may be quite > misleading. So add extended comment describing why in sunxi case is this > mapping just a simple

Re: [PATCH v2 6/6] mtd: nand: sunxi: Pass the device to the init function

2023-04-14 Thread Michael Nazzareno Trimarchi
On Fri, Apr 14, 2023 at 12:23 PM Andre Przywara wrote: > > On Sun, 22 Jan 2023 16:06:36 -0600 > Samuel Holland wrote: > > > This more closely matches the U-Boot driver to the Linux version. > > > > Signed-off-by: Samuel Holland > > Reviewed-by: Andre Przywara > > Thanks! > Andre > > > --- > > >

Re: [PATCH v2 0/6] mtd: nand: sunxi: Convert to devicetree and the driver model

2023-04-14 Thread Andre Przywara
On Sun, 22 Jan 2023 16:06:30 -0600 Samuel Holland wrote: Hi, > This series converts the sunxi NAND driver to get its resources (clocks, > resets, pins) from the devicetree, and probe using the driver model. > > In addition to the immediate cleanup, this allows backporting more > patches (bugfix

Re: [PATCH v2 6/6] mtd: nand: sunxi: Pass the device to the init function

2023-04-14 Thread Andre Przywara
On Sun, 22 Jan 2023 16:06:36 -0600 Samuel Holland wrote: > This more closely matches the U-Boot driver to the Linux version. > > Signed-off-by: Samuel Holland Reviewed-by: Andre Przywara Thanks! Andre > --- > > (no changes since v1) > > drivers/mtd/nand/raw/sunxi_nand.c | 39

Re: [PATCH v2 4/6] mtd: nand: sunxi: Convert from fdtdec to ofnode

2023-04-14 Thread Andre Przywara
On Sun, 22 Jan 2023 16:06:34 -0600 Samuel Holland wrote: Hi, > As a first step toward converting this driver to the driver model, use > the ofnode abstraction to replace direct references to the FDT blob. > > Using ofnode_read_u32_index removes an extra pair of loops and makes the > allwinner,r

Re: [PATCH v2 1/2] ARM: dts: rk3588-rock-5b-u-boot: add u-boot, dm-spl to pinctrl for sdmmc

2023-04-14 Thread Eugen Hristev
On 4/14/23 11:55, Kever Yang wrote: On 2023/3/18 00:29, Eugen Hristev wrote: To be able to initialize the pinctrl correctly at SPL level and read u-boot proper from SD-Card, the pinctrl must be initialized. Signed-off-by: Eugen Hristev Reviewed-by: Kever Yang Hi Kever, The properties mu

Re: [PATCH] ram: rk3399: add missing high row detection

2023-04-14 Thread Kever Yang
On 2023/3/23 18:35, Jonathan Liu wrote: For 2 GB LPDDR4 single-rank RAM with 16 rows, the Rockchip ddr init bin prints: "Bus Width=32 Col=10 Bank=8 Row=16 CS=1 Die Bus-Width=16 Size=2048MB" U-Boot TPL prints: "BW=32 Col=10 Bk=8 CS0 Row=16/15 CS=1 Die BW=16 Size=2048MB" Add missing high row de

Re: [PATCH v2 3/3] rk3566: radxa-cm3: Enable USB OTG

2023-04-14 Thread Kever Yang
On 2023/2/26 21:22, Manoj Sai wrote: Enable USB OTG support and update the fastboot buffer address for Radxa Compute Module 3 IO Board. This would help to use fastboot by default. Signed-off-by: Manoj Sai --- Changes for v2 :- - Updated the fastboot buffer address in drivers/fastboot/Kconfig

Re: [PATCH v2 2/3] rockchip: rk356x: update the dwc3_device register offset

2023-04-14 Thread Kever Yang
Hi Manoj, This functions has been update, please check the latest version. Thanks, - Kever On 2023/2/26 21:22, Manoj Sai wrote: update the dwc3_device register offset in board_usb_init() for rk3568 platforms. Signed-off-by: Manoj Sai Reviewed-by: Jagan Teki --- Changes for v2:- - None ---

Re: [PATCH v2 1/3] arm: dts: rockchip: rk3566: Enable USB OTG for Radxa CM3

2023-04-14 Thread Kever Yang
On 2023/2/26 21:22, Manoj Sai wrote: Enable USB OTG support for Radxa Compute Module 3 IO Board Signed-off-by: Manoj Sai Reviewed-by: Kever Yang Thanks, - Kever --- Changes for v2 :- - None. Note: Above changeset has sent to kernel mailing list, which is currently under review. https://

Re: [PATCH 2/2] reset: rockchip: implement rk3588 lookup table

2023-04-14 Thread Eugen Hristev
On 4/14/23 10:02, Kever Yang wrote: + Heiko and Elaine, Hi Eugen, On 2023/4/13 19:36, Eugen Hristev wrote: The current DT bindings for the rk3588 clock use a different ID than the one that is supposed to be written to the hardware registers. Thus, we cannot use directly the id provided in the

Re: [PATCH 2/2] rockchip: ringneck-px30: enforce ENV_IS_NOWHERE with Kconfig select

2023-04-14 Thread Kever Yang
On 2023/3/2 01:31, Quentin Schulz wrote: From: Quentin Schulz Instead of letting the compiler error out if CONFIG_ENV_IS_NOWHERE is not selected by the user, let's just enforce it when the user builds for Ringneck PX30 so that no check needs to be performed by the compiler and the configurati

Re: [PATCH 1/2] rockchip: puma-rk3399: enforce ENV_IS_NOWHERE with Kconfig select

2023-04-14 Thread Kever Yang
On 2023/3/2 01:31, Quentin Schulz wrote: From: Quentin Schulz Instead of letting the compiler error out if CONFIG_ENV_IS_NOWHERE is not selected by the user, let's just enforce it when the user builds for Puma RK3399 so that no check needs to be performed by the compiler and the configuration

Re: [PATCH] board: rockchip: add Anbernic RGXX3 Series Devices

2023-04-14 Thread Kever Yang
On 2023/3/17 01:46, Chris Morgan wrote: From: Chris Morgan The Anbernic RGxx3 is a "pseudo-device" that encompasses the following devices: - Anbernic RG353M - Anbernic RG353P - Anbernic RG353V - Anbernic RG353VS - Anbernic RG503 The rk3566-anbernic-rgxx3.dtsi is synced with upstre

Re: [PATCH v2 2/2] configs: rockchip: rock5b-rk3588: add pinctrl to SPL

2023-04-14 Thread Kever Yang
On 2023/3/18 00:29, Eugen Hristev wrote: Add pinctrl driver in SPL. Do not remove pinctrl properties for SPL dtb. Signed-off-by: Eugen Hristev Reviewed-by: Kever Yang Thanks, - Kever --- configs/rock5b-rk3588_defconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

Re: [PATCH v2 1/2] ARM: dts: rk3588-rock-5b-u-boot: add u-boot, dm-spl to pinctrl for sdmmc

2023-04-14 Thread Kever Yang
On 2023/3/18 00:29, Eugen Hristev wrote: To be able to initialize the pinctrl correctly at SPL level and read u-boot proper from SD-Card, the pinctrl must be initialized. Signed-off-by: Eugen Hristev Reviewed-by: Kever Yang Thanks, - Kever --- Changes in v2: - add u-boot,dm-spl to pull up

Re: [PATCH 2/2] rockchip: video: Add support for RK3568 DSI Host

2023-04-14 Thread Kever Yang
On 2023/3/25 02:53, Chris Morgan wrote: From: Chris Morgan Add support for DSI Host controller on Rockchip RK3568. This driver is heavily based on the Rockchip dw_mipi_dsi_rockchip.c driver in Linux and the stm32_dsi.c driver in U-Boot. It should be easy to add support for other SoCs as the o

Re: [PATCH 1/2] drivers: phy: add Innosilicon DSI-DPHY driver

2023-04-14 Thread Kever Yang
On 2023/3/25 02:53, Chris Morgan wrote: From: Chris Morgan Add support for the Innosilicon DSI-DPHY driver for Rockchip SOCs. The driver was ported from Linux and tested on a Rockchip RK3566 based device to query the panel ID via a DSI command. Signed-off-by: Chris Morgan Reviewed-by: Keve

Re: [PATCH v3 3/3] rockchip: otp: fix misc_read() return values

2023-04-14 Thread Kever Yang
On 2023/3/27 19:01, John Keeping wrote: The documentation for misc_read() says: Return: number of bytes read if OK (may be 0 if EOF), -ve on error The Rockchip efuse driver implements this so it should return the number of bytes read rather than zero on success. Fix this so that the dri

Re: [PATCH v3 2/3] rockchip: efuse: fix misc_read() return values

2023-04-14 Thread Kever Yang
On 2023/3/27 19:01, John Keeping wrote: The documentation for misc_read() says: Return: number of bytes read if OK (may be 0 if EOF), -ve on error The Rockchip efuse driver implements this so it should return the number of bytes read rather than zero on success. Fix this so that the dri

Re: [PATCH v3 1/3] rockchip: misc: fix misc_read() return check

2023-04-14 Thread Kever Yang
On 2023/3/27 19:01, John Keeping wrote: misc_read() is documented to return the number of bytes read or a negative error value. The Rockchip drivers currently do not implement this correctly and instead return zero on success or a negative error value. In preparation for fixing the drivers, f

Re: [PATCH] clk: rockchip: rk3568: Add dummy I2S1_MCLKOUT_TX clock support

2023-04-14 Thread Kever Yang
On 2023/4/2 23:58, Jonas Karlman wrote: A RK3568 device tree pmic node can reference the I2S1_MCLKOUT_TX clock in assigned-clocks, add dummy support to set parent of this clock to the rk3568 cru driver. Fixes probe of pmic driver and missing regulators on affected boards, rk3568-evb and rk3568

Re: [PATCH v2] mmc: dw_mmc: reset controller after data error

2023-04-14 Thread Kever Yang
On 2023/4/3 18:44, Eugen Hristev wrote: From: Ziyuan Xu Per dw_mmc databook, it's recommended to reset the host controller if some data-related error occurred. Implement a reset mechanism. Signed-off-by: Ziyuan Xu Co-developed-by: Jason Zhu Signed-off-by: Jason Zhu [eugen.hris...@collabor

[PATCH 1/1] sandbox: enable CONFIG_EFI_CAPSULE_AUTHENTICATE

2023-04-14 Thread Heinrich Schuchardt
Without CONFIG_EFI_CAPSULE_AUTHENTICATE=y the following tests are skipped: * test/py/tests/test_efi_capsule/test_capsule_firmware_signed_fit.py * test/py/tests/test_efi_capsule/test_capsule_firmware_signed_raw.py Signed-off-by: Heinrich Schuchardt --- configs/sandbox_defconfig | 1 + c

Re: [PATCH V2 2/2] net: phy: Make phy_interface_is_rgmii a switch statement

2023-04-14 Thread Marek Behún
On Thu, 13 Apr 2023 23:24:33 -0500 Nishanth Menon wrote: > Recent commit 75d28899e3e9 ("net: phy: Synchronize PHY interface modes > with Linux") reordered the enum definitions. This exposed a problem in > range checking functions to identify the interface type. Though this > specific api was'nt i

Re: [PATCH V2 1/2] net: phy: Make phy_interface_is_sgmii a switch statement

2023-04-14 Thread Marek Behún
On Thu, 13 Apr 2023 23:24:32 -0500 Nishanth Menon wrote: > Recent commit 75d28899e3e9 ("net: phy: Synchronize PHY interface modes > with Linux") reordered the enum definitions. This caused the range of > enums that this api was checking to go bad. > > While it is possible for the phy drivers to

[PATCH 1/1] test: fix pylint warning for capsule tests

2023-04-14 Thread Heinrich Schuchardt
Fix pylint warnings like: * Class inherits from object * Missing module description * Missing class description * First line of comment blank * Superfluous imports Signed-off-by: Heinrich Schuchardt --- test/py/tests/test_efi_capsule/conftest.py| 27 .../test_capsule_firmware_f

Re: [PATCH v2 02/10] arm: dts: introduce j784s4 u-boot dtbs

2023-04-14 Thread Siddharth Vadapalli
Hari, On 21/03/23 19:40, Hari Nagalla wrote: > Introduce the base dts files needed for u-boot or to augment the linux > dtbs for use in the u-boot-spl and u-boot binaries. > > Signed-off-by: Apurva Nandan > Signed-off-by: Hari Nagalla > --- > arch/arm/dts/Makefile|2

Re: [PATCH] mtd: cfi: respect reg address length

2023-04-14 Thread Stefan Roese
Hi Nuno Sá, On 4/14/23 09:37, Nuno Sá wrote: Hi Stefan, On Fri, 2023-04-14 at 08:57 +0200, Stefan Roese wrote: Hi Nuno, On 3/27/23 15:22, Nuno Sá wrote: flash_get_size() will get the flash size from the device itself and go through all erase regions to read protection status. However, the de

[PATCH 17/23] arm: dts: k3-am642-evm-u-boot: Drop the i2c node

2023-04-14 Thread Nishanth Menon
Drop the i2c and mux description, since we have it on main board dts. Signed-off-by: Nishanth Menon --- Again causes a bisect break at this point due to some weird dependency with r5 which I could not cleanly resolve. arch/arm/dts/k3-am642-evm-u-boot.dtsi | 15 --- 1 file changed, 4

[PATCH 15/23] arm: dts: k3-am642-evm: Add main_uart1 description

2023-04-14 Thread Nishanth Menon
Add main_uart1 description in evm devicetree. This is a pending upstream kernel updates as of v6.3-rc6. Signed-off-by: Nishanth Menon --- Sent to kernel.org https://lore.kernel.org/linux-devicetree/20230414073328.381336-1...@ti.com/ arch/arm/dts/k3-am642-evm.dts | 13 + 1 file cha

[PATCH 04/23] arm: dts: k3-am642-sk: Fix mmc1 pinmux pull polarity

2023-04-14 Thread Nishanth Menon
Fix the pinmux pull polarity. This is a pending upstream kernel updates as of v6.3-rc6. Signed-off-by: Nishanth Menon --- Sent to kernel.org https://lore.kernel.org/linux-devicetree/20230414073328.381336-1...@ti.com/ arch/arm/dts/k3-am642-sk.dts | 16 +--- 1 file changed, 9 insert

[PATCH 05/23] arm: dts: k3-am642-sk: Add main_uart1 description

2023-04-14 Thread Nishanth Menon
Add main_uart1 description in sk devicetree. This is a pending upstream kernel updates as of v6.3-rc6. Signed-off-by: Nishanth Menon --- Sent to kernel.org https://lore.kernel.org/linux-devicetree/20230414073328.381336-1...@ti.com/ arch/arm/dts/k3-am642-sk.dts | 13 + 1 file chang

[PATCH 14/23] arm: dts: k3-am642-evm: Add DDR vtt regulator

2023-04-14 Thread Nishanth Menon
Describe the DDR vtt regulator on evm This is a pending upstream kernel updates as of v6.3-rc6. Signed-off-by: Nishanth Menon --- Sent to kernel.org https://lore.kernel.org/linux-devicetree/20230414073328.381336-1...@ti.com/ I skipped doing the regulator renaming etc, it is just churn un-necess

[PATCH 02/23] arm: dts: k3-am64: Update devicetree to sync with v6.3-rc6

2023-04-14 Thread Nishanth Menon
Sync with Kernel.org v6.3-rc6 tag. Signed-off-by: Nishanth Menon --- arch/arm/dts/k3-am642.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/k3-am642.dtsi b/arch/arm/dts/k3-am642.dtsi index 8a76f4821b11..7a6eedea3aae 100644 --- a/arch/arm/dts/k3-am642.dtsi +++ b/arch/arm/dts/

[PATCH 23/23] configs: am64x_evm_a53_defconfig: Just use distroboot

2023-04-14 Thread Nishanth Menon
Just use distroboot when we are attempting to enable that by default. Signed-off-by: Nishanth Menon --- we should probably do this for all other defconfigs instead of the weird hacks folks have been doing inconsistenly in am62x, j721e defconfig. if we are distroboot, just do it.. envboot is for

[PATCH 20/23] arm: dts: k3-am642-evm-u-boot: Add missing pinmux notations

2023-04-14 Thread Nishanth Menon
Add required pinmux spl notations for pinmux entries that are missing. Signed-off-by: Nishanth Menon --- arch/arm/dts/k3-am642-evm-u-boot.dtsi | 16 1 file changed, 16 insertions(+) diff --git a/arch/arm/dts/k3-am642-evm-u-boot.dtsi b/arch/arm/dts/k3-am642-evm-u-boot.dtsi inde

[PATCH 13/23] arm: dts: k3-am642-evm: Move the mdio pinmux down to evm.dts

2023-04-14 Thread Nishanth Menon
Since networking is needed even for u-boot, lets move the MDIO pinmux hack down to evm.dts. Until MDIO is converted to DM model, it won't be possible to probe for pinmux from the MDIO node. To work around this, hack the board dts to set the default mux option to include MDIO. This hack is a limita

[PATCH 19/23] arm: dts: k3-am642-evm-u-boot: Re-organize the pinmux

2023-04-14 Thread Nishanth Menon
Reorder the pinmux to place it above the interface for easier tracking. Signed-off-by: Nishanth Menon --- arch/arm/dts/k3-am642-evm-u-boot.dtsi | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm/dts/k3-am642-evm-u-boot.dtsi b/arch/arm/dts/k3-am642-evm-

[PATCH 12/23] arm: dts: k3-am642-r5-sk: Use am642-sk.dts and k3-am642-sk-u-boot.dtsi

2023-04-14 Thread Nishanth Menon
Use am642-sk.dts to represent the Board and selectively enable/override the configurations necessary. And since am642-sk-u-boot.dtsi also needs to setup common properties, instead of re-inventing everything, just reuse the definitions. Signed-off-by: Nishanth Menon --- arch/arm/dts/k3-am642-r5-s

[PATCH 06/23] arm: dts: k3-am642-sk: Add main_i2c0 and eeprom

2023-04-14 Thread Nishanth Menon
Add missing main_i2c0 node and eeprom property. This is a pending upstream kernel updates as of v6.3-rc6. Signed-off-by: Nishanth Menon --- Sent to kernel.org https://lore.kernel.org/linux-devicetree/20230414073328.381336-1...@ti.com/ arch/arm/dts/k3-am642-sk.dts | 21 + 1

[PATCH 21/23] arm: dts: k3-am642-r5-evm: Use am642-evm.dts and k3-am642-evm-u-boot.dtsi

2023-04-14 Thread Nishanth Menon
Use am642-evm.dts to represent the Board and selectively enable/override the configurations necessary. And since am642-evm-u-boot.dtsi also needs to setup common properties, instead of re-inventing everything, just reuse the definitions. Signed-off-by: Nishanth Menon --- arch/arm/dts/k3-am642-r5

[PATCH 03/23] arm: dts: k3-am642-sk: Add a note to handle pinmux till MDIO DM conversion is done

2023-04-14 Thread Nishanth Menon
Until MDIO is converted to DM model, it won't be possible to probe for pinmux from the MDIO node. To work around this, lets hack the board dts to set the default mux option to include MDIO. This hack is a limitation for now till we get u-boot MDIO driver into DM model. Signed-off-by: Nishanth Meno

[PATCH 11/23] arm: dts: k3-am642-sk-u-boot: Drop aliases and stdout

2023-04-14 Thread Nishanth Menon
These are inherited from am642-sk.dts itself. While at this, fix up a minor formatting error with main_cbass. Signed-off-by: Nishanth Menon --- arch/arm/dts/k3-am642-sk-u-boot.dtsi | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/arm/dts/k3-am642-sk-u-boot.dtsi b/

[PATCH 22/23] include: configs: am64x_evm: Change to using .env

2023-04-14 Thread Nishanth Menon
Move to using .env file for setting up environment variables for am64x. Signed-off-by: Nishanth Menon --- I think this was long time pending.. but anyways.. board/ti/am64x/Kconfig | 3 + board/ti/am64x/am64x.env| 37 include/configs/am64x_evm.h | 117 ++

[PATCH 10/23] arm: dts: k3-am642-sk-u-boot: Document timer as missing upstream

2023-04-14 Thread Nishanth Menon
Mark the timer as missing in upstream kernel. Signed-off-by: Nishanth Menon --- Sent to kernel.org https://lore.kernel.org/linux-devicetree/20230414073328.381336-1...@ti.com/ once the patches are merged, we can consider integrating the same in the appropriate sync, I have tried to stay off main

[PATCH 18/23] arm: dts: k3-am642-evm-u-boot: Drop stdout and cosmetic fixups

2023-04-14 Thread Nishanth Menon
stdout is provided in evm.dts, add documentation that timer needs to be fixed in upstream. While at it, fix a minor formatting error Signed-off-by: Nishanth Menon --- arch/arm/dts/k3-am642-evm-u-boot.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/k3-am

[PATCH 07/23] arm: dts: k3-am642-sk-u-boot: Drop the i2c node

2023-04-14 Thread Nishanth Menon
Drop the i2c and mux description, since we have it on main board dts. Signed-off-by: Nishanth Menon --- This causes a bisect break with some weird dependency on r5-sk.dts on u-boot.dtsi arch/arm/dts/k3-am642-sk-u-boot.dtsi | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-)

[PATCH 01/23] Revert "ARM: dts: k3-am642-sk-u-boot: add PMIC node"

2023-04-14 Thread Nishanth Menon
The original patch is completely wrong. a) https://www.ti.com/tool/SK-AM64#design-files shows no such PMIC driving the supplies. b) This should have gone upstream to am64-sk.dts and NOT hacked into u-boot.dtsi. This reverts commit 28a4c3113445d4400639f357fae0def007a41093. Cc: Neil Armstrong

[PATCH 09/23] arm: dts: k3-am642-sk-u-boot: Mark main_uart0 to be used for spl

2023-04-14 Thread Nishanth Menon
we need to configure the pinmux for main_uart0 to get console Signed-off-by: Nishanth Menon --- arch/arm/dts/k3-am642-sk-u-boot.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/k3-am642-sk-u-boot.dtsi b/arch/arm/dts/k3-am642-sk-u-boot.dtsi index 57797a59e05d..122a304d45

[PATCH 16/23] arm: dts: k3-am642-evm: Add main_i2c0 and eeprom

2023-04-14 Thread Nishanth Menon
Add missing main_i2c0 node and eeprom property. This is a pending upstream kernel updates as of v6.3-rc6. Signed-off-by: Nishanth Menon --- Sent to kernel.org https://lore.kernel.org/linux-devicetree/20230414073328.381336-1...@ti.com/ arch/arm/dts/k3-am642-evm.dts | 22 ++

[PATCH 08/23] arm: dts: k3-am642-sk-u-boot: Drop redundant usb dr_mode property

2023-04-14 Thread Nishanth Menon
We do not need that property to be defined as it is already defined in am642-sk.dts Signed-off-by: Nishanth Menon --- arch/arm/dts/k3-am642-sk-u-boot.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/dts/k3-am642-sk-u-boot.dtsi b/arch/arm/dts/k3-am642-sk-u-boot.dtsi index aa3551c

[PATCH 00/23] arm: dts: k3-am64: Sync with kernel.org and

2023-04-14 Thread Nishanth Menon
Hi, This is a bit painful series, so apologies in advance for the patchbomb. I did'nt see any clean way to do this, so here goes. First: there are dts mismatches and overrides being done in u-boot in varied manner that should have been submitted to kernel.org in the first place, so, https://lore

Re: [PATCH 2/2] reset: rockchip: implement rk3588 lookup table

2023-04-14 Thread Kever Yang
+ Heiko and Elaine, Hi Eugen, On 2023/4/13 19:36, Eugen Hristev wrote: The current DT bindings for the rk3588 clock use a different ID than the one that is supposed to be written to the hardware registers. Thus, we cannot use directly the id provided in the phandle, but rather use a lookup tabl