Re: [PATCH V3] board: rockchip: Add Indiedroid Nova

2024-05-24 Thread Chris Morgan
gs/nova-rk3588s_defconfig| 69 +++ > > Here's the defconfig file, but: > > > > @@ -0,0 +1,6 @@ > > > +INDIEDROID-NOVA-RK3588 > > > +M: Chris Morgan > > > +S: Maintained > > > +F: board/indiedroi

[PATCH V4] board: rockchip: Add Indiedroid Nova

2024-05-24 Thread Chris Morgan
From: Chris Morgan The Indiedroid Nova is a Rockchip RK3588S based SBC from Indiedroid. Specifications: Rockchip RK3588S SoC 4x ARM Cortex-A76, 4x ARM Cortex-A55 4/8/16GB memory LPDDR4x Mali G610MC4 GPU Optional eMMC 2x USB 2.0, 2x USB 3.0, 1x USB 3.0 C port with DP Alt

Re: [PATCH 1/2 V2] Revert "board: rockchip: Add early ADC button detect for RGxx3"

2024-05-23 Thread Chris Morgan
On Thu, May 23, 2024 at 11:47:41AM +0800, Kever Yang wrote: > > On 2024/5/21 23:45, Chris Morgan wrote: > > From: Chris Morgan > > > > This reverts commit 41a60d0e5cef54a59596a58940fa7c9cf071034b. > > > > On some of the supported devices the adc detect cod

Re: [PATCH v2] fdt: automatically add /chosen/kaslr-seed if DM_RNG is enabled

2024-05-21 Thread Chris Morgan
ey > > >> + */ > > >> +#include > > >> +#include > > >> +#include > > >> + > > >> +int fdt_kaslrseed(void *fdt) > > >> +{ > > >> + struct udevice *dev; > > >> + int no

Re: [PATCH 2/2] board: rockchip: rgxx3: Use sdmmc0 as first device

2024-05-21 Thread Chris Morgan
On Thu, May 02, 2024 at 10:00:46PM +0200, Jonas Karlman wrote: > Hi Chris, > > On 2024-05-02 21:34, Chris Morgan wrote: > > From: Chris Morgan > > > > Some of the rgxx3 devices do not have a way to recover from a poor > > flash of a bootloader to eMMC. Set the

[PATCH 2/2 V2] board: rockchip: rgxx3: Use sdmmc0 as first device

2024-05-21 Thread Chris Morgan
From: Chris Morgan Some of the rgxx3 devices do not have a way to recover from a poor flash of a bootloader to eMMC. Set the device to always attempt to boot from sdmmc0 first which ensures that we can override the boot from emmc if we have a card present with a valid fit signature

[PATCH 1/2 V2] Revert "board: rockchip: Add early ADC button detect for RGxx3"

2024-05-21 Thread Chris Morgan
From: Chris Morgan This reverts commit 41a60d0e5cef54a59596a58940fa7c9cf071034b. On some of the supported devices the adc detect code always returns that the button has been pushed, and as a result the device will not boot normally. Signed-off-by: Chris Morgan --- board/anbernic/rgxx3_rk3566

[PATCH 0/2 V2] RGXX3: Set boot order for mmc0 first

2024-05-21 Thread Chris Morgan
From: Chris Morgan Set the rgxx3 device to boot from mmc0 first. This serves as a fallback to allow us to recover from a bad U-Boot (or later) stage in a worst case scenario. The code for an ADC button appears to have broke some board revisions; this solution is much simpler and allows users

[PATCH V3] board: rockchip: Add Indiedroid Nova

2024-05-21 Thread Chris Morgan
From: Chris Morgan The Indiedroid Nova is a Rockchip RK3588S based SBC from Indiedroid. Specifications: Rockchip RK3588S SoC 4x ARM Cortex-A76, 4x ARM Cortex-A55 4/8/16GB memory LPDDR4x Mali G610MC4 GPU Optional eMMC 2x USB 2.0, 2x USB 3.0, 1x USB 3.0 C port with DP Alt

[PATCH V4] board: rockchip: add Powkiddy X55

2024-05-21 Thread Chris Morgan
From: Chris Morgan The Powkiddy X55 is a Rockchip RK3566 based handheld gaming device. UART, ADC, eMMC, and SDMMC are tested to work in U-Boot and this successfully boots mainline Linux. Kernel commit: e99adc97e21a ("arm64: dts: rockchip: Add Powkiddy X55") Signed-off-by: Ch

[PATCH V3] board: rockchip: add Powkiddy X55

2024-05-02 Thread Chris Morgan
From: Chris Morgan The Powkiddy X55 is a Rockchip RK3566 based handheld gaming device. UART, ADC, eMMC, and SDMMC are tested to work in U-Boot and this successfully boots mainline Linux. Kernel commit: e99adc97e21a ("arm64: dts: rockchip: Add Powkiddy X55") Signed-off-by: Ch

[PATCH 2/2] board: rockchip: rgxx3: Use sdmmc0 as first device

2024-05-02 Thread Chris Morgan
From: Chris Morgan Some of the rgxx3 devices do not have a way to recover from a poor flash of a bootloader to eMMC. Set the device to always attempt to boot from sdmmc0 first which ensures that we can override the boot from emmc if we have a card present with a valid U-Boot stage. Signed-off

[PATCH 1/2] Revert "board: rockchip: Add early ADC button detect for RGxx3"

