From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EA432EB64DA for ; Sat, 22 Jul 2023 14:02:33 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8ABA2863D5; Sat, 22 Jul 2023 16:02:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kwiboo.se header.i=@kwiboo.se header.b="lunNihNl"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 224E1860AC; Sat, 22 Jul 2023 16:02:16 +0200 (CEST) Received: from s.wrqvwxzv.outbound-mail.sendgrid.net (s.wrqvwxzv.outbound-mail.sendgrid.net [149.72.154.232]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 5C094846EE for ; Sat, 22 Jul 2023 16:02:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kwiboo.se Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=bounces+31435339-7456-u-boot=lists.denx.de@em2124.kwiboo.se DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kwiboo.se; h=from:subject:mime-version:to:cc:content-transfer-encoding: content-type:cc:content-type:from:subject:to; s=s1; bh=V63FNXykRioWMvpZW6WNkau0cWcj2ifj/b0qb2aucz0=; b=lunNihNl8bU0N5gWieiX0Hg5Nf3qgxYXipcEiFcCPxGeCkQMCWUvgd4AyneGsmyfX/8c RWtGWF8p47fL05cGXW4q13OODHiuJOtbFJgItRLaHI3SPfU/wQUHfxiF2sgxG/b0VO12/J QxAqzUisbMuCepIYfLI5sX1cf7BBgQ6UecVndjisGEzmPwdFFk9VvhBkK++9rTlnQkfnOS Q0LtjMm0/fyF9/KVfTEsiOXJC1Jmc0fjJ1jMGqcJZZ3z5rf6qU9V3K8Gey9v8A+z8kBKTW fwKxEeDtMKqZBF9rCKcX84nxrG9ob+mVoL5TBgsmfTJ0YAogf45qVApt7NOcUMEw== Received: by filterdrecv-84b96456cb-hq7z7 with SMTP id filterdrecv-84b96456cb-hq7z7-1-64BBE163-2A 2023-07-22 14:02:11.298676087 +0000 UTC m=+6272619.553217451 Received: from bionic.localdomain (unknown) by geopod-ismtpd-0 (SG) with ESMTP id wHtfX0gwRPKuD2fYrkOGng Sat, 22 Jul 2023 14:02:10.845 +0000 (UTC) From: Jonas Karlman Subject: [PATCH v3 0/3] board: rockchip: Add Hardkernel ODROID-M1 Date: Sat, 22 Jul 2023 14:02:11 +0000 (UTC) Message-ID: <20230722140209.1897117-1-jonas@kwiboo.se> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-SG-EID: =?us-ascii?Q?TdbjyGynYnRZWhH+7lKUQJL+ZxmxpowvO2O9SQF5CwCVrYgcwUXgU5DKUU3QxA?= =?us-ascii?Q?fZekEeQsTe+RrMu3cja6a0h7zUttT75wwb49p2q?= =?us-ascii?Q?0pCinWvIn1+8TA7lDV+jOYUwZc+bvr81N0ciJvk?= =?us-ascii?Q?cv9xlgo2vMRZVMZNGPsdXXVXg=2FQl4UgUL2WawsI?= =?us-ascii?Q?LpC+kxqrCx9CByeEjXcGKIqcijcb1GxTMliZ8sc?= =?us-ascii?Q?YRxUO7Ryu0+JWPNyGNZfrHe3IZBgPWV6LCMZb1?= To: Kever Yang , Simon Glass , Philipp Tomsich Cc: Stefan Agner , u-boot@lists.denx.de, Jonas Karlman X-Entity-ID: P7KYpSJvGCELWjBME/J5tg== Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean This series add support for Hardkernel ODROID-M1, a single board computer with a RK3568B2 SoC. First patch fixes a build issue in the dwc_ahci driver. Second patch fixes a build warning in the ini command. Third patch import the device tree from linux v6.4 and add a defconfig for Hardkernel ODROID-M1. Following was tested on a ODROID-M1 8GB v1.0 2022-06-13: - SD-card boot - eMMC boot - SPI Flash boot - PCIe/NVMe/AHCI - SATA port - USB host Changes in v3: - Remove vcc5v0_usb_host regulator-always-on workaround - Remove CONFIG_ETH_DESIGNWARE=y and CONFIG_GMAC_ROCKCHIP=y Changes in v2: - Add new patch to fix build warning in the ini command - Enable CMD_MTD, CMD_INI and CMD_CRAMFS to closer match downstream legacy U-Boot - Do not override spi0 alias, use SF_DEFAULT_BUS=4 - Collect r-b and t-b tags With the new options added in v2 it is possible to load downstream petitboot from SD-card using following commands: load mmc 1:1 $fdt_addr_r rk3568-odroid-m1.dtb load mmc 1:1 $cramfsaddr ODROIDBIOS.BIN cramfsload $scriptaddr boot.scr source $scriptaddr This series have loose dependencies on the following series: - rockchip: Fix PCIe and NVMe support on RK3568 [1] - rockchip: rk3568: Use dwc3-generic driver [2] - rockchip: rk3568: Fix alloc space exhausted in SPL [3] - rockchip: rk3568: Device Tree updates [4] - rockchip: rk35xx: Fix SPI Flash alias [5] [1] https://patchwork.ozlabs.org/project/uboot/list/?series=365195 [2] https://patchwork.ozlabs.org/project/uboot/list/?series=364127 [3] https://patchwork.ozlabs.org/project/uboot/list/?series=361999 [4] https://patchwork.ozlabs.org/project/uboot/list/?series=362030 [5] https://patchwork.ozlabs.org/project/uboot/list/?series=363527 Jonas Karlman (3): ata: dwc_ahci: Fix support for other platforms cmd: ini: Fix build warning board: rockchip: Add Hardkernel ODROID-M1 arch/arm/dts/Makefile | 1 + arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi | 37 ++ arch/arm/dts/rk3568-odroid-m1.dts | 744 ++++++++++++++++++++++ arch/arm/mach-rockchip/rk3568/Kconfig | 6 + board/hardkernel/odroid_m1/Kconfig | 15 + board/hardkernel/odroid_m1/MAINTAINERS | 8 + board/hardkernel/odroid_m1/Makefile | 3 + board/hardkernel/odroid_m1/odroid_m1.c | 1 + cmd/ini.c | 2 +- configs/odroid-m1-rk3568_defconfig | 111 ++++ doc/board/rockchip/rockchip.rst | 1 + drivers/ata/dwc_ahci.c | 4 + include/configs/odroid_m1.h | 11 + 13 files changed, 943 insertions(+), 1 deletion(-) create mode 100644 arch/arm/dts/rk3568-odroid-m1-u-boot.dtsi create mode 100644 arch/arm/dts/rk3568-odroid-m1.dts create mode 100644 board/hardkernel/odroid_m1/Kconfig create mode 100644 board/hardkernel/odroid_m1/MAINTAINERS create mode 100644 board/hardkernel/odroid_m1/Makefile create mode 100644 board/hardkernel/odroid_m1/odroid_m1.c create mode 100644 configs/odroid-m1-rk3568_defconfig create mode 100644 include/configs/odroid_m1.h -- 2.41.0