From patchwork Fri May 25 10:31:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 10427035 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 292A56032C for ; Fri, 25 May 2018 10:34:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08A43291AB for ; Fri, 25 May 2018 10:34:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F147D291FC; Fri, 25 May 2018 10:34:43 +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 94B0E291AB for ; Fri, 25 May 2018 10:34:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966422AbeEYKel (ORCPT ); Fri, 25 May 2018 06:34:41 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:44715 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966165AbeEYKcp (ORCPT ); Fri, 25 May 2018 06:32:45 -0400 Received: by mail-pl0-f66.google.com with SMTP id m24-v6so2916462pls.11 for ; Fri, 25 May 2018 03:32:45 -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=OglL5RWsFQGKbm/GCPs80WmyutdzM5IVlYYz/d/Z9bI=; b=GdVGDLMN785rNGr5xT1r6bOuCQ0A92XXLAvCPrIUTa6z2rPje5BhMU+FOapv8DspQE u+Nf/KzzLkG+fpIWJ1TWWnUeE/619pP4eY8C/DeFNc8kImAPj+vg8/LOArpdnxt6aeGc FiKIMsUZ8L0AjtaUHxCaWpcJr3xcDkbdG7KyU= 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=OglL5RWsFQGKbm/GCPs80WmyutdzM5IVlYYz/d/Z9bI=; b=JHOOXk/15Xra8nQLK2C1LAoEUSq14D7qAHn4WYh7b9dbITZAZtfxcMDTtlk9C3gL9l crHlZi2yFr1BOITOmYl1ip6Xdp9rytzkUEckvtJnavwiGZjTEZPz57AmtjXw/hUn6g9v yCnv/eCz/MSmum9NKhubDHin+kh/X0sy0FtIf9VQ8GNMOQ2sXlpPtlEIZ/LiGdxZBMvG LaegORf/+uWxsQ4WKEznYivyK8Pqf21we8SBSs29acC9oYl52sn9dVEiwlwvBcDnUCA+ gtGGb6IFCNCIQpo9o8r7r4cZaKxV9v3qmhfIvNfqVzJYTI52lbmNJtPHLyD1jElycze5 1Jwg== X-Gm-Message-State: ALKqPwd3XJ2bUYwfftqeqA+cE45Hk0Snh/mgskhGzyMPcnPMo66S/Yzf dkYFSyGd/1vsjlGqcDvmdwfvIQ== X-Google-Smtp-Source: AB8JxZr20TQqBVa8vUfOUB6aT5xFwRkvQV4qHPi9PgrmDktCAOP+XS/sx8V3u35LWTq6HZdA+vgCtA== X-Received: by 2002:a17:902:6b09:: with SMTP id o9-v6mr2069340plk.256.1527244365220; Fri, 25 May 2018 03:32:45 -0700 (PDT) Received: from localhost ([122.172.112.176]) by smtp.gmail.com with ESMTPSA id q68-v6sm41051197pfb.182.2018.05.25.03.32.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 May 2018 03:32:44 -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 09/15] arm: dts: omap: Add missing cooling device properties for CPUs Date: Fri, 25 May 2018 16:01:55 +0530 Message-Id: <7aa1c7c6d1e76b551ed74512af797db28be8925f.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/omap5.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/omap5.dtsi b/arch/arm/boot/dts/omap5.dtsi index 732b61a0e990..574ac11c0489 100644 --- a/arch/arm/boot/dts/omap5.dtsi +++ b/arch/arm/boot/dts/omap5.dtsi @@ -61,6 +61,20 @@ device_type = "cpu"; compatible = "arm,cortex-a15"; reg = <0x1>; + + operating-points = < + /* kHz uV */ + 1000000 1060000 + 1500000 1250000 + >; + + clocks = <&dpll_mpu_ck>; + clock-names = "cpu"; + + clock-latency = <300000>; /* From omap-cpufreq driver */ + + /* cooling options */ + #cooling-cells = <2>; /* min followed by max */ }; };