Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3309602imm; Fri, 25 May 2018 03:33:36 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpFQSIANDdeCXuvRlS+O5h0bWvlXAmLd0naUmDMRtQ54ZlK5K7PtXCDFGRD5LT8QRhCh4mK X-Received: by 2002:aa7:819a:: with SMTP id g26-v6mr1992417pfi.210.1527244416113; Fri, 25 May 2018 03:33:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527244416; cv=none; d=google.com; s=arc-20160816; b=xXmi/WiqkW0h2mgcmDlzzzrSTWazuCv0ejukUfvWRfY2OMyv9eAWBPOVPWxdp8w6LG uafq1B0eWW2jA6UIK/OnDq1HSSN6cKDK85bzIL/OJIuT0HphnrKjQxxeEs0ECf42eeWQ h7n91asJtf7M72zaW+kZl+qZOZnvVk/vt8e91gO/lHWp940djKIqTacIWpeb8ElqQ1W1 pI10+2CZZ7X13iuPs8gAMmOTgZKxWtY6r9FMCui6su+Y1MqyVZgeAoc7Nxyr/+6AE3Nn MYtigAgD+0uNuGgOWpdM1DHu1dgQ/sjkaV56WjX8rb2Zt08YE3y1+cm6H4lc+/72cVrB +zAg== 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=x1wUHZDBCZ+YFLiFQTI7ToUIj0W2yT3QlH1LX957kTM=; b=g/0B75XC0dsTSqZ1eWbl4yEs2xeSry21HJaTno3DAwLoOZmmvAkJuIwj3G53HI7fbJ NT44tl+ZmkKKtruPgpzHxyfnUCYBr1bccf13bACfVvNY45ZrGr8o4pxzZUlQm2GXKAB5 mMMolVyuB+UllOfcKQlCV/wVkKtxPbDx6Cemi3QXmoxOGYZWPmQDhvIyry//lxvcrQvE ZoaL0K+dvMRw4U65Sam+hxiASQpDQoCC4M2wKASu2mYo3hps8OyDZMzh/Hoj7A3fq+vD 9ILGZVN5rFrBApB+k7AVDGM4KLyVkfScDRhodJP2YMy3Y3t1zXId/Z6PTRSMt8JuEPrd 22zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FXyhO/2a; 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 d124-v6si23437696pfc.176.2018.05.25.03.33.21; Fri, 25 May 2018 03:33:36 -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=FXyhO/2a; 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 S966288AbeEYKcq (ORCPT + 99 others); Fri, 25 May 2018 06:32:46 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:33591 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966261AbeEYKcn (ORCPT ); Fri, 25 May 2018 06:32:43 -0400 Received: by mail-pl0-f65.google.com with SMTP id n10-v6so2924537plp.0 for ; Fri, 25 May 2018 03:32:42 -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=x1wUHZDBCZ+YFLiFQTI7ToUIj0W2yT3QlH1LX957kTM=; b=FXyhO/2aGteDUwOEvvyM5cLW6jc5UcQy+SsnWe1BhPgSTgxlYCCAs3i8LtlRQiqz8H /Af1rzVfPWsLoLK9U+sjQt7rE3/cAKZrBInMQt6vSWqTARwYfN1B/e4wZXB+oYGfnQMc W1MujLY9N488BnnEqbxWwKw7u60ZOfbxKJJO0= 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=x1wUHZDBCZ+YFLiFQTI7ToUIj0W2yT3QlH1LX957kTM=; b=uRWEjAaCFh6ZdMGzKh15zfCi9CNrQVymT3F+bz0RV1OQ9+mOKOwRYjN29tYffGcvVm rNL6GMpzU9jvqdfcPdPbzd/XWS8+lgmAjPEkcD+l4Gxqp6AhglezfBkzdCjV/m0x6ltE Q/8nkrUb4d/rm32M2l1eWoWDtRmUKVLVAN5QqK4LBtJbwtZt8oA3y04E6yX/1RSaKM5T C2FdWXz6Dt7UCAp60pD/cjtYZeZyZMo6Bbj8+919j3RT6Dxg/DJvmqlmXqL3TMJjUGYz gkrvIzsd0K8JFPlYYaq0gdLKY2B8sIOhTnWJD0hxMttMv314ObdzltUY39u+D3wt/+kr NMuw== X-Gm-Message-State: ALKqPwdD3P4BDGDfwUa5NdZ01QkwgJJHTgEN8KCsyPtieyTXnJ3RuPBk hQI9cmCF66oKdTdGV/XzF4OMNjl/J+s= X-Received: by 2002:a17:902:bb0b:: with SMTP id l11-v6mr2079691pls.190.1527244362426; Fri, 25 May 2018 03:32:42 -0700 (PDT) Received: from localhost ([122.172.112.176]) by smtp.gmail.com with ESMTPSA id x124-v6sm40910885pfx.72.2018.05.25.03.32.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 May 2018 03:32:41 -0700 (PDT) From: Viresh Kumar To: arm@kernel.org, =?UTF-8?q?Beno=C3=AEt=20Cousson?= , Tony Lindgren , Rob Herring , Mark Rutland Cc: Viresh Kumar , Vincent Guittot , ionela.voinescu@arm.com, Daniel Lezcano , chris.redpath@arm.com, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/15] arm: dts: dra74x: Add missing cooling device properties for CPUs Date: Fri, 25 May 2018 16:01:54 +0530 Message-Id: <4860aab6e550b91ecc5c37c80cbffa6a6a70a4c9.1527244201.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.15.0.194.g9af6a3dea062 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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, supply, clock latency) as well to make it all work. Signed-off-by: Viresh Kumar --- arch/arm/boot/dts/dra74x.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/dra74x.dtsi b/arch/arm/boot/dts/dra74x.dtsi index 91e93ab588ca..8f9df09155d8 100644 --- a/arch/arm/boot/dts/dra74x.dtsi +++ b/arch/arm/boot/dts/dra74x.dtsi @@ -18,6 +18,16 @@ compatible = "arm,cortex-a15"; reg = <1>; operating-points-v2 = <&cpu0_opp_table>; + + clocks = <&dpll_mpu_ck>; + clock-names = "cpu"; + + clock-latency = <300000>; /* From omap-cpufreq driver */ + + /* cooling options */ + #cooling-cells = <2>; /* min followed by max */ + + vbb-supply = <&abb_mpu>; }; }; -- 2.15.0.194.g9af6a3dea062