Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4086332imm; Tue, 29 May 2018 21:47:48 -0700 (PDT) X-Google-Smtp-Source: ADUXVKI/sjracMVJlAww9G4lMH5qpntb4ghyJH+e6fwEJAPWqCmeZq4Jb0BoJo5z61TzaYsK5dbg X-Received: by 2002:a63:7d47:: with SMTP id m7-v6mr963124pgn.443.1527655668289; Tue, 29 May 2018 21:47:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527655668; cv=none; d=google.com; s=arc-20160816; b=OyHzNb9RP78C1y+Ex3uZjq4KwNHLtLebLrzYaZY8dUpLUBUJGwlUTF83Aqc+tV0uce a/ETgTLdv6NBKCVBitLeMbvncaMz69YdPIMwDN/blZysP3HOcX2BKDkhznPUV3oIHK1n pb+J09jRjWq1ZeOrwG3KRCR9Qbv9pyK/wf7UG+9tzGUaS1DRfV7SsoYRQhcIe5kR5dI/ TXY3o3BHUvEQ3NZve522X55nAhy9hUvuQBuUZThsLY+pylGXz09fAqqOoastAG1dWe2H Hz09u91GM79GLOLVi/mdn9zk4pncYDZzDtU7qcjI2+uqmHsNB+taQnXBnrzgvTA8yStY 9mvw== 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:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=bwD7OVcTp1aX0EXEghaHAfuSraMHVVcqxKs+gNzmbDM=; b=xX9rr4WmX9mF0AEQU6ME7oWq94u+1IO6FuuU3rdGWYjbooa/RixbpEaoguTon1TqC/ iBYIzZu7s+TI3PAYzm+r3DMfRwssSy+ZwyXq2GtMpRI5LKAR9JRhMWAgNQoBcX2mRYz6 dlRL1U72Gel5jSeiv/7Jut+P+XS3iagC/ivAYrqKtb9JjZYlB1PjasT9ualPWzgIPxvJ SdoPvzlgY0VzXZeVt0lndrYrmOjl5JzciB/CZFdSl3KQOh2IHcxzprLBN1wcMRYPgmwL mi1Washo3Z2IK7/Q03amsupI1OdjkYdqPq9rSUvpHvNu3UJz5dnVi0Efg6wCOr5lkl0x cTuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DfDUfjTi; 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 m13-v6si10128499pls.70.2018.05.29.21.47.33; Tue, 29 May 2018 21:47:48 -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=DfDUfjTi; 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 S1752603AbeE3ErJ (ORCPT + 99 others); Wed, 30 May 2018 00:47:09 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:36867 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750795AbeE3ErE (ORCPT ); Wed, 30 May 2018 00:47:04 -0400 Received: by mail-pf0-f194.google.com with SMTP id e9-v6so8368762pfi.4 for ; Tue, 29 May 2018 21:47:04 -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; bh=bwD7OVcTp1aX0EXEghaHAfuSraMHVVcqxKs+gNzmbDM=; b=DfDUfjTipKEoAE4NSY6CVZWCL+VO//GsejE1wtpy9kT9G4HGBKXyqqJxcwnQDYd+A7 Ta76TUDwsesKKrM2Td81n1ohVQcgqEsaXU17CGHZCwc/coM9Uvje/xvYKJ+vFuLQAFTp cvfi2W0YSUYBxRletiTNwvGW3NKTYROwpTlIc= 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; bh=bwD7OVcTp1aX0EXEghaHAfuSraMHVVcqxKs+gNzmbDM=; b=NTmG9z6hN/juTL2H4feWzR83IXnUpRDzN0+QE09+MQ/JwN3qpG+mGiafIz0YEj+0vI KxWGyxjzQa3X2HVQVMyYVlfGnShzb1T5tkJjUY7WROiCDyi6e0rBZnqQ0eu1SVZH0ID1 JIPtUL6SVgSjRmFOlcthfjQacjUEvJmQOeD+Qr63ADfEDxEVP/KIEhqXQAgKihtNeGhF Max7XoS4Aq6/t5Tq2qPlUkiVOiisams5P+FexhxsVMpm9m0DSBx6FChY9opYd//bwQsM GOQjx7ZwoAjNyK6JNppnrdAtkrzw1CEn1JMSimmfUvF0rkqbjYt3rOob1eR6Kf0jTpmP kgSA== X-Gm-Message-State: ALKqPwc0X886Ad/kSG2idd25D/Dnqv/4F2Ziea4SHDxIhaAvYrezu33I OIR+4OCZnJhfxkd0qz37UmS8dA== X-Received: by 2002:a65:654a:: with SMTP id a10-v6mr975930pgw.107.1527655624291; Tue, 29 May 2018 21:47:04 -0700 (PDT) Received: from localhost ([122.172.63.23]) by smtp.gmail.com with ESMTPSA id a77-v6sm62251072pfe.70.2018.05.29.21.47.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 29 May 2018 21:47:03 -0700 (PDT) From: Viresh Kumar To: arm@kernel.org, biju.das@bp.renesas.com, Simon Horman , Magnus Damm , Rob Herring , Mark Rutland Cc: Viresh Kumar , Vincent Guittot , ionela.voinescu@arm.com, Daniel Lezcano , chris.redpath@arm.com, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 13/15] arm: dts: r8a77xx: Add missing OPP properties for CPUs Date: Wed, 30 May 2018 10:16:58 +0530 Message-Id: X-Mailer: git-send-email 2.15.0.194.g9af6a3dea062 In-Reply-To: <5821a6dbe413b5a217ca1e24ddf8ebfa63ba6ef0.1527244201.git.viresh.kumar@linaro.org> References: <5821a6dbe413b5a217ca1e24ddf8ebfa63ba6ef0.1527244201.git.viresh.kumar@linaro.org> 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 (like, clock latency, voltage tolerance, etc) as well to make it all work. Signed-off-by: Viresh Kumar --- arch/arm/boot/dts/r8a7743.dtsi | 9 +++++++++ arch/arm/boot/dts/r8a7790.dtsi | 34 ++++++++++++++++++++++++++++++++-- arch/arm/boot/dts/r8a7791.dtsi | 14 ++++++++++++-- arch/arm/boot/dts/r8a7793.dtsi | 15 +++++++++++++-- 4 files changed, 66 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/r8a7743.dtsi b/arch/arm/boot/dts/r8a7743.dtsi index 142949d7066f..e4fb31c4f0ee 100644 --- a/arch/arm/boot/dts/r8a7743.dtsi +++ b/arch/arm/boot/dts/r8a7743.dtsi @@ -98,8 +98,17 @@ reg = <1>; clock-frequency = <1500000000>; clocks = <&cpg CPG_CORE R8A7743_CLK_Z>; + clock-latency = <300000>; /* 300 us */ power-domains = <&sysc R8A7743_PD_CA15_CPU1>; 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 { diff --git a/arch/arm/boot/dts/r8a7790.dtsi b/arch/arm/boot/dts/r8a7790.dtsi index 4d06b154bd7e..c4324b1a2ec4 100644 --- a/arch/arm/boot/dts/r8a7790.dtsi +++ b/arch/arm/boot/dts/r8a7790.dtsi @@ -79,12 +79,12 @@ compatible = "arm,cortex-a15"; reg = <0>; clock-frequency = <1300000000>; - voltage-tolerance = <1>; /* 1% */ clocks = <&cpg CPG_CORE R8A7790_CLK_Z>; - clock-latency = <300000>; /* 300 us */ power-domains = <&sysc R8A7790_PD_CA15_CPU0>; next-level-cache = <&L2_CA15>; capacity-dmips-mhz = <1024>; + voltage-tolerance = <1>; /* 1% */ + clock-latency = <300000>; /* 300 us */ /* kHz - uV - OPPs unknown yet */ operating-points = <1400000 1000000>, @@ -104,6 +104,16 @@ power-domains = <&sysc R8A7790_PD_CA15_CPU1>; next-level-cache = <&L2_CA15>; capacity-dmips-mhz = <1024>; + voltage-tolerance = <1>; /* 1% */ + clock-latency = <300000>; /* 300 us */ + + /* kHz - uV - OPPs unknown yet */ + operating-points = <1400000 1000000>, + <1225000 1000000>, + <1050000 1000000>, + < 875000 1000000>, + < 700000 1000000>, + < 350000 1000000>; }; cpu2: cpu@2 { @@ -115,6 +125,16 @@ power-domains = <&sysc R8A7790_PD_CA15_CPU2>; next-level-cache = <&L2_CA15>; capacity-dmips-mhz = <1024>; + voltage-tolerance = <1>; /* 1% */ + clock-latency = <300000>; /* 300 us */ + + /* kHz - uV - OPPs unknown yet */ + operating-points = <1400000 1000000>, + <1225000 1000000>, + <1050000 1000000>, + < 875000 1000000>, + < 700000 1000000>, + < 350000 1000000>; }; cpu3: cpu@3 { @@ -126,6 +146,16 @@ power-domains = <&sysc R8A7790_PD_CA15_CPU3>; next-level-cache = <&L2_CA15>; capacity-dmips-mhz = <1024>; + voltage-tolerance = <1>; /* 1% */ + clock-latency = <300000>; /* 300 us */ + + /* kHz - uV - OPPs unknown yet */ + operating-points = <1400000 1000000>, + <1225000 1000000>, + <1050000 1000000>, + < 875000 1000000>, + < 700000 1000000>, + < 350000 1000000>; }; cpu4: cpu@100 { diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi index 6e1dd7ad7bd6..d1d726a1364a 100644 --- a/arch/arm/boot/dts/r8a7791.dtsi +++ b/arch/arm/boot/dts/r8a7791.dtsi @@ -78,11 +78,11 @@ compatible = "arm,cortex-a15"; reg = <0>; clock-frequency = <1500000000>; - voltage-tolerance = <1>; /* 1% */ clocks = <&cpg CPG_CORE R8A7791_CLK_Z>; - clock-latency = <300000>; /* 300 us */ power-domains = <&sysc R8A7791_PD_CA15_CPU0>; next-level-cache = <&L2_CA15>; + voltage-tolerance = <1>; /* 1% */ + clock-latency = <300000>; /* 300 us */ /* kHz - uV - OPPs unknown yet */ operating-points = <1500000 1000000>, @@ -101,6 +101,16 @@ clocks = <&cpg CPG_CORE R8A7791_CLK_Z>; power-domains = <&sysc R8A7791_PD_CA15_CPU1>; next-level-cache = <&L2_CA15>; + voltage-tolerance = <1>; /* 1% */ + clock-latency = <300000>; /* 300 us */ + + /* kHz - uV - OPPs unknown yet */ + operating-points = <1500000 1000000>, + <1312500 1000000>, + <1125000 1000000>, + < 937500 1000000>, + < 750000 1000000>, + < 375000 1000000>; }; L2_CA15: cache-controller-0 { diff --git a/arch/arm/boot/dts/r8a7793.dtsi b/arch/arm/boot/dts/r8a7793.dtsi index 4abecfc0ca98..1e6439b85a6b 100644 --- a/arch/arm/boot/dts/r8a7793.dtsi +++ b/arch/arm/boot/dts/r8a7793.dtsi @@ -70,10 +70,10 @@ compatible = "arm,cortex-a15"; reg = <0>; clock-frequency = <1500000000>; - voltage-tolerance = <1>; /* 1% */ clocks = <&cpg CPG_CORE R8A7793_CLK_Z>; - clock-latency = <300000>; /* 300 us */ power-domains = <&sysc R8A7793_PD_CA15_CPU0>; + voltage-tolerance = <1>; /* 1% */ + clock-latency = <300000>; /* 300 us */ /* kHz - uV - OPPs unknown yet */ operating-points = <1500000 1000000>, @@ -92,6 +92,17 @@ clock-frequency = <1500000000>; clocks = <&cpg CPG_CORE R8A7793_CLK_Z>; power-domains = <&sysc R8A7793_PD_CA15_CPU1>; + voltage-tolerance = <1>; /* 1% */ + clock-latency = <300000>; /* 300 us */ + + /* kHz - uV - OPPs unknown yet */ + operating-points = <1500000 1000000>, + <1312500 1000000>, + <1125000 1000000>, + < 937500 1000000>, + < 750000 1000000>, + < 375000 1000000>; + next-level-cache = <&L2_CA15>; }; L2_CA15: cache-controller-0 { -- 2.15.0.194.g9af6a3dea062