From patchwork Tue May 19 07:03:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pragnesh Patel X-Patchwork-Id: 1293021 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=85.214.62.61; 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=HgTxHoW3; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 49R6ND1p9Xz9sPK for ; Tue, 19 May 2020 17:05:32 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8A99681D2E; Tue, 19 May 2020 09:04:41 +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="HgTxHoW3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 25BD381D1F; Tue, 19 May 2020 09:04:38 +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 NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on20616.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e88::616]) (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 DF79581D23 for ; Tue, 19 May 2020 09:04:34 +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=Yz+x+N6JbitRm55yQ6YqTLFSzD3Ln9wQoicr0m0yTdeElMRhR5MbOav09Y9L0FbWe7tCmTIoqsaCvqGA63aF/DzdZZ4KeuDKRdnmqpJCMRPeCR6lVM6oKgRow4jqSTC3hL0nNjyiRXld1wtzLtFhZngCCzmVsSrBYLwBFPnjWsnRc7LYa2R3mAsR+kRGA4ygukm8yVWGyN9KTyIMwYiy1xV0PMhiaqODFLBecQe2VjeEhZlU/d7i84rVYBtydwB3M7VrWeW/dqMP2/8Li9fFnOXGSrEeXgcDAhaKJgtIUixZb3LYeA1X6enuu9CH44ghr5sVHYEOH4T8ovHHaH58uA== 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=In1FL/3CODEukaM6Py3V1PrsOuLgoZNkF/LSO4MjlwE=; b=SmLXrY/IXObYRg7xzdZnFUjgxiz5tJ5uP+Y4j4JlKcTgY8MuslzRYzoC0yGYua61k/1j5iqKFjt+T7RChYnZaHenmzTAaIKJ7mxj/p55bxzoCPFAoqWXWQXOpGRy2AxWgbObh64PyHEOwXFpGR70Av5sHqWVmdSQGHpjmFVb9vn9GKXHwO8BHvMHBrbC4rcI0RR1gPUj+NiOKELkIQnVdUZJLlzt3FJJmdxtg5od31yKmktLAAqQBtpwN6iYlhmW1he0BWwew5jEMK+eAxkWGW3A6f6eqghYBMpev0pAbwGewuyBuefhX0gRQammkrJepnXXw21AuAiP0VSmvnJn7A== 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=In1FL/3CODEukaM6Py3V1PrsOuLgoZNkF/LSO4MjlwE=; b=HgTxHoW3lES1wzG0KJAkCA0vFrhpRzBwsvuqwrqz5AmE13zLpz0b/Ctzw3qYfreM9qzspv2KK9Lk1yEWQGcJcZJDTzUdEIAp+paC2wHws+dlsQrYcviaFkpLNywvn9NNYNJBh1NfgAucZ9IVPQjwbztVORj4ihTy/wXhk8BXpXw= 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 MN2PR13MB3520.namprd13.prod.outlook.com (2603:10b6:208:16c::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.12; Tue, 19 May 2020 07:04:33 +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.2937.040; Tue, 19 May 2020 07:04:33 +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 v11 05/18] riscv: sifive: dts: fu540: Add board -u-boot.dtsi files Date: Tue, 19 May 2020 12:33:30 +0530 Message-Id: <20200519070346.24479-6-pragnesh.patel@sifive.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200519070346.24479-1-pragnesh.patel@sifive.com> References: <20200519070346.24479-1-pragnesh.patel@sifive.com> X-ClientProxiedBy: LNXP265CA0025.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:5c::13) 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 LNXP265CA0025.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:5c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.20 via Frontend Transport; Tue, 19 May 2020 07:04:30 +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: 42e7555a-c305-4565-8cb7-08d7fbc2e1cd X-MS-TrafficTypeDiagnostic: MN2PR13MB3520: 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: 040866B734 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iUCv/LlFf1B+sdP/4QchlMjACLxs+K82fJup2aNWFMufDmwlDmtscChyN99AVZFh8bWdxzSCyXxC0TqrSGDRbWBsRjvHjJH+ok4h5cQuJPa8bNmXDjJWBQZialmRwhHx6byRcJeEMH75DSoKBiDuOJJGQHT8J1e390Mp6JAdZ8AZ94ejwU8b7m7bm7wLZtoCr3y5oFnVoRQ8z6300W2GlfNii4LuCyXWnnesdoVIjU4J9GWkTey0ioSClpnnhlhBennCP8hyeUd+5DHhxi//raXlzRq9cU3CO7fw7VuWtFi8og6oCX9q8metYvMXRfJt2rJeuAKqMPlKo38uCMhCkw== 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:(366004)(346002)(376002)(136003)(396003)(39850400004)(2906002)(2616005)(44832011)(16526019)(316002)(186003)(26005)(36756003)(6916009)(6486002)(1006002)(6512007)(956004)(4326008)(478600001)(8936002)(5660300002)(66476007)(66556008)(1076003)(66946007)(107886003)(52116002)(6506007)(8676002)(86362001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 03eM7aCtUSUmBpQmHWuO8lCNgMyXu6jCd2FlPb7SJpvIWoUBAP+1lfkNo6JmsfUuGh2Iw3NEjk0hWsvQW4r0mCcMqabMqHLA/X230O3W7ffK3g9yOditw6wTajKrfTQs78H8HKSRkqxjZOwbQqFPntktNUypmjVuc7IERburxUt8SgE10Rhd7JA5x3DOPrNWOrVAMRlwv+sbfssxBKheY9rZeJVCbDuKQG17v0aollzrQWTUZrgniLg912W0mW56D/mmam0bm9vOeEhKWfc6xJnutdKgdDpV2Rt2s3jfuwYtvKc0D1AZonGjYPBVPzniq/Kj1ETZgI1iAjqt6JbTTPlGWr/uxlJNtAHFjhDuXI8eEQ19m/gkhcZtS5OkDl+qN0Qu1GOyCmGVWrc1jzZNZc7zRsAliObLKYwc30liXAxZLRplie7ylnU5bdFXlS4/6PwTJGqrPXB0EoxanYB2pyWmRZQbqgPwQ5RapTsFfeI= X-OriginatorOrg: sifive.com X-MS-Exchange-CrossTenant-Network-Message-Id: 42e7555a-c305-4565-8cb7-08d7fbc2e1cd X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2020 07:04:32.9674 (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: U9ehq7mmnjtIs5qHKd81XJ3IRn/ljIvsLbwTDg69IkT4O+XsWcq4wUHaKh70Z9anqhqlhR2l7M8W17brpIevz1LckBiSU5Gm3bIOJxvuTB4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR13MB3520 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; + }; };