From patchwork Fri May 25 10:31:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 10427089 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 2990D601D5 for ; Fri, 25 May 2018 10:49:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D4F9295D6 for ; Fri, 25 May 2018 10:49:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0159B295E0; Fri, 25 May 2018 10:49:14 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 580CA295D6 for ; Fri, 25 May 2018 10:49:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=d4aG9aon0DJDtY8uxTM0ZL6yXGpJGgS3VhYXQEL5Ftg=; b=Iof9oD++P0uYVCeW5FQ6iqdSu0 TuLhbjhNugIzzxpphFP1WF5Fulyii6E7RGowcSAUBC2Dv5BAYkaEBBe7zls5oJP8W87/01e5tgJdH VV7sq9Ul6sf7oOzN4EOKMjc4NvOwR3GwpsKxPoDf8seYeg2A+ohcVXlJYTyGBnrzoFfOu0IFcxCpS V+8pkaOkb7UCfM5+tP9B4FADNKiJjyHqW+U5QV5udvwOfJdat4DCWoKO/P/wvqWTvft/SuqBj3DGk xvmacrle2Vib95I0d9YduciSqX6q8dsMGFtlk4nJJyzxX7oMW6PqKeGibeZ8lCNOHhVPYAzHpyFVg DS4eYI3w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fMAHR-0004d5-VY; Fri, 25 May 2018 10:49:05 +0000 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fMA1r-0002eV-J5 for linux-rockchip@lists.infradead.org; Fri, 25 May 2018 10:33:10 +0000 Received: by mail-pg0-x242.google.com with SMTP id p21-v6so2126613pgd.11 for ; Fri, 25 May 2018 03:32:49 -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=oxDacl2OIDr7Nd409LauBugaXeD2W+E2eVDckohi0ks=; b=aUjijDtAWzLuCraf/W+u9hdAiXBJCGzHqYrbYBigOHcpOdOVz7d7vx5/o6SgESDQ0A jtES9fyNgy9vWG+Z5yW7OFFGWSqm1rVOePFI51XlAaWtMIkBIpkmiFERvWLksBe0DWHJ uH71VxUreFLM7ibCJrlXWJr6zSvraZzFyiMZA= 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=oxDacl2OIDr7Nd409LauBugaXeD2W+E2eVDckohi0ks=; b=rkQZHmct+H0GflEgC+d48Ly4A8VU0iSRWfWd0ojqcp/U4Ord/Pm0nv85ckauzyUSpV cl8Fh508LHKWC68h+AufdV82K5qMUqPjGh+MjOkyhiNAER5K1hvimKo+YjC7zdMYn9rh rZ28wnf/XSfMTC20qZcx6IvuFswiGPd03yBdNrB8Ye8N9aMOOwER6VxhcAqDgU64gKyg BDIFHduritbiJaqKfheSZvAIhgUgyEz0vk0EOOdeBhwmfXPdIJHuJMNNu63qM1jjw0ln QTImv4a+LlGz8gAsANvVdewnwP++qRQzIuJkbdAWH6OHAm6glut0qDUjn0jODdFXSTKK TSyg== X-Gm-Message-State: ALKqPwcyxwzrC5Gukf0MdmqPGjjZMYA6lYpj4fprARTjXXcwBABR9Rnl LmyZD+bhpuwSvlmd6P26LStdPg== X-Google-Smtp-Source: AB8JxZqx83qzjuPGpZugm5ruib/IuOi1sfSPQEu5SZzAOL6aWzn32CabZjtbgpOZ8AomWMDotMpMAA== X-Received: by 2002:a63:7255:: with SMTP id c21-v6mr623450pgn.99.1527244368051; Fri, 25 May 2018 03:32:48 -0700 (PDT) Received: from localhost ([122.172.112.176]) by smtp.gmail.com with ESMTPSA id l23-v6sm11414149pgc.61.2018.05.25.03.32.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 May 2018 03:32:47 -0700 (PDT) From: Viresh Kumar To: arm@kernel.org, Heiko Stuebner , Rob Herring , Mark Rutland Subject: [PATCH 10/15] arm: dts: rk3288: Add missing cooling device properties for CPUs Date: Fri, 25 May 2018 16:01:56 +0530 Message-Id: <11f16618dc965a7996976a2bca040cd87d1961d2.1527244201.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.15.0.194.g9af6a3dea062 In-Reply-To: References: In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180525_033259_901352_480F5133 X-CRM114-Status: GOOD ( 11.71 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Vincent Guittot , Viresh Kumar , Daniel Lezcano , linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, chris.redpath@arm.com, ionela.voinescu@arm.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.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, OPP, clock latency) as well to make it all work. Signed-off-by: Viresh Kumar --- arch/arm/boot/dts/rk3288.dtsi | 54 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index d7e49d29ace5..752a892847dd 100644 --- a/arch/arm/boot/dts/rk3288.dtsi +++ b/arch/arm/boot/dts/rk3288.dtsi @@ -122,18 +122,72 @@ compatible = "arm,cortex-a12"; reg = <0x501>; resets = <&cru SRST_CORE1>; + operating-points = < + /* KHz uV */ + 1608000 1350000 + 1512000 1300000 + 1416000 1200000 + 1200000 1100000 + 1008000 1050000 + 816000 1000000 + 696000 950000 + 600000 900000 + 408000 900000 + 312000 900000 + 216000 900000 + 126000 900000 + >; + #cooling-cells = <2>; /* min followed by max */ + clock-latency = <40000>; + clocks = <&cru ARMCLK>; }; cpu2: cpu@502 { device_type = "cpu"; compatible = "arm,cortex-a12"; reg = <0x502>; resets = <&cru SRST_CORE2>; + operating-points = < + /* KHz uV */ + 1608000 1350000 + 1512000 1300000 + 1416000 1200000 + 1200000 1100000 + 1008000 1050000 + 816000 1000000 + 696000 950000 + 600000 900000 + 408000 900000 + 312000 900000 + 216000 900000 + 126000 900000 + >; + #cooling-cells = <2>; /* min followed by max */ + clock-latency = <40000>; + clocks = <&cru ARMCLK>; }; cpu3: cpu@503 { device_type = "cpu"; compatible = "arm,cortex-a12"; reg = <0x503>; resets = <&cru SRST_CORE3>; + operating-points = < + /* KHz uV */ + 1608000 1350000 + 1512000 1300000 + 1416000 1200000 + 1200000 1100000 + 1008000 1050000 + 816000 1000000 + 696000 950000 + 600000 900000 + 408000 900000 + 312000 900000 + 216000 900000 + 126000 900000 + >; + #cooling-cells = <2>; /* min followed by max */ + clock-latency = <40000>; + clocks = <&cru ARMCLK>; }; };