Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-21.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3CBDBC433EF for ; Sat, 18 Sep 2021 13:56:36 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 62CD1610A6 for ; Sat, 18 Sep 2021 13:56:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 62CD1610A6 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=openbsd.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9D8BC8322E; Sat, 18 Sep 2021 15:56:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=openbsd.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 5EADF82DA1; Sat, 18 Sep 2021 15:56:31 +0200 (CEST) Received: from lb1-smtp-cloud8.xs4all.net (lb1-smtp-cloud8.xs4all.net [194.109.24.21]) (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 4738383290 for ; Sat, 18 Sep 2021 15:56:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=openbsd.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=kettenis@openbsd.org Received: from cust-df1d398c ([IPv6:fc0c:c1f5:9ac0:c45f:1583:5c5b:91fa:2436]) by smtp-cloud8.xs4all.net with ESMTPA id RannmnDZleJ0cRapKmwUrj; Sat, 18 Sep 2021 15:56:23 +0200 From: Mark Kettenis To: u-boot@lists.denx.de Cc: Mark Kettenis , Oliver Graute , Leo Yu-Chi Liang , Jonathan Balkind , Bin Meng , Michael Walle , Stephan Gerhold , Padmarao Begari , Tianrui Wei , Masami Hiramatsu , Heinrich Schuchardt , Simon Glass , Asherah Connor , Michal Simek , Wasim Khan , Igor Opaniuk , Ye Li , Stefan Roese , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Vabhav Sharma , Weijie Gao , AKASHI Takahiro , Pratyush Yadav , Andy Shevchenko Subject: [PATCH 5/5] doc: board: apple: Add Apple M1 documentation Date: Sat, 18 Sep 2021 15:54:26 +0200 Message-Id: <20210918135437.36667-6-kettenis@openbsd.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210918135437.36667-1-kettenis@openbsd.org> References: <20210918135437.36667-1-kettenis@openbsd.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfMPKqI//3aLi26pJvslTdOMBEWJaHPIOqBnp721kHj4PT6Dohjsef2XBPQp60Op+l767/t2RwI1/hWKQtVWQ4IpQ1EjjFv1+MhJ4F4quZNMKf4xb5tDd uayva2+70dYuvo1RLc+yrw/VrFmiOcd6shnbfFVGCN6D45CJ+E/EdGO9qMhkPdMWa06uRazSBG0tFeGrR2JPFFkcAcRrBiT/rZVFD01ayha8Vs7lklqWUaqF ESyboSbyYaD9TApd/kdrgQTDamiXZp6Jikj8zRKdk1Wx6QxkOwpwnZTTm9LXJR+QqyOqkWCLz8Y7MTEZ3CTHOg30sdfhymn+TtZ/AfN5d7QNg1e+rmAfNeq1 JgfckBdik1ZnBhyfQUILMKXjua6Y+DCXI6h/m3oHXu8R8jaj50ILiYNGdfM9/HSg1oKVFLwgIXbGqIxpS8V5IFX3icKrnV2taoHZ1e6xfYZHj4WYU4ZzPgGj jBuI0/DbV0F7+0/8Dl+xmWva4giq2HxDw/EJnR6UDodFhsnH29kkYoS5FlI47o4Zxu8yhvkkR0pmMYi8wfRoCEt8XuJfQ1WZu+9uiwgyqiiDtUhChcc7MYM4 Dll7E3iAJcjuZcqgeXA/3mV1eZSgSSvo83eMgFjnBTmp9AFq3wXMaASjsE6mp7s4iHWKDIwCfFUSR5My+NPhLJTb8LB3G0Lky1jKtsCukWbuhBplnKHUhhBo EEGsNsVLm/Q+tx08YHPWhHSIKtZqrsrnSfDzYvk71seHMTl1azubUFxSzvTermXQCkzuAfKmmIQ/HywMz/wPWoL0ZvEW11A1nkb+b1zTK2jLtWPKxBgMR3EU BVd6irETC6+znlJUShjAGcxSokzX45S6K5ngg9gaI0kUHPShqiG0sXfDvvy69BVLOgdF4xV97jyHlzcL/vWM11t+gWGIieYfR2ajGqJEvRr/i0CDafNF/ZuB +g7y5+OFe1Mr7EdYg5NudRO1EYHgbq1+cO9hqmgQc2k6rg1N X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean Provide preliminary instructions on how to get U-Boot to run on Apple Silicon Macs. Signed-off-by: Mark Kettenis --- doc/board/apple/index.rst | 9 +++++++ doc/board/apple/m1.rst | 56 +++++++++++++++++++++++++++++++++++++++ doc/board/index.rst | 1 + 3 files changed, 66 insertions(+) create mode 100644 doc/board/apple/index.rst create mode 100644 doc/board/apple/m1.rst diff --git a/doc/board/apple/index.rst b/doc/board/apple/index.rst new file mode 100644 index 0000000000..8446847818 --- /dev/null +++ b/doc/board/apple/index.rst @@ -0,0 +1,9 @@ +.. SPDX-License-Identifier: GPL-2.0+ + +Apple +===== + +.. toctree:: + :maxdepth: 2 + + m1 diff --git a/doc/board/apple/m1.rst b/doc/board/apple/m1.rst new file mode 100644 index 0000000000..2f2d940a4c --- /dev/null +++ b/doc/board/apple/m1.rst @@ -0,0 +1,56 @@ +.. SPDX-License-Identifier: GPL-2.0+ + +U-Boot for Apple Silicon Macs +============================= + +Allows Apple Silicon Macs to boot U-Boot via the m1n1 bootloader +developed by the Asahi Linux project. At this point the machines with +the following SoCs work: + + - Apple M1 SoC + +On these SoCs the following hardware is supported: + + - S5L serial port + - Framebuffer + - USB 3.1 Type-C ports + +Device trees are currently provided for the M1 Mac mini (2020, J274) +and M1 MacBook Pro 13" (2020, J293). The M1 MacBook Air (2020) is +expected to work with the J293 device tree. The M1 iMac (2021) may +work with the J274 device tree. + +Building U-Boot +--------------- + +.. code-block:: bash + + $ export CROSS_COMPILE=aarch64-none-elf- + $ make apple_m1_defconfig + $ make + +This will build ``u-boot-nodtb.bin`` as well as devices trees for some +of the supported machines. These device trees can be found in the +``arch/arm/dts`` subdirectory of your build. + +Image creation +-------------- + +In order to run U-Boot on an Apple Silicon Mac, U-Boot has to be used +as a payload for the m1n1 bootloader. Instructions for building m1n1 +can be found here: + + https://github.com/AsahiLinux/docs/wiki/SW%3Am1n1 + +.. code-block:: bash + + $ cat m1n1.macho t8103-j274.dtb u-boot-nodtb.bin > u-boot.macho + +Image installation +------------------ + +Instructions on how to install U-Boot on your Mac can be found at: + + https://github.com/AsahiLinux/docs/wiki/Developer-Quickstart + +Just replace ``m1n1.macho`` with ``u-boot.macho`` in the instructions. diff --git a/doc/board/index.rst b/doc/board/index.rst index 33087074fa..0add55b5d3 100644 --- a/doc/board/index.rst +++ b/doc/board/index.rst @@ -10,6 +10,7 @@ Board-specific doc advantech/index AndesTech/index amlogic/index + apple/index atmel/index congatec/index coreboot/index -- 2.33.0