From patchwork Thu Oct 11 20:40:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Paterson X-Patchwork-Id: 10637409 X-Patchwork-Delegate: iwamatsu@nigauri.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E9D46679F for ; Thu, 11 Oct 2018 20:40:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D666A2C130 for ; Thu, 11 Oct 2018 20:40:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CA7102C134; Thu, 11 Oct 2018 20:40:20 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7263E2C130 for ; Thu, 11 Oct 2018 20:40:19 +0000 (UTC) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 3F1FDF8F; Thu, 11 Oct 2018 20:40:19 +0000 (UTC) X-Original-To: cip-dev@lists.cip-project.org Delivered-To: cip-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 38B48F8F for ; Thu, 11 Oct 2018 20:40:18 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relmlie3.idc.renesas.com (relmlor4.renesas.com [210.160.252.174]) by smtp1.linuxfoundation.org (Postfix) with ESMTP id E0079D0 for ; Thu, 11 Oct 2018 20:40:16 +0000 (UTC) Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie3.idc.renesas.com with ESMTP; 12 Oct 2018 05:40:15 +0900 Received: from relmlii1.idc.renesas.com (relmlii1.idc.renesas.com [10.200.68.65]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id C891B48F42; Fri, 12 Oct 2018 05:40:15 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.54,369,1534777200"; d="scan'208";a="293310111" Received: from unknown (HELO localhost.localdomain) ([172.29.52.197]) by relmlii1.idc.renesas.com with ESMTP; 12 Oct 2018 05:40:14 +0900 From: Chris Paterson To: cip-dev@lists.cip-project.org Date: Thu, 11 Oct 2018 21:40:03 +0100 Message-Id: <1539290403-5450-1-git-send-email-chris.paterson2@renesas.com> X-Mailer: git-send-email 1.9.1 Cc: Biju Das Subject: [cip-dev] [PATCH] ARM: dts: r8a77(43|9[013]): Add missing OPP properties for CPUs X-BeenThere: cip-dev@lists.cip-project.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: cip-dev-bounces@lists.cip-project.org Errors-To: cip-dev-bounces@lists.cip-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Viresh Kumar commit 8199e49ff1f654bbe8bed90fd6710bc097a89d02 upstream. 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 (like, clock latency, voltage tolerance, etc) as well to make it all work. Signed-off-by: Viresh Kumar Reviewed-by: Simon Horman Signed-off-by: Simon Horman [Backport to CIP: dropped changes to r8a779[013] SoCs dtsi] Signed-off-by: Patryk Mungai Signed-off-by: Fabrizio Castro Reviewed-by: Biju Das --- Resending this patch to test patchwork (and because it needs reviewing). --- arch/arm/boot/dts/r8a7743.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/r8a7743.dtsi b/arch/arm/boot/dts/r8a7743.dtsi index c78de96bfc29e47a..f41e3a5cdf9c053d 100644 --- a/arch/arm/boot/dts/r8a7743.dtsi +++ b/arch/arm/boot/dts/r8a7743.dtsi @@ -66,7 +66,16 @@ reg = <1>; clock-frequency = <1500000000>; clocks = <&cpg_clocks R8A7743_CLK_Z>; + clock-latency = <300000>; /* 300 us */ next-level-cache = <&L2_CA15>; + + /* kHz - uV - OPPs unknown yet */ + operating-points = <1500000 1000000>, + <1312500 1000000>, + <1125000 1000000>, + < 937500 1000000>, + < 750000 1000000>, + < 375000 1000000>; }; L2_CA15: cache-controller-0 {