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 6F49FC11F67 for ; Tue, 29 Jun 2021 18:01:34 +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 DFE2E61DD7 for ; Tue, 29 Jun 2021 18:01:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DFE2E61DD7 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 89CFD831D2; Tue, 29 Jun 2021 20:01:31 +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="j7IGHslr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 42E11831D2; Tue, 29 Jun 2021 20:01:29 +0200 (CEST) Received: from APC01-PU1-obe.outbound.protection.outlook.com (mail-pu1apc01olkn0804.outbound.protection.outlook.com [IPv6:2a01:111:f400:febe::804]) (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 4FBAE82E56 for ; Tue, 29 Jun 2021 20:01:26 +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=CDGuftYbtQKYfVHnxTJf8lOHnJvVNdRTg6z2U49TBrzRyQAbr5ZNndsKwUJNSOmKpt75DbgOX/WIr3CGpXLGuqAxJGCixwVXsrOz90oWCrGpNqwJOKfdJiwhz7ZCggWUyxcNbcriVHcxEAmwBfjTE1mSb3d4qGRd7db1kV6iCZ00kuz2bMKe1LBVWkEPIgQHVE8P9UnxIegLqofIvjyPfN2IL6aU0R4nwTKm0k+Lqw9PNpsiaOxJKrJt6fbk743A/YPJMyK8lf9+l9FBKT4fUJUpRIaAMOpmBVn4TJPj0wm8iEkdBTVey/tCtgRiUGeCeL4Yx84G5eDlG2iLE/oaiw== 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=HsOARsFJ2K1JIAupdVJ3So6XL4RwKpJ/Xs8vHaTPDUE=; b=Ab3+QuGDmOYU8Pm2KQW/dkun/OP/T4AAC/cpLDRN5MnB9yB0dRvSE4LIDZrMhycamVI9TldxIWKsn8XxQERgDh9D3sc7OyPkegv/K5TKnEDYH6c5OsfJ1dzG0v1CmhgVz7amCn6gjr8GWWhUvEESM2l02Tk3ErGvPg6wgBs/s+prlLcXCmzaei7Af6LtQdkT3XIqm3k1T8jkndcwEXPevGkrdDzGcCOCd8qhFN8Xe7kLCylaKgVfVoYRHcKnNn0saOhZtSRJ89dtxMPbBwWlRqWjovRVz8g5w2AvSUiw2gXkKjj69mnbURsoBKCRPVOG31YUJ/FA1D3KU6yqoUp+fA== 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=HsOARsFJ2K1JIAupdVJ3So6XL4RwKpJ/Xs8vHaTPDUE=; b=j7IGHslrkN67flBgSu/SAJgnM7omHIb0gmGUO4RrMs8GxCEohXxQIpUqlTNMIQHhHMCDOMYZg0OrM1C0Ow3WtKTHAQsOkLa9nRZnYqIOsHhoGDPRWWgQs1E5kIE13EW/foodOaVNBTp64YzpVb8dnN1cKLbiFJMDbvAnJChCWp6Pa9TxNNW04vnbrxxQyCEoRryF1TghYaKxF90xcbe5Apelc4m/0K68XK38woRucp3NlgoeMpAh9vASISwVNAv10KX4s1Tz7VJWMxMjcEdWKACY7cgM+PF65ncrHcLCXQYJS4oPBiXtWhv9tBzu6BgxbYHsiWbAPuM4d4Go34aRLw== Received: from SGAP274CA0011.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b6::23) by TY2PR06MB2462.apcprd06.prod.outlook.com (2603:1096:404:4d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.22; Tue, 29 Jun 2021 18:01:22 +0000 Received: from SG2APC01FT058.eop-APC01.prod.protection.outlook.com (2603:1096:4:b6:cafe::8e) by SGAP274CA0011.outlook.office365.com (2603:1096:4:b6::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.18 via Frontend Transport; Tue, 29 Jun 2021 18:01:22 +0000 Received: from SY4PR01MB6798.ausprd01.prod.outlook.com (10.152.250.53) by SG2APC01FT058.mail.protection.outlook.com (10.152.251.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.18 via Frontend Transport; Tue, 29 Jun 2021 18:01:22 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:1E76E836398C96624317D959BD58EDB6C51BEE332274D5155070213BE94EDCB2; UpperCasedChecksum:F81831D757BEF298813A8CD0BB3CCD36F2857BF9849297E821252E2891D0725B; SizeAsReceived:7399; 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; Tue, 29 Jun 2021 18:01:20 +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: [RESEND PATCH v7 0/2] Add OpenPiton-riscv64 Board Support Date: Wed, 30 Jun 2021 02:01:05 +0800 Message-ID: X-Mailer: git-send-email 2.32.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TMN: [2Fb8EjR487deQK+uYme9/P80MjyJJ2u7] X-ClientProxiedBy: HK2PR02CA0218.apcprd02.prod.outlook.com (2603:1096:201:20::30) To SY4PR01MB6798.ausprd01.prod.outlook.com (2603:10c6:10:137::12) X-Microsoft-Original-Message-ID: <20210629180107.8344-1-tianrui-wei@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (111.18.44.10) by HK2PR02CA0218.apcprd02.prod.outlook.com (2603:1096:201:20::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.19 via Frontend Transport; Tue, 29 Jun 2021 18:01:18 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 45 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 6b7c13bf-449a-4e6f-53df-08d93b27e61f X-MS-TrafficTypeDiagnostic: TY2PR06MB2462: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DdsDW4rHasmegueyfacCEs2cm+JtsP0vGXYZNBhU6iFesjcgEVNP/sdDvgTDUqGOXemlV0RcUp/BXgUMRr7WuQEpLFMV0Dil6nRWPzQjSYlIPkKouS10x/w7U5AjeeUfx3LWjWsGTNkbT0UT/DW+sD7Q12DNi4Bi5k7Dx3eowvnuDsjE9Zx/szht4uAf0MoFbBDBKzasRmotDkAYoZ6jWIJKuEebg7SiAUPJWjsKPzNChewxHAjlTEKZvycz5p5bOSGE16ze6AmhGmpg5GtjFxsj4pFxHhcb2YsspfiALjdrNs8+NWCDB/ihW2EjiVpZYGGn+0Fr94/pmE5qUh+WPvj1st/VBR89fLQQp2kLgz06vYZfN9qwSJBzngdzkWoffxbROtMDiSm9UDDEv4TqIXJ19a15CDOmwZvWdwIesGmv2+H69ertxg6OFJwsCDXX X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: stJv7XcNRGYStCbKkC88DuXtGGyk5KDxupcO3QQUMSeOF09+ZQK/vPGxVcsDjKumMpYb44NvnuGKqXFpMnK6oxf1LnnHgnLM7GsAOlZOEPhhArZ2Gh77JSAeRl9iGfGl4Os3cDKofJK7myzBxUzluw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6b7c13bf-449a-4e6f-53df-08d93b27e61f X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2021 18:01:20.6743 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: SG2APC01FT058.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: TY2PR06MB2462 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 Acknowledgements We'd like to thank all maintainers who have reviewed our code. But we'd like to thank Sean and Jaehoon 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 | 181 ++++++++++ include/configs/openpiton-riscv64.h | 61 ++++ 16 files changed, 1045 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