From patchwork Fri May 29 06:03:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pragnesh Patel X-Patchwork-Id: 1300373 X-Patchwork-Delegate: uboot@andestech.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=sifive.com header.i=@sifive.com header.a=rsa-sha256 header.s=selector1 header.b=Cxf01IgM; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49YDZM4vq5z9sSn for ; Fri, 29 May 2020 16:05:31 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1790D8179A; Fri, 29 May 2020 08:04:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=sifive.com header.i=@sifive.com header.b="Cxf01IgM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 83B6281785; Fri, 29 May 2020 08:04:34 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2062c.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe5a::62c]) (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 39CFD815E9 for ; Fri, 29 May 2020 08:04:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pragnesh.patel@sifive.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m/k+bPugXPYUgIArSl48hrfZidm04SaFoJJDkVZ1q8olxfgP6oP2B8yHqlIZrJPMwifKF5+mUAjBcUhPU99J5fc9VmI2Wg5+1UVK1GhKRcUXqaeLnNOafjrLJH/TgjQuXyqUmMwHdSYJTo6CLGCK9z0PJ8Lzc3T1rKYoPTqZFZY6SL3XYYjtSJ2LrpCZKcPM2pibyWGnDbXkXFnUGS1WuwhQkAqY6IMDe+GGJcUcvSa7HQSdUggSIK1IsVVHG0FeAMJxRh9OurO8/kvHjyXljLUymBneyCnvgmhhUwAy9xoVRjP6KJffgDlIHw3xKHHYCKrfE2RD/5WkPbgF8g8eow== 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=v3rrzaCYOGjEM74Qpi/B24RIK36yD9rEyFc2VjnHk9U=; b=Nn4o/dZVgynegzAxa20Qq3co9kpnCJubIZp6ivVblkR7r1PKE/Fy3MGJ6m1w2gsNJTUZRGiqyrvtmNGv7Qi+r09s6NLuJpd8S6VzuoynysUKL9a42HwpJXBlALVEz9QgwETIso2rr6TjM8xrUgn5Mw4pCcZS5zkavO5N6CFJG33rekFf+9di3IcT7K+o6mMiENVYDjjj6A2GK/dQmeJGKfoHmtpdBdUsFEyijzYumbGGNg9SXhgSlIY1gZ9fxFG9zoIUq/fmyJdGob931V4h/APbi8kDittYw1HWAXfHV0QRYYiz+kZdJBHNtI/EASdtoeZ4ZMIZgupJMGd0meKnqg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=sifive.com; dmarc=pass action=none header.from=sifive.com; dkim=pass header.d=sifive.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=v3rrzaCYOGjEM74Qpi/B24RIK36yD9rEyFc2VjnHk9U=; b=Cxf01IgMpzaDIqF9RxbPejxQtLxpIP1uiqP8rQmXF3RpYMiy9UAGn/H3/hHqK+4BgpiI/Zs3YwuMr5zIILCekW/V0HMx/7PGJTIuegfo/eBnn154lmkUpAWBk2xflL5JwCd6SDwS+uMmNQnqZgk0wnWt9WvTXZsmTMjGHgh4+lw= Authentication-Results: lists.denx.de; dkim=none (message not signed) header.d=none;lists.denx.de; dmarc=none action=none header.from=sifive.com; Received: from MN2PR13MB2797.namprd13.prod.outlook.com (2603:10b6:208:f2::30) by MN2PR13MB3135.namprd13.prod.outlook.com (2603:10b6:208:135::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3066.7; Fri, 29 May 2020 06:04:28 +0000 Received: from MN2PR13MB2797.namprd13.prod.outlook.com ([fe80::e50d:b981:362f:58ed]) by MN2PR13MB2797.namprd13.prod.outlook.com ([fe80::e50d:b981:362f:58ed%5]) with mapi id 15.20.3045.015; Fri, 29 May 2020 06:04:28 +0000 From: Pragnesh Patel To: u-boot@lists.denx.de Cc: atish.patra@wdc.com, palmerdabbelt@google.com, bmeng.cn@gmail.com, paul.walmsley@sifive.com, jagan@amarulasolutions.com, anup.patel@wdc.com, sagar.kadam@sifive.com, rick@andestech.com, Pragnesh Patel Subject: [PATCH v13 05/19] riscv: sifive: dts: fu540: Add board -u-boot.dtsi files Date: Fri, 29 May 2020 11:33:25 +0530 Message-Id: <20200529060340.26708-6-pragnesh.patel@sifive.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200529060340.26708-1-pragnesh.patel@sifive.com> References: <20200529060340.26708-1-pragnesh.patel@sifive.com> X-ClientProxiedBy: LO2P265CA0079.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:8::19) To MN2PR13MB2797.namprd13.prod.outlook.com (2603:10b6:208:f2::30) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from sachinj2-OptiPlex-7010.open-silicon.com (114.143.65.226) by LO2P265CA0079.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:8::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3045.21 via Frontend Transport; Fri, 29 May 2020 06:04:25 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [114.143.65.226] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 14cdf782-3dca-40e2-e536-08d803962520 X-MS-TrafficTypeDiagnostic: MN2PR13MB3135: X-LD-Processed: 22f88e9d-ae0d-4ed9-b984-cdc9be1529f1,ExtAddr X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:81; X-Forefront-PRVS: 04180B6720 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PdRkd1AmCrD1dfj7P+/vGdA5QF4VzX+YLKgwp7q6+y6Kk0u8VTGOUtmEYgqhNLWukc6mf3bUUWI1l/EuE/ZJqv83gBJCHn+7MIC2VNjtqo/OrdGFBRMRPKkXKi+jxw/+djqYO++M782sZcN0OGYvXcaoTRc79468bWGIA6lLP5ZHmXWpQsvqgr6VLTBzH5ds9Fo4PUZPavjH6MQsRU4h1/oXHiC9K9MJ4R7IbgSPxTTGZUqoT9dAOpx20mkxQ8DPp+oW+PO/t9UjkOBVypNFkFsFycJ/FRw4OAgq38Kvvlg/bzjpkpqiFXW8l9HJjePA9B1zp2ZxNMV4OF10qBMwvw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR13MB2797.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(396003)(39850400004)(136003)(376002)(366004)(346002)(956004)(44832011)(26005)(6506007)(2906002)(52116002)(316002)(5660300002)(1006002)(1076003)(86362001)(36756003)(8676002)(107886003)(66476007)(66556008)(2616005)(6916009)(16526019)(186003)(478600001)(8936002)(83380400001)(4326008)(66946007)(6512007)(6486002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 3Pa/DFLAdBv/KcU/FLkaVRczMiJtxaTZPOvIyxc/9EM0xGd/M/XWyB1MKNhRnI+a5Lyj2hO4eoJZyIh3GOi5xFrUb9YYlTciakqMzH8ybM+eMi6aAQP9GB1E4cp9CJnSkw1klAccgKyWP6MBWNelGQqXrdikwVye3xOaTx8s1PmLRzTrLuPftkOKqX+RJ5sizfNvbFiFOXhiqCOIc8HwZD7DSDSo8h5H8fUmQPf3Wu+BdfHlCfRKUvPMnCh3nZDc1fAsSCuE/dHzvRDOeXPVFSJiU1CQXskzr0pYDsbwOGUo7EoDigRr18FEORsObGwEXfvqq24YcXSC7cGvaPTifc9dQ7KJOVqu0QQKLvXY0AkHTcu3yxAiYDitEBAQneU0pBLf2oBV1HCWdifnkkxhNE6nHnBgHShWh2KWkdWNcD4U6zRspGo/Nx1mAo4EQz9lYlDmY2zu/VH1olIz+lG8FY3dNl0BYev7Q9FiYqrvoEc= X-OriginatorOrg: sifive.com X-MS-Exchange-CrossTenant-Network-Message-Id: 14cdf782-3dca-40e2-e536-08d803962520 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 May 2020 06:04:28.0053 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 22f88e9d-ae0d-4ed9-b984-cdc9be1529f1 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: XtVGlCrMhYBWgUrYbztNU5yIzQULM3f2KsJpFJ17f5cHu8GlRlw3Uo15aLSO+YA805XL/OzTAHfl7FigeCM2iOntnvyEuik3P0Rd9wi5TS4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR13MB3135 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 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.102.2 at phobos.denx.de X-Virus-Status: Clean Devicetree files in FU540 platform is synced from Linux, like other platforms does. Apart from these U-Boot in FU540 would also require some U-Boot specific node like clint. So, create board specific -u-boot.dtsi files. This would help of maintain U-Boot specific changes separately without touching Linux dts(i) files which indeed easy for syncing from Linux between releases. Signed-off-by: Pragnesh Patel Reviewed-by: Anup Patel Reviewed-by: Bin Meng Reviewed-by: Jagan Teki Tested-by: Bin Meng Tested-by: Jagan Teki --- arch/riscv/dts/fu540-c000-u-boot.dtsi | 61 +++++++++++++++++++ .../dts/hifive-unleashed-a00-u-boot.dtsi | 15 +++++ 2 files changed, 76 insertions(+) diff --git a/arch/riscv/dts/fu540-c000-u-boot.dtsi b/arch/riscv/dts/fu540-c000-u-boot.dtsi index db55773bd2..fbfe296a03 100644 --- a/arch/riscv/dts/fu540-c000-u-boot.dtsi +++ b/arch/riscv/dts/fu540-c000-u-boot.dtsi @@ -4,11 +4,72 @@ */ / { + cpus { + assigned-clocks = <&prci PRCI_CLK_COREPLL>; + assigned-clock-rates = <1000000000>; + u-boot,dm-spl; + cpu0: cpu@0 { + clocks = <&prci PRCI_CLK_COREPLL>; + u-boot,dm-spl; + status = "okay"; + cpu0_intc: interrupt-controller { + u-boot,dm-spl; + }; + }; + cpu1: cpu@1 { + clocks = <&prci PRCI_CLK_COREPLL>; + u-boot,dm-spl; + cpu1_intc: interrupt-controller { + u-boot,dm-spl; + }; + }; + cpu2: cpu@2 { + clocks = <&prci PRCI_CLK_COREPLL>; + u-boot,dm-spl; + cpu2_intc: interrupt-controller { + u-boot,dm-spl; + }; + }; + cpu3: cpu@3 { + clocks = <&prci PRCI_CLK_COREPLL>; + u-boot,dm-spl; + cpu3_intc: interrupt-controller { + u-boot,dm-spl; + }; + }; + cpu4: cpu@4 { + clocks = <&prci PRCI_CLK_COREPLL>; + u-boot,dm-spl; + cpu4_intc: interrupt-controller { + u-boot,dm-spl; + }; + }; + }; + soc { + u-boot,dm-spl; otp: otp@10070000 { compatible = "sifive,fu540-c000-otp"; reg = <0x0 0x10070000 0x0 0x0FFF>; fuse-count = <0x1000>; }; + clint@2000000 { + compatible = "riscv,clint0"; + interrupts-extended = <&cpu0_intc 3 &cpu0_intc 7 &cpu1_intc 3 &cpu1_intc 7 &cpu2_intc 3 &cpu2_intc 7 &cpu3_intc 3 &cpu3_intc 7 &cpu4_intc 3 &cpu4_intc 7>; + reg = <0x0 0x2000000 0x0 0xc0000>; + u-boot,dm-spl; + }; }; }; + +&prci { + u-boot,dm-spl; +}; + +&uart0 { + u-boot,dm-spl; +}; + +&qspi2 { + u-boot,dm-spl; +}; diff --git a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi index 9af089ffe7..9787332bf1 100644 --- a/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi +++ b/arch/riscv/dts/hifive-unleashed-a00-u-boot.dtsi @@ -10,4 +10,19 @@ spi0 = &qspi0; spi2 = &qspi2; }; + + hfclk { + u-boot,dm-spl; + }; + + rtcclk { + u-boot,dm-spl; + }; + +}; + +&qspi2 { + mmc@0 { + u-boot,dm-spl; + }; };