From patchwork Sun Mar 3 13:01:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 1907265 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=EWCBENF6; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TnhmP0xRzz23fC for ; Mon, 4 Mar 2024 00:01:41 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 85F7F87F0D; Sun, 3 Mar 2024 14:01:30 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=canonical.com 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=canonical.com header.i=@canonical.com header.b="EWCBENF6"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 225D487F0C; Sun, 3 Mar 2024 14:01:29 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from smtp-relay-canonical-0.canonical.com (smtp-relay-canonical-0.canonical.com [185.125.188.120]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 139BF87CDB for ; Sun, 3 Mar 2024 14:01:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=heinrich.schuchardt@canonical.com Received: from LT2ubnt.fritz.box (ip-095-222-037-056.um34.pools.vodafone-ip.de [95.222.37.56]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id 241363F280; Sun, 3 Mar 2024 13:01:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1709470885; bh=c/MOiLwoH8JzVoooQC0IJQu36Bs8Wry7Rh5HOnCxLX8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EWCBENF6pLIONcO7yIYm4KmM0ZQZy3J2yU9b/Cpm3a3bRpUvHJZbfUT6yYKNKWg3L BNWc5KMjzU7TYFFa7WOOCRrMQwtFDlT37Kz2BFjgEQygXnxGHakld4ui6xZQYlhzHj FY7zZPl5Me3rkuS6BzdOlmmK/PgX1abW88JVbe1tIv7jE39en9zGjqJAhLa4O9lAHd 92mY4vr3EvtGRM6nDdK0W1jtmQttMVbhWpUuJrKijcoyxB3XOIHULZI1kCJpOABKvA orHJbu/F+0VkF+TTDTa+zoqiOP5wGLP5OvVDqrTd4eGtq6uPTXIM22YC8J6JeY0WMm /iXgM+NaxB+PQ== From: Heinrich Schuchardt To: Yanhong Wang , Rick Chen , Leo Cc: Lukasz Tekieli , Aurelien Jarno , Chanho Park , Shiji Yang , Shengyu Qu , Seung-Woo Kim , u-boot@lists.denx.de, Heinrich Schuchardt Subject: [RFC 0/5] riscv: add support for Milk-V Mars board Date: Sun, 3 Mar 2024 14:01:17 +0100 Message-ID: <20240303130122.29983-1-heinrich.schuchardt@canonical.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 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 The Milk-V Mars board is technically very close to the StarFive VisionFive 2 board. With this patch series the VisionFive 2 U-Boot SPL will detect that it is runing on a Milk-V board and patch the device-tree accordingly. This is the same approach that has been taken to handle the differences between the Visionfive 2 1.2B and 1.3A revisions. An alternative approach would use a separate defconfig and separate board files. As this would incur a higher effort I chose the SPL approach. Heinrich Schuchardt (5): eeprom: starfive: function get_product_id_from_eeprom() riscv: set fdtfile on Milk-V Mars board: starfive: support Milk-V Mars board riscv: starfive: avoid including common.h doc: describe Milk-V Mars board arch/riscv/include/asm/arch-jh7110/eeprom.h | 9 ++ board/starfive/visionfive2/spl.c | 102 +++++++++++++++--- .../visionfive2/starfive_visionfive2.c | 44 +++++--- .../visionfive2/visionfive2-i2c-eeprom.c | 9 +- doc/board/starfive/index.rst | 1 + doc/board/starfive/milk-v_mars.rst | 93 ++++++++++++++++ 6 files changed, 230 insertions(+), 28 deletions(-) create mode 100644 doc/board/starfive/milk-v_mars.rst