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=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER,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 89CDCC11F65 for ; Wed, 30 Jun 2021 07:43:32 +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 DA4CA60C3F for ; Wed, 30 Jun 2021 07:43:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DA4CA60C3F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=outlook.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E7A0B83191; Wed, 30 Jun 2021 09:43:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=outlook.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=outlook.com header.i=@outlook.com header.b="DiveD4bp"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8B05A83199; Wed, 30 Jun 2021 09:43:28 +0200 (CEST) Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sg2apc01olkn0830.outbound.protection.outlook.com [IPv6:2a01:111:f400:febd::830]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B4F778318C for ; Wed, 30 Jun 2021 09:43:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=outlook.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=tianrui-wei@outlook.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E3uSk+lBVC2X+kyqKcbjBf6P0/7VLDUmD1qhk32r1zGhT59tpGoJvaBRFou7y8yvNlPawQv36pwxSPHdTwVT0+ptO0V3rIID8waldiy+lIr1DdAsp6SezTLZZ+DiqW2Z//1CObfmXL4FgNvRYpt9V0D2vkaYkesKn3etXNQ17220I6FjVb6p58SeldQke55GhA4k0jKewkapQx7pPK0Gz53633wXuChL8QNqu8Oj97JjSGjpZFTSR7LH+pPXonp1zL3/1SW7k/dEzYnn3M6JpszhxyCFjs2+gHFXwTMG2RIQ2lBt8MpjMhWMbcnwt85n/D3cOndpOd3qddT1X/saMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aaCwXXjXarr75Pqljh/Slh3+LthZsLk8jNxBdEHj8as=; b=MFEHxdpw3RTJ40uWWNO8SyqEI3RfwOu1t4uC+CmTaKYiJoXuky60jpE9MfL7pj0OZa3zOD4gW3q4grJ5BSvZAsTw5RwTSYUR5UJ+Qw1haXr4x60Twn6hE9HaFTP3OfkQiRxRF6XBFmIGWYAkLopbkiMhjmxcG8iQt5roG6zFHZCP85PuKR+GS4A1eZzHiGm+H9vME2ViRATTX3EgRS8xUlvXivKp2xvsN7zMddDgIjpmy2RqmaU1nv0P9lybwZDj/JBBr1NbKmCiUoCbiUGewRrNHW82ZhPH71Nk0I4QsqzaZZZOsr3npW8TThTLfFcSDEU5MCErqtaw1B+HBc/+NA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aaCwXXjXarr75Pqljh/Slh3+LthZsLk8jNxBdEHj8as=; b=DiveD4bpzx366Mlp4M6QfOiXLt2QeJav94xNAJcqtAbZs0eXYzoBqQiTrN+e0fyFSlhUJJai0riLMfRTIPQqd8QONsFX5BdLcFWc8CnvksjeMoFTPzFxz/SDtob3ESbsxsqp5sN+R5NuMhIaQg4cPMUYr+xAZ8RJV/5+/MAV2KI75L094TqbhQMRfXKqSWfBhXWRKrKEUVmYBkaNPG4U87N5GzVwIpC4otARsudG3QWuCbQEwxSpHULBdiXQKF7/Nlw2QYInTVo1rXiChFWi9wZoxRCzxNBKLi4OQ5l7DFRaxU+MQ0xDEWwzlNkkicQMLLY0+mKwVNSu09w3ynWEgw== Received: from SG2PR02CA0048.apcprd02.prod.outlook.com (2603:1096:3:18::36) by SG2PR06MB3014.apcprd06.prod.outlook.com (2603:1096:4:6f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.24; Wed, 30 Jun 2021 07:43:21 +0000 Received: from SG2APC01FT022.eop-APC01.prod.protection.outlook.com (2603:1096:3:18:cafe::d0) by SG2PR02CA0048.outlook.office365.com (2603:1096:3:18::36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.22 via Frontend Transport; Wed, 30 Jun 2021 07:43:21 +0000 Received: from SY4PR01MB6798.ausprd01.prod.outlook.com (10.152.250.52) by SG2APC01FT022.mail.protection.outlook.com (10.152.250.205) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.22 via Frontend Transport; Wed, 30 Jun 2021 07:43:21 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:2D5BC49AA30878529C2E9AC3377D6BE7F5A571869B4079ADC9475349B92FFC52; UpperCasedChecksum:C4A38FA84BE59E4811DFA31CABE14236B846AD7ADD775DA53BC8CEB843EB3D62; SizeAsReceived:7394; Count:45 Received: from SY4PR01MB6798.ausprd01.prod.outlook.com ([fe80::5476:5394:7bb7:6941]) by SY4PR01MB6798.ausprd01.prod.outlook.com ([fe80::5476:5394:7bb7:6941%2]) with mapi id 15.20.4264.026; Wed, 30 Jun 2021 07:43:21 +0000 From: Tianrui Wei To: u-boot@lists.denx.de Cc: ycliang@andestech.com, rick@andestech.com, peng.fan@nxp.com, jh80.chung@samsung.com, jbalkind@ucsb.edu, seanga2@gmail.com, bmeng.cn@gmail.com Subject: [PATCH v9 0/2] Add OpenPiton-riscv64 Board Support Date: Wed, 30 Jun 2021 15:43:06 +0800 Message-ID: X-Mailer: git-send-email 2.32.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TMN: [CxUHEn4Jnm3dLO+yVP7wB3MUVGtzwNv1] X-ClientProxiedBy: HK0PR03CA0098.apcprd03.prod.outlook.com (2603:1096:203:b0::14) To SY4PR01MB6798.ausprd01.prod.outlook.com (2603:10c6:10:137::12) X-Microsoft-Original-Message-ID: <20210630074308.24140-1-tianrui-wei@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (111.18.44.10) by HK0PR03CA0098.apcprd03.prod.outlook.com (2603:1096:203:b0::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.22 via Frontend Transport; Wed, 30 Jun 2021 07:43:18 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 45 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: b22590b3-b2d3-4971-53da-08d93b9abb9d X-MS-TrafficTypeDiagnostic: SG2PR06MB3014: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6tcAR51C04FGwND0n5KJplLxXUjx63QZPeMJ/IMa2mL6AFjBgRcv3bmrZabypOcWBn3sr/Qikip1d9hkCtXgKryEv5RbbwEMoP8k6JQNkcrZ9FVqOrrthfVKQR509w692fxy6e0BU0yHD+DTQoAV7YsBbMDIox9lcwq6Ad31J+LOFyR2wjg6M9dEpL+Dg2h4Qfkj75A9GbBrxFfsC1RDdWZP/tNLNDdF9xUh0Q3G3BLH1b73dVAurHngxtJq+5C1slY43Ega/fonKJzIijTP7RP/JkanVbjpiSZa7cfXtEX4SezN1PQyOEDeoFvb0nLkVWOWBx/Ge6v1Wzd+YGRmk/+O0yp4JafFUI3EUXNxSoO3CWqww1L61kv4mMjZ8NRD1TgVN+kVIYciaLLTO7P8lk9LOKtqm26pSxu5pwE0IABWhjcgMqXyjmTYFI14iYQ9 X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: acbYSJGP9kGrTLNLIhInnQnK5oCKq1c2yoheMaELF6gBhF1APmIBaGezcAdVLnW5M1Du8NX1xqURPJ7r2odhSzTcPlK4NC75G8DPZqEdIQ3nd9qH4VoeFH2mFeRQWjr3+I9Vtgg64wk4WyV286hjEQ== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b22590b3-b2d3-4971-53da-08d93b9abb9d X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jun 2021 07:43:21.1932 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: SG2APC01FT022.eop-APC01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB3014 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 This patch set is to add OpenPiton board support. Patches are split into several parts: - [PATCH 1/2] add OpenPiton support to mmc driver - [PATCH 2/2] add support for OpenPiton board Description - for mmc driver, it's settings are automatically configured at hardware level. We only need to expose the memory mapped interface through U-Boot driver model - For OpenPiton, as we need to embed the device tree blob into the bitstream, there is currently no itb support Tests checks - Able to boot Debian Linux from SD card on Digilent Genesys 2 - Checkpatch is performed, with some warnings ignored Changelogs - V2 . fix styles and typos in [1/2] and [2/2] . add board documentation in [2/2] - V3 . fix styles in [1/2] - V4 . fix checkpatch warnings in [1/2] except MAINTAINERS - V5 . major changes in device tree . changed to OF_SEPARATE . formatting update for mmc - V6 . eliminate debug outputs altogether . separate defconfigs between SPL and u-boot proper . style updates thanks to Sean - V7 . mmc dm fixes . mmc style updates, improving readibility . mmc add write support . OpenPiton RISC-V 64 board Kconfig fixes - V8 . mmc style updates - V9 . fix typo in board doc Acknowledgements We'd like to thank all maintainers who have reviewed our code. But we'd like to thank Sean, Jaehoon and Leo in particular for taking much time and energy to help us write better code. Tianrui Wei (2): board: riscv: add openpiton-riscv64 SoC support mmc: openpiton: add piton_mmc driver arch/riscv/Kconfig | 4 + arch/riscv/dts/Makefile | 1 + arch/riscv/dts/openpiton-riscv64.dts | 153 ++++++++ board/openpiton/riscv64/Kconfig | 40 +++ board/openpiton/riscv64/MAINTAINERS | 8 + board/openpiton/riscv64/Makefile | 5 + board/openpiton/riscv64/openpiton-riscv64.c | 33 ++ configs/openpiton_riscv64_defconfig | 76 ++++ configs/openpiton_riscv64_spl_defconfig | 87 +++++ doc/board/index.rst | 1 + doc/board/openpiton/index.rst | 9 + doc/board/openpiton/riscv64.rst | 376 ++++++++++++++++++++ drivers/mmc/Kconfig | 9 + drivers/mmc/Makefile | 1 + drivers/mmc/piton_mmc.c | 161 +++++++++ include/configs/openpiton-riscv64.h | 61 ++++ 16 files changed, 1025 insertions(+) create mode 100644 arch/riscv/dts/openpiton-riscv64.dts create mode 100644 board/openpiton/riscv64/Kconfig create mode 100644 board/openpiton/riscv64/MAINTAINERS create mode 100644 board/openpiton/riscv64/Makefile create mode 100644 board/openpiton/riscv64/openpiton-riscv64.c create mode 100644 configs/openpiton_riscv64_defconfig create mode 100644 configs/openpiton_riscv64_spl_defconfig create mode 100644 doc/board/openpiton/index.rst create mode 100644 doc/board/openpiton/riscv64.rst create mode 100644 drivers/mmc/piton_mmc.c create mode 100644 include/configs/openpiton-riscv64.h -- 2.32.0