2024-05-02 Thread Chris Morgan
From: Chris Morgan This reverts commit 41a60d0e5cef54a59596a58940fa7c9cf071034b. On some of the supported devices the adc detect code always returns that the button has been pushed, and as a result the device will not boot normally. Signed-off-by: Chris Morgan --- board/anbernic/rgxx3_rk3566

[PATCH 0/2] RGXX3: Set boot order for mmc0 first

2024-05-02 Thread Chris Morgan
From: Chris Morgan Set the rgxx3 device to boot from mmc0 first. This serves as a fallback to allow us to recover from a bad U-Boot (or later) stage in a worst case scenario. The code for an ADC button appears to have broke some board revisions; this solution is much simpler and allows users

[PATCH V2] board: rockchip: Add Indiedroid Nova

2024-05-02 Thread Chris Morgan
From: Chris Morgan The Indiedroid Nova is a Rockchip RK3588S based SBC from Indiedroid. Specifications: Rockchip RK3588S SoC 4x ARM Cortex-A76, 4x ARM Cortex-A55 4/8/16GB memory LPDDR4x Mali G610MC4 GPU Optional eMMC 2x USB 2.0, 2x USB 3.0, 1x USB 3.0 C port with DP Alt

[PATCH] rockchip: Correct UUID for root partitions

2024-04-26 Thread Chris Morgan
From: Chris Morgan For root partitions, the UUID should still be random but the partition type uuid should either be b921b045-1df0-41c3-af44-4c6f280d3fae for aarch64 or 69dad710-2ce4-4e3c-b16c-21a1d49abed3 for aarch32. Correct the attribute so it is the partition type that is hard coded

Re: [V1 PATCH 1/2] rockchip: sdram: Support getting banks from TPL for rk3568 and rk3588

2024-04-04 Thread Chris Morgan
On Tue, Apr 02, 2024 at 06:38:59PM +0200, Quentin Schulz wrote: > Hi Chris, > > On 4/1/24 20:14, Chris Morgan wrote: > > From: Chris Morgan > > > > Allow RK3568 and RK3588 based boards to get the RAM bank configuration > > from the ROCKCHIP_TPL stage instead

[PATCH] board: rockchip: Add Indiedroid Nova

2024-04-01 Thread Chris Morgan
From: Chris Morgan The Indiedroid Nova is a Rockchip RK3588S based SBC from Indiedroid. Specifications: Rockchip RK3588S SoC 4x ARM Cortex-A76, 4x ARM Cortex-A55 4/8/16GB memory LPDDR4x Mali G610MC4 GPU Optional eMMC 2x USB 2.0, 2x USB 3.0, 1x USB 3.0 C port with DP Alt

[V2 PATCH 2/2] rockchip: Switch RK3568 and RK3588 to new RAM bank logic

2024-04-01 Thread Chris Morgan
From: Chris Morgan Switch all RK3568 and RK3588 boards to use the ATAGS based RAM bank logic. This allows us to access all RAM when >= 4GB of RAM is available while also automatically creating the memory holes when >= 16GB of RAM is available. Remove the board specific logic that prev

[V1 PATCH 1/2] rockchip: sdram: Support getting banks from TPL for rk3568 and rk3588

2024-04-01 Thread Chris Morgan
From: Chris Morgan Allow RK3568 and RK3588 based boards to get the RAM bank configuration from the ROCKCHIP_TPL stage instead of the current logic. This fixes both an issue where 256MB of RAM is blocked for devices with >= 4GB of RAM and where memory holes need to be defined for devi

[V2 PATCH 0/2] Update RAM Bank Logic for RK3568/RK3588

2024-04-01 Thread Chris Morgan
From: Chris Morgan Use the ATAG info provided by the Rockchip binary TPL to identify RAM banks on the RK3568 and RK3588 when using the ROCKCHIP_TPL binary. This is needed because there are specific addresses that should not be written to for all RK3588 based devices with >=16GB of RAM, writ

Re: [RFC 2/2] rockchip: rk3588: Add SoC specific RAM bank logic

2024-03-30 Thread Chris Morgan
On Sat, Mar 30, 2024 at 11:53:38AM +0100, Jonas Karlman wrote: > Hi Chris, > > On 2024-03-30 06:05, Chris Morgan wrote: > > From: Chris Morgan > > > > Add SoC specific RAM bank logic for the rk3588 boards. This logic > > works by reading the ATAGS

Re: [RFC 1/2] rockchip: sdram: Allow board/soc specific RAM bank logic

2024-03-30 Thread Chris Morgan
On Sat, Mar 30, 2024 at 12:00:46PM +0100, Jonas Karlman wrote: > Hi Chris, > > On 2024-03-30 06:05, Chris Morgan wrote: > > From: Chris Morgan > > > > Allow individual boards or SoCs to alter the RAM bank addition logic > > by defining a __weak function th

[RFC 2/2] rockchip: rk3588: Add SoC specific RAM bank logic

2024-03-29 Thread Chris Morgan
From: Chris Morgan Add SoC specific RAM bank logic for the rk3588 boards. This logic works by reading the ATAGS created by the ROCKCHIP_TPL stage and applies fixups on those to ensure we aren't stepping on any reserved memory addresses. The existing logic requires us to define memory holes

[RFC 1/2] rockchip: sdram: Allow board/soc specific RAM bank logic

