From patchwork Mon Aug 7 08:13:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 109511 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1308035qge; Mon, 7 Aug 2017 01:13:56 -0700 (PDT) X-Received: by 10.99.47.199 with SMTP id v190mr10847209pgv.303.1502093636685; Mon, 07 Aug 2017 01:13:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502093636; cv=none; d=google.com; s=arc-20160816; b=JMJ4uM72JWu3oh3ZQcjoWUHIig/SKZmGG3P3DcUrQRvjoOvm055IIJLEMEtUsPDKe7 Ng3U2uKKbqaHENABruTRKInKo4ikthjCMKdWcNzSAHeY9b3d5ZnLpRwMeZ76B6c9c9vQ EXm3QxtY000mQdf9Pj1AxznBTKENvzhAGrq7ymYY7XjLKRxjA2hBBTjaek+bysHSBY7z W0trgBjc6ajd9bG0Yjo6f/oVvj4ysV4ndXfif7K/mhUOywK7jBn5tk6mLDvn4tDlaSwd +wQ5P01JT5SetPK2JQRoTJ1RTgXcDZej2pHDHJHBr5XJb/xI8fyo0DNs8lP7aSQQayYL Oq1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=+kknoa0xsS51ZeDEXOO586zfYUubZWU6uIrMU6WoYyU=; b=hHVvwSPFIGLCo21oSe+3vAq1q7WR9PXExz3VsFatkBL2M3+mVNXaGsO354IGC4Z3dY Lia1EDx6Z+FYAsAu+487iSBBsks0ImAx/3iMWeG9butu49JR2uXRcuM+ApQOCiNEBb4Z f8XOGv/v8mJfml88QAXaxMNZRuCmyyc/uSwy4CHDnJasHOjR/vmXp/pT3C5fg9tCzoHT AUxJ+2Vvtc72mx9ACLUzqB1oxIcPGRwwFdx9rrDNPdgBuoWUndJIKHFqyceNFdYQ1pYn ScThYLzpDnsmQo8l1aXmcn2HcLfGkPb8ysIQDC/lhQwlCm3S+MWBNYU9I4VHu5hBE4zW StcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=MQSTiPSY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g2si5345148plm.581.2017.08.07.01.13.56; Mon, 07 Aug 2017 01:13:56 -0700 (PDT) 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=@linaro.org header.b=MQSTiPSY; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752563AbdHGINx (ORCPT + 25 others); Mon, 7 Aug 2017 04:13:53 -0400 Received: from mail-pg0-f52.google.com ([74.125.83.52]:33836 "EHLO mail-pg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752357AbdHGINq (ORCPT ); Mon, 7 Aug 2017 04:13:46 -0400 Received: by mail-pg0-f52.google.com with SMTP id u185so31292543pgb.1 for ; Mon, 07 Aug 2017 01:13:45 -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=+kknoa0xsS51ZeDEXOO586zfYUubZWU6uIrMU6WoYyU=; b=MQSTiPSYpICGK6YjPo7OQ8QxhhGtS2+xO5clIs1+rgfkNxEUwVbHK66dKdyQPOp7+v bF7muwUR83jrtV3k9tFgSm0X8guODWYZOfMUOPbVSGdlbzXN8QlwrJT5RSQdt5YSGvIl SjNjwZDIETcL+WIpzNVPVodLR/z8THwUUkA5M= 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=+kknoa0xsS51ZeDEXOO586zfYUubZWU6uIrMU6WoYyU=; b=UQ+n396mb134D3796TOXzMi+G5ArDSyJpltQi+Y2qC+8/VfxTpicP/BBJJfTxCnjj0 vT3B75TVJK4MmJgtOgco4mHtl/bIBt86Bsf3QGDiLrDPbhn1bjyrf/8cDWqGVUDQm/lB lsLN31b42dRspFaPIjdffl6c/DBl0gsqbThJidU8R87fSXzgd36PmNTXItHNC5byPp4p BMxo15V0yDcm8gwJpL1/OxwQcd+KQzDMiagrNLkfINGsOdGdFqjn354Y5SO0F6Sr46Ul SG5NvSTQK2/aPKTeiaztYfRSTv1i/XunineGFIRLm2NibnlPiyVkQ9tsV/02h1FgMmdj s2aA== X-Gm-Message-State: AIVw110sCcXyggI4U+b1XsiazoJgSEv7bRXYKZUthSEWU8Qze47Ei9/N KQmEJPAwOhFce6JE X-Received: by 10.99.105.195 with SMTP id e186mr10549313pgc.260.1502093625387; Mon, 07 Aug 2017 01:13:45 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.229]) by smtp.gmail.com with ESMTPSA id x25sm13597521pfk.80.2017.08.07.01.13.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Aug 2017 01:13:44 -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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Leo Yan , Daniel Lezcano , Kevin Wang Subject: [PATCH 1/7] arm64: dts: hi3660: enable idle states Date: Mon, 7 Aug 2017 16:13:19 +0800 Message-Id: <20170807081325.11406-2-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170807081325.11406-1-guodong.xu@linaro.org> References: <20170807081325.11406-1-guodong.xu@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leo Yan On Hi3660 there have two clusters, one is CA53 cluster and another is CA73 cluster. This two clusters have different idle states separately. With Daniel Lezcano's patch (ARM: cpuidle: Support asymmetric idle definition), now ARM idle driver can support different clusters with different idle states. Base on this, this patch is to bind two clusters idle states on Hi3660. Except the "WFI" states are enabled by default for all CPUs, this patch also binds below extra idle states: - CA53 CPUs have two more states: CPU_SLEEP: CPU power off state CLUSTER_SLEEP_0: Cluster power off state - CA73 CPUs have three more states: CPU_NAP: CPU retention state CPU_SLEEP: CPU power off state CLUSTER_SLEEP_1: Cluster power off state Cc: Daniel Lezcano Cc: Kevin Wang Signed-off-by: Leo Yan --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 63 +++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) -- 2.10.2 diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index c6a1961..8921310 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"; + cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP_0>; }; cpu1: cpu@1 { @@ -65,6 +66,7 @@ device_type = "cpu"; reg = <0x0 0x1>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP_0>; }; cpu2: cpu@2 { @@ -72,6 +74,7 @@ device_type = "cpu"; reg = <0x0 0x2>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP_0>; }; cpu3: cpu@3 { @@ -79,6 +82,7 @@ device_type = "cpu"; reg = <0x0 0x3>; enable-method = "psci"; + cpu-idle-states = <&CPU_SLEEP &CLUSTER_SLEEP_0>; }; cpu4: cpu@100 { @@ -86,6 +90,11 @@ device_type = "cpu"; reg = <0x0 0x100>; enable-method = "psci"; + cpu-idle-states = < + &CPU_NAP + &CPU_SLEEP + &CLUSTER_SLEEP_1 + >; }; cpu5: cpu@101 { @@ -93,6 +102,11 @@ device_type = "cpu"; reg = <0x0 0x101>; enable-method = "psci"; + cpu-idle-states = < + &CPU_NAP + &CPU_SLEEP + &CLUSTER_SLEEP_1 + >; }; cpu6: cpu@102 { @@ -100,6 +114,11 @@ device_type = "cpu"; reg = <0x0 0x102>; enable-method = "psci"; + cpu-idle-states = < + &CPU_NAP + &CPU_SLEEP + &CLUSTER_SLEEP_1 + >; }; cpu7: cpu@103 { @@ -107,6 +126,50 @@ device_type = "cpu"; reg = <0x0 0x103>; enable-method = "psci"; + cpu-idle-states = < + &CPU_NAP + &CPU_SLEEP + &CLUSTER_SLEEP_1 + >; + }; + + idle-states { + entry-method = "psci"; + + CPU_NAP: cpu-nap { + compatible = "arm,idle-state"; + arm,psci-suspend-param = <0x0000001>; + entry-latency-us = <7>; + exit-latency-us = <2>; + min-residency-us = <15>; + }; + + CPU_SLEEP: cpu-sleep { + compatible = "arm,idle-state"; + local-timer-stop; + arm,psci-suspend-param = <0x0010000>; + entry-latency-us = <40>; + exit-latency-us = <70>; + min-residency-us = <3000>; + }; + + CLUSTER_SLEEP_0: cluster-sleep-0 { + compatible = "arm,idle-state"; + local-timer-stop; + arm,psci-suspend-param = <0x1010000>; + entry-latency-us = <500>; + exit-latency-us = <5000>; + min-residency-us = <20000>; + }; + + CLUSTER_SLEEP_1: cluster-sleep-1 { + compatible = "arm,idle-state"; + local-timer-stop; + arm,psci-suspend-param = <0x1010000>; + entry-latency-us = <1000>; + exit-latency-us = <5000>; + min-residency-us = <20000>; + }; }; }; From patchwork Mon Aug 7 08:13:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 109517 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1311714qge; Mon, 7 Aug 2017 01:18:34 -0700 (PDT) X-Received: by 10.98.155.92 with SMTP id r89mr11019256pfd.284.1502093913911; Mon, 07 Aug 2017 01:18:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502093913; cv=none; d=google.com; s=arc-20160816; b=Ic9wERaVqbpQPerlJOiuxwg8vynhK/+JSrwVyJbPoeNhqSJd55taRoW9AvEKloqxDV PqEtXiGvb6w8Tdkigzb8ofFKalHrHCSgR0JdfBIV0AeATNjp3crZfjybMgP5h3VK1mSC 1rOdFU534wIebZF0ewr9sqprdxHI22IyHzi1YvJZkCksa997SOQEqPRJqysrhLxWL9Wr KWV4703xWQL2st7pku2rWCDlZYDLt7kxQp1Ryw5SwF0+RbxpOYuslJljFEPcslx8Y7N6 GGnoHskSP9QnoO8WjcpSJqSQb8cpeEoDn6kj0QnIcfvEb1tl1Qyde0t/QwGE4nJ8ZRJ6 2/dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=YEcd6O9Sh1eSg86rORXukXFs4VJdNv1Q5+OM1Lbe3Bo=; b=wzuyvyEa476DVrs1tibZWKVQC7Wgbc80QYWKW6l5Gg/bFc2ehvudyWfAO0JGiumpVg phZwxT2UI1pbMY/nWUzvU3+6u/K2rt2I0y2KHiKJAZkdifmhhlEBuK7dxng7+G0qGGQK wR5ZvJ6Eezuqq8TSMWMXskGTkClEnxzFpu3yVrbRr9MpbmpfLFWR/EIP0Smpe3EUnOwS wQcbdPjK1WJTGQ/aRRqgVFx/fxiE57RrzPhOBrDBgRlf4nzWz9pU3ZG4lfzd5c1Swij2 7ohq6ZQKUlKTuFDfpf+mmVHj+k9V1GTE9xPCI7ICd6g7jx7jVcgbvd/QglaskDf6lo2v bSpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=eub8HkGd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w13si4383486pgm.687.2017.08.07.01.18.33; Mon, 07 Aug 2017 01:18:33 -0700 (PDT) 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=@linaro.org header.b=eub8HkGd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752605AbdHGIS3 (ORCPT + 25 others); Mon, 7 Aug 2017 04:18:29 -0400 Received: from mail-pg0-f43.google.com ([74.125.83.43]:35901 "EHLO mail-pg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752293AbdHGINv (ORCPT ); Mon, 7 Aug 2017 04:13:51 -0400 Received: by mail-pg0-f43.google.com with SMTP id v77so31252932pgb.3 for ; Mon, 07 Aug 2017 01:13:51 -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=eub8HkGdIZ237iwPNdlIKG8PnwBke6lWD3HwrbbwTvjDa/UbI5Rz0GJj9NaMNMDgGc ZmZiOMXyIaNSJ9PkWRjhf1vfPiEu94iSE5WRtjN2biFJ8sLKICI81ou7pbR6sl/PaaxS 0JjSlrnkzGrrbhjy3njqzYVPFNoW3cVOGY9cQ= 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=QeBwBk/+lZJNjF6HUt0391EDvm5ZLS645/livG31kbPcBQG1WV0tWtjeHibqfnozkY NZu5wJr33zF9KQEKsAEu4LubleEbMdAa5ChYDwfHwC3Qi1/55jTs0OVGWEPTFHMIHVOF +nil2TiP03QlVp6KVzKfv/ynGT5Hqub+miTl0yLeT6pbafZhxlzNqvYMxJ0Nq9sbtbCH 5S3LO4zLiKfTrI70FAA7PT5WMRQDjNEybjuQTMAId/FPLSXJDFQhuOccZYJ7FfG10QAq bIkLEeAPM5sxDsryv5ZxLiqqaP/yeiLo/bo1A2NafLyItWTQVALF8d7ANEWtqittokI6 /YDQ== X-Gm-Message-State: AIVw112eg+JPP5ZRQTwxacGyzBfOmB7J8NlIXRxsDtnGxG5W2oqVzw/I kuz7gkXdGTGq2kK60Qlqsg== X-Received: by 10.98.133.134 with SMTP id m6mr11002782pfk.97.1502093631463; Mon, 07 Aug 2017 01:13:51 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.229]) by smtp.gmail.com with ESMTPSA id x25sm13597521pfk.80.2017.08.07.01.13.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Aug 2017 01:13:50 -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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Leo Yan Subject: [PATCH 2/7] arm64: dts: hi3660: add L2 cache topology Date: Mon, 7 Aug 2017 16:13:20 +0800 Message-Id: <20170807081325.11406-3-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170807081325.11406-1-guodong.xu@linaro.org> References: <20170807081325.11406-1-guodong.xu@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.10.2 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 { From patchwork Mon Aug 7 08:13:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 109512 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1308163qge; Mon, 7 Aug 2017 01:14:06 -0700 (PDT) X-Received: by 10.99.160.25 with SMTP id r25mr10603880pge.6.1502093646070; Mon, 07 Aug 2017 01:14:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502093646; cv=none; d=google.com; s=arc-20160816; b=bLHjghDLovzGUq8dz0ggNBvSGskaIEckIkmaUOiDtJEhC5jdK60pjKRlID4O9iqG9e a3zFc738FOlzca+oyN3KKmHxM/Pypop7RlAO6ar4a0liymW7MgRG20/hn48daEn+jdPJ JHduHKjNNpsfdCim+yh48lEbqArrd2sbgWSawqKXaTE25WeXwHa9eyestL36g9ELKl3F 6WgS3Ihry/DtH7E89K9CTdsLOInjQsnQSRFjInhg+KTjoTp1+6RYjObyXfqYopoFcl9y NH6lZQKF0Ach2RDPvQjt+91KT3j7LcZumZ3G/GR8x2fFwL7LTXIZu8MJp3KIHRaxAvpl qQMA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=Ncg8cTa9krJFJEx97Y7xwDrCg2+9MJGZYRzRB/q9pCc=; b=rL01GMFRD+XoacD6PvtC3bHiZqGa2Lv+tomAE3sXOglCeNVrfkNQv+mw9MK9PPV1ad x9ZUvW3l19V9rerIsXLRb19AR/n3Bln06JkWjFJbqZwbvjQJS1DfcWGrahVZHGF2lEWG wGM0sdXXvjjkxGlOChGkob8EwL/37EBZKR41zA1SM1l7M3lsFKTXk/B8XVmFGaMbAKYW 5p8KiJ1sKbZuXSpXqH7AwHpwRWgIIhGkOYYaWLBeBm/fe7my4PqonH77gheMvUM6FqYi LY9sngh6cWfpvvawpKW/JSOsaL7HDPQ7YO/1Yh070ZaqC4zGKR6Hbw3nP3twmdlOvJDq 4NlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=K2YaCtiF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g2si5345148plm.581.2017.08.07.01.14.05; Mon, 07 Aug 2017 01:14:06 -0700 (PDT) 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=@linaro.org header.b=K2YaCtiF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752574AbdHGIOC (ORCPT + 25 others); Mon, 7 Aug 2017 04:14:02 -0400 Received: from mail-pg0-f47.google.com ([74.125.83.47]:33879 "EHLO mail-pg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752340AbdHGIN6 (ORCPT ); Mon, 7 Aug 2017 04:13:58 -0400 Received: by mail-pg0-f47.google.com with SMTP id u185so31294575pgb.1 for ; Mon, 07 Aug 2017 01:13:58 -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=Ncg8cTa9krJFJEx97Y7xwDrCg2+9MJGZYRzRB/q9pCc=; b=K2YaCtiFSYpkAC4eKqytgfgSwXGlo5jZpQK6Bx1FJbk5akRFqbdIX8Nb2/MXIznk1v yuXK/dmoEZseK4qQCldcQH3wI5c0R6EYSqUW8DQ3CzOzycs5V9KkgWulBcXyW22tWhGv C+TSBYesKnmNqOHE1fV52clP0TbjYPIYx/BzQ= 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=Ncg8cTa9krJFJEx97Y7xwDrCg2+9MJGZYRzRB/q9pCc=; b=MRX1ZWLotC+tuPWMlVGLC2qe48BslRMhLLMqYkHAnUbuRgTtHP/Ntz70RZCbgBuEED cC8SsR9aXOlngTODlVdCu5cdzXlnLqRgoWX1NJVzJzMGBsOs+A2Qrxr+YUzb8xOBfLor WwX6i9MqLTAXOy+ni/lvQZntVTmUyUx2QURXmr3L52bfZaeyymPBBwC731N7I1j+LlDD w6SiyEtWkB/xHcA6kDVeC3QCSRiWNZjr9caz2gu3rpB10SgIKrEJRo8BN9XtdGF0AnjX yb2evf6bqfa6t8+tOmlbdzCVKpKRh6BhqjZ6WX7x3wIqGtY96bUvu6FXznb4kCTKATjN etww== X-Gm-Message-State: AIVw1103stIbAuIAJ1TEepN+8btqxHgFykQgS3w9y11chEmrzIABiymA g5uBvLh+NgNOcShk X-Received: by 10.84.214.23 with SMTP id h23mr13259625pli.321.1502093638139; Mon, 07 Aug 2017 01:13:58 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.229]) by smtp.gmail.com with ESMTPSA id x25sm13597521pfk.80.2017.08.07.01.13.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Aug 2017 01:13:57 -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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, YiPing Xu , Zhong Kaihua , Leo Yan Subject: [PATCH 3/7] arm64: dts: hi3660: add pmu dt node for hi3660 Date: Mon, 7 Aug 2017 16:13:21 +0800 Message-Id: <20170807081325.11406-4-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170807081325.11406-1-guodong.xu@linaro.org> References: <20170807081325.11406-1-guodong.xu@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YiPing Xu Add pmu dt node for hi3660 Signed-off-by: YiPing Xu Signed-off-by: Zhong Kaihua Signed-off-by: Leo Yan Tested-by: Jumana Mundichipparakkal --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) -- 2.10.2 diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index 1cdd03b..5fd5686 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi @@ -202,6 +202,26 @@ IRQ_TYPE_LEVEL_HIGH)>; }; + pmu { + compatible = "arm,armv8-pmuv3"; + interrupts = , + , + , + , + , + , + , + ; + interrupt-affinity = <&cpu0>, + <&cpu1>, + <&cpu2>, + <&cpu3>, + <&cpu4>, + <&cpu5>, + <&cpu6>, + <&cpu7>; + }; + timer { compatible = "arm,armv8-timer"; interrupt-parent = <&gic>; From patchwork Mon Aug 7 08:13:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 109513 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1308234qge; Mon, 7 Aug 2017 01:14:13 -0700 (PDT) X-Received: by 10.99.124.76 with SMTP id l12mr10954074pgn.90.1502093652958; Mon, 07 Aug 2017 01:14:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502093652; cv=none; d=google.com; s=arc-20160816; b=kX8ftZYzCh+kKonYqItI46hpL3oHQaCRl+n5RF9wOiInhFlLhbKCHaOUVJuDyFThOc X4weGAB/WOUgk0BC+jnlmMuCkLiUqg5plA93MDo/ZkUbkNLobt2tRntas989EVLgBIIC D2O5RQ9TsB4lGvfIsSF9OjKmebZQxW/tzDvcC1M4GXLjbX5cMvg8bvgcg43VpF88sGCA 8RccSji4oXorUM97Mhv/E1ts8iiYxvyDGM0UbNvwyg4imgSsoQzReGHs3q85c8xwjRxW paCHhIyKHixUomkJDfDIOGaf70FEKw56FmuQIMoqnv5WSbPCjJWOdOoCIwz9WAKss501 l8kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=6VpFJOkc3jctZG9fXvVYXoGjtxLgUpOy8h7WjlUpxpU=; b=RFTdWDFlHyAsOY/pl3u4KY38cuyEvYeTN8GBQEkjOT8IJe6Qo/2dHFxyNcFPdkaswa N2S4SWHnoETb6AnwvKkOhvMbK6uTrVvxp1GE+5ieKap8Pdhprq/CrAZWpj75dmoVbBdT +JBM/AssNhtRj2I2IatqR+bmDgg+3cyVnrl+kTGjVI3y0Q0Sn9O8p5ZbACyA7zCil2iU k/qOf7YSfM3g9THwLNm2ruPaYDjqsUofHB8nzpO1EAol92z5AB05aJYmY5iFy3Bfmcln YGbiglY/5p9JfQBeLSnq5hsfgNBgr2mvY24rFNDqHGXxhM4tqqcu9anOjfOo06aA7e4U Ts1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=J6M1T/Ku; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l63si4922308plb.815.2017.08.07.01.14.12; Mon, 07 Aug 2017 01:14:12 -0700 (PDT) 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=@linaro.org header.b=J6M1T/Ku; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752595AbdHGIOI (ORCPT + 25 others); Mon, 7 Aug 2017 04:14:08 -0400 Received: from mail-pg0-f50.google.com ([74.125.83.50]:33898 "EHLO mail-pg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752417AbdHGIOE (ORCPT ); Mon, 7 Aug 2017 04:14:04 -0400 Received: by mail-pg0-f50.google.com with SMTP id u185so31295567pgb.1 for ; Mon, 07 Aug 2017 01:14:04 -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=6VpFJOkc3jctZG9fXvVYXoGjtxLgUpOy8h7WjlUpxpU=; b=J6M1T/KuZjrj8mG06xelnM1cxYom0ACq+A6GHT4IhAT/9Zq2Bw68l7msWOo8Bz37Sp Wbl2HEkxOe0UzR+6WMxMz9B4ooC8PWaBJ4jwoW9S849WOeiUjUW303UQuVL177qRNi4X H5cCH7S0Wl9UTJoZhH9d9Vn0mehNJliEh1/rg= 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=6VpFJOkc3jctZG9fXvVYXoGjtxLgUpOy8h7WjlUpxpU=; b=qHKe5cFd4YRxz2ot+exjeVi0p9yus7AARDwMZNEn70r9A/0pBeHaNL1e+7hbZ6yNMs J3Hi7NDQWX1I4jFVJCys80krIcWfLZVGyS6IJV95APdXRT51kExNkN+3mK6iEvfxO22p nq6PX66E6DdfCTG87TNdCjzORlD97EbNGnBMZkZTzVXrzJrKpewIqXFOgwJZmFsmVrFM FdcfrGgvSxzoXXQmRtqhvQy2XmjM30d4HbuothVYsRE60F8bkx/K+RrutB/HWVN1QRee 73t2DlRZFqWUnV9syhEF3ekQhz/FfbIT77+POtVkhN2nuviPT1GaIt/bpDlIH1ZsKPJz e22w== X-Gm-Message-State: AIVw112IVPjlBBenanfTdqopbn2M9WSyhsxpXeT4sGH/UTbbW/qKKuIe egNSTArqHZ4oYXla X-Received: by 10.84.232.11 with SMTP id h11mr13417793plk.126.1502093644193; Mon, 07 Aug 2017 01:14:04 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.229]) by smtp.gmail.com with ESMTPSA id x25sm13597521pfk.80.2017.08.07.01.13.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Aug 2017 01:14:03 -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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Victor Chong Subject: [PATCH 4/7] arm64: dts: hikey960: Add optee node Date: Mon, 7 Aug 2017 16:13:22 +0800 Message-Id: <20170807081325.11406-5-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170807081325.11406-1-guodong.xu@linaro.org> References: <20170807081325.11406-1-guodong.xu@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Victor Chong This patch adds op-tee node for hikey960 Signed-off-by: Victor Chong --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 7 +++++++ 1 file changed, 7 insertions(+) -- 2.10.2 diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts index 6609b0f..b96d865 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts @@ -159,6 +159,13 @@ startup-delay-us = <70000>; enable-active-high; }; + + firmware { + optee { + compatible = "linaro,optee-tz"; + method = "smc"; + }; + }; }; &i2c0 { From patchwork Mon Aug 7 08:13:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 109514 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1308315qge; Mon, 7 Aug 2017 01:14:19 -0700 (PDT) X-Received: by 10.84.136.135 with SMTP id 7mr13592954pll.356.1502093659561; Mon, 07 Aug 2017 01:14:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502093659; cv=none; d=google.com; s=arc-20160816; b=a8w9WoPJ9GgA7LZB9Hf8SvIuiN0awHebKx0KRJP3mxsHs0ScT4qlKY0aUa2pc5qthC fcvX39sas+mVBrgXXqwbpcAJgfLXATuWTWUMrAcos7ob7+wu0VMSCemmcxayXTJGDCGZ oPJeAPwgAU+QHQ9r6JwiHzO8vPfOs+1gspuSwZehtkjUWRaHIhVvc+DazzCiza+KRd3j oRrTZ+XoPVrbvEBC/bz9olqIOFsHIgvO4Mxbs66REFVJGMcoGs0xOkeHWx153lOigVz8 HU63Clod3kNT2m9bNyxLSeR0bT62QRhTbTSluerzfUsXdD4XUeLXY02qKbA54vcXpo4R ofaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=+bO+zSefFHAJbSn5XMxZONacNWLUlAJKHeiXDUvZjIo=; b=EDtXbVKTi4m0RbVhmbnWa8FeoWwWD22/FKhRwFXoSALW638Z3UQge9+mWn0eAMMBhq Kku+k9L2Cd+swiangCUetC5twidCR+XcW3jnLR7l/ND07A3TzKH82tUYqz6EdbtvTVro KLrBA+8/EbsqETVanjHfiyXse9aN23e1OHMoQMTP8k4MDTy8n8PRciulw5ilwRopAYUG +NQXn8+/oRpb3TzVr9LeObUFAyfFmv4qsi8x5YDfUwIU9QoYHi0ciBxM7MeHjKv4XDcP VCGArSUYWxpfJvPksVkpZ3OGd7B14sE0xBQu0wiArkYJ+2CWgDvn3AQvObG3OuX7au1Z gwPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=SovN2Vtl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l63si4922308plb.815.2017.08.07.01.14.19; Mon, 07 Aug 2017 01:14:19 -0700 (PDT) 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=@linaro.org header.b=SovN2Vtl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752616AbdHGIOP (ORCPT + 25 others); Mon, 7 Aug 2017 04:14:15 -0400 Received: from mail-pg0-f54.google.com ([74.125.83.54]:32797 "EHLO mail-pg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752417AbdHGIOK (ORCPT ); Mon, 7 Aug 2017 04:14:10 -0400 Received: by mail-pg0-f54.google.com with SMTP id u5so31282400pgn.0 for ; Mon, 07 Aug 2017 01:14: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=+bO+zSefFHAJbSn5XMxZONacNWLUlAJKHeiXDUvZjIo=; b=SovN2Vtltl6fM7HVGB+i7AptcCaUuCbKCP6cV0AEpZMoAjEg15tp55XKlZkN+wZbiA X7bKV6Ew3C9ITAeU6Q9aZIAhv5fobLBOfrG9OXBSNWUKICrC4a5hftejenPXLPPryKUD D1SKk9B2kRvz1W5528Us9vmojEgpF4zkeJ65M= 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=+bO+zSefFHAJbSn5XMxZONacNWLUlAJKHeiXDUvZjIo=; b=Sbre5FMxn7doeICnZTt+uLUqbzQGaShMtA0ueXOXS4HNYlYGX5BpZn722GxVh6yUyN MD9rQ7txfqCvWeKan934QoWwtI/Ys6N9AnCsFe5Yti5up60zF3ix/ai8bVoJTQSwJUfi 5EASzmIYzmK1SXSG5s3+tpUJUTXwESIhpXJ6siuCTjlboALhT2TqygtaTQ9XuOJvUQN+ BnvUpPPD49iFGQhLNajQ8EgOvQcyr3owTeOMieC2PDqzB8+30bgbWA/0FUJ6KlZcIVpp KmpxgtHBMIVEdPa2umb500MZ2J/FcMP598D+Xp72MHJpLDqydVkddV+gPuAsuqGYxDmF A5lw== X-Gm-Message-State: AIVw112JVqhdYTQdPZ5Z1QOIpcO0q6YvAAhQkeIAaK0cAMHtED3X59Fh mpHf3XKepLKl58UQ X-Received: by 10.84.232.6 with SMTP id h6mr13366726plk.173.1502093650548; Mon, 07 Aug 2017 01:14:10 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.229]) by smtp.gmail.com with ESMTPSA id x25sm13597521pfk.80.2017.08.07.01.14.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Aug 2017 01:14:10 -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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Guodong Xu , John Stultz Subject: [PATCH 5/7] arm64: dts: hikey960: Add support for syscon-reboot-mode Date: Mon, 7 Aug 2017 16:13:23 +0800 Message-Id: <20170807081325.11406-6-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170807081325.11406-1-guodong.xu@linaro.org> References: <20170807081325.11406-1-guodong.xu@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support to hikey960 dts for the syscon-reboot-mode driver. Cc: John Stultz Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 2.10.2 diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts index b96d865..ce5e874 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts @@ -39,6 +39,20 @@ reg = <0x0 0x0 0x0 0x0>; }; + reboot-mode-syscon@32100000 { + compatible = "syscon", "simple-mfd"; + reg = <0x0 0x32100000 0x0 0x00001000>; + + reboot-mode { + compatible = "syscon-reboot-mode"; + offset = <0x0>; + + mode-normal = <0x77665501>; + mode-bootloader = <0x77665500>; + mode-recovery = <0x77665502>; + }; + }; + keys { compatible = "gpio-keys"; pinctrl-names = "default"; From patchwork Mon Aug 7 08:13:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 109515 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1308411qge; Mon, 7 Aug 2017 01:14:27 -0700 (PDT) X-Received: by 10.84.216.84 with SMTP id f20mr13091394plj.311.1502093667057; Mon, 07 Aug 2017 01:14:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502093667; cv=none; d=google.com; s=arc-20160816; b=qTXHwHpUNTS1XJj1QaIVzGBVVQLDX4OkkA8jd9v/NBM7B7TyINqfho95oxfELLHi/D oY5QJwb2h6PpbF8m8lYX2LpYVxkJ1nJZMufsvWjYzr2Ofumg6qzaL5hkCo+ybwzFBDIZ Tcx47LTXjONgOnWUzh6ZYwebcISUb68OFKPiRrlg2wH+/4RJb0lPCdSDCvTtgTbHlhee UMFbrxE0HPW1SvoXVdMzsJqZYnPwf+WbVVqtlMnPjMm3hh9YbZaZDZR7a250PVemigor CZHPdAmfQmS83RhQfi7esmaKDQ4n1z7AEYpv3G249I5dIChcbE7EmWuTJ6l1gyBfDjWw L3xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=0p32t2rEJNcki7qqS9LxDJb86SxhFm8dQpqqyYidYmg=; b=BE9QhbshYod2ZbBnvfEzUxhYXyjgJateOg27tQFj9lyvzO9lsC15YtyC+xjKIFhi6w fkZqxZNzSKjB6ocBeORIEuv2Gku1bunE4Qa24Wl7BW+h5VzGWAMm9JPsaagoKp9675xG 15AgYPgMWN3H3TgOJdB/11BRZSpOfJPrbCXuwmKDsMQBlZpwzSwiaKT36ojop7THnRA1 GN5Ak2xHJ3f8YZStQJCeSv14DQOlmLaEpVZruDA1NX/uDdeUAATDet+nsL0CNMEBfRKe 3QwFN7YP7VqNYNoQ9S/zDvrnAOVlz4MFtZJQyxzcHdFNIy0FIsRHggNjAaWv9WPjUhMr 7/sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.b=POmq3uDd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x69si4390931pfj.283.2017.08.07.01.14.26; Mon, 07 Aug 2017 01:14:27 -0700 (PDT) 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=@linaro.org header.b=POmq3uDd; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752638AbdHGIOW (ORCPT + 25 others); Mon, 7 Aug 2017 04:14:22 -0400 Received: from mail-pf0-f178.google.com ([209.85.192.178]:35801 "EHLO mail-pf0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752417AbdHGIOR (ORCPT ); Mon, 7 Aug 2017 04:14:17 -0400 Received: by mail-pf0-f178.google.com with SMTP id t86so31045591pfe.2 for ; Mon, 07 Aug 2017 01:14:16 -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=0p32t2rEJNcki7qqS9LxDJb86SxhFm8dQpqqyYidYmg=; b=POmq3uDdAuX19aT+ns8W4Y1b1A6VUupQcZ7/5i+/LcaLwWs92bMYTJdZJzxypVzfEU foYpyyLXFFpBLVQUsJkUwR4u/gNfTsDzHhoicJPeSgtHWcg0EBUjYELVUs6ye8d+ge53 c+C/zVgWFo2ZpnPzu5HZVbqsehENiLwJwvuXs= 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=0p32t2rEJNcki7qqS9LxDJb86SxhFm8dQpqqyYidYmg=; b=rDZ/0PdUYRKonLOgpXLA+u+hJC/fi+ayU+MiXB062tNJzga6I1JSQvTrZbu+6Uaf0R Up5T7dBQ1/WvyG28PCbXraoiBoQJoZAZ2Q45BuA3043s0AuDiPHaKZQC7us3eg2wW86j WiHX9914NO++B0VZIRHVqebD6zXCq1RBCxWArv8lzgxK+b1MVd4MNDKXJQWXDcp0IUHs CvxPbuSbyZ0EAnpX/xxaglSSJDjHcFhn+9engV6N5OYVQAWIx+TXo9btLxQPs1TwtEtb wi5JZMmP4Pcoa6w8YfRs5aTd3B7VK7l657WPPTtk4w0Q/04ya42AQXDsiTeh5RWtzK9t QfVA== X-Gm-Message-State: AIVw113b06jkim7QW4IqYlGX2y2n9zyYAIC8HdYls2YXhJ31ubbIbffK 5egZLffH8vu1Z5Sj X-Received: by 10.99.97.209 with SMTP id v200mr10817849pgb.346.1502093656591; Mon, 07 Aug 2017 01:14:16 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.56.159.229]) by smtp.gmail.com with ESMTPSA id x25sm13597521pfk.80.2017.08.07.01.14.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Aug 2017 01:14:16 -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 Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Guodong Xu , John Stultz Subject: [PATCH 6/7] arm64: dts: hikey960: Add pstore support Date: Mon, 7 Aug 2017 16:13:24 +0800 Message-Id: <20170807081325.11406-7-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170807081325.11406-1-guodong.xu@linaro.org> References: <20170807081325.11406-1-guodong.xu@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch reserves some memory in the DTS and sets up a pstore device tree node to enable pstore support on HiKey960. Cc: John Stultz Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 2.10.2 diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts index ce5e874..7770ec7 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts @@ -39,6 +39,20 @@ reg = <0x0 0x0 0x0 0x0>; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + ramoops@32000000 { + compatible = "ramoops"; + reg = <0x0 0x32000000 0x0 0x00100000>; + record-size = <0x00020000>; + console-size = <0x00020000>; + ftrace-size = <0x00020000>; + }; + }; + reboot-mode-syscon@32100000 { compatible = "syscon", "simple-mfd"; reg = <0x0 0x32100000 0x0 0x00001000>;