Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3987113ybl; Mon, 9 Dec 2019 03:33:32 -0800 (PST) X-Google-Smtp-Source: APXvYqx108bk28R9kQT0QzzudsYmveynIC7CfbSK8TRED/wV6UuAue/81IfL0E3q2xkujcyyGDRo X-Received: by 2002:aca:6144:: with SMTP id v65mr24546934oib.60.1575891212318; Mon, 09 Dec 2019 03:33:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1575891212; cv=pass; d=google.com; s=arc-20160816; b=BQL3Gusaz5LVYzMzmKgEAmJHrjcUTN1s2c3uc0XTkBKtyN5v9JRGiwb+aYJJy/hcid AS07nD6RRyjg66UfzzIMxo+CTdDmjKyNHGT6zeI+Tde0hhZyAcWJK1oZD1C9WsRZJbRC hPgdNj6ivcSXveG4aLt8TUy7weUZWvtJo3ZwNw/PnE0Ra27Un9hWR5gMGSU/qPbyEWNO 4th3s9VWFXQqZayIvyNqYvNMNSvrp5L5pDgXxZW4AlrCGkuEnA8A8sHcuVCXTSjvNhpR IvzvRUXNM/8eJN+H1+6AKtJncEb4Fqxfxv6+Lgi8avgRoyI8uiG177+PsaISIj29HGJh JubA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=bLf0qE5tsi2mYbXD865Jxf/griTtXqEvEXnevFH8B1s=; b=oMMBeD7zlnjf9IOanr7/roU6LFAPamyddVEH99T/1bs8xEnZ/ldRShorZQX5lFq5wl CXAO+2p6qGThqCr2FEMbNDLIkLdiexg1UDsTj516xS0qcE38kodFUFeUDNpsMUnuE5co tpl2Loz+ucWBq2LV1q+y1aQglODTHi/9Vdel9GX10hgzi8woqvnLjGe1qPZXFKz2K6pU qC2JUMyo7Zhbc01+3UUvr9cIvhrYRsr2yw0LLQS4WsjnEzpw3igiMZHDDSQGb9wPnX83 Y0J+PN1Tf6TgHHTGufDfyvL9OA10eT8sWwJ4yK6c/Z03Hp6ZQT0vVb3BA+V/NF3GYyiA IaIg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sifive.com header.s=selector1 header.b=EBNptiJx; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g9si9465215otq.68.2019.12.09.03.33.20; Mon, 09 Dec 2019 03:33:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=selector1 header.b=EBNptiJx; arc=pass (i=1 spf=pass spfdomain=sifive.com dkim=pass dkdomain=sifive.com dmarc=pass fromdomain=sifive.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727463AbfLILZn (ORCPT + 99 others); Mon, 9 Dec 2019 06:25:43 -0500 Received: from mail-dm6nam11on2081.outbound.protection.outlook.com ([40.107.223.81]:6042 "EHLO NAM11-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726297AbfLILZn (ORCPT ); Mon, 9 Dec 2019 06:25:43 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FQQF59pTXslEF0zFWP1EmXTJy2f67wx+EiuGQhyBa237NSD8OIsL0ssuuKaiGCQITZefvgJH0ONCjmQu4+tpr1Um4izrqPO818HYAd/TS3muI//cH2apenrbYs+bwzt+rv0fl9H9zAWSXXm1Op/TkYKNGXAoYYnvgHUeo+qi+5G3MNVYMu3SVrtXRCt9UJqRyMEM8OiAS4gonMJtpYNK8oYlylI09W9BmlAFyIqc+Lo9c5YovHVhpIecKu8PNNePYKUe3HUKruttC55sHiG4nxyYfmlgkW2gJrB4GO3KDYAJ2ubUIUx0IVe7tTHaUSZLBPn2zGw4A9vivBstaA2fog== 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=bLf0qE5tsi2mYbXD865Jxf/griTtXqEvEXnevFH8B1s=; b=MCG8XEA5vidS9MnNEYQaLuvZJk/P2Tmjuo+ZmpUVC1/VOuPGvVMLJi2VfG9Cly+G8quHun8/8ed9AiSjpraT579VtjTjH6DcjgxB934ldra0/sOgVAxA+YI05LFFZI80mfIw4bb7C6c/L9QkCnZiNvB05N+cWo0XhWJMiyMPj2HJeWGIvw0Et6UvfzOKnACKxFo+GkguZVQT9ASQ5AbyxnoToacFgD1V5BjcYQT8QmWEqe5SMzfnUMpJRlnKGaoODcQrAb49bqfJZQKhNYSZCNbIXOs6ksyeOxxG3gE2tI9POPoHDQADrCzVws+CO1JUsWL75eh2r6K2K9oMftvhcA== 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=bLf0qE5tsi2mYbXD865Jxf/griTtXqEvEXnevFH8B1s=; b=EBNptiJxKsSs9lXlCRePw0RHaixD10m1Pij52xjTgDNnceyoWWYUtrClYnKjWo6nm1xp+KWYbi0UFOsip6iXApX7fayrMFC61BSd4gA0w754TiOgrhDvbBYq57/v/DE7lHQo3/tuvIYuvPUh0HNiBNb/Vxpi4hkZ/sD+yCBl6lw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yash.shah@sifive.com; Received: from CH2PR13MB3368.namprd13.prod.outlook.com (52.132.246.90) by CH2PR13MB3894.namprd13.prod.outlook.com (20.180.12.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2538.4; Mon, 9 Dec 2019 11:25:41 +0000 Received: from CH2PR13MB3368.namprd13.prod.outlook.com ([fe80::eccb:16ac:e897:85d5]) by CH2PR13MB3368.namprd13.prod.outlook.com ([fe80::eccb:16ac:e897:85d5%3]) with mapi id 15.20.2538.012; Mon, 9 Dec 2019 11:25:41 +0000 From: Yash Shah To: robh+dt@kernel.org, mark.rutland@arm.com, paul.walmsley@sifive.com Cc: palmer@dabbelt.com, aou@eecs.berkeley.edu, bmeng.cn@gmail.com, allison@lohutok.net, alexios.zavras@intel.com, atish.patra@wdc.com, tglx@linutronix.de, gregkh@linuxfoundation.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Yash Shah Subject: [PATCH 1/2] riscv: dts: Add DT support for SiFive L2 cache controller Date: Mon, 9 Dec 2019 16:55:05 +0530 Message-Id: <1575890706-36162-2-git-send-email-yash.shah@sifive.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1575890706-36162-1-git-send-email-yash.shah@sifive.com> References: <1575890706-36162-1-git-send-email-yash.shah@sifive.com> Content-Type: text/plain X-ClientProxiedBy: BM1PR01CA0100.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00::16) To CH2PR13MB3368.namprd13.prod.outlook.com (2603:10b6:610:2c::26) MIME-Version: 1.0 Received: from dhananjayk-PowerEdge-R620.open-silicon.com (114.143.65.226) by BM1PR01CA0100.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00::16) with Microsoft SMTP Server (version=TLS1_2, cipher=) via Frontend Transport; Mon, 9 Dec 2019 11:25:37 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [114.143.65.226] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e31495ca-530c-41bc-c090-08d77c9a85da X-MS-TrafficTypeDiagnostic: CH2PR13MB3894: 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:1468; X-Forefront-PRVS: 02462830BE X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6029001)(39840400004)(366004)(346002)(376002)(396003)(136003)(189003)(199004)(6636002)(81166006)(6506007)(81156014)(6666004)(1006002)(6486002)(7416002)(44832011)(305945005)(316002)(478600001)(2906002)(26005)(2616005)(956004)(16526019)(186003)(52116002)(8676002)(4326008)(8936002)(86362001)(66946007)(107886003)(6512007)(5660300002)(36756003)(66556008)(66476007);DIR:OUT;SFP:1101;SCL:1;SRVR:CH2PR13MB3894;H:CH2PR13MB3368.namprd13.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: sifive.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: K0U8yJv63UabKSgpeRxZ0HR+CmAWevUuTF03cmCad3MCZr5Runftzquzdmv9/3ttXF9y4unes5x9g0pvFlSgssVwCdTRcS2U7lphZqQAd7YWFGx5jAKLKdeekB0h0FlKbJWVKGSNsPxCzRqNFbcueVB8cn/dA+YvmBHMtVVU2Vea/4HddDBC1GRPlBjWmxtpFHtaQYWWKqXdknv2ZbExpbEipCJpis7W3Q2gNvZCFk6+NQBN9mmLL80ckyyIE7yT3NDvNKBNXhid2jXD4uFBWjIwA7LKTe9mlwT7XXqCah38cFwqhx0aJFmuk6T3J2We2LhXJVtb0KYU8J/ik0AXnsC/ZhYo4ib7K4DN4B7tqKxVI9lw1sh9mqdvb22S2tVjbhhFHGFX1HjY/WDrTQxqbgZ/nEICT/S21hC68IYarZZhoTDMz4hUccIJgpRQvDAN X-OriginatorOrg: sifive.com X-MS-Exchange-CrossTenant-Network-Message-Id: e31495ca-530c-41bc-c090-08d77c9a85da X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Dec 2019 11:25:40.9907 (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: c6d/NrZ+4rTJ8PdFD2jsKgA5oWJqRAS6d/WcAj8iO90dD5r3z7dY7xfju3NVsD/CAVW8qRLGrei8LVJRfv3WQQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR13MB3894 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add the L2 cache controller DT node in SiFive FU540 soc-specific DT file Signed-off-by: Yash Shah --- arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi b/arch/riscv/boot/dts/sifive/fu540-c000.dtsi index afa43c7..812db02 100644 --- a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi +++ b/arch/riscv/boot/dts/sifive/fu540-c000.dtsi @@ -19,6 +19,16 @@ chosen { }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + l2_lim: lim@0x8000000 { + reg = <0x0 0x8000000 0x0 0x2000000>; + }; + }; + cpus { #address-cells = <1>; #size-cells = <0>; @@ -54,6 +64,7 @@ reg = <1>; riscv,isa = "rv64imafdc"; tlb-split; + next-level-cache = <&l2cache>; cpu1_intc: interrupt-controller { #interrupt-cells = <1>; compatible = "riscv,cpu-intc"; @@ -77,6 +88,7 @@ reg = <2>; riscv,isa = "rv64imafdc"; tlb-split; + next-level-cache = <&l2cache>; cpu2_intc: interrupt-controller { #interrupt-cells = <1>; compatible = "riscv,cpu-intc"; @@ -100,6 +112,7 @@ reg = <3>; riscv,isa = "rv64imafdc"; tlb-split; + next-level-cache = <&l2cache>; cpu3_intc: interrupt-controller { #interrupt-cells = <1>; compatible = "riscv,cpu-intc"; @@ -123,6 +136,7 @@ reg = <4>; riscv,isa = "rv64imafdc"; tlb-split; + next-level-cache = <&l2cache>; cpu4_intc: interrupt-controller { #interrupt-cells = <1>; compatible = "riscv,cpu-intc"; @@ -246,6 +260,18 @@ #pwm-cells = <3>; status = "disabled"; }; + l2cache: cache-controller@2010000 { + compatible = "sifive,fu540-c000-ccache", "cache"; + cache-block-size = <64>; + cache-level = <2>; + cache-sets = <1024>; + cache-size = <2097152>; + cache-unified; + interrupt-parent = <&plic0>; + interrupts = <1 2 3>; + reg = <0x0 0x2010000 0x0 0x1000>; + memory-region = <&l2_lim>; + }; }; }; -- 2.7.4