From patchwork Mon May 25 07:33:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pragnesh Patel X-Patchwork-Id: 1297149 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=HlPqS/+T; 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 49VplZ3nRcz9sRW for ; Mon, 25 May 2020 17:35:06 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 92903816A4; Mon, 25 May 2020 09:35:02 +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="HlPqS/+T"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 832FF8185E; Mon, 25 May 2020 09:34:32 +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 NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0621.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe46::621]) (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 12CEE8174A for ; Mon, 25 May 2020 09:34:24 +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=RRN3Cs/jyj3YQyG8kYHvlNAufyGm3F+iVw8W584MY0bCPFlSG7DxSxLwhO1bHQm6HJimZFvKzgX7zJyH0/QmHak2aLnnxx314lxSLcMXX3xd4xsGU4CGsTVDw/SswXoLRq+8UqXbpdNcnYTctgyrF2pdCGdFVH2lRQk8HmnXUNR9eV2679bwX12e0eTfp28qhQZisqMN7T0C04AbNWrwKCF2+jrQu8EFcMIjCxW91ePgkgKmZS/9maw1WV3w70JXzimQGmksndRWaXK2yJw27q5cnaG94kFw6xjVmJ34TEwbiM4vOHCTLYYLlsrvbvLJgE4PpqheGcdPJsG/PPfLLw== 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=d6EIuqL1phtOacUre1TOrZjhchWIJnhvGuup9A2MIFyP8g8eVuYo5wpYHw0xxl4gMJvNTDet+ThvZy6KM/TbEG7nvfJHqoLs5/6TPc15pZM0BI5urOz/2nPdaPGlsk+AZCqR96N6Cb1vjeb6mob8uoufZH8D1vXKZYPaYfcpy3T5hanfJHaSw+rW/Hm39Aq1qY9TzPhhG/Oad6T+SNxjaJFo/hVdSj5ugTZmR79n55RHubIGiLxb89IHGAJ9i2nUO6mnkeuDR/UulJvK8WKIozuygW7Wdcn6oopb4t73/A49VYmvKVb36Zs5/Z08uoX+6X3Z7o5JCMup0gtnEEiOEw== 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=HlPqS/+TiYVTygSN0XKhLnK3bAMo7ybCl+5/hOv4tXQjRJwvDJW6Gwv/mTYVMBNjYE7oloU/UpGwpIhwNXhAPo2Qjbkig11niW6s6NUV9SRolUnUD+vv6MUfekxKcf1IxXy96FP+cscnIea2IEh22Q2HlC3GdgqIYtt6fHDeDOE= 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 MN2PR13MB2704.namprd13.prod.outlook.com (2603:10b6:208:fa::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3045.10; Mon, 25 May 2020 07:34:21 +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; Mon, 25 May 2020 07:34:21 +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 v12 05/18] riscv: sifive: dts: fu540: Add board -u-boot.dtsi files Date: Mon, 25 May 2020 13:03:18 +0530 Message-Id: <20200525073333.14131-6-pragnesh.patel@sifive.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200525073333.14131-1-pragnesh.patel@sifive.com> References: <20200525073333.14131-1-pragnesh.patel@sifive.com> X-ClientProxiedBy: LNXP265CA0043.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:5c::31) 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 LNXP265CA0043.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:5c::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23 via Frontend Transport; Mon, 25 May 2020 07:34:18 +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: 562ae2e5-13a5-46e0-e3ab-08d8007e0a22 X-MS-TrafficTypeDiagnostic: MN2PR13MB2704: 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: 0414DF926F X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: S5vSVjKBQYb35RyYGSAC80+oE04yYuibIP8g/UGJW6/XIfbyEVmJ7OCZD0LG6BT1adnzaoZZdis8y43/Gf7VVmBV4vegkY5i3JfUdhKRqCfsG62bYkePLvB0HT3SQ2bxBONufXZ63oVGzLxdGpf69eqik49uIWu08O9NS95eZuv6XQrENRcrg7jKLOBlkIgcKo49rZJqeOhKbXMjeXbR3+PWee+wJUzospmwTD/yxl+EGeLW2d3gEny5rUHxsCe5RYAAxcdKHh1ZGQ44JqOVy39yT8zu1NOSVwENhNiXAGIP19C9VBUOGTTOblXsDLlvKuFiTe+Z8aFGTmvxrgrpRQ== 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)(376002)(346002)(136003)(366004)(39840400004)(956004)(2616005)(86362001)(44832011)(6486002)(16526019)(52116002)(186003)(6512007)(8936002)(8676002)(1006002)(6916009)(36756003)(26005)(6506007)(2906002)(107886003)(1076003)(316002)(478600001)(4326008)(66476007)(66556008)(5660300002)(66946007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: quXlv8+wMLCuVfwcfD2X08L42fIgS1QCD0R2xJScorurM8cW9w5n1KzkJ/Wm0akjMBwFd1AJ+rnUT4dCKWdN7LQeSwg1yeDS4MOgFSHQWn7691zTQ/1JAfYiSwYdT8y9QDI/yhsM+Y1KJCtqcaGGe3GtyZ3zl5A6fnLQ7JGEJIopBgC2t7JXGr6P3f9qw0fHEWp8hL5Vw3hSrQZju8ZK9ug0oRVsbuW+6uESLfRKIKn/gxQnoI9iHVhvOh0GG3+Rn3dRbwcUOQWgnR5Y9FIenW4fYbygmvBD5bOaNRy2MBFMbaFvQpTV4sAh0m0O/Ekd0WvgZre+1Uf9onhQm5cR7O/IAL34dF6eAb5n1dsxk/JRsjogI3C78XBnBMUOAnfpHAjfCPaPbHGpW8IlEd/mPwaNWsHzySZSqwx4rw0SC9wt8suXFUJMzA8lrU5pXJ8BZs9KmZqXmzGxqT76vrqYnTV0oXk/gVYYmbobnXRNXPo= X-OriginatorOrg: sifive.com X-MS-Exchange-CrossTenant-Network-Message-Id: 562ae2e5-13a5-46e0-e3ab-08d8007e0a22 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2020 07:34:21.1841 (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: e4Nj3dNfLfl9CkuquVZhWtVe2e6jCV0W52t1r/3NMpsF9VRDKHHMKfgUcRrQotn0VJ4bsWOxy5jR15C+dCA8PDVIixSkIG/quEuqgy6fFaE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR13MB2704 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; + }; };