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 E363DC11F64 for ; Thu, 1 Jul 2021 04:54:44 +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 F0A3A61447 for ; Thu, 1 Jul 2021 04:54:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F0A3A61447 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 9530D831F7; Thu, 1 Jul 2021 06:54:41 +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="tn6+35jV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 93251831D0; Thu, 1 Jul 2021 06:54:40 +0200 (CEST) Received: from APC01-HK2-obe.outbound.protection.outlook.com (mail-hk2apc01olkn0814.outbound.protection.outlook.com [IPv6:2a01:111:f400:febc::814]) (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 8BD7883159 for ; Thu, 1 Jul 2021 06:54:37 +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=ehYP6YjzNkyE6pgS8Sq0xn7lfvKBbTC8NulQldsnLpPXrVoHBrVRlAm+zf0GixVoc7+Y1S2qmPSV2h5L06l7yPcWQUij0dMgWeci6L+BTzQx/7hgmMZOpsvF8nlFPUQF4S1Jvj3DhRQ/Gk8xnu8BntRiM2G0lP+DCkSHcT2mA0KghO1AGu13YR1C95RK+SU2OE2vrT/5Vep0hS9leflpDnAGNCLKA0K4V51xcXXP/eoiJ8zrdoODUckwDmH07f8+k8PXPq92i3b4hmFzy7C0RYPFiKolWC9wHZtoBbw+I2hPgripjjOi4c9dFYr+78CNDsZjCIUne0AfbCY//jQ6SA== 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=Nsc9xfcwEhPUbujnh+KXBtUBsitLq6JPYlecij/2yRw=; b=kilhCAziLRhPjSJRhKMkVK1fRkuqfEAn04/D/dISN7fBO5mWekPxIRt/O95iq4CBtAtaWOIkX3KKADupap3FM9/al4N3A6dslQRLdS2+ES9kSjAKDfrtqS1EMdgF0KBuh9FqfvF6W0KRimOyyWhbTj93gp0uyljAMZFenhnOyf4SCswziG67xUveMPxP7iqEcq6dMCalwAzh1AOf6tcyCgpPMhwNiCzJmif0GS0+4zLN6VOYDxoA4BbA/vb2H9uSfV4JAcIUk6I2tiK7FVIyRHCcqZN3PQGfMo89z11jl5d8S6sgnRmZPz4ZQtU2xwwpw55dypcfjoCYrBR++t/ykg== 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=Nsc9xfcwEhPUbujnh+KXBtUBsitLq6JPYlecij/2yRw=; b=tn6+35jVnLNICpx22KcaRZ+gY8MPYokvySODOr8kdfHE8xUOu0jrQ6QgWo7P5St/WfyL2KhOAIv7as5xiER85ydXpc/c5jHDBxmuiPBaiFioDNQS7ru632EguNDhFJBo8GgIPqRRDABaAneluBdXRjaGCPVDq5pxaVaP5t8bP9/IKqQNoU/O/mCr0ozWrI3LaKJuq5C8eKPEI9ynqg6qeKpde5ldamvy5xMVOniLnHDc2Cmcl11v3/Tfw0WE8QMz9mHdKfXn/3qjpM22O+JgsmajSwQYiIAT9Kpymbh1ZQ92x0E3j22b55QJQVwPcBVfTT9SacmehzmaV3SAUUbabg== Received: from SG2PR01CA0095.apcprd01.prod.exchangelabs.com (2603:1096:3:15::21) by KL1PR02MB4771.apcprd02.prod.outlook.com (2603:1096:820:56::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.22; Thu, 1 Jul 2021 04:54:33 +0000 Received: from SG2APC01FT056.eop-APC01.prod.protection.outlook.com (2603:1096:3:15:cafe::d) by SG2PR01CA0095.outlook.office365.com (2603:1096:3:15::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.22 via Frontend Transport; Thu, 1 Jul 2021 04:54:33 +0000 Received: from SY4PR01MB6798.ausprd01.prod.outlook.com (2a01:111:e400:7ebd::45) by SG2APC01FT056.mail.protection.outlook.com (2a01:111:e400:7ebd::269) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.22 via Frontend Transport; Thu, 1 Jul 2021 04:54:32 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:2EEBC3265C290F823A0E003E861EF5423BEF955D97A54872610238503B1E4F69; UpperCasedChecksum:5C7D15C6E8DAF72FA47AC347C57D6EA6053024BE27468275FADEAA6B9B46A6DE; SizeAsReceived:7329; 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; Thu, 1 Jul 2021 04:54:31 +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 Subject: [PATCH v11 0/2] Add OpenPiton-riscv64 Board Support Date: Thu, 1 Jul 2021 12:54:18 +0800 Message-ID: X-Mailer: git-send-email 2.32.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TMN: [Jyg1A3UeYFjlzOobWvIXiUuDGqb+meT8] X-ClientProxiedBy: HK2PR02CA0216.apcprd02.prod.outlook.com (2603:1096:201:20::28) To SY4PR01MB6798.ausprd01.prod.outlook.com (2603:10c6:10:137::12) X-Microsoft-Original-Message-ID: <20210701045420.49056-1-tianrui-wei@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (111.18.44.29) by HK2PR02CA0216.apcprd02.prod.outlook.com (2603:1096:201:20::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.22 via Frontend Transport; Thu, 1 Jul 2021 04:54:30 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 45 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 52b3585f-2ab2-46f7-ce1e-08d93c4c5079 X-MS-TrafficTypeDiagnostic: KL1PR02MB4771: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bBRL6VxgLL3wnjOIY9nQkmT1opK0iLjKy1XJqFIBvAYv72o1tmm4Yy/FeSu9hFZdIjot4dcOIoROI4xEkHLRpFsCxfSqOmMR8sY8UJooH+Q798SovzcoZW1cGUumfMaXWK6hYpdcqrYQm+B5R+Wfb51sFVELi7BOXxi2lZ68t9VCVrg4HmDvhLGpsbapibpRCLR1hwIoE3twt/Y1M0H0KU7wN+q9SRNjKGKKT7V5uOxlo9Z+BZnTme02mnUUjNnz0aNcx6OwDrmemZ+CFGyYvVXbmo0GwxuPPzEaIGfN+V7NTg6Yu3dDsrqPA3fSiIQrXKaTB7zWVrwag4Y9jtzFbtz3PFG4KjFZi1XMlVHMYYPU98gkxz7ii6vav6BX2FgE+Bjay/dtYG0jhGu0BvgdszbyZn6AJTsqT/1egITvV2pbPvk8QPW32VsDhkjiyM5j X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ar3iIfXJI5zE9/VZVB/rvVDzWLUbBtfnqXsOU2awXbKcx87qexketi+KY+s+5LDw8DAv0ORKgkUJlMR/L9Dtgpp2VudvhuWgo+fwlVwFu4q9d2MoBJSc/4FVzshFOFUtIjAqaxm714Zpfr8CsMWKPw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 52b3585f-2ab2-46f7-ce1e-08d93c4c5079 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jul 2021 04:54:31.9178 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: SG2APC01FT056.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: KL1PR02MB4771 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 - V10, V11 . add reviewed-by tags 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