From patchwork Fri Jul 26 04:24:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anup Patel X-Patchwork-Id: 1137214 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=wdc.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=wdc.com header.i=@wdc.com header.b="KFmO1KZ3"; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=sharedspace.onmicrosoft.com header.i=@sharedspace.onmicrosoft.com header.b="Ly4MnLg1"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45vww96J83z9s3l for ; Fri, 26 Jul 2019 14:24:39 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id A25B0C21DA2; Fri, 26 Jul 2019 04:24:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id BAE0BC21C2F; Fri, 26 Jul 2019 04:24:30 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id AF437C21C2F; Fri, 26 Jul 2019 04:24:28 +0000 (UTC) Received: from esa6.hgst.iphmx.com (esa6.hgst.iphmx.com [216.71.154.45]) by lists.denx.de (Postfix) with ESMTPS id CCF1EC21BE5 for ; Fri, 26 Jul 2019 04:24:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1564115068; x=1595651068; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=aqAAqKztF/VUGAyHeWn0kWz9duKZ4WhZzoSSah2Q/lM=; b=KFmO1KZ3TpxzC2StktThVDPmg1E0Tc4XhQqpCLpezNC3u7f/EBqb/6KN rTDlpvqL1vmqUrlThSgub179QP+HudHKbBCE2iboHaLyt090rA+ImYznG U5RDUUAu7lMabR3GvPcakz+u8tGEfTrz9mtxgIdr0FdhmhD+PcSWK3Jhx LXTni9dNxSlBdgb2tBuhUy9YrUbvYsJwEfimStFf5uroB72Dk0lOVBFDk sHeAK9CNpTtVMYSkvL/xpmh77Dmy1gWxSTRwGCmC/lvledjyo1i8UICoo wVdd+0WTZKy0iF8iNuJDSSMlUDfkor+P0q98SVWakmFWGy91X+aYaop02 A==; IronPort-SDR: uHwExgKolHzvYxuNAq9okH+CcpVluTYagOzQbLfxUxdTKhyqUx2KS63JuklqNdFQ9Q66oTnR/I QtQhQA0PlnbHGLD8ylTPfhYaAMwb9rqJ2IadxEVUQwufLmrvY0UOAlX9mgRkEcl+60Je5S41x/ huksYsUyUP6c/swN256kORjaiVHzSS5A1eOykecJdXT0RTLvKL+g3nuQNwhM6Cfx+h1o4NPFom Dh6x/m3JO2oE3J07FZZrnlLj2uTs+nxMRKJ34ouMWuKI5CcwZ3JeL2SkBJf3Y5hzeXCuH469EW qsk= X-IronPort-AV: E=Sophos;i="5.64,309,1559491200"; d="scan'208";a="115754245" Received: from mail-sn1nam04lp2058.outbound.protection.outlook.com (HELO NAM04-SN1-obe.outbound.protection.outlook.com) ([104.47.44.58]) by ob1.hgst.iphmx.com with ESMTP; 26 Jul 2019 12:24:25 +0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iW0nMZ6xkUU8Cng5DYgR3qG19GmZb2g5povEBsBQet2wj3rUgKv7YmK8k3dnQaJpp0Sdo0BmwlFJQMNok0W/FCwTUlQP5/35uqLB2FWipSJg4DIkCoGfQ6UJR3m7a7vsuTbUQrW51AqGbza/V+/2eTYwQC+JxmFaqsTporzdSRwIjDGDe0J3WYiax7QeL141250OmJtkjHY7O/0NK217YTUxxSUhKT3kfX4RdoO+NpveQQGjcds8ke55e4DR9mpNxDLxStlVw4PxXKWNJeth/p4ukqSamEre6FgPAVf18c4kmRZtZf4E66HOPFK/vcdP6k6TbzxiE/0YpD/a6n+t9Q== 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=9y19RL1I2SJm5plQsBn0R26GNMGCbmdO9C9GyF9uaYs=; b=XYQ5qT6pTz/XK8nmReXBsFKyEaJRqRyWmSIalhhLgRyovNgQH8KWqfOYXdHPrLnJJu8CajgdV3zW2C34KD/boVdUOgtDLrTH9RfJ+hKFWYUs/3EgpbyNobBv61MUvD/8ELod30poC+LR9L8IWs7Mu9haD052UgsXzyQg47FDr1ZbyIx1P87wvHKbnEFPp7wTSDocsDI7GjLd/8s3pyzdsNkwqgzzL+g2BJwMRpGky2iQm61S/4lYkdrGEYXBpT7PUdln3cNhYRFfTnsRk9FGPtxQh/CRPU8o8OS1szYJvq0h3ExgolbHqw6e8fhZ/6sHSX1D5Ibv8C3SuaYNffBw/w== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=wdc.com; dmarc=pass action=none header.from=wdc.com; dkim=pass header.d=wdc.com;arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector2-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9y19RL1I2SJm5plQsBn0R26GNMGCbmdO9C9GyF9uaYs=; b=Ly4MnLg13uD3uLEj6oG1RzWVOFct3yq3Dmynd2DBVQCPUQN4a5U73xd87TKQegHZ5AKLN2zZbS/Tfeytxo1b//Dl24Yq197LSUqMiZpiHJ9uEvVT9hvjNPwxFvg2fcnG7zJJFd8d4OxE3nzw3po4grIAOi1rJfd0NhlCSrge+WI= Received: from MN2PR04MB6061.namprd04.prod.outlook.com (20.178.246.15) by MN2PR04MB5743.namprd04.prod.outlook.com (20.179.20.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2094.17; Fri, 26 Jul 2019 04:24:24 +0000 Received: from MN2PR04MB6061.namprd04.prod.outlook.com ([fe80::a815:e61a:b4aa:60c8]) by MN2PR04MB6061.namprd04.prod.outlook.com ([fe80::a815:e61a:b4aa:60c8%7]) with mapi id 15.20.2094.013; Fri, 26 Jul 2019 04:24:24 +0000 From: Anup Patel To: Joe Hershberger , Rick Chen , Bin Meng , Lukas Auer Thread-Topic: [PATCH v12 0/1] Update SiFive Unleashed Drivers Thread-Index: AQHVQ2oAejb9RXVwm0ymYNZBEj81CQ== Date: Fri, 26 Jul 2019 04:24:23 +0000 Message-ID: <20190726042348.19354-1-anup.patel@wdc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BM1PR0101CA0027.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::13) To MN2PR04MB6061.namprd04.prod.outlook.com (2603:10b6:208:d8::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Anup.Patel@wdc.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.17.1 x-originating-ip: [106.51.23.101] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 24281edb-7951-4c52-6528-08d711812357 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:MN2PR04MB5743; x-ms-traffictypediagnostic: MN2PR04MB5743: x-ms-exchange-purlcount: 5 x-microsoft-antispam-prvs: wdcipoutbound: EOP-TRUE x-ms-oob-tlc-oobclassifiers: OLM:6108; x-forefront-prvs: 01106E96F6 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6029001)(4636009)(366004)(396003)(39860400002)(376002)(346002)(136003)(40224003)(199004)(189003)(71200400001)(1076003)(71190400001)(7736002)(6116002)(305945005)(386003)(186003)(15650500001)(6486002)(44832011)(8676002)(50226002)(6506007)(3846002)(14444005)(6512007)(2616005)(476003)(256004)(486006)(4326008)(6306002)(52116002)(81156014)(68736007)(36756003)(81166006)(8936002)(9456002)(110136005)(478600001)(86362001)(54906003)(25786009)(5660300002)(53936002)(99286004)(66476007)(66946007)(2906002)(102836004)(55236004)(64756008)(966005)(6436002)(66446008)(14454004)(66556008)(26005)(316002)(78486014)(66066001); DIR:OUT; SFP:1102; SCL:1; SRVR:MN2PR04MB5743; H:MN2PR04MB6061.namprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: BK4qwA37VSANOhHcJntUb8yKZYtj3vk0RnCCx5/1Zs04/fTGplRvBsS9uAoNNkJauXgUq49vQXGFnpSLnHpuia/1nzVWFtJvQegpBLuK/x6hyXtcEwMJQ7pIoguTa7b6I9vQcafoh04Xiia2Md12JSPVCRjHFtO3XVu5OOpoQCNsw6zWBPKotvXPe+9U9ztKLu4OHTmprG+4/aSiDVJa3uU9OWnjVCf1IjTbko7wEpFAce4LJS53EPIXnT5I7jcoeKfsQed0kx6K0Sqqv/iwBsuWTLG283E7SMbL31aRJgNGN9kePTU/jZHxRxAvUjY+AIvvF1eWTcf/vNDJMD3VOL7l6F99TMxnms/3cJgr7i4iGUKUKifDIdKk/PfBDHF5PDFF64CU5Fhjf6HZcyv5zgM2kQ+2aFBOyTy/E1JtV0o= MIME-Version: 1.0 X-OriginatorOrg: wdc.com X-MS-Exchange-CrossTenant-Network-Message-Id: 24281edb-7951-4c52-6528-08d711812357 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jul 2019 04:24:24.0236 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Anup.Patel@wdc.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR04MB5743 Cc: Palmer Dabbelt , Alistair Francis , U-Boot Mailing List Subject: [U-Boot] [PATCH v12 0/1] Update SiFive Unleashed Drivers X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" From: Anup Patel This series update SiFive Unleashed clock driver and Cadence MACB driver so that: 1. It is in sync with upstream Linux driver 2. It uses latest DT bindings as-per upstream Linux driver With this series, we can now use latest DT bindings with U-Boot. I have tested SiFive Serial driver and Cadence MACB ethernet driver with this changes and both work fine. The legacy FSBL will still pass DTB with older DT bindings which will break the updated SiFive Unleashed clock driver. To tackle this, we have embedded DTB in OpenSBI FW_PAYLOAD firmware for SiFive Unleashed so that OpenSBI will override and pass updated DTB to U-Boot. The updated DTB passed by OpenSBI is in fact the DTB build by upstream Linux so we can straight away pass this DTB to Linux as well. This series can be found in riscv_unleashed_clk_sync_v12 branch at: https://github.com/avpatel/u-boot.git To try this series use latest OpenSBI at: https://github.com/riscv/opensbi.git And Linux-5.3-rc1 from v5.3-rc1_unleashed branch at: https://github.com/avpatel/linux.git Changes since v11: - Dropped PATCH1, PATCH2 and PATCH3 because these are already merged by Joe - Rebased PATCH4 upon Joe's u-boot-net gitrepo Changes since v10: - Addressed comments from Joe on MACB driver changes Changes since v9: - Remove all accepted and merged patches except MACB driver patches - Rebased MACB driver patches upon v2 patches from Ramon Fried (Refer, https://www.mail-archive.com/u-boot@lists.denx.de/msg334300.html) - Added separate patch to sync-up SiFive Unleashed config header with QEMU RISC-V virt machine config header - Added separate patch for more updates to SiFive Unleashed README Changes since v8: - Removed probe() from macb_config for PATCH6 - Renamed set_tx_clk() to clk_init() in macb_config for PATCH6 Changes since v7: - Update PATCH6 to not treat dma_burst_length = 0 as skip gmac_configure_dma() - Update PATCH9 to check endianess at runtime Changes since v6: - Added separate patch to fix endianess check in gmac_configure_dma() Changes since v5: - Addressed Ramon's comments in PATCH6 - Addressed Bin's comments in PATCH7 Changes since v4: - Rebased patches upon Ramon's MACB changes (Refer, https://patchwork.ozlabs.org/patch/1114025/) - Added PATCH7 to setup ethaddr based on board serial number read from OTP - Added PATCH8 to update documentation Changes since v3: - Extend MACB ethernet driver for SiFive Unleashed board (just like Linux) Changes since v2: - Dropped PATCH6 which adds new compatible string to MACB driver because more changes are required in MACB driver for different ethernet speeds Changes since v1: - Dropped GEMGXL clock driver - Added new compatible string for SiFive MACB ethernet Anup Patel (1): doc: sifive-fu540: Update README to explicitly load DTB for Linux doc/board/sifive/fu540.rst | 396 +++++++++++++++++++++---------------- 1 file changed, 222 insertions(+), 174 deletions(-) --- 2.17.1