From patchwork Mon Aug 14 09:50:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 9898465 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9C01F602BA for ; Mon, 14 Aug 2017 10:03:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D7A426E75 for ; Mon, 14 Aug 2017 10:03:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 824182852A; Mon, 14 Aug 2017 10:03:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1906A26E75 for ; Mon, 14 Aug 2017 10:03:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=i+zlV/HlMbRV4dDIwSB902+ofi7vwqifcWRAjW6W0xk=; b=kPCYoh1wn+OIKF+Te5H4ZOWjy3 JNrxFjGR7drZK8Gvuutdlg28rNkG8GIggxHcqYDE0SO+SPEZpcGSZhZetxM0uru/1SqdwykEPVWR7 o0/IaIG6igbMaK6Pd3RJXVUl1+WhC0bUlzzh2/alBUHaaMN0odDbNQzv/Kqq+lQtLSyEtzJPLv17v tJt+elH53VtZtfF5HouWE13qq7RpQ9qx4huP56/TJxPjj2aGTBcbYZyuS4sx2nFmVouxLEX9iv/wX BI3ooDVjhwUPpVC5XxqG6r4yxrSMPue3PM+xMqaGYc0nbXmR/hWv8bY+jhlUv25G16lTen2D7q4qn ql2O11zw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dhCDc-0006nM-11; Mon, 14 Aug 2017 10:03:32 +0000 Received: from mail-pg0-x231.google.com ([2607:f8b0:400e:c05::231]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dhC2x-0006tz-1C for linux-arm-kernel@lists.infradead.org; Mon, 14 Aug 2017 09:52:35 +0000 Received: by mail-pg0-x231.google.com with SMTP id l64so43980408pge.5 for ; Mon, 14 Aug 2017 02:52:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=YEcd6O9Sh1eSg86rORXukXFs4VJdNv1Q5+OM1Lbe3Bo=; b=ZGnY3j95sO+/qjQRQaJKvKfTNTmyuQba6oQ525ozfIkt/L5wOromvrF0gy1sWzXKcx xWluD9YAk43eYfueO53VhsQs218vakOnPyFbT+XzZ/FkfLSTt51Gt4hBwFiqgadtIWjb 41d+c1WoXsYWaf43UpstEL7VgPEuDFdCtVFIc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=YEcd6O9Sh1eSg86rORXukXFs4VJdNv1Q5+OM1Lbe3Bo=; b=H/eY3dsjIIdYzD4K8bozfJIhtlAeLXA6+jgHM7Hecm2oNDZVVM6KmY6vM0xtg5LC2g lji95UYrwjzWzofW3QeIJnaDGQZqZyUog9LFOhZcjbVeCOEF+IdHtn13K8M7qDK9cgJb bLVLO6N0vx30jPI5otkbPyyXfTWe9ArQpoOlDePT/TE8nqEeaRaHUGn6S6CwINZRLTpO JF4HX34fYDHl07d/RX4umUbIgpfnFIoGrYYiT9lKyD3nFC5ndh6kwmDyTqU8UXJyyqtj 6kim/ke4HXFJm5irUCXpiVLD5v3BctH3k/3iCTF4lQqVJo8j2WR8HTpoPQfYozaUECqZ 8j6w== X-Gm-Message-State: AHYfb5h7XtEOjF5TkFlZPa6F0lHcqdzvHJXwELSU7yyNebNa9AimIgvB koR1xASEGQQi9usS X-Received: by 10.84.133.11 with SMTP id 11mr27779862plf.77.1502704330389; Mon, 14 Aug 2017 02:52:10 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.41.135.45]) by smtp.gmail.com with ESMTPSA id e63sm3468674pfc.24.2017.08.14.02.52.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Aug 2017 02:52:09 -0700 (PDT) From: Guodong Xu To: xuwei5@hisilicon.com, robh+dt@kernel.org, mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, keescook@chromium.org, anton@enomsg.org, ccross@android.com, tony.luck@intel.com Subject: [PATCH v3 02/10] arm64: dts: hi3660: add L2 cache topology Date: Mon, 14 Aug 2017 17:50:41 +0800 Message-Id: <20170814095049.27701-3-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170814095049.27701-1-guodong.xu@linaro.org> References: <20170814095049.27701-1-guodong.xu@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170814_025231_273488_78839FB5 X-CRM114-Status: UNSURE ( 7.91 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Leo Yan MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Leo Yan This patch adds the L2 cache topology on 96boards Hikey960. Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index 8921310..1cdd03b 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi @@ -58,6 +58,7 @@ device_type = "cpu"; reg = <0x0 0x0>; enable-method = "psci"; + next-level-cache = <&A53_L2>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP_0>; }; @@ -66,6 +67,7 @@ device_type = "cpu"; reg = <0x0 0x1>; enable-method = "psci"; + next-level-cache = <&A53_L2>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP_0>; }; @@ -74,6 +76,7 @@ device_type = "cpu"; reg = <0x0 0x2>; enable-method = "psci"; + next-level-cache = <&A53_L2>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP_0>; }; @@ -82,6 +85,7 @@ device_type = "cpu"; reg = <0x0 0x3>; enable-method = "psci"; + next-level-cache = <&A53_L2>; cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP_0>; }; @@ -90,6 +94,7 @@ device_type = "cpu"; reg = <0x0 0x100>; enable-method = "psci"; + next-level-cache = <&A73_L2>; cpu-idle-states = < &CPU_NAP &CPU_SLEEP @@ -102,6 +107,7 @@ device_type = "cpu"; reg = <0x0 0x101>; enable-method = "psci"; + next-level-cache = <&A73_L2>; cpu-idle-states = < &CPU_NAP &CPU_SLEEP @@ -114,6 +120,7 @@ device_type = "cpu"; reg = <0x0 0x102>; enable-method = "psci"; + next-level-cache = <&A73_L2>; cpu-idle-states = < &CPU_NAP &CPU_SLEEP @@ -126,6 +133,7 @@ device_type = "cpu"; reg = <0x0 0x103>; enable-method = "psci"; + next-level-cache = <&A73_L2>; cpu-idle-states = < &CPU_NAP &CPU_SLEEP @@ -171,6 +179,14 @@ min-residency-us = <20000>; }; }; + + A53_L2: l2-cache0 { + compatible = "cache"; + }; + + A73_L2: l2-cache1 { + compatible = "cache"; + }; }; gic: interrupt-controller@e82b0000 {