Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3311095imm; Fri, 25 May 2018 03:35:20 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrtNuyUJNqGbzB1l8lvjuLdAijA0YRDeIkpTr8tB5MbLRqIDgWIQvBpsOiyFBys6W5PWVOj X-Received: by 2002:a62:dc4e:: with SMTP id t75-v6mr1954930pfg.139.1527244520137; Fri, 25 May 2018 03:35:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527244520; cv=none; d=google.com; s=arc-20160816; b=Zk+tJrENe3t4IN4vKcJAUxfEGssCt56mnCVIh9gxVsNdkPhmYyRTI/TSYSznrsV4h1 9m98/zP1VOOxLPjqoO81ite/GPkfRjyyj+513qPMuTvGRhSnNTag87kAnUqwi2Hb6zlu lD+O5ls9ViUVCELNvGdlHLrwQU/2Pr2fjeT68+YbOZA2p1vJkzr7ACWoN0zNzFR5qJqr o4iffVVmBv/qXWqIVLVKBVzYShwCPIf4Xw2YmGLV7+iMAlkhcnuZV0lJUi8USxRRqGMT FdzbyfqF6W9PnNpSObKr3v46Wmk9XdPSKrLyZg6jpCib0gXxnX7e6So5FP+2i9Or96x4 ydlQ== 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=oI2cROa+PxL2Hh479zrubLMWd0VS3zfe+ruyZ1msXaY=; b=Bkf3999GjaK1v+K1U9A52dBebdHpLE4LviNGDt+7/nvm/0dR4mbemU4qYc6DWnV9TB KYF884dXVSC+7zUB15YVn65ogN9c4f8NsiZ1iOTkWNEFA16C0fOeVPosNjKJRqHZ8Xbs xsz7j7s/+WO8mmsoLbVB7LDsRNTHaTzMOSUpNdBqH652nxWT5RXqCOK5q3nEKUKok9R9 eXRHxjw5Cq4EVmcyf6r8/K2H22F4QshSxVLo+aLr23dZLfyuKxbKHQ+H8y0ovudDuQTS vxslH9O2bbwqP8+irOQsP7CL6RX2a/wxL7UrpWQa+ofKlh0UbpKvsJqyLnsWbc2EcdFl iAqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b9F9FOac; 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 70-v6si24615975pfu.274.2018.05.25.03.35.05; Fri, 25 May 2018 03:35:20 -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=b9F9FOac; 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 S966341AbeEYKcz (ORCPT + 99 others); Fri, 25 May 2018 06:32:55 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:43803 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965498AbeEYKcv (ORCPT ); Fri, 25 May 2018 06:32:51 -0400 Received: by mail-pg0-f66.google.com with SMTP id p8-v6so2124333pgq.10 for ; Fri, 25 May 2018 03:32: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 :in-reply-to:references; bh=oI2cROa+PxL2Hh479zrubLMWd0VS3zfe+ruyZ1msXaY=; b=b9F9FOacHQ112XFsBoUG9iw0JX93Pfsn1kp1pm3OipwS/pMcZKKPnhYfXL9yLE2lLC 2pga+BOZnCHBf9ssymqiu6Gvj98ZNpqB5Uk5NbR+nrWv2PI/CNXfDWQ/lGtnno+Kj7lv fh4OOCJDt4qfRkCc2b31DMGulkxzbK6Sr3dnQ= 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=oI2cROa+PxL2Hh479zrubLMWd0VS3zfe+ruyZ1msXaY=; b=VntYuqqGjb1fUMdShNIsdQbj38vgxwDwMVbuBN/aeke7jPKGdQRuglIzTnPRlFz6R3 +63xwujRY522KZeC/iP/gmo9g0Dy5gUTMPZgNFZ2FBJQYjAjKAjBwgyp3NkId59fd/Um dnxNYkAmwwOhl38hFSpYmjQfdfMFQ86TLYQWz4OKVjduzlAac1P8EIl3tm46tz6iVU3K 9KcbHEsqlhvFL03sR9EdIWTmlpTluLi8ieIxqnYlUGnUxhaN1LJNZ37TwZlqvEDFnDoD cJ6xzw9vvt+GxbdP5wOzo0rSZk1I5E7Y0HErdQWh5aQj4MnEnuFQljr9e1DH2UjYo24Q Xg1w== X-Gm-Message-State: ALKqPwdctcRXDe6ScdLb8MKfHVqoJS/UsdgnEEPoAPn7QFQqisgNuOQb Qimenan1ABll/R3vE/cuiRLtvw== X-Received: by 2002:a62:6883:: with SMTP id d125-v6mr2001382pfc.26.1527244371016; Fri, 25 May 2018 03:32:51 -0700 (PDT) Received: from localhost ([122.172.112.176]) by smtp.gmail.com with ESMTPSA id p71-v6sm58522698pfl.170.2018.05.25.03.32.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 May 2018 03:32:50 -0700 (PDT) From: Viresh Kumar To: arm@kernel.org, Jisheng Zhang , Sebastian Hesselbarth , Rob Herring , Mark Rutland Cc: Viresh Kumar , Vincent Guittot , ionela.voinescu@arm.com, Daniel Lezcano , chris.redpath@arm.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 11/15] arm: dts: berlin: Add missing OPP properties for CPUs Date: Fri, 25 May 2018 16:01:57 +0530 Message-Id: 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 OPP properties, like "operating-points", 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 create an OPP table. Add such missing properties. Fix other missing properties (clocks, clock latency) as well to make it all work. Signed-off-by: Viresh Kumar --- arch/arm/boot/dts/berlin2.dtsi | 10 ++++++++++ arch/arm/boot/dts/berlin2q.dtsi | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/arch/arm/boot/dts/berlin2.dtsi b/arch/arm/boot/dts/berlin2.dtsi index d575823c5750..487e9de53244 100644 --- a/arch/arm/boot/dts/berlin2.dtsi +++ b/arch/arm/boot/dts/berlin2.dtsi @@ -81,6 +81,16 @@ device_type = "cpu"; next-level-cache = <&l2>; reg = <1>; + + clocks = <&chip_clk CLKID_CPU>; + clock-latency = <100000>; + operating-points = < + /* kHz uV */ + 1200000 1200000 + 1000000 1200000 + 800000 1200000 + 600000 1200000 + >; }; }; diff --git a/arch/arm/boot/dts/berlin2q.dtsi b/arch/arm/boot/dts/berlin2q.dtsi index bf3a6c9a1d34..9cd00ab53f2d 100644 --- a/arch/arm/boot/dts/berlin2q.dtsi +++ b/arch/arm/boot/dts/berlin2q.dtsi @@ -76,6 +76,17 @@ device_type = "cpu"; next-level-cache = <&l2>; reg = <1>; + + clocks = <&chip_clk CLKID_CPU>; + clock-latency = <100000>; + /* Can be modified by the bootloader */ + operating-points = < + /* kHz uV */ + 1200000 1200000 + 1000000 1200000 + 800000 1200000 + 600000 1200000 + >; }; cpu@2 { @@ -83,6 +94,17 @@ device_type = "cpu"; next-level-cache = <&l2>; reg = <2>; + + clocks = <&chip_clk CLKID_CPU>; + clock-latency = <100000>; + /* Can be modified by the bootloader */ + operating-points = < + /* kHz uV */ + 1200000 1200000 + 1000000 1200000 + 800000 1200000 + 600000 1200000 + >; }; cpu@3 { @@ -90,6 +112,17 @@ device_type = "cpu"; next-level-cache = <&l2>; reg = <3>; + + clocks = <&chip_clk CLKID_CPU>; + clock-latency = <100000>; + /* Can be modified by the bootloader */ + operating-points = < + /* kHz uV */ + 1200000 1200000 + 1000000 1200000 + 800000 1200000 + 600000 1200000 + >; }; }; -- 2.15.0.194.g9af6a3dea062