From patchwork Fri May 25 10:31:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 136828 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp3396719lji; Fri, 25 May 2018 03:32:45 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqWmtfby+GC4WocEloj0wPOvewcqSYSLiRXOo8jHVh3oHZPkEsGecDFg89OcthSih7t8/z1 X-Received: by 2002:a17:902:8a81:: with SMTP id p1-v6mr2061863plo.33.1527244365329; Fri, 25 May 2018 03:32:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527244365; cv=none; d=google.com; s=arc-20160816; b=oZka5NWfk8OsXDwxEsrXKse1AJ41PkE7gjCMe/sTLYSKDrJHE9zwXohqutld3sJC84 2x4rwdDV0ZA94XW9jtucanjUbCbbQPY1G0Okyxd3FGhd/qS/RCwH8NVYCjKD+Jsvof04 rF5KzHWkBs6XqQWzqc/QRKToO6zmigPPf5Ir3MqBHG7eDpS/d+jQeLBMnWlMrtkVGiN/ PLVTPXuHnj+1Ky0a4lnmTaz/67Ve7bbVHpZP5uzRJZLRs82r4AwPqE8FptU4DI5QEmgE p7JwfG9DYaz5Q+T6EOTa3gjiEMrY1q2qV9/KpEHNo6a7GXk8TU7oZXA+l9nYEZKoH4Ci 9mHg== 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:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=vt6P86V8qmQECMv7z3IxigZW3jgxvCo9tN5RX0jbvMI=; b=kYuWVhbMJzylU1opvhi5oycmUjSGrRD5sKg2l1k/XvAv2cW4CSYhkFsxApmm4TSdzW y8phijMcvM1rC8uclI0tqjcWodiLV1bdQkCQ2RaJnedBAgxoWZb6JykY5Z6/geEOJsXO h2yyPD0OoxXeOVFD2ZoOmYkQE4O/1YU/j2c7+BXVTxh7bqkJAEjN3ntqF8VvSUhoB/IA JhQnI6Dhm9yrCOZ1FPVQUz6ck93E1wwyfooyLewiJ+wYI0ue5Dd50XBh7IBKahNNeg2w OVSmZrGtIq7B2IkpRegcIDFiwfA5e/VZmB0IFW2+LSKfH/a3yxlKqS+/FiyOp1JDPA1N cXJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fi1OZbjT; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (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 a87-v6si23021839pfl.165.2018.05.25.03.32.45; Fri, 25 May 2018 03:32:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fi1OZbjT; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966260AbeEYKcm (ORCPT + 3 others); Fri, 25 May 2018 06:32:42 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:44435 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966081AbeEYKck (ORCPT ); Fri, 25 May 2018 06:32:40 -0400 Received: by mail-pg0-f68.google.com with SMTP id p21-v6so2126393pgd.11 for ; Fri, 25 May 2018 03:32: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 :in-reply-to:references; bh=E2HKXippyVkGrl+lPcppBNoccBl+jBwZ7dEga8KQWbo=; b=fi1OZbjTGK8fdMoZDjxQCzrARcDL1zGPqPpdtIMAsByf4QiH1Y81UGTQLSTf0Q99ku FtOe8StrbvS2ti1AjOUxOTLlmN3vYVzBD1hK3iPt8tSKrIN582Zj5lR94ndzhaCIVQrQ ZaRopa684s/eAmmNJ3zTf+VqtGIR8nVaxLk8k= 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:in-reply-to:references; bh=E2HKXippyVkGrl+lPcppBNoccBl+jBwZ7dEga8KQWbo=; b=JJ3PW2gzu6yXMYQQPegRdsY8etKQL0aHLj61Wak9q8YzA2E8LV4mTwr8cJO7VzJPJQ GPbr0q2rg3SZxh6t3MZF3DLQe5Z1alfhleW76v4ozwZvclAiGYw/3LGZwlnD0XDiSw+y UzlMVGEPDwaGaLDxYolRhYRF0q7oXE+oEwh01jeBdbgF7DIOTY95i6JtU4VRvBGC88Ex h5lhoK03U/z50BdfanyAhmNABXy5jOiuw7/aQxNpvb4FV66dfKhiaaL06FrNt9W0Gx2/ rndbYonhQ3hajZz/3ddd/Wpw1+06Q/gUKwmPXEsrnvYFC9jbnM7a4okPe+aCoUt/qp3Y bI5g== X-Gm-Message-State: ALKqPwdYZhXi3ycNfjU3TfzAmQ4VUi/6KO58mVuLbwmsqVZhpMNXJ31D TAvlTaSYX7SgRK5CYwOCt6+CfA== X-Received: by 2002:a63:6e88:: with SMTP id j130-v6mr1533417pgc.200.1527244359405; Fri, 25 May 2018 03:32:39 -0700 (PDT) Received: from localhost ([122.172.112.176]) by smtp.gmail.com with ESMTPSA id p24-v6sm48727906pfk.58.2018.05.25.03.32.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 May 2018 03:32:38 -0700 (PDT) From: Viresh Kumar To: arm@kernel.org, Rob Herring , Mark Rutland , Kukjin Kim , Krzysztof Kozlowski Cc: Viresh Kumar , Vincent Guittot , ionela.voinescu@arm.com, Daniel Lezcano , chris.redpath@arm.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/15] arm: dts: exynos: Add missing cooling device properties for CPUs Date: Fri, 25 May 2018 16:01:53 +0530 Message-Id: X-Mailer: git-send-email 2.15.0.194.g9af6a3dea062 In-Reply-To: References: In-Reply-To: References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org The cooling device properties, like "#cooling-cells" and "dynamic-power-coefficient", should either be present for all the CPUs of a cluster or none. If these are present only for a subset of CPUs of a cluster then things will start falling apart as soon as the CPUs are brought online in a different order. For example, this will happen because the operating system looks for such properties in the CPU node it is trying to bring up, so that it can register a cooling device. Add such missing properties. Fix other missing properties (clocks, OPP, clock latency) as well to make it all work. Signed-off-by: Viresh Kumar --- arch/arm/boot/dts/exynos3250.dtsi | 16 ++++++++++++++++ arch/arm/boot/dts/exynos4210.dtsi | 13 +++++++++++++ arch/arm/boot/dts/exynos4412.dtsi | 9 +++++++++ arch/arm/boot/dts/exynos5250.dtsi | 23 +++++++++++++++++++++++ 4 files changed, 61 insertions(+) -- 2.15.0.194.g9af6a3dea062 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/exynos3250.dtsi b/arch/arm/boot/dts/exynos3250.dtsi index 962af97c1883..aff5d66ae058 100644 --- a/arch/arm/boot/dts/exynos3250.dtsi +++ b/arch/arm/boot/dts/exynos3250.dtsi @@ -78,6 +78,22 @@ compatible = "arm,cortex-a7"; reg = <1>; clock-frequency = <1000000000>; + clocks = <&cmu CLK_ARM_CLK>; + clock-names = "cpu"; + #cooling-cells = <2>; + + operating-points = < + 1000000 1150000 + 900000 1112500 + 800000 1075000 + 700000 1037500 + 600000 1000000 + 500000 962500 + 400000 925000 + 300000 887500 + 200000 850000 + 100000 850000 + >; }; }; diff --git a/arch/arm/boot/dts/exynos4210.dtsi b/arch/arm/boot/dts/exynos4210.dtsi index 88fb47cef9a8..b6091c27f155 100644 --- a/arch/arm/boot/dts/exynos4210.dtsi +++ b/arch/arm/boot/dts/exynos4210.dtsi @@ -55,6 +55,19 @@ device_type = "cpu"; compatible = "arm,cortex-a9"; reg = <0x901>; + clocks = <&clock CLK_ARM_CLK>; + clock-names = "cpu"; + clock-latency = <160000>; + + operating-points = < + 1200000 1250000 + 1000000 1150000 + 800000 1075000 + 500000 975000 + 400000 975000 + 200000 950000 + >; + #cooling-cells = <2>; /* min followed by max */ }; }; diff --git a/arch/arm/boot/dts/exynos4412.dtsi b/arch/arm/boot/dts/exynos4412.dtsi index 7b43c10c510b..51f72f0327e5 100644 --- a/arch/arm/boot/dts/exynos4412.dtsi +++ b/arch/arm/boot/dts/exynos4412.dtsi @@ -49,21 +49,30 @@ device_type = "cpu"; compatible = "arm,cortex-a9"; reg = <0xA01>; + clocks = <&clock CLK_ARM_CLK>; + clock-names = "cpu"; operating-points-v2 = <&cpu0_opp_table>; + #cooling-cells = <2>; /* min followed by max */ }; cpu@a02 { device_type = "cpu"; compatible = "arm,cortex-a9"; reg = <0xA02>; + clocks = <&clock CLK_ARM_CLK>; + clock-names = "cpu"; operating-points-v2 = <&cpu0_opp_table>; + #cooling-cells = <2>; /* min followed by max */ }; cpu@a03 { device_type = "cpu"; compatible = "arm,cortex-a9"; reg = <0xA03>; + clocks = <&clock CLK_ARM_CLK>; + clock-names = "cpu"; operating-points-v2 = <&cpu0_opp_table>; + #cooling-cells = <2>; /* min followed by max */ }; }; diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi index 2daf505b3d08..69648f83b8b4 100644 --- a/arch/arm/boot/dts/exynos5250.dtsi +++ b/arch/arm/boot/dts/exynos5250.dtsi @@ -84,6 +84,29 @@ compatible = "arm,cortex-a15"; reg = <1>; clock-frequency = <1700000000>; + clocks = <&clock CLK_ARM_CLK>; + clock-names = "cpu"; + clock-latency = <140000>; + + operating-points = < + 1700000 1300000 + 1600000 1250000 + 1500000 1225000 + 1400000 1200000 + 1300000 1150000 + 1200000 1125000 + 1100000 1100000 + 1000000 1075000 + 900000 1050000 + 800000 1025000 + 700000 1012500 + 600000 1000000 + 500000 975000 + 400000 950000 + 300000 937500 + 200000 925000 + >; + #cooling-cells = <2>; /* min followed by max */ }; };