2024-03-29 Thread Chris Morgan
From: Chris Morgan Allow individual boards or SoCs to alter the RAM bank addition logic by defining a __weak function that these boards can then override if needed. In the event this function fails, fallback to the default detection logic. Signed-off-by: Chris Morgan --- arch/arm/mach

[RFC 0/2] Update RAM Bank Logic for RK3588

2024-03-29 Thread Chris Morgan
From: Chris Morgan Use the ATAG info provided by the Rockchip binary TPL to identify RAM banks on the RK3588 when using the ROCKCHIP_TPL binary. This is needed because there are specific addresses that should not be written to for all RK3588 based devices with >=16GB of RAM, writ

Re: [PATCH 1/2] rockchip: rk3588: Add support for ATAG parsing

2024-03-28 Thread Chris Morgan
On Thu, Mar 28, 2024 at 04:02:09PM -0400, Tom Rini wrote: > On Wed, Mar 27, 2024 at 10:03:11AM -0500, Chris Morgan wrote: > > On Wed, Mar 27, 2024 at 04:21:49PM +0200, Eugen Hristev wrote: > > > On 3/27/24 15:32, Chris Morgan wrote: > > > > On Wed, Mar 27, 2024 a

Re: [PATCH 1/2] rockchip: rk3588: Add support for ATAG parsing

2024-03-27 Thread Chris Morgan
On Wed, Mar 27, 2024 at 04:21:49PM +0200, Eugen Hristev wrote: > On 3/27/24 15:32, Chris Morgan wrote: > > On Wed, Mar 27, 2024 at 06:32:06PM +0800, Kever Yang wrote: > >> Hi Chris, > >> > >>     The ATAGS is used for passing parameter from bootloader to

Re: [PATCH 1/2] rockchip: rk3588: Add support for ATAG parsing

2024-03-27 Thread Chris Morgan
n #ifdef ROCKCHIP_TPL to only call it when using the Rockchip specific RAM init (in the hopes that maybe one day we get our own RAM init), and then replace existing code for boards like the Rock 5B so that it no longer reserves these memory banks. Thank you, Chris. > > Thanks, > - Ke

[PATCH 2/2] rockchip: rk3588: Add Support for RAM Defines from ATAGs

2024-03-26 Thread Chris Morgan
From: Chris Morgan Add support for defining the usable RAM from ATAGs provided by the Rockchip binary TPL loader. This allows us to automatically account for necessary memory holes on RK3588 devices with 16GB of RAM or more, as well as ensure we can use the full amount of RAM available

[PATCH 1/2] rockchip: rk3588: Add support for ATAG parsing

2024-03-26 Thread Chris Morgan
From: Chris Morgan Add support for parsing the ATAGs created by the Rockchip binary RAM init. This ATAG parsing code was taken from the Rockchip BSP U-Boot source and tested only on parsing the RAM specific ATAGs for the RK3588. Signed-off-by: Chris Morgan --- arch/arm/include/asm/arch

[PATCH 0/2] Use ATAGs for RK3588 For RAM Info

2024-03-26 Thread Chris Morgan
From: Chris Morgan Use the ATAG info provided by the Rockchip binary TPL to identify RAM banks. This is needed because there are specific addresses that should not be written to for all RK3588 based devices with >=16GB of RAM, writing to these addresses immediately results in a crash. Ch

Re: [PATCH 4/4] board: rockchip: Add early ADC button detect for RGxx3

2024-02-05 Thread Chris Morgan
On Tue, Feb 06, 2024 at 10:53:13AM +0800, Kever Yang wrote: > > On 2024/2/6 02:58, Chris Morgan wrote: > > From: Chris Morgan > > > > Add ADC button detect for early SPL stage for RGxx3 device. This is > > important because on at least the RG353P and RG353

Re: [PATCH 1/4] arm: dts: rockchip: rk3566: Remove unnecessary clks from rgxx3

2024-02-05 Thread Chris Morgan
On Tue, Feb 06, 2024 at 10:38:40AM +0800, Kever Yang wrote: > Hi Chris, > > On 2024/2/6 02:58, Chris Morgan wrote: > > From: Chris Morgan > > > > Remove unnecessary clock frequency defines from the RGxx3 u-boot dts. > > Move the necessary defines to the RGxx3 m

[PATCH 4/4] board: rockchip: Add early ADC button detect for RGxx3

2024-02-05 Thread Chris Morgan
From: Chris Morgan Add ADC button detect for early SPL stage for RGxx3 device. This is important because on at least the RG353P and RG353V a clk pin is not exposed that would allow us to take the eMMC out of the boot path. Signed-off-by: Chris Morgan --- board/anbernic/rgxx3_rk3566/rgxx3

[PATCH 2/4] board: rockchip: Add support for Powkiddy RGB10MAX3

2024-02-05 Thread Chris Morgan
From: Chris Morgan Add support to the RGxx3 device for the Powkiddy RGB10MAX3. This device is extremely similar to all the other devices and can use the same bootloader with the same detection logic. Signed-off-by: Chris Morgan --- arch/arm/dts/rk3566-anbernic-rgxx3.dts | 9

[PATCH 3/4] configs: Remove unnecessary options from RGxx3 config

2024-02-05 Thread Chris Morgan
From: Chris Morgan Based on feedback from the mailing list while adding support for a new device (the Powkiddy X55), correct the config options for the RGxx3 as well to remove unnecessary drivers and increase the SPL stack size. Signed-off-by: Chris Morgan --- configs/anbernic-rgxx3

[PATCH 0/4] Add New Devices for RGxx3

2024-02-05 Thread Chris Morgan
From: Chris Morgan This patch series is to clean up a few issues found with the RGxx3, add support for a new device, and add a board specific ADC button check routine to the SPL stage. The ADC button routine was part of a previous patch series that was partially accepted, though making the ADC

[PATCH 1/4] arm: dts: rockchip: rk3566: Remove unnecessary clks from rgxx3

2024-02-05 Thread Chris Morgan
From: Chris Morgan Remove unnecessary clock frequency defines from the RGxx3 u-boot dts. Move the necessary defines to the RGxx3 main dts file. Signed-off-by: Chris Morgan --- .../arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi | 31 --- arch/arm/dts/rk3566-anbernic-rgxx3.dts

Re: [PATCH V4 3/7] rockchip: boot_mode: Allow rockchip_dnl_key_pressed() in SPL

2024-01-24 Thread Chris Morgan
On Fri, Jan 19, 2024 at 05:01:38PM +0800, Kever Yang wrote: > Hi Chris, > > On 2024/1/18 23:06, Chris Morgan wrote: > > On Thu, Jan 18, 2024 at 03:20:52PM +0800, Kever Yang wrote: > > > Hi Chris, > > > > > > On 2024/1/2 23:46, Chri

Re: [PATCH V4 3/7] rockchip: boot_mode: Allow rockchip_dnl_key_pressed() in SPL

2024-01-18 Thread Chris Morgan
On Thu, Jan 18, 2024 at 03:20:52PM +0800, Kever Yang wrote: > Hi Chris, > > On 2024/1/2 23:46, Chris Morgan wrote: > > From: Chris Morgan > > > > Update the rockchip_dnl_key_pressed() so that it can run in > > SPL. Also change the ADC channel to a define that

Re: [PATCH V2] board: rockchip: add Powkiddy X55

2024-01-18 Thread Chris Morgan
On Thu, Jan 18, 2024 at 02:37:04PM +0800, Kever Yang wrote: > Hi Chris, > > On 2023/12/15 02:24, Chris Morgan wrote: > > From: Chris Morgan > > > > The Powkiddy X55 is a Rockchip RK3566 based handheld gaming device. > > UART, ADC, eMMC, and S

[PATCH V4 7/7] doc: board: anbernic: Update rgxx3 to add new boards

2024-01-02 Thread Chris Morgan
From: Chris Morgan Update the RGxx3 documentation to note that it now supports the RG-ARC-D, RG-ARC-S, Powkiddy RK2023, and Powkiddy RGB30. Also update verbiage around panel detection to note that it is no longer hard coded to the RG503. Signed-off-by: Chris Morgan --- doc/board/anbernic

[PATCH V4 6/7] board: rockchip: Add support for new boards to RGxx3

2024-01-02 Thread Chris Morgan
From: Chris Morgan Add support for the Anbernic RG-ARC-D, Anbernic RG-ARC-S, Powkiddy RK2023, and Powkiddy RGB30 to the Anbernic RGxx3. While the Powkiddy devices are manufactured by Powkiddy instead of Anbernic, the hardware is so similar they can all use the same bootloader. Signed-off

[PATCH V4 5/7] rockchip: board: Add board_rng_seed() for all Rockchip devices

2024-01-02 Thread Chris Morgan
From: Chris Morgan Allow all rockchip devices to use the hardware RNG to seed Linux RNG. Signed-off-by: Chris Morgan --- arch/arm/mach-rockchip/board.c | 32 ++ board/anbernic/rgxx3_rk3566/rgxx3-rk3566.c | 29 2 files changed, 32 insertions

[PATCH V4 4/7] board: rockchip: Add Recovery Button for Anbernic RGxx3

2024-01-02 Thread Chris Morgan
From: Chris Morgan Add support for users to enter recovery mode by holding the function button when they power up the device. Since the device has soldered eMMC and sometimes does not expose a clk pin on the mainboard there is a small chance that a user who flashes a bad bootloader may

[PATCH V4 3/7] rockchip: boot_mode: Allow rockchip_dnl_key_pressed() in SPL

2024-01-02 Thread Chris Morgan
From: Chris Morgan Update the rockchip_dnl_key_pressed() so that it can run in SPL. Also change the ADC channel to a define that can be overridden by a board specific option. Signed-off-by: Chris Morgan --- arch/arm/mach-rockchip/Makefile| 4 ++-- arch/arm/mach-rockchip/boot_mode.c | 11

[PATCH V4 2/7] spl: Add Kconfig options for ADC

2024-01-02 Thread Chris Morgan
From: Chris Morgan Add kconfig options to enable ADC in SPL Signed-off-by: Chris Morgan --- common/spl/Kconfig | 7 +++ drivers/Makefile | 1 + drivers/adc/Makefile | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index

[PATCH V4 1/7] board: rockchip: Refactor panel auto-detect code

2024-01-02 Thread Chris Morgan
From: Chris Morgan Make the inability to detect a panel using the auto detection code not fail the entire boot process. This means that if the panel ID cannot be read we don't set an environment variable for the panel, and if an environment variable for the panel is not set we don't attempt

[PATCH V4 0/7] Add Additional Boards and Features to RGxx3

