From patchwork Thu Aug 10 02:26:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 109758 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1715750qge; Wed, 9 Aug 2017 19:26:45 -0700 (PDT) X-Received: by 10.84.217.144 with SMTP id p16mr11603774pli.276.1502332005411; Wed, 09 Aug 2017 19:26:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502332005; cv=none; d=google.com; s=arc-20160816; b=agI0QJg5cb3mhtkzLTSSXOSFcaMH5rI6U6zScotzKq76VcnlAwZtgUP6fS1+CKBkNX /M01+O9Ea3jIX5WQWHB6Y2pu5YS8OphNe0hUi7zOKg8qPhjrQmPqsEuqtUugrpVs8uBW PKpv1HqQKTbAXtcnKqY/8yJjjwU+6c+l7nOX7SphJeozbwR4Iz8Jt024osIYGqqtXF5t zNetGJgwP9qDHeyOCv9XhNChUzhavb8QTMp7BXkE7rk4RNYVJJY0WeChsuZDhB30iIqR 9M0FCCZ5xt4BABRn5/Ef96hwFK0a2zKkmxpoAQHwbJSJiFM4sMcLtCOtOobDvSIX43ea uCLg== 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=0HupS3EKX4pbpkS8P+8U+GRlyb3SLB1Gi8ibwXxhunOfJnFuT3CQ1ApBl6LtulDG3m 0/+gIg41YNsNkl6bPcAWEUP6jM4q9E3r6L0cAZEvTP1cU1uSBdrpjtTIpxrnamy36s/2 5KxKGwx1rbXVEBsO/4icVDv4+55+Rrnw1OAQKTvAlwDsHY8ctcNUHbk6xokuJUg+Y/KY ojZRyIIH+udfroAoN24LBniASwAe/WQZTyqMaqLtArBfJnXbgRbmduZcz2Uj4MkDeXRW //YKKm55tsaGmRXTRIO8cj740DSJdiIhH8n8SMCl8+jPygUUkQgISukywC2dD9InYj0Y b91w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fMFo4gzb; 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 11si3425142pft.626.2017.08.09.19.26.45; Wed, 09 Aug 2017 19:26:45 -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.s=google header.b=fMFo4gzb; 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 S1752467AbdHJC0m (ORCPT + 25 others); Wed, 9 Aug 2017 22:26:42 -0400 Received: from mail-pg0-f52.google.com ([74.125.83.52]:37633 "EHLO mail-pg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752403AbdHJC0k (ORCPT ); Wed, 9 Aug 2017 22:26:40 -0400 Received: by mail-pg0-f52.google.com with SMTP id y129so35408993pgy.4 for ; Wed, 09 Aug 2017 19:26:40 -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=fMFo4gzbDGTYS4YMdOnv/pjWuxQsWRhoyaB1PT6enXpsauCUqeRELoVDfWi0krOLlG ffBfHVJzC5KXCsGSfOpXQXChhNu+xAoia8e2iTkvCdMkVNFy3hPpkHtTldnl9mQxtiBD 4DktXd7BbYKb4RKUgz4X+xdXDRpfyCpMs2Z4A= 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=dwoWj8DdVCa7l4efkiSE8dXV4B7X2HyK74UUVouegqm0VvYXApxPDs4+sPkvYec+Dv ecbdczPYZLj9JNPAxg9oEmaB9MBWw+1LvfZhcwSygR9GTY77D2+zwEGD7pZh/JVIQ8xN rAvfM5uYiz62aAncdXBtvS7nwG4eupKT+qgtQTDK+yzbXZFpPeRf48zlyqVp6HBr6W72 ZeYY5pLDva5NradWHKDba4NILSbbmeM82DK36S6AkSTtmdg+oOcM/MYeodHuHbKl6zWE +GPkiBSgbFa1sg1JaBhBVnWI7ILkzFFtn5TV6wHgUlQZG27joKeoyx429RHC7Ww5WjRl NpQw== X-Gm-Message-State: AHYfb5i1tvM7hw53C174K6KICOo6gE3A0E90fDRa6xfDfkofPmo4odr0 ct6Ua67nXVM6m2yn X-Received: by 10.99.185.16 with SMTP id z16mr9605239pge.395.1502331999719; Wed, 09 Aug 2017 19:26:39 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.41.135.55]) by smtp.gmail.com with ESMTPSA id s11sm7789166pgr.53.2017.08.09.19.26.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 19:26:39 -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 v2 1/9] arm64: dts: hi3660: enable idle states Date: Thu, 10 Aug 2017 10:26:07 +0800 Message-Id: <20170810022615.19204-2-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170810022615.19204-1-guodong.xu@linaro.org> References: <20170810022615.19204-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 Acked-by: Daniel Lezcano 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 Thu Aug 10 02:26:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 109759 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1715842qge; Wed, 9 Aug 2017 19:26:51 -0700 (PDT) X-Received: by 10.98.52.134 with SMTP id b128mr10433844pfa.49.1502332011671; Wed, 09 Aug 2017 19:26:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502332011; cv=none; d=google.com; s=arc-20160816; b=C5WWwPn8sjzOzsq63cj1xID21ow3c6m6g/H1PHD1AANQ7IwY4gVYU3tA1NU6NCEZMu 07w0vg0ptUXXbz+DiLc4GHTFmtsR0vTztpsTZgsK/tDq2Jtyaw/Iqu2sHt7WVL9FvMfD 2RA5GnG7AWvOj51By54qMP0ild14n56JPBOo/7bvuJac6aaeOIHyL+8lc7PsZCv2KkDo IkoprkPuS8kYqCqePchZgNV0IAI0exM0eAE7x89dznDaU8FHtX+eOAUi8oT0mBEW7Rt7 50Uo/sZVZhKEmNVJpj+8bk2Trpb8XJTLZ5ahUV4SLJ6Jrrm8vcHyPz5YxU6i9fhjDKoB 0WLQ== 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=mXbX2jdiqT3txQhw4kkzgz39IDl38ZE9tPPPjdO1rRqO0CZ+VOk9m1xDOfdzwiUKGm HUAI3GXcsyZHbzcjRcGOd6rruJ7EEB+s/+gHvg5d1pESkJvdSX1afaVk0UVkbBfAZIck AqUOJns/jmTSaZIde0kea4L8Oufbbx4zxiR+YV97LPmdCelMyLxFsyXoDzL0+Xr1606r HfnnBky5CnUcrHL77CIV10uW5Rhmquy3kLKcesEpvoKpIDWZ/R3CFjKG+pIbG02Frwi9 xgwCiWNAfI10sNyi2brk2MeyGKKYluFGFrMLYHmFUcSuRqmP3NG4PNIRGmK1VKKgumuK uAbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ku/1ZKRN; 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 11si3425142pft.626.2017.08.09.19.26.51; Wed, 09 Aug 2017 19:26:51 -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.s=google header.b=Ku/1ZKRN; 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 S1752518AbdHJC0s (ORCPT + 25 others); Wed, 9 Aug 2017 22:26:48 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:35836 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752469AbdHJC0p (ORCPT ); Wed, 9 Aug 2017 22:26:45 -0400 Received: by mail-pf0-f176.google.com with SMTP id t86so35186290pfe.2 for ; Wed, 09 Aug 2017 19:26: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=YEcd6O9Sh1eSg86rORXukXFs4VJdNv1Q5+OM1Lbe3Bo=; b=Ku/1ZKRNMMGC4G6dJm4XBAiPT59flzdhfZfwLEX4hnlLyZ4ErgP4A2/uh1hTLOJKzo fn/E97k5sGWCZPT/ZWDZeaPeY+lRFG5mZpdUCGmYE8Z/UnKsOaqqDwF4i4ul4l1ESkwM ZTmouHwG5m8vub1ecIKfUakWKPoELBTqKiarc= 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=XyF3PI3T2N7wdHfvTr8o4nLmX7UPwqioDfjrCb6TkjdayczSTBfXIKdRMvZUk8GKzY q2o9amf7KxouPxsAT+GVmm1FrS7/WFQOahVJ08yJQQYy2Mr1TKhHUJvXVtAasaGqKrKX fAk9XB8rC9er8uSXzqjFdwxSxI93LBxPGvajZKzfhabCSfya2gF4DapCzeanuXEPpXqm LeN2UBFTDvNvo5W5Ouk599SZ+CIDQVGz5J3ENd8+wTlBTkHoyrydHlt9XQnwmWK/z/Jz chmduXmH66jkuUswgEo5r5kKC2bNdeqp4YLyv4DYdpuzYFW2R5QOl+GRnHxico9ggACH U9qA== X-Gm-Message-State: AHYfb5jaWtJAU9UgxMwc2vSyLmgGRqAVPDqzHTnSZvnii0lv4M+guW7s OLEaFys7MDxZ2CmP X-Received: by 10.84.137.169 with SMTP id 38mr11161632pln.331.1502332005075; Wed, 09 Aug 2017 19:26:45 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.41.135.55]) by smtp.gmail.com with ESMTPSA id s11sm7789166pgr.53.2017.08.09.19.26.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 19:26: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 Subject: [PATCH v2 2/9] arm64: dts: hi3660: add L2 cache topology Date: Thu, 10 Aug 2017 10:26:08 +0800 Message-Id: <20170810022615.19204-3-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170810022615.19204-1-guodong.xu@linaro.org> References: <20170810022615.19204-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 Thu Aug 10 02:26:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 109765 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1717702qge; Wed, 9 Aug 2017 19:29:10 -0700 (PDT) X-Received: by 10.99.45.194 with SMTP id t185mr9673356pgt.295.1502332150500; Wed, 09 Aug 2017 19:29:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502332150; cv=none; d=google.com; s=arc-20160816; b=gtZ8yfrvWfquz81PSXWlGCG3kdFIX+Jpfjr52ha38PGs0Wj8g49ODiEDK5irL6BGOS 4ELUKcqa47s2Ly9QJF2rn2XNT1625Yj+DuUfAFqTxJHasDhW97zTB/m/zV/PvuRiZjSO AM9N0HMoTezLXZf+62q1f30ad2YVwGisSnFIGrm+xKOppIu1fFqZ57znk0bQH6ksNFvk JbBDTHjUizF2CAC2hyiS8oHr1uWF8r94JoZvUGZmfmLcjGL6S00U5H6kKopt2IRzwNv9 boBq5WzTcxQmfxX78ogh17Pu1Z3JEj74EOAMPvZ4ZKzgC14FCrxxwNV0V9WU2WIMIKHX OXIQ== 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=PDZw6ZRLRfFgPlcjCTOMGNX7P6BX5rC9tC+1MhiLudk2eK4i7hBqiOUxK4DyZKX78O fKWUdTR2bJU/4qP1frr1wQESFL3cE8YO8glG/9E8SiDegaM496KOJu5bM1e730Sh9Usd 1p2kl1KdBq/2rp4RKVZu3HlVNbC2edu9ZijtNOmZMWFaeQoVvgts0g/DM3g1YqiBgc0M z3qoyJGoBsRSOQG3W2lVLPKYnJjVuO+axdpkuk8ckvRlYX0+Hua93zXzKcXcZWlae/KC UtjCfK+e88Ac4Qz6BNgxXSFYiNXyR1S0qBHbOF4ar/+X27JlzoEpIHDPXOv1+sm/W8Ap lEtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GtJwupeC; 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 73si3760780pld.154.2017.08.09.19.29.10; Wed, 09 Aug 2017 19:29:10 -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.s=google header.b=GtJwupeC; 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 S1752592AbdHJC1D (ORCPT + 25 others); Wed, 9 Aug 2017 22:27:03 -0400 Received: from mail-pg0-f54.google.com ([74.125.83.54]:36122 "EHLO mail-pg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752560AbdHJC05 (ORCPT ); Wed, 9 Aug 2017 22:26:57 -0400 Received: by mail-pg0-f54.google.com with SMTP id v77so35297352pgb.3 for ; Wed, 09 Aug 2017 19:26:56 -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=GtJwupeCY6Cyie6uIZsBCRFO6E3Fd2DEmOaD+Xux9O68qP73aFCZmn1YoClFLd0aFX qlgRIHvBcX+m8qiYHUReiilTzrsLMvO9PW7iclhAdELrVG9rT/puMKWjMpFTHte9KXIt 4G5g7821iLHXniMBByFHDZ/khQ7v1p24H1yO0= 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=G3bYgB6Cc4hoVD/tr/bHCGngKms9/G9+gJcXVj/ednKISXdEZ60wmHhtomb1IQNjum /6vU48eA8Eu/9bD5m2pt/+qHRnVzNhZqQh33vq3UHqE+85Ng5z3Wq1dw0DciFtmBoFwQ HNDpmijy9//k6WuEjkjg5YRFudcipaTcdgXYYxn+fzsj1CFg04p0UuHjMI307j9afVF3 eTli0CaKJLia4CRRVyC6Yyu2vN86jJy/Argvsj9ROhE5Qd0j0PlQcycredRumaUxYBRo L2fT6+pNynuwDTjsGOVcyDva1+W56Ex6mvksVuR52+ZLcmkeIfAoz5MTwo0mDXRFrNTf lqBw== X-Gm-Message-State: AHYfb5hOnghgO3PZgQ25/zpoZTVNnDT5TSmECYCcjaV6TOWZ0is4ktxL Awlm2NwQL24xH/We X-Received: by 10.99.114.19 with SMTP id n19mr9735907pgc.436.1502332016403; Wed, 09 Aug 2017 19:26:56 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.41.135.55]) by smtp.gmail.com with ESMTPSA id s11sm7789166pgr.53.2017.08.09.19.26.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 19:26:56 -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 v2 4/9] arm64: dts: hikey960: Add optee node Date: Thu, 10 Aug 2017 10:26:10 +0800 Message-Id: <20170810022615.19204-5-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170810022615.19204-1-guodong.xu@linaro.org> References: <20170810022615.19204-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 Thu Aug 10 02:26:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 109761 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1716179qge; Wed, 9 Aug 2017 19:27:13 -0700 (PDT) X-Received: by 10.98.133.211 with SMTP id m80mr10264296pfk.164.1502332033099; Wed, 09 Aug 2017 19:27:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502332033; cv=none; d=google.com; s=arc-20160816; b=shVdtVROeAq0Ex6PJfwZ5hRssfkMiHsGivPehPQ5ZUq2lpfCBE5ijN/alv+sgDuRGu suyNBVYuGmenex2GMJo3SgdN2x4QTPfYENPaSHq+l33LEmZ1fayZAZynPcTaAr3BsXfg dH89sUYHJYc9ZKAwlD4qiTKkRbI+2jClAWfcRGiJvDUbkMiO6EJs/ap/byI6mTmAF+xJ jIZDmvK36hNP7miYpds3vV8lN6l4wQ5OCOsIejdK18PFyyM0WgxOQfKRi7k59p24Aq04 8emJw9boP68+pw1E389BDbYadtXwJNbJJda5UqKBam8pLDo24pllKA7JhCR7BPJFVGCV 6FBQ== 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=QEQfewElvbK7VEM7n3LKKDVF8CRgso5tKa+CBh2ITZJmi32c4BUSYnE0x50qejS225 Jd6YoWnRbMSvjjZLbkZeH+1nlV7QJhyjzfTzjoYYVIO0gTbSi/iafjJ/PGLWa0MW8tiM uGrUGupZA3RTYfKZibuS+h5FVo29SMktp1MckCJts14RfCZOGMHtzYENcFVhQZ/6kTvJ fnlvNJQK/w4VryPuAvMZRNW93BTfyNK30gFOQkvjzJRUHub4gcW7tb1FSSn2E/qiXsxz 6EHMojEh6igQzKMFE8qb7S8nBuv07y7TUrApDa33b2oPkEvBFSTmhU8YVBIlPbc07EgZ 1Stg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZbFOdlwb; 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 n187si3253256pga.798.2017.08.09.19.27.12; Wed, 09 Aug 2017 19:27:13 -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.s=google header.b=ZbFOdlwb; 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 S1752651AbdHJC1L (ORCPT + 25 others); Wed, 9 Aug 2017 22:27:11 -0400 Received: from mail-pf0-f180.google.com ([209.85.192.180]:33751 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752623AbdHJC1I (ORCPT ); Wed, 9 Aug 2017 22:27:08 -0400 Received: by mail-pf0-f180.google.com with SMTP id h68so35263371pfk.0 for ; Wed, 09 Aug 2017 19:27:08 -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=ZbFOdlwb8d/3/qPiAZzJL0HBmVviHBBd03iYxBy0uRShht0Som6FwnDOO7F4ROTHGf 0DRpPkG/PJdmz0h9qKcDoPj2MvCGSKbJR8juhNas1UdjH1lGD3i8Cc2uOMdXCMs4LQTu lNy0u6FrzGZsFVDNpFj2W8rwZ2WuBETIKBT5Y= 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=YLjVV8avl5IrrtT3wwxIfOy/Oq0RC3QceFqkErD/H2YV1StSfYtWd4oT/86KJtEYEe atF7KRrW6TgLUIJXhBrM6lG1VdyKPB4cxpI+yEzQzkUyVUt3nRBa14ZrP3lGRJPpRrMk TVS+l8wJdbjaF1IhFPsqiL7x7MNDhCzOvjpbDKumBi5T3hiGGjpxa/dH5eFmGjaAUzCT BkjA5gYoXaKSGjTUxIi8kzv+B8gnaPzGMS8+4Wj5aAczjlyXj4bBbZa+JOrGrWnaQCIt +Fc5rhXJ4kOPCYj8J+GOROgILtxAnfhHhMn8NYBroOtNjODBfCwycc7UCOkOeWszZGSa jn+w== X-Gm-Message-State: AHYfb5hPq+WQtE/5ZhzrpWuUHLcjjkX7WdMSzyxWxlg/Mo74EOwCwv+X Dca1nToN0l5giEiy X-Received: by 10.84.224.135 with SMTP id s7mr11429222plj.238.1502332027670; Wed, 09 Aug 2017 19:27:07 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.41.135.55]) by smtp.gmail.com with ESMTPSA id s11sm7789166pgr.53.2017.08.09.19.27.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 19:27:07 -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 v2 6/9] arm64: dts: hikey960: Add pstore support Date: Thu, 10 Aug 2017 10:26:12 +0800 Message-Id: <20170810022615.19204-7-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170810022615.19204-1-guodong.xu@linaro.org> References: <20170810022615.19204-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>; From patchwork Thu Aug 10 02:26:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 109762 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1716291qge; Wed, 9 Aug 2017 19:27:19 -0700 (PDT) X-Received: by 10.98.86.195 with SMTP id h64mr10133727pfj.99.1502332039842; Wed, 09 Aug 2017 19:27:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502332039; cv=none; d=google.com; s=arc-20160816; b=CGCPNEqb5oEawpQCUAE2BDLnS12YZPnabT0lDYWG+ra12ZNZBIyM9WZacRHNVLTwPO agdtl+TzGExF5EbKV/yju/X0IysO3Jdg9Dcv1pws6gf1c2jXRZof7+Y0dW99sHQ/Yccc R2XNe0W1i7AoLP2sBrE9sRZbmrAdaMJ3e0nsbUfEQuIwNn93e2CAlimCT1Nov4D86xMs hjQ+2cNuVoMCGm3IjtUqb7dVj0gjbm9k0Lh0ef0i9EaWgehCeGpz+y6VnumatTD3/VdJ O2ilnzlq26bI/9wsEYHhlAThXN/200q3aLMe7m1UHbawoms2KGmoucX6LAtxysyzXeeu 0sPQ== 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=ilmrt1kaYMO+vPgzSCoZ22OsKqJzyrxZJrRMn2tuK8g=; b=YT3zTu14er2bBsOH/cKEAIOACrsRmBaJ7Lxe+PxdPN3sAhHecB+HJnNhvPFuAQuh3S Oxpi89e7myLS6xDGN0BwZ+S5+QqFxop5ItVOUNOeZKjidfKQEZUCBSzPdsHYw93F3fj+ s9EpcIdgbBQYwRZwP0gjGykhD/en4WTx3FzFjLGB7jXVvsWeu+yYtv6snDzdjztkvk8S R/lJ0CR0LaOVysG9ennIW2Yd9ccTa/dBpus2mcenwyDNLPbVvTMeRwVC+gccDsZpqM4m DZpCgp49EvweA8M1pYl3KnS52Za5nNY8EX+MAW2BjAKxRcMh01unWOilQphlOEZf6fCf lsjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hqHDuZoL; 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 l62si3473442pfa.56.2017.08.09.19.27.19; Wed, 09 Aug 2017 19:27: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.s=google header.b=hqHDuZoL; 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 S1752678AbdHJC1R (ORCPT + 25 others); Wed, 9 Aug 2017 22:27:17 -0400 Received: from mail-pf0-f174.google.com ([209.85.192.174]:34606 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752624AbdHJC1N (ORCPT ); Wed, 9 Aug 2017 22:27:13 -0400 Received: by mail-pf0-f174.google.com with SMTP id o86so35240705pfj.1 for ; Wed, 09 Aug 2017 19:27:13 -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=ilmrt1kaYMO+vPgzSCoZ22OsKqJzyrxZJrRMn2tuK8g=; b=hqHDuZoL+1+M+rB/r+J+NJrqp/2ByY6rJEZH7+xEkpvcAZ/cYlQgJoO5s6KAJ5nW1s tzfR2KsZgUrf3isNckSMho3Lgngy3O4XzoNVITayCBnW2o0tgQRPFVGfDYEybnLYw0aD hWpjMbeHXqrXtLHcRDGuFvXJaB7Y8fQsdzwtc= 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=ilmrt1kaYMO+vPgzSCoZ22OsKqJzyrxZJrRMn2tuK8g=; b=YrT8EwOQt6GMCBa/rnFHlQE2CHRlMBap0Xx9mIN0cQokQ2iWnvi10ryjOa8lPMdMK+ b0yLtDN3LFV42DHAPOXJGJ+5VVpLGyhXA1b37xoR9fltFY21zqqdZHxtlhPHi89gbl+d roHjnnEuora0IqrkAX/ATTSOwjptj7ZAw8goCj56O2p+st36HJo6mr9146reZooXsO38 P12YUdCxeDnwGMYShWwhKPCaxIhACuPDlz/bhi/6p4v/Jz3D5Z39TmE3rvBf/Thv7ns3 mrMB2aM/0+qR46gOhvyklNOZp+ziiqOu91Z74KzNZFgVXYqg5gko6gF9+NDHVJfLj/rq /UvQ== X-Gm-Message-State: AHYfb5gzZrcEwzMorTxL/qNkwD7AVXrAoqQPqlnyggTqS9d+rat8GNsK sz88FLm7DJa2JqK+ X-Received: by 10.99.123.19 with SMTP id w19mr2926715pgc.277.1502332033031; Wed, 09 Aug 2017 19:27:13 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.41.135.55]) by smtp.gmail.com with ESMTPSA id s11sm7789166pgr.53.2017.08.09.19.27.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 19:27:12 -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 Subject: [PATCH v2 7/9] arm64: dts: hi3660: Reset the mmc hosts Date: Thu, 10 Aug 2017 10:26:13 +0800 Message-Id: <20170810022615.19204-8-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170810022615.19204-1-guodong.xu@linaro.org> References: <20170810022615.19204-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 reset-names = "reset" into mmc nodes. Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 2 ++ 1 file changed, 2 insertions(+) -- 2.10.2 diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index 5fd5686..41841f7 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi @@ -909,6 +909,7 @@ clock-names = "ciu", "biu"; clock-frequency = <3200000>; resets = <&crg_rst 0x94 18>; + reset-names = "reset"; cd-gpios = <&gpio25 3 0>; hisilicon,peripheral-syscon = <&sctrl>; pinctrl-names = "default"; @@ -938,6 +939,7 @@ <&crg_ctrl HI3660_HCLK_GATE_SDIO0>; clock-names = "ciu", "biu"; resets = <&crg_rst 0x94 20>; + reset-names = "reset"; card-detect-delay = <200>; supports-highspeed; keep-power-in-suspend; From patchwork Thu Aug 10 02:26:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 109763 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1716394qge; Wed, 9 Aug 2017 19:27:27 -0700 (PDT) X-Received: by 10.99.114.20 with SMTP id n20mr9657252pgc.451.1502332047015; Wed, 09 Aug 2017 19:27:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502332047; cv=none; d=google.com; s=arc-20160816; b=Mf50jF+UZ9MWjNgb1TbBTy6CmVhqGMDTVfUfStqLXwmSJ3+vu/UnEZrt7v6N1nB/1C snua4myGvrzmz3SIM5+2REkcADcW34+tFwK8nndBsLLtnmUYQ5p/aMRhZspEQUsxDyfI J5LTojoaOA7Cd26wMVCBcpbdHuY4zuGzXudjtGaTLBamwPodINxCvcDpea60i5B6i7Ej xoC/LX/V79tZHWKb7PnmXxsjgpA5UhmH9xpUOdEjuEZUL8l/QVmvcK2+wtM+ZJvtZeB4 G6KYzfz4RgHJRyCdGLE5s5OdErCGiMEX7ip+lIvUSICu6NKXPPBWS5gveBcMl/ttq7gh EiqQ== 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=HlHeVrq2afTm88QT+clq/RICXUcu3co6srnlg7eCltM=; b=YCztX5KMl5T+uWyrUCT+pI5OXE3Sy9x9+1Gg3Pfn5oOlYBQ6vDeUJ+IerLipm2ne9/ vVHkt5c5k6fhp+a7l76UFp6hQdUxKRWc+TOMtrchqjA45viO+XN28LThGKiywuNQEHiK kF4HIiDXRhNe5qI/HETAkq7LZrKO42jDZVDSCWOcqBFwdMwdbBYIEdyzHjD1pDw/yvMx mIHG29cDfcKsJ0zZzlKPzth0VlQ5yhsoPd9RNKA9Y+7rAnZw8Xu0dStFNcBMb+FAN5x4 Gs76z1wBddNxqGpOLkt/uCu1vD58/RM4zB8P+p/JB2AVVoIT9aLybUQNITxeNLeKNqtc 7SGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dDq4dvV6; 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 l62si3473442pfa.56.2017.08.09.19.27.26; Wed, 09 Aug 2017 19:27: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.s=google header.b=dDq4dvV6; 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 S1752711AbdHJC1X (ORCPT + 25 others); Wed, 9 Aug 2017 22:27:23 -0400 Received: from mail-pg0-f44.google.com ([74.125.83.44]:34076 "EHLO mail-pg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752681AbdHJC1S (ORCPT ); Wed, 9 Aug 2017 22:27:18 -0400 Received: by mail-pg0-f44.google.com with SMTP id u185so35373745pgb.1 for ; Wed, 09 Aug 2017 19:27:18 -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=HlHeVrq2afTm88QT+clq/RICXUcu3co6srnlg7eCltM=; b=dDq4dvV6z6unIWOAWo5QYgQSEyrr7M96lEPaEkl3sJM9C8ByV2+3YrKkZ+azWUU7Xv aXsvad/XHmdidbhlPTwWm002Vmd0D4TB8sr9cchm8Ex2UW5ymabJ59hd2UCiUCRueCyP YbJGNvbIcpmERABanm4Mu8dHUF0of5e9IoHso= 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=HlHeVrq2afTm88QT+clq/RICXUcu3co6srnlg7eCltM=; b=Xg1GKV23nkG4ir5ycLY4DYlV4gqX4mP6H38LVxq9d7muWyXBJ8Q3/flmrtgfl5s2QR BgD3Tqy73GA30pFq5DzgM5/Gnz0h6J1E2PTxs5h9Fj8654rAp1Xekoj0AbmN3/C7IXda dYrohYs4GQRt7H4/3BxNnZlZneugyDrs8eVTP96HD0VNO/92x3bbF/ReWdonzv4ilPNB uYwoCL14cU3sbiklsxvE2hXoMK5h+qKrgEGgsBoLRvOOK4Hf8aQWpCkPZm5zK1DTlEPF nqSwbppRRC10LE14y2KyQzE80BatS9dWeuaNJ32rvmqaaATZu811sirw5od3AryPy1I9 EoNA== X-Gm-Message-State: AHYfb5jFuVNsPyQaVB8uZWXjCpDmKlOz6sE2xEaGydJQ62mvhK1QceGi Rx/oHCBlGyoy40XWesNQZw== X-Received: by 10.99.126.86 with SMTP id o22mr9671251pgn.384.1502332038426; Wed, 09 Aug 2017 19:27:18 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.41.135.55]) by smtp.gmail.com with ESMTPSA id s11sm7789166pgr.53.2017.08.09.19.27.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 19:27:17 -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 Subject: [PATCH v2 8/9] arm64: dts: hikey960: change bluetooth uart max-speed to 3mbps Date: Thu, 10 Aug 2017 10:26:14 +0800 Message-Id: <20170810022615.19204-9-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170810022615.19204-1-guodong.xu@linaro.org> References: <20170810022615.19204-1-guodong.xu@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update bluetooth UART max-speed to 3Mbps Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.10.2 diff --git a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts index 7770ec7..fd4705c 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts +++ b/arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dts @@ -230,7 +230,7 @@ bluetooth { compatible = "ti,wl1837-st"; enable-gpios = <&gpio15 6 GPIO_ACTIVE_HIGH>; - max-speed = <921600>; + max-speed = <3000000>; }; }; From patchwork Thu Aug 10 02:26:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guodong Xu X-Patchwork-Id: 109764 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1716426qge; Wed, 9 Aug 2017 19:27:29 -0700 (PDT) X-Received: by 10.84.241.207 with SMTP id t15mr11392378plm.406.1502332049891; Wed, 09 Aug 2017 19:27:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502332049; cv=none; d=google.com; s=arc-20160816; b=jqqTHzPxSlLolA5VY6CKBAFaf6k8cWUbJh0lH1OcjEE2CcM9f3bjXeK9piksCro0z1 I95f9TPTTblDxqLxM8qXC4BoHRoMIr9dT3gtdpp1LuuZE09a1qXc2pku1eyDQA/uAZ3l 94Hujp7tLedghQJZsUMWhtr2C1wuJsRijqChjJeRyDUs7JZi8otpgum0HdKs0XbyPqBb WguBXnfEwaTdzfcjHiDu1y308gbv411WjBQqaFPtF0GjoZv0iMfDMy6VQDwX3QVzjM60 S4qGc6WQj1JCGg7cJ5Mt4EdXSsxOgSF65AekbrAToQmhUKyeZpMO/D1D0CL/1wCH0VXi v5aQ== 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=5C3GqD00RoPDh/C5JZXJrxmqSV/Dtiunz3j0ZgOxk4g=; b=L8ANNnBt1gujpH6EUXj4ohg241/33qbglL0fAjgNWSfWSwU4Q3B6MOTutUle2BBUpw 5XuoN682NxSRxvHiQ/tCHJ1/KfiGfCx2UovoGjhnWmoPDwioZKm9lA1z5/xJmWLxJcWO GQXWzV2aWWVqXbmM8fy0BDWJpAeADJQW+NB0mQFbxgq9e/2ny9U/tFxTmA5Ot5hapFUr BbpWTeJNj3OsTD0wJrWUWEwRjvdjOUuB+wce2+7C9mXrCf//5O6k044YY82ahBogyJNE vgQ9gpulscLJxTORFDV7iE9ZZzCRV2ghVds1phfFu65COGEe2LtobWR8hzm9xx9AhUb3 2j0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Jztb4qwF; 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 192si3405275pfu.424.2017.08.09.19.27.29; Wed, 09 Aug 2017 19:27:29 -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.s=google header.b=Jztb4qwF; 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 S1752740AbdHJC11 (ORCPT + 25 others); Wed, 9 Aug 2017 22:27:27 -0400 Received: from mail-pg0-f44.google.com ([74.125.83.44]:35081 "EHLO mail-pg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752681AbdHJC1Y (ORCPT ); Wed, 9 Aug 2017 22:27:24 -0400 Received: by mail-pg0-f44.google.com with SMTP id v189so35393991pgd.2 for ; Wed, 09 Aug 2017 19:27:24 -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=5C3GqD00RoPDh/C5JZXJrxmqSV/Dtiunz3j0ZgOxk4g=; b=Jztb4qwF7Z0laAHtu+uBuvNHtkHa54xUM0rXFsWivNOA8F7KpACwEQs3Cm2ZvwwS8e V4XYqKsQpkooIw6zxqmqo+CjbUtx8HYqud7cLnDhhrQ4YMQNFzAIPhRub+Fgds3QLul+ V9ZOjnggHan0LvEAF2sxZKu1aXPvax9ig2vzk= 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=5C3GqD00RoPDh/C5JZXJrxmqSV/Dtiunz3j0ZgOxk4g=; b=HyBygxQdWE+3IiTgSUprOuSfN7AfjZIxK1rjoNbTwykRoO2990kHy86XHiUS4/7c+A XHIHD6UW2XO14SJOTJzqmENOdv6zN6RbEYgd+Q3gr1UOybw/K9evMqLEZ9CZvG/F1D5U GONekhAYMIsHQjaxT2JySQTJqDce+Cql2X8zVafmY52AHIW9xwRUCE0X1ZpXT7mu7SXc aEhX9H5yIy3Zfkl08GzTWEd6NTQOQlbH0AGLWm2cNSSxiAFHpZ+BL9bld8pfMHao0Eo0 WOBdq6v0uaGlo18158Z9BgDX6FA5csS3S3GXb7T1Ex+YwDCvEwYASXxUY1btv1WdBI/m JYhQ== X-Gm-Message-State: AHYfb5iBj+r3lsOKkmF2+yw9rpEYmCum1enG6+DaRB08GGJmpFO1z7dM ceKMP28UsJ+6NZGJ X-Received: by 10.99.160.80 with SMTP id u16mr9793937pgn.26.1502332043997; Wed, 09 Aug 2017 19:27:23 -0700 (PDT) Received: from docularxu-ThinkPad-T440p.219.146.1.66 ([45.41.135.55]) by smtp.gmail.com with ESMTPSA id s11sm7789166pgr.53.2017.08.09.19.27.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Aug 2017 19:27:23 -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, Wang Ruyi , Guodong Xu Subject: [PATCH v2 9/9] arm64: dts: hi3660: add bindings for DMA Date: Thu, 10 Aug 2017 10:26:15 +0800 Message-Id: <20170810022615.19204-10-guodong.xu@linaro.org> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170810022615.19204-1-guodong.xu@linaro.org> References: <20170810022615.19204-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: Wang Ruyi Add bindings for DMA. Signed-off-by: Wang Ruyi Signed-off-by: Guodong Xu --- arch/arm64/boot/dts/hisilicon/hi3660.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) -- 2.10.2 diff --git a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi index 41841f7..545d435 100644 --- a/arch/arm64/boot/dts/hisilicon/hi3660.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi3660.dtsi @@ -436,6 +436,19 @@ status = "disabled"; }; + dma0: dma@fdf30000 { + compatible = "hisilicon,k3-dma-1.0"; + reg = <0x0 0xfdf30000 0x0 0x1000>; + #dma-cells = <1>; + dma-channels = <16>; + dma-requests = <32>; + dma-min-chan = <1>; + interrupts = ; + clocks = <&crg_ctrl HI3660_CLK_GATE_DMAC>; + dma-no-cci; + dma-type = "hi3660_dma"; + }; + rtc0: rtc@fff04000 { compatible = "arm,pl031", "arm,primecell"; reg = <0x0 0Xfff04000 0x0 0x1000>;