From patchwork Fri May 25 10:31:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 10427005 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8E0186032C for ; Fri, 25 May 2018 10:32:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6CD342962A for ; Fri, 25 May 2018 10:32:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 612B729646; Fri, 25 May 2018 10:32:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 281672962A for ; Fri, 25 May 2018 10:32:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965693AbeEYKcp (ORCPT ); Fri, 25 May 2018 06:32:45 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:40535 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966165AbeEYKcm (ORCPT ); Fri, 25 May 2018 06:32:42 -0400 Received: by mail-pl0-f65.google.com with SMTP id t12-v6so2921555plo.7 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=dTajGgxcIV7mFPWnha0IqDFwmiYPqwABwf02gKR04hMhrKgijj4AQ5iidZyXZs8FQC CHIrSYgk19eNb1VFsmhpTVP5b3cccEZgpLeE9HBidIhlRRstd6LbnzshXmx5TdHhP0rA yeSCIajyg/+Pj13QTWPegA8OR/GqlioLFGfwRl8j9+XZSpslCq0YI9/yQzMzfWMSRwiS Iv7KV2YSUzshqMNDTIhWPeGWRdA00HDCL2JwMCrdfkeVGLshm25BKlXAr16bjvSuAgQj nC6snYNTlHYCMfrKIjAtyAIUCVTLuTs2UAjdwBPjO8u7+sSpq+UtLlB4CEVpph4qyGg3 G2Ug== X-Gm-Message-State: ALKqPwc7ZQ+k5QBdmSnpWVanAGPtn2yemVF34FCSypHwEvB65MhvJtol lT/3jTiGWIDqxPLZbn/E86ue4A== X-Google-Smtp-Source: AB8JxZphsy1tQfit04J5RWajszsUkkxtIXEoCjng/jaXbr7NKeUNO5z3GXA+IGwEMUs8ohyDKkLRSQ== 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-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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>; }; };