2024-01-02 Thread Chris Morgan
From: Chris Morgan The RGxx3 is a pseudo-device for U-Boot that works for every Anbernic RGxx3 series device on the market. Add support for another series of very similar devices from Powkiddy. Changes since V3: - Fixed a bug with else/else if logic for board detection (changed a second

[PATCH V2] board: rockchip: add Powkiddy X55

2023-12-14 Thread Chris Morgan
From: Chris Morgan The Powkiddy X55 is a Rockchip RK3566 based handheld gaming device. UART, ADC, eMMC, and SDMMC are tested to work in U-Boot and this successfully boots mainline Linux. Changes since V1: - Built on top of this patch series [1] which makes the ADC detect function more

[PATCH V3 7/7] doc: board: anbernic: Update rgxx3 to add new boards

2023-12-11 Thread Chris Morgan
From: Chris Morgan Update the RGxx3 documentation to note that it now supports the RG-ARC-D, RG-ARC-S, Powkiddy RK2023, and Powkiddy RGB30. Also update verbiage around panel detection to note that it is no longer hard coded to the RG503. Signed-off-by: Chris Morgan --- doc/board/anbernic

[PATCH V3 5/7] rockchip: board: Add board_rng_seed() for all Rockchip devices

2023-12-11 Thread Chris Morgan
From: Chris Morgan Allow all rockchip devices to use the hardware RNG to seed Linux RNG. Signed-off-by: Chris Morgan --- arch/arm/mach-rockchip/board.c | 32 ++ board/anbernic/rgxx3_rk3566/rgxx3-rk3566.c | 29 2 files changed, 32 insertions

[PATCH V3 1/7] board: rockchip: Refactor panel auto-detect code

2023-12-11 Thread Chris Morgan
From: Chris Morgan Make the inability to detect a panel using the auto detection code not fail the entire boot process. This means that if the panel ID cannot be read we don't set an environment variable for the panel, and if an environment variable for the panel is not set we don't attempt

[PATCH V3 6/7] board: rockchip: Add support for new boards to RGxx3

2023-12-11 Thread Chris Morgan
From: Chris Morgan Add support for the Anbernic RG-ARC-D, Anbernic RG-ARC-S, Powkiddy RK2023, and Powkiddy RGB30 to the Anbernic RGxx3. While the Powkiddy devices are manufactured by Powkiddy instead of Anbernic, the hardware is so similar they can all use the same bootloader. Signed-off

[PATCH V3 4/7] board: rockchip: Add Recovery Button for Anbernic RGxx3

2023-12-11 Thread Chris Morgan
From: Chris Morgan Add support for users to enter recovery mode by holding the function button when they power up the device. Since the device has soldered eMMC and sometimes does not expose a clk pin on the mainboard there is a small chance that a user who flashes a bad bootloader may

[PATCH V3 3/7] rockchip: boot_mode: Allow rockchip_dnl_key_pressed() in SPL

2023-12-11 Thread Chris Morgan
From: Chris Morgan Update the rockchip_dnl_key_pressed() so that it can run in SPL. Also change the ADC channel to a define that can be overridden by a board specific option. Signed-off-by: Chris Morgan --- arch/arm/mach-rockchip/Makefile| 4 ++-- arch/arm/mach-rockchip/boot_mode.c | 11

[PATCH V3 2/7] spl: Add Kconfig options for ADC

2023-12-11 Thread Chris Morgan
From: Chris Morgan Add kconfig options to enable ADC in SPL Signed-off-by: Chris Morgan --- common/spl/Kconfig | 7 +++ drivers/Makefile | 1 + drivers/adc/Makefile | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index

[PATCH V3 0/7] Add Additional Boards and Features to RGxx3

2023-12-11 Thread Chris Morgan
From: Chris Morgan The RGxx3 is a pseudo-device for U-Boot that works for every Anbernic RGxx3 series device on the market. Add support for another series of very similar devices from Powkiddy. Changes since V2: - Modify the mach-rockchip level rockchip_dnl_key_pressed() so that we can also

Re: [PATCH] board: rockchip: add Powkiddy X55

2023-12-06 Thread Chris Morgan
On Tue, Dec 05, 2023 at 11:48:26PM +0100, Jonas Karlman wrote: > Hi Chris, > > On 2023-12-05 22:39, Chris Morgan wrote: > > From: Chris Morgan > > > > The Powkiddy X55 is a Rockchip RK3566 based handheld gaming device. > > UART, ADC, eMMC, and SDMMC are te

[PATCH] board: rockchip: add Powkiddy X55

2023-12-05 Thread Chris Morgan
From: Chris Morgan The Powkiddy X55 is a Rockchip RK3566 based handheld gaming device. UART, ADC, eMMC, and SDMMC are tested to work. Signed-off-by: Chris Morgan --- arch/arm/dts/Makefile| 1 + arch/arm/dts/rk3566-powkiddy-x55-u-boot.dtsi | 67 ++ arch/arm/dts

Re: [PATCH V2 1/4] board: rockchip: Refactor panel auto-detect code

2023-11-18 Thread Chris Morgan
On Sat, Nov 18, 2023 at 10:10:04AM -0700, Simon Glass wrote: > Hi Chris, > > On Fri, 17 Nov 2023 at 14:15, Chris Morgan wrote: > > > > From: Chris Morgan > > > > Make the inability to detect a panel using the auto detection code not > > fail the entire boo

[PATCH V2 4/4] doc: board: anbernic: Update rgxx3 to add new boards

2023-11-17 Thread Chris Morgan
From: Chris Morgan Update the RGxx3 documentation to note that it now supports two new non-Anbernic boards. Also update verbiage around panel detection to note that it is no longer hard coded to the RG503. Signed-off-by: Chris Morgan --- doc/board/anbernic/rgxx3.rst | 18 -- 1

[PATCH V2 2/4] board: rockchip: Add Recovery Button for Anbernic RGxx3

2023-11-17 Thread Chris Morgan
From: Chris Morgan Add support for users to enter recovery mode by holding the function button when they power up the device. Since the device has soldered eMMC and sometimes does not expose a clk pin on the mainboard there is a small chance that a user who flashes a bad bootloader may

[PATCH V2 3/4] board: rockchip: Add support for RGB30 and RK2023 to RGxx3

2023-11-17 Thread Chris Morgan
From: Chris Morgan Add support for the Powkiddy RK2023 and RGB30 to the Anbernic RGxx3. While these devices are manufactured by Powkiddy instead of Anbernic, the hardware is so similar they can all use the same bootloader. Signed-off-by: Chris Morgan Reviewed-by: Kever Yang --- board

[PATCH V2 0/4] Add Additional Boards and Features to RGxx3

2023-11-17 Thread Chris Morgan
From: Chris Morgan The RGxx3 is a pseudo-device for U-Boot that works for every Anbernic RGxx3 series device on the market. Add support for another series of very similar devices from Powkiddy. Changes since V1: - Update verbiage around function button to say "recovery" mode

[PATCH V2 1/4] board: rockchip: Refactor panel auto-detect code

2023-11-17 Thread Chris Morgan
From: Chris Morgan Make the inability to detect a panel using the auto detection code not fail the entire boot process. This means that if the panel ID cannot be read we don't set an environment variable for the panel, and if an environment variable for the panel is not set we don't attempt

Re: [PATCH 2/3] board: rockchip: Add Maskrom Mode for Anbernic RGxx3

2023-11-16 Thread Chris Morgan
On Wed, Oct 25, 2023 at 02:15:57PM -0500, Chris Morgan wrote: > On Mon, Oct 23, 2023 at 07:12:14PM +0200, Jonas Karlman wrote: > > Hi Chris, > > > > On 2023-10-23 17:18, Chris Morgan wrote: > > > On Mon, Oct 23, 2023 at 06:10:07PM +0800, Kever Yang wrote: > > &

Re: [PATCH 2/3] board: rockchip: Add Maskrom Mode for Anbernic RGxx3

2023-10-25 Thread Chris Morgan
On Mon, Oct 23, 2023 at 07:12:14PM +0200, Jonas Karlman wrote: > Hi Chris, > > On 2023-10-23 17:18, Chris Morgan wrote: > > On Mon, Oct 23, 2023 at 06:10:07PM +0800, Kever Yang wrote: > >> Hi Chris, > >> > >> On 2023/10/18 02:24, Chris Morgan wrote:

Re: [PATCH 2/3] board: rockchip: Add Maskrom Mode for Anbernic RGxx3

2023-10-23 Thread Chris Morgan
On Mon, Oct 23, 2023 at 06:10:07PM +0800, Kever Yang wrote: > Hi Chris, > > On 2023/10/18 02:24, Chris Morgan wrote: > > From: Chris Morgan > > > > Add support for users to enter maskrom mode by holding the function > > button when they power up the devi

[PATCH 3/3] board: rockchip: Add support for RGB30 and RK2023 to RGxx3

2023-10-17 Thread Chris Morgan
From: Chris Morgan Add support for the Powkiddy RK2023 and RGB30 to the Anbernic RGxx3. While these devices are manufactured by Powkiddy instead of Anbernic, the hardware is so similar they can all use the same bootloader. Signed-off-by: Chris Morgan --- board/anbernic/rgxx3_rk3566/rgxx3

[PATCH 0/3] Add Additional Boards and Features to RGxx3

2023-10-17 Thread Chris Morgan
From: Chris Morgan The RGxx3 is a pseudo-device for U-Boot that works for every Anbernic RGxx3 series device on the market. Add support for another series of very similar devices from Powkiddy. Chris Morgan (3): board: rockchip: Refactor panel auto-detect code board: rockchip: Add Maskrom

[PATCH 2/3] board: rockchip: Add Maskrom Mode for Anbernic RGxx3

2023-10-17 Thread Chris Morgan
From: Chris Morgan Add support for users to enter maskrom mode by holding the function button when they power up the device. Since the device has soldered eMMC and sometimes does not expose a clk pin on the mainboard there is a small chance that a user who flashes a bad bootloader may

[PATCH 1/3] board: rockchip: Refactor panel auto-detect code

2023-10-17 Thread Chris Morgan
From: Chris Morgan Make the inability to detect a panel using the auto detection code not fail the entire boot process. This means that if the panel ID cannot be read we don't set an environment variable for the panel, and if an environment variable for the panel is not set we don't attempt

Re: [PATCH v2 3/4] cmd: kaslrseed: Use common API to fixup FDT

2023-09-07 Thread Chris Morgan
On Thu, Aug 31, 2023 at 01:02:02PM -0600, Simon Glass wrote: > Hi Sean, > > On Tue, 29 Aug 2023 at 14:37, wrote: > > > > From: Sean Edmond > > > > Use the newly introduced common API fdt_fixup_kaslr_seed() in the > > kaslrseed command. > > > > Signed-off-by: Sean Edmond > > --- > >

Re: [PATCH 1/3] fdt: common API to populate kaslr seed

2023-08-10 Thread Chris Morgan
allers (eg. fdt_tpm_kaslr_seed, fdt_fixup_kaslr) to take oftree as > > input too? > > So far as you can go, yes. Also you may want to pass an ofnode (the > root node) so that things can deal with adding their stuff to any > node. > > Regards, > Simon I'm almost wondering if now would be a good time to look at removing the kaslrseed command and instead doing it in the fdt_support.c like we do with rng-seed and like is being done here with the TPM seeding. I'm not a security expert and please don't yell at me if I'm proposing something stupid, but what if the kaslrseed command be reworked to only seed with software based entropy via the rand() function? Thank you, Chris Morgan

Re: [PATCH 0/8] Some fixes for the rockchip dw_mipi_dsi driver

2023-07-25 Thread Chris Morgan
t; > drivers/video/rockchip/rk_vop.c | 2 +- > > 3 files changed, 25 insertions(+), 19 deletions(- > > Series applied to u-boot-video/master, thanks! Too late for this to actually MATTER (I was out of town, sorry), but for what it's worth... Tested-by: Chris Morgan Thank you. > > -- > Anatolij

Re: [PATCH] board: rockchip: Add Support for RG353PS and Panel Auto Detection

2023-05-15 Thread Chris Morgan
gt; > > Thanks, > > - Kever > > On 2023/5/13 00:34, Chris Morgan wrote: > > From: Chris Morgan > > > > Add support for panel auto detection for the Anbernic RGxx3 series. > > This requires us to probe the DSI and DSI-DPHY controllers so that > > we may send

[PATCH V2 6/6] doc: anbernic: Update RGxx3 Docs for panel detection

2023-05-15 Thread Chris Morgan
From: Chris Morgan Update the Anbernic RGxx3 documentation to note that panel detection has been added and how it works. Signed-off-by: Chris Morgan --- doc/board/anbernic/rgxx3.rst | 31 --- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/doc/board

[PATCH V2 5/6] configs: Update anbernic-rgxx3_defconfig for panel detection

2023-05-15 Thread Chris Morgan
From: Chris Morgan Update the anbernic-rgxx3_defconfig file to support panel autodetection and automatically updating the compatible string in the devicetree. Signed-off-by: Chris Morgan --- configs/anbernic-rgxx3_defconfig | 15 +++ 1 file changed, 15 insertions(+) diff --git

[PATCH V2 4/6] board: rockchip: Add panel auto-detection for Anbernic RGxx3

2023-05-15 Thread Chris Morgan
From: Chris Morgan Add support to automatically detect the panel for the Anbernic RGxx3. This is done by creating a "pseudo driver" that provides only the bare minimum to start the DSI controller and DSI DPHY. Once started, we then can query the panel for its panel ID and compare it

[PATCH V2 1/6] board: rockchip: Correct i2c2 pinctrl for RGxx3

2023-05-15 Thread Chris Morgan
From: Chris Morgan The pinctrl on the Anbernic RGxx3 for the i2c2 bus does not use the default value, so explicitly define it. Fixes: 6cf6fe25370c ("board: rockchip: add Anbernic RGXX3 Series Devices") Signed-off-by: Chris Morgan --- arch/arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi

[PATCH V2 3/6] board: rockchip: Add support for RG353PS to RGxx3

2023-05-15 Thread Chris Morgan
From: Chris Morgan Add support for the RG353PS to the Anbernic RGxx3. This device is a slightly pared down version of the RG353P with no eMMC, no touchscreen, and only 1GB of RAM. Refactor board logic so that all supported devices are defined with ADC values and that future boards can be added

[PATCH V2 2/6] board: rockchip: add DSI and DSI-DPHY for Anbernic RGxx3

2023-05-15 Thread Chris Morgan
From: Chris Morgan Add support for the DSI and DSI-DPHY to U-Boot for the RGxx3. These are needed so we can send a panel ID request to determine which panel is being used. Signed-off-by: Chris Morgan --- arch/arm/dts/rk3566-anbernic-rgxx3-u-boot.dtsi | 8 1 file changed, 8 insertions

[PATCH V2 0/6] Add Support for RG353PS and Panel Auto Detection

2023-05-15 Thread Chris Morgan
From: Chris Morgan Add support for panel auto detection for the Anbernic RGxx3 series. This requires us to probe the DSI and DSI-DPHY controllers so that we may send a MIPI_DCS_GET_DISPLAY_ID command to the panel to find out which panel we are running. This requires creating a kind of "ske

[PATCH] board: rockchip: Add Support for RG353PS and Panel Auto Detection

2023-05-12 Thread Chris Morgan
From: Chris Morgan Add support for panel auto detection for the Anbernic RGxx3 series. This requires us to probe the DSI and DSI-DPHY controllers so that we may send a MIPI_DCS_GET_DISPLAY_ID command to the panel to find out which panel we are running. This requires creating a kind of "ske

[PATCH] rockchip: board: Update Odroid Go2 to Support Additional Revisions

2023-05-10 Thread Chris Morgan
From: Chris Morgan Update the board.c file for the Odroid Go Advance to support the Black Edition and the Odroid Go Super. The Odroid Go Advance Black Edition differs from the original model with the addition of 2 extra buttons and an ESP8266 WiFi module. The Odroid Go Super adds an additional 2

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

2023-04-21 Thread Chris Morgan
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 upstream Linux, but rk3566-anbernic-rgxx3.

Re: [PATCH V3 2/2] ARM: dts: rockchip: rk3588s-u-boot: Add rng node

2023-04-18 Thread Chris Morgan
On Mon, Apr 17, 2023 at 06:13:18PM +0530, Sughosh Ganu wrote: > On Thu, 13 Apr 2023 at 19:43, Chris Morgan wrote: > > > > From: Chris Morgan > > > > Add a node for the trng found on RK3588 SoCs. > > > > Changes in V3: > > - Added Review

[PATCH V3 2/2] ARM: dts: rockchip: rk3588s-u-boot: Add rng node

2023-04-13 Thread Chris Morgan
From: Chris Morgan Add a node for the trng found on RK3588 SoCs. Changes in V3: - Added Reviewed-By tag. Changes in V2: - None Signed-off-by: Chris Morgan Reviewed-by: Kever Yang --- arch/arm/dts/rk3588s-u-boot.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/dts

[PATCH V3 1/2] rockchip: rng: add trngv1 for rk3588

2023-04-13 Thread Chris Morgan
From: Chris Morgan This adds support for the TRNG found in the RK3588 SoC to the rockchip_rng driver so that it can be used for things such as seeding randomness to Linux. Changes in V3: - Moved notes from commit to cover letter. - Added Reviewed-By tag. Changes in V2: - Modified Kconfig

[PATCH V3 0/2] Add RK3588 TRNG

2023-04-13 Thread Chris Morgan
From: Chris Morgan Add support for the RK3588 TRNG. The code was taken directly from the Rockchip BSP U-Boot source. This code was taken wholesale from the Rockchip BSP U-Boot source located here: https://github.com/rockchip-linux/u-boot/commit/09f31aed858c36a8a5ee20789712e65bb4762068 Tested

[PATCH V2 2/2] ARM: dts: rockchip: rk3588s-u-boot: Add rng node

2023-04-07 Thread Chris Morgan
From: Chris Morgan Add a node for the trng found on RK3588 SoCs. Changes in V2: - None Signed-off-by: Chris Morgan --- arch/arm/dts/rk3588s-u-boot.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/dts/rk3588s-u-boot.dtsi b/arch/arm/dts/rk3588s-u-boot.dtsi index

[PATCH V2 1/2] rockchip: rng: add trngv1 for rk3588

2023-04-07 Thread Chris Morgan
From: Chris Morgan This adds support for the TRNG found in the RK3588 SoC to the rockchip_rng driver so that it can be used for things such as seeding randomness to Linux. This code was taken wholesale from the Rockchip BSP U-Boot source located here: https://github.com/rockchip-linux/u-boot

[PATCH V2 0/2] Add RK3588 TRNG

2023-04-07 Thread Chris Morgan
From: Chris Morgan Add support for the RK3588 TRNG. The code was taken directly from the Rockchip BSP U-Boot source. Chris Morgan (2): rockchip: rng: add trngv1 for rk3588 ARM: dts: rockchip: rk3588s-u-boot: Add rng node arch/arm/dts/rk3588s-u-boot.dtsi | 6 ++ drivers/rng/Kconfig

Re: [PATCH 1/2] rockchip: rng: add trngv1 for rk3588

2023-04-07 Thread Chris Morgan
On Thu, Apr 06, 2023 at 08:53:43PM +0200, Heinrich Schuchardt wrote: > > > Am 6. April 2023 18:17:35 MESZ schrieb Chris Morgan : > >From: Chris Morgan > > > >This adds support for the TRNG found in the RK3588 SoC to the > >rockchip_rng driver so that it can be u

[PATCH 1/2] rockchip: rng: add trngv1 for rk3588

2023-04-06 Thread Chris Morgan
From: Chris Morgan This adds support for the TRNG found in the RK3588 SoC to the rockchip_rng driver so that it can be used for things such as seeding randomness to Linux. This code was taken wholesale from the Rockchip BSP U-Boot source located here: https://github.com/rockchip-linux/u-boot

[PATCH 2/2] ARM: dts: rockchip: rk3588s-u-boot: Add rng node

2023-04-06 Thread Chris Morgan
From: Chris Morgan Add a node for the trng found on RK3588 SoCs. Signed-off-by: Chris Morgan --- arch/arm/dts/rk3588s-u-boot.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/dts/rk3588s-u-boot.dtsi b/arch/arm/dts/rk3588s-u-boot.dtsi index f880f4a167..43aeeb4de3 100644

[PATCH 0/2] Add RK3588 TRNG

2023-04-06 Thread Chris Morgan
From: Chris Morgan Add support for the RK3588 TRNG. The code was taken directly from the Rockchip BSP U-Boot source. Chris Morgan (2): rockchip: rng: add trngv1 for rk3588 ARM: dts: rockchip: rk3588s-u-boot: Add rng node arch/arm/dts/rk3588s-u-boot.dtsi | 6 ++ drivers/rng

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

2023-03-24 Thread Chris Morgan
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 --- drivers/phy/rockchip/Kconfig | 8

  1   2   3   >