]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
2 years agoboard: socionext: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:47 +0000 (20:42 -0600)] 
board: socionext: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: skyworth: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:46 +0000 (20:42 -0600)] 
board: skyworth: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: sipeed: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:45 +0000 (20:42 -0600)] 
board: sipeed: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Reviewed-by: Sean Anderson <seanga2@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: silinux: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:44 +0000 (20:42 -0600)] 
board: silinux: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: siemens: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:43 +0000 (20:42 -0600)] 
board: siemens: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Reviewed-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: seeed: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:42 +0000 (20:42 -0600)] 
board: seeed: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: schneider: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:41 +0000 (20:42 -0600)] 
board: schneider: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: samsung: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:40 +0000 (20:42 -0600)] 
board: samsung: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: ronetix: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:39 +0000 (20:42 -0600)] 
board: ronetix: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: rockchip: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:38 +0000 (20:42 -0600)] 
board: rockchip: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: raspberrypi: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:37 +0000 (20:42 -0600)] 
board: raspberrypi: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: raidsonic: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:36 +0000 (20:42 -0600)] 
board: raidsonic: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: qualcomm: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:35 +0000 (20:42 -0600)] 
board: qualcomm: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: qca: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:34 +0000 (20:42 -0600)] 
board: qca: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: purism: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:33 +0000 (20:42 -0600)] 
board: purism: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: polyhex: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:32 +0000 (20:42 -0600)] 
board: polyhex: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: phytium: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:31 +0000 (20:42 -0600)] 
board: phytium: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: isee: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:03 +0000 (20:42 -0600)] 
board: isee: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: phytec: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:30 +0000 (20:42 -0600)] 
board: phytec: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Acked-by: Wadim Egorov <w.egorov@phytec.de>
Acked-by: Teresa Remmet <t.remmet@phytec.de>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: iomega: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:02 +0000 (20:42 -0600)] 
board: iomega: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Reviewed-by: Tony Dinh <mibodhi@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: out4: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:29 +0000 (20:42 -0600)] 
board: out4: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: inversepath: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:01 +0000 (20:42 -0600)] 
board: inversepath: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: openpiton: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:28 +0000 (20:42 -0600)] 
board: openpiton: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: intel: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:00 +0000 (20:42 -0600)] 
board: intel: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: olimex: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:27 +0000 (20:42 -0600)] 
board: olimex: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: imgtec: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:59 +0000 (20:41 -0600)] 
board: imgtec: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: nvidia: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:26 +0000 (20:42 -0600)] 
board: nvidia: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: hoperun: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:58 +0000 (20:41 -0600)] 
board: hoperun: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Reviewed-by: Biju Das <biju.das.jz@bp.renesas.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: nuvoton: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:25 +0000 (20:42 -0600)] 
board: nuvoton: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: novtech: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:24 +0000 (20:42 -0600)] 
board: novtech: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: netgear: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:23 +0000 (20:42 -0600)] 
board: netgear: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: myir: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:22 +0000 (20:42 -0600)] 
board: myir: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: mscc: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:21 +0000 (20:42 -0600)] 
board: mscc: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: msc: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:20 +0000 (20:42 -0600)] 
board: msc: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Reviewed-by: Ian Ray <ian.ray@gehealthcare.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: mntre: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:19 +0000 (20:42 -0600)] 
board: mntre: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: mikrotik: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:18 +0000 (20:42 -0600)] 
board: mikrotik: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: microchip: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:17 +0000 (20:42 -0600)] 
board: microchip: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: menlo: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:16 +0000 (20:42 -0600)] 
board: menlo: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: mediatek: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:15 +0000 (20:42 -0600)] 
board: mediatek: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: maxbcm: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:14 +0000 (20:42 -0600)] 
board: maxbcm: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: logicpd: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:13 +0000 (20:42 -0600)] 
board: logicpd: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Acked-by: Adam Ford <aford173@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: liebherr: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:12 +0000 (20:42 -0600)] 
board: liebherr: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: lg: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:11 +0000 (20:42 -0600)] 
board: lg: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: lego: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:10 +0000 (20:42 -0600)] 
board: lego: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Acked-by: David Lechner <david@lechnology.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: l+g: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:09 +0000 (20:42 -0600)] 
board: l+g: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: kosagi: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:08 +0000 (20:42 -0600)] 
board: kosagi: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: kontron: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:07 +0000 (20:42 -0600)] 
board: kontron: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Acked-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Acked-by: Michael Walle <michael@walle.cc>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: kobol: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:06 +0000 (20:42 -0600)] 
board: kobol: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: keymile: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:05 +0000 (20:42 -0600)] 
board: keymile: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Reviewed-By: Holger Brunck <holger.brunck@hitachienergy.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: k+p: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:42:04 +0000 (20:42 -0600)] 
board: k+p: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: hisilicon: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:57 +0000 (20:41 -0600)] 
board: hisilicon: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Reviewed-by: Igor Opaniuk <igor.opaniuk@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: highbank: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:56 +0000 (20:41 -0600)] 
board: highbank: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: grinn: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:55 +0000 (20:41 -0600)] 
board: grinn: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: google: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:54 +0000 (20:41 -0600)] 
board: google: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: ge: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 23:58:49 +0000 (17:58 -0600)] 
board: ge: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Reviewed-by: Ian Ray <ian.ray@gehealthcare.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: gdsys: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:52 +0000 (20:41 -0600)] 
board: gdsys: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: gateworks: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:51 +0000 (20:41 -0600)] 
board: gateworks: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Acked-By: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: gardena: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:50 +0000 (20:41 -0600)] 
board: gardena: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: friendlyarm: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:49 +0000 (20:41 -0600)] 
board: friendlyarm: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: freescale: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:48 +0000 (20:41 -0600)] 
board: freescale: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Acked-by: Jason Liu <jason.hui.liu@nxp.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoboard: firefly: Remove <common.h> and add needed includes
Tom Rini [Wed, 1 May 2024 02:41:47 +0000 (20:41 -0600)] 
board: firefly: Remove <common.h> and add needed includes

Remove <common.h> from this board vendor directory and when needed
add missing include files directly.

Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
2 years agoconfigs: rk3588-turing-rk1: disable SPI flash by default
Sam Edwards [Thu, 2 May 2024 20:07:29 +0000 (14:07 -0600)] 
configs: rk3588-turing-rk1: disable SPI flash by default

While the Turing RK1 board has a pad on the PCB for SPI flash, it is
not populated at the factory: supporting SPI flash boot is a user
modification, not an out-of-the-box feature. The defconfig for this
board should therefore not be enabling the SPI flash image nor SPI
support in the SPL, as it causes confusion among downstream users as to
whether the SPI image needs to be distributed.

Fixes: 153ac950a599 ("board: rockchip: Add the Turing RK1 SoM")
Suggested-by: Florian Klink <flokli@flokli.de>
Signed-off-by: Sam Edwards <CFSworks@gmail.com>
Acked-by: Joshua Riek <jjriek@verizon.net>
Reviewed-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agoclk: rockchip: rk3328: Add SCLK_USB3OTG_REF support
Jonas Karlman [Wed, 1 May 2024 19:23:50 +0000 (19:23 +0000)] 
clk: rockchip: rk3328: Add SCLK_USB3OTG_REF support

The SCLK_USB3OTG_REF clocks is used as reference clock for USB3 block.

Add simple support to get rate of SCLK_USB3OTG_REF clocks to fix
reference clock period configuration.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3328: Add missing bootph-some-ram props
Jonas Karlman [Wed, 1 May 2024 19:21:24 +0000 (19:21 +0000)] 
rockchip: rk3328: Add missing bootph-some-ram props

Add bootph-some-ram props to pinctrl nodes related to eMMC, SD-card and
SPI flash to match e.g. RK3308 and RK3399.

Also adjust bootph props for sdio_vcc_pin, pinctrl and uart2m1_xfer.

Fixes: 1e21f5693045 ("rockchip: rk3328: Fix loading FIT from SD-card when booting from eMMC")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rv1108: Convert to OF_UPSTREAM
Fabio Estevam [Wed, 24 Apr 2024 14:18:41 +0000 (11:18 -0300)] 
rockchip: rv1108: Convert to OF_UPSTREAM

Instead of using the local rv1108 devicetree copies from U-Boot,
let's convert the rv1108 boards to OF_UPSTREAM so that the upstream kernel
devicetrees can be used instead.

Tested on a rv1108-elgin-r1 board.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Otavio Salvador <otavio@ossystems.com.br>
Tested-by: Otavio Salvador <otavio@ossystems.com.br>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3588: Remove redundant device tree files
Jonas Karlman [Sat, 4 May 2024 19:43:08 +0000 (19:43 +0000)] 
rockchip: rk3588: Remove redundant device tree files

Remove redundant device tree files now that RK3588 boards have been
migrated to use OF_UPSTREAM.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3588: Migrate to OF_UPSTREAM
Jonas Karlman [Sat, 4 May 2024 19:43:07 +0000 (19:43 +0000)] 
rockchip: rk3588: Migrate to OF_UPSTREAM

Migrate RK3588 boards that exists in Linux v6.8 to use OF_UPSTREAM.

Following targets is not migrated to use OF_UPSTREAM:
- generic-rk3588: Generic target only meant for U-Boot use
- toybrick-rk3588: Merged in v6.9-rc1

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3588: Update USB3 related nodes in u-boot.dtsi
Jonas Karlman [Sat, 4 May 2024 19:43:06 +0000 (19:43 +0000)] 
rockchip: rk3588: Update USB3 related nodes in u-boot.dtsi

The USB3 related DT nodes in SoC u-boot.dtsi is slightly different from
the final nodes being targeted for Linux kernel v6.10.

Sync USB3 related nodes from Linux maintainer v6.10-rockchip-dts64-1 tag
to prepare for migration of RK3588 to use OF_UPSTREAM.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3588-rock-5b: Drop usb-typec node from u-boot.dtsi
Jonas Karlman [Sat, 4 May 2024 19:43:05 +0000 (19:43 +0000)] 
rockchip: rk3588-rock-5b: Drop usb-typec node from u-boot.dtsi

The usb-typec related nodes and props added in the board u-boot.dtsi
file has not yet landed in upstream Linux kernel DT, and they are not
needed for U-Boot to use the USB Type-C port in peripheral mode.

Remove superfluous usb-typec related nodes and props and replace them
with a simple dr_mode and maximum-speed prop to cleanup the board
u-boot.dtsi file.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agophy: rockchip: usbdp: Adopt driver to work with upstream DT
Jonas Karlman [Sat, 4 May 2024 19:43:04 +0000 (19:43 +0000)] 
phy: rockchip: usbdp: Adopt driver to work with upstream DT

The upstream DT binding added in linux-phy next commit a75d8056e9fe
("dt-bindings: phy: add rockchip usbdp combo phy document") does not
define subnodes for the type of PHY, instead it is expected that phandle
args are used for setting the type of the PHY.

  phys = <&usbdp_phy0 PHY_TYPE_USB3>

Adopt the usbdp phy driver to work with upstream DT binding targeted for
Linux kernel v6.10.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agophy: rockchip: usbdp: Drop rockchip_u3phy_uboot_init()
Jonas Karlman [Sat, 4 May 2024 19:43:03 +0000 (19:43 +0000)] 
phy: rockchip: usbdp: Drop rockchip_u3phy_uboot_init()

Remove the rockchip_u3phy_uboot_init() function, it has no caller and is
not needed with proper driver model use.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agophy: rockchip: usbdp: Find phy-id from the io address
Jonas Karlman [Sat, 4 May 2024 19:43:02 +0000 (19:43 +0000)] 
phy: rockchip: usbdp: Find phy-id from the io address

The upstream Linux kernel driver find the phy-id from the io address.

Change to use a similar method as the U-Boot inno-usb2 phy driver and
the Linux kernel driver to set correct phy-id.

This is based on the linux-phy next commit 2f70bbddeb45 ("phy: rockchip:
add usbdp combo phy driver").

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk356x: Remove redundant device tree files
Jonas Karlman [Sat, 4 May 2024 19:43:01 +0000 (19:43 +0000)] 
rockchip: rk356x: Remove redundant device tree files

Remove redundant device tree files now that RK356x boards have been
migrated to use OF_UPSTREAM.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk356x: Migrate to OF_UPSTREAM
Jonas Karlman [Sat, 4 May 2024 19:43:00 +0000 (19:43 +0000)] 
rockchip: rk356x: Migrate to OF_UPSTREAM

Migrate RK356x boards that exists in Linux v6.8 to use OF_UPSTREAM.

Following targets is not migrated to use OF_UPSTREAM:
- anbernic-rgxx3-rk3566: Multi device target
- generic-rk3568: Generic target only meant for U-Boot use
- pinetab2-rk3566: Merged in v6.9-rc1

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk356x: Add rk3568-u-boot.dtsi
Jonas Karlman [Sat, 4 May 2024 19:42:59 +0000 (19:42 +0000)] 
rockchip: rk356x: Add rk3568-u-boot.dtsi

Add a <CONFIG_SYS_SOC>-u-boot.dtsi file that gets included by default
for RK356x boards when a board specific u-boot.dtsi file dont exists.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399: Remove redundant device tree files
Jonas Karlman [Sat, 4 May 2024 19:42:58 +0000 (19:42 +0000)] 
rockchip: rk3399: Remove redundant device tree files

Remove redundant device tree files now that RK3399 boards have been
migrated to use OF_UPSTREAM.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399: Migrate to OF_UPSTREAM
Jonas Karlman [Sat, 4 May 2024 19:42:57 +0000 (19:42 +0000)] 
rockchip: rk3399: Migrate to OF_UPSTREAM

All RK3399 boards has now been synced to Linux kernel v6.8 DTs and can
migrate to use OF_UPSTREAM.

Migrate RK3399 boards that exists in Linux v6.8 to use OF_UPSTREAM.

Following target is not migrated to use OF_UPSTREAM:
- nanopi-m4-2gb-rk3399: DDR3 variant of nanopi-m4-rk3399 (LPDDR3)

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3328: Remove redundant device tree files
Jonas Karlman [Sat, 4 May 2024 19:42:56 +0000 (19:42 +0000)] 
rockchip: rk3328: Remove redundant device tree files

Remove redundant device tree files now that RK3328 boards have been
migrated to use OF_UPSTREAM.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3328: Migrate to OF_UPSTREAM
Jonas Karlman [Sat, 4 May 2024 19:42:55 +0000 (19:42 +0000)] 
rockchip: rk3328: Migrate to OF_UPSTREAM

All RK3328 boards has now been synced to Linux kernel v6.8 DTs and can
migrate to use OF_UPSTREAM.

Migrate all RK3328 boards to use OF_UPSTREAM.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3308: Remove redundant device tree files
Jonas Karlman [Sat, 4 May 2024 19:42:54 +0000 (19:42 +0000)] 
rockchip: rk3308: Remove redundant device tree files

Remove redundant device tree files now that RK3308 boards have been
migrated to use OF_UPSTREAM.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3308: Migrate to OF_UPSTREAM
Jonas Karlman [Sat, 4 May 2024 19:42:53 +0000 (19:42 +0000)] 
rockchip: rk3308: Migrate to OF_UPSTREAM

All RK3308 boards has now been synced to Linux kernel v6.8 DTs and can
migrate to use OF_UPSTREAM.

Migrate all RK3308 boards to use OF_UPSTREAM.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399: Drop ethernet0 alias from SoC u-boot.dtsi
Jonas Karlman [Wed, 1 May 2024 16:22:39 +0000 (16:22 +0000)] 
rockchip: rk3399: Drop ethernet0 alias from SoC u-boot.dtsi

Remove the obsolete ethernet0 alias now that all board device tree files
have been fully synced with Linux kernel v6.8.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
Reviewed-by: Christopher Obbard <chris.obbard@collabora.com>
Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
2 years agorockchip: rk3399-pinephone-pro: Sync DT from v6.8 and update defconfig
Jonas Karlman [Wed, 1 May 2024 16:22:38 +0000 (16:22 +0000)] 
rockchip: rk3399-pinephone-pro: Sync DT from v6.8 and update defconfig

Sync rk3399-pinephone-pro device tree from Linux kernel v6.8.

Add SPI flash related node and options to support boot from SPI flash.

Remove REGULATOR_PWM=y, board does not use pwm-regulator compatible.

Add SYS_NS16550_MEM32=y to use readl/writel for serial console.

Remove SPL_TINY_MEMSET=y to use full memset in SPL.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399-pinebook-pro: Sync DT from v6.8 and update defconfig
Jonas Karlman [Wed, 1 May 2024 16:22:37 +0000 (16:22 +0000)] 
rockchip: rk3399-pinebook-pro: Sync DT from v6.8 and update defconfig

Sync rk3399-pinebook-pro device tree from Linux kernel v6.8.

Add SF_DEFAULT_SPEED=10000000 and SPI_FLASH_SFDP_SUPPORT=y to improve
support for booting from SPI flash.

Add CMD_POWEROFF=y to support poweroff using cmdline and power on using
the pwr button on the board.

Remove SPL_TINY_MEMSET=y to use full memset in SPL.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399-rockpro64: Sync DT from v6.8 and update defconfig
Jonas Karlman [Wed, 1 May 2024 16:22:36 +0000 (16:22 +0000)] 
rockchip: rk3399-rockpro64: Sync DT from v6.8 and update defconfig

Sync rk3399-rockpro64 device tree from Linux kernel v6.8.

Add SF_DEFAULT_SPEED=10000000 and SPI_FLASH_SFDP_SUPPORT=y to improve
support for booting from SPI flash.

Remove USE_PREBOOT=y to speed up booting, standard boot will init USB
after faster boot media has been evaluated.

Add CMD_POWEROFF=y to support poweroff using cmdline and power on using
the pwr button on the board.

Add PHY_REALTEK=y and DM_ETH_PHY=y to support ethernet PHY.

Remove SPL_TINY_MEMSET=y to use full memset in SPL.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399-rock-pi-4: Sync DT from v6.8 and update defconfig
Jonas Karlman [Wed, 1 May 2024 16:22:35 +0000 (16:22 +0000)] 
rockchip: rk3399-rock-pi-4: Sync DT from v6.8 and update defconfig

Sync rk3399-rock-pi-4 related device tree from Linux kernel v6.8.

Add SPI flash related nodes and options to support boot from SPI flash.

Add AHCI=y, SCSI_AHCI=y, AHCI_PCI=y and SCSI=y to support SATA HAT.

Change to SPL_MAX_SIZE=0x40000, SPL can be up to 256 KiB.

Add ROCKCHIP_IODOMAIN=y to configure io-domain voltage.

Add PHY_REALTEK=y and DM_ETH_PHY=y to support ethernet PHY.

Remove SPL_TINY_MEMSET=y to use full memset in SPL.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
Reviewed-by: Christopher Obbard <chris.obbard@collabora.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399-khadas: Sync DT from v6.8 and update defconfig
Jonas Karlman [Wed, 1 May 2024 16:22:34 +0000 (16:22 +0000)] 
rockchip: rk3399-khadas: Sync DT from v6.8 and update defconfig

Sync rk3399-khadas related device tree from Linux kernel v6.8.

Add SPI flash related options to support booting from SPI flash.

Add DM_RESET=y to support reset signals.

Add PCI=y, CMD_PCI=y and NVME_PCI=y to support PCIe and NVMe boot.

Change to SPL_MAX_SIZE=0x40000, SPL can be up to 256 KiB.

Add CMD_ROCKUSB=y, CMD_USB_MASS_STORAGE=y and USB_GADGET=y to support
RockUSB and UMS gadget.

Remove CONFIG_NET_RANDOM_ETHADDR=y, ethaddr and eth1addr is set based on
cpuid read from eFUSE.

Add ROCKCHIP_IODOMAIN=y to configure io-domain voltage.

Add MMC_SDHCI_SDMA=y to use DMA transfer for eMMC.

Add DM_ETH_PHY=y to support ethernet PHY.

Add PHY_ROCKCHIP_INNO_USB2=y and PHY_ROCKCHIP_TYPEC=y to support USB PHY.

Remove SPL_TINY_MEMSET=y to use full memset in SPL.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399-rock960: Sync DT from v6.8 and update defconfig
Jonas Karlman [Wed, 1 May 2024 16:22:33 +0000 (16:22 +0000)] 
rockchip: rk3399-rock960: Sync DT from v6.8 and update defconfig

Sync rk3399-rock960 related device tree from Linux kernel v6.8.

Add DM_RESET=y to support reset signals.

Add PCI=y, CMD_PCI=y and NVME_PCI=y to support PCIe and NVMe boot.

Add AHCI=y, SCSI_AHCI=y, AHCI_PCI=y and SCSI=y to support PCIe SATA boot.

Change to SPL_MAX_SIZE=0x40000, SPL can be up to 256 KiB.

Remove CONFIG_NET_RANDOM_ETHADDR=y, ethaddr and eth1addr is set based on
cpuid read from eFUSE.

Add MMC_SDHCI_SDMA=y to use DMA transfer for eMMC.

Add PHY_REALTEK=y and DM_ETH_PHY=y to support ethernet PHY.

Add PHY_ROCKCHIP_INNO_USB2=y and PHY_ROCKCHIP_TYPEC=y to support USB PHY.

Remove REGULATOR_PWM=y and DM_REGULATOR_GPIO=y, boards does not use
pwm-regulator or regulator-gpio compatible.

Add USB_XHCI_HCD=y, USB_DWC3=y and USB_DWC3_GENERIC=y to support USB3.

Remove USE_PREBOOT=y to speed up booting, standard boot will init USB
after faster boot media has been evaluated.

Add CMD_ROCKUSB=y, CMD_USB_MASS_STORAGE=y and USB_GADGET=y to support
RockUSB and UMS gadget.

Remove SPL_TINY_MEMSET=y to use full memset in SPL.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399-nanopi-4: Sync DT from v6.8 and update defconfig
Jonas Karlman [Wed, 1 May 2024 16:22:32 +0000 (16:22 +0000)] 
rockchip: rk3399-nanopi-4: Sync DT from v6.8 and update defconfig

Sync rk3399-nanopi-4 related device tree from Linux kernel v6.8.

Add DM_RESET=y to support reset signals.

Add PCI=y, CMD_PCI=y and NVME_PCI=y to support PCIe and NVMe boot.

Add AHCI=y, SCSI_AHCI=y, AHCI_PCI=y and SCSI=y to support M4 SATA HAT.

Add ROCKCHIP_IODOMAIN=y to configure io-domain voltage.

Add MMC_SDHCI_SDMA=y to use DMA transfer for eMMC.

Add PHY_REALTEK=y and DM_ETH_PHY=y to support ethernet PHY.

Add PHY_ROCKCHIP_INNO_USB2=y and PHY_ROCKCHIP_TYPEC=y to support USB PHY.

Remove REGULATOR_PWM=y, boards does not use pwm-regulator compatible.

Remove SPL_TINY_MEMSET=y to use full memset in SPL.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399-roc-pc: Sync DT from v6.8 and update defconfig
Jonas Karlman [Wed, 1 May 2024 16:22:31 +0000 (16:22 +0000)] 
rockchip: rk3399-roc-pc: Sync DT from v6.8 and update defconfig

Sync rk3399-roc-pc related device tree from Linux kernel v6.8.

Add SF_DEFAULT_SPEED=30000000 and SPI_FLASH_SFDP_SUPPORT=y to improve
support for booting from SPI flash.

Add ROCKCHIP_IODOMAIN=y to configure io-domain voltage.

Add MMC_SDHCI_SDMA=y to use DMA transfer for eMMC.

Add PHY_REALTEK=y and DM_ETH_PHY=y to support ethernet PHY.

Remove SPL_TINY_MEMSET=y to use full memset in SPL.

Remove USE_PREBOOT=y to speed up booting, standard boot will init USB
after faster boot media has been evaluated.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399-orangepi: Sync DT from v6.8 and update defconfig
Jonas Karlman [Wed, 1 May 2024 16:22:30 +0000 (16:22 +0000)] 
rockchip: rk3399-orangepi: Sync DT from v6.8 and update defconfig

Sync rk3399-orangepi device tree from Linux kernel v6.8.

Add DM_RESET=y to support reset signals.

Change to SPL_MAX_SIZE=0x40000, SPL can be up to 256 KiB.

Add ROCKCHIP_IODOMAIN=y to configure io-domain voltage.

Add MMC_SDHCI_SDMA=y to use DMA transfer for eMMC.

Add PHY_REALTEK=y and DM_ETH_PHY=y to support ethernet PHY.

Add PHY_ROCKCHIP_INNO_USB2=y and PHY_ROCKCHIP_TYPEC=y to support USB PHY.

Remove SPL_TINY_MEMSET=y to use full memset in SPL.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399-firefly: Sync DT from v6.8 and update defconfig
Jonas Karlman [Wed, 1 May 2024 16:22:29 +0000 (16:22 +0000)] 
rockchip: rk3399-firefly: Sync DT from v6.8 and update defconfig

Sync rk3399-firefly device tree from Linux kernel v6.8.

Change to SPL_MAX_SIZE=0x40000, SPL can be up to 256 KiB.

Add ROCKCHIP_IODOMAIN=y to configure io-domain voltage.

Add MMC_SDHCI_SDMA=y to use DMA transfer for eMMC.

Add PHY_REALTEK=y and DM_ETH_PHY=y to support ethernet PHY.

Add PHY_ROCKCHIP_INNO_USB2=y and PHY_ROCKCHIP_TYPEC=y to support USB PHY.

Remove SPL_TINY_MEMSET=y to use full memset in SPL.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399-evb: Sync DT from v6.8 and update defconfig
Jonas Karlman [Wed, 1 May 2024 16:22:28 +0000 (16:22 +0000)] 
rockchip: rk3399-evb: Sync DT from v6.8 and update defconfig

Sync rk3399-evb device tree from Linux kernel v6.8.

Drop bootph prop for i2c0 and rk808 node, PMIC support is not included
in TPL/SPL and PMIC regulators are working fine in U-Boot proper.

Change to use sdmmc_cd pinconf and drop cd-gpios for card detect pin.

Change to SPL_MAX_SIZE=0x40000, SPL can be up to 256 KiB.

Remove CONFIG_NET_RANDOM_ETHADDR=y, ethaddr and eth1addr is set based on
cpuid read from eFUSE.

Add PHY_REALTEK=y and DM_ETH_PHY=y to support ethernet PHY.

Remove SPL_TINY_MEMSET=y to use full memset in SPL.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399-leez: Sync DT from v6.8 and update defconfig
Jonas Karlman [Wed, 1 May 2024 16:22:27 +0000 (16:22 +0000)] 
rockchip: rk3399-leez: Sync DT from v6.8 and update defconfig

Sync rk3399-leez-p710 device tree from Linux kernel v6.8.

Add DM_RESET=y to support reset signals.

Change to SPL_MAX_SIZE=0x40000, SPL can be up to 256 KiB.

Add ROCKCHIP_IODOMAIN=y to configure io-domain voltage.

Add MMC_SDHCI_SDMA=y to use DMA transfer for eMMC.

Add PHY_REALTEK=y and DM_ETH_PHY=y to support ethernet PHY.

Add PHY_ROCKCHIP_INNO_USB2=y and PHY_ROCKCHIP_TYPEC=y to support USB PHY.

Remove SPL_TINY_MEMSET=y to use full memset in SPL.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399-eaidk-610: Sync DT from v6.8 and update defconfig
Jonas Karlman [Wed, 1 May 2024 16:22:26 +0000 (16:22 +0000)] 
rockchip: rk3399-eaidk-610: Sync DT from v6.8 and update defconfig

Sync rk3399-eaidk-610 device tree from Linux kernel v6.8.

Add DM_RESET=y to support reset signals.

Change to SPL_MAX_SIZE=0x40000, SPL can be up to 256 KiB.

Add ROCKCHIP_IODOMAIN=y to configure io-domain voltage.

Add MMC_SDHCI_SDMA=y to use DMA transfer for eMMC.

Add PHY_REALTEK=y and DM_ETH_PHY=y to support ethernet PHY.

Add PHY_ROCKCHIP_INNO_USB2=y and PHY_ROCKCHIP_TYPEC=y to support USB PHY.

Remove REGULATOR_PWM=y, board does not use pwm-regulator compatible.

Remove SPL_TINY_MEMSET=y to use full memset in SPL.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399-rock-pi-n10: Sync DT from v6.8 and update defconfig
Jonas Karlman [Wed, 1 May 2024 16:22:25 +0000 (16:22 +0000)] 
rockchip: rk3399-rock-pi-n10: Sync DT from v6.8 and update defconfig

Sync rk3399-rock-pi-n10 related device tree from Linux kernel v6.8.

Remove SPL_GPIO=y, board does not use gpio in SPL.

Change to SPL_MAX_SIZE=0x40000, SPL can be up to 256 KiB.

Add ROCKCHIP_IODOMAIN=y to configure io-domain voltage.

Add MMC_SDHCI_SDMA=y to use DMA transfer for eMMC.

Add PHY_REALTEK=y and DM_ETH_PHY=y to support ethernet PHY.

Remove REGULATOR_PWM=y, board does not use pwm-regulator compatible.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399-puma: Sync DT from Linux kernel v6.8
Jonas Karlman [Wed, 1 May 2024 16:22:24 +0000 (16:22 +0000)] 
rockchip: rk3399-puma: Sync DT from Linux kernel v6.8

Sync rk3399-puma related device tree from Linux kernel v6.8.

The vdd_log node is already part of rk3399-puma.dtsi, only keep the
regulator-init-microvolt prop in u-boot.dtsi.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399-gru: Sync DT from Linux kernel v6.8
Jonas Karlman [Wed, 1 May 2024 16:22:23 +0000 (16:22 +0000)] 
rockchip: rk3399-gru: Sync DT from Linux kernel v6.8

Sync rk3399-gru related device tree from Linux kernel v6.8.

The spi_flash symbol is no longer part of upstream DT, it is re-defined
to allow existing reference use in related u-boot.dtsi-files.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agorockchip: rk3399: Sync SoC DT from Linux kernel v6.8
Jonas Karlman [Wed, 1 May 2024 16:22:22 +0000 (16:22 +0000)] 
rockchip: rk3399: Sync SoC DT from Linux kernel v6.8

Sync RK3399 SoC common .dtsi-files from Linux kernel v6.8.

The ethernet0 alias is moved to rk3399-u-boot.dtsi in this patch, the
alias will be added in board specific .dts-files and finally removed
from rk3399-u-boot.dtsi in following patches.

The rng node is replaced with crypto0 and crypto1, both can supply
random numbers.

There is no other intended change with this patch.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2 years agoclk: rockchip: rk3399: Add SCLK_USB3OTGx_REF support
Jonas Karlman [Wed, 1 May 2024 16:22:21 +0000 (16:22 +0000)] 
clk: rockchip: rk3399: Add SCLK_USB3OTGx_REF support

The SCLK_USB3OTGx_REF clocks is used as reference clock for USB3 block.

Add simple support to get rate of SCLK_USB3OTGx_REF clocks to fix
reference clock period configuration.

Also replace use of 24000000 with the OSC_HZ constant.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>