From patchwork Sun Jan 2 16:57:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 12702320 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 02E03C433EF for ; Sun, 2 Jan 2022 17:00:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/Qtp1GKKH/9zuuM2JRBsoUBi//21cFNCa/V2LXtn2tE=; b=Y17kQyxGO8kmX8 sGqQddX4GEb38/T7f1WAK+gc4jXIDmI/iORlX9K8s+tZ4N53melwUSEWFXouQnZXhOAZWqJNDrDfR FdG2FK+90jv0QxXyOZQoBaLgH2JvYeWIXzzxG6FSRA6Lc8CyVPrqooKqhE9/P9iuqGRslbbwtgZuw pDq2Wnnh+LIkpGAxgQaZik0fAiB3r8+fdQCryG/usAtx7OW60tfZHoCIcFKugyqDWCcss3Z4XJbCM 40llh7oy9sKF5yfv9cAzEjWGQBn0igqtvhHFIAj7RiRXmHqRpeKMMlQtTgeIjpwtgicJPB0NKjm5X djZRiBEKlQSHv+zEOYGw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1n44Cm-007zbI-2S; Sun, 02 Jan 2022 16:59:36 +0000 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1n44Ay-007yq9-20 for linux-arm-kernel@lists.infradead.org; Sun, 02 Jan 2022 16:57:45 +0000 Received: by mail-wr1-x436.google.com with SMTP id t26so65655027wrb.4 for ; Sun, 02 Jan 2022 08:57:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=StcZHqzmvLp6v5k+mwDmcDs/ahnsoFhEqrHgEMI6OjQ=; b=j2xcZ3VS6TFIJjYJ+vmRZezy9qn60VUnG3E/ECjUl4HCPj0rBPuLzDzMwAufGOjAKy Oc9fg2uOo+kWqurnFvUrgF26zLYYowfHO3ANqzWXX80wan7+eMy5pqMsOqkVRRPwPzdi XdVqBYXHiOcxHy45XTI1f2dIu738oghcXKciM3thU+SRfmrDsc+LJGWCiC2VD/ljdQmt e0nEOtz4zLqOcHEyGCOrqkgPaaJh1e9wAqF2j16kVREALD44gYROXkYmCmtk0wyVyx21 K/+IJnM5CcXakBi+Q4J4VB4gesigSf+DFXkLOVmT92RIHvk7bPWah40RihYdXsnCSfHA kwBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=StcZHqzmvLp6v5k+mwDmcDs/ahnsoFhEqrHgEMI6OjQ=; b=7jLD2kxVHm+C6gJQQEaajt54Z9jy08YcnGeCR3cJntZrl3cw6Mxh1bfOnpHLbJvyXj qlDcLlZZDy+RjxQk+vsWpjwqfnEh5ma9n8lXrb4lOW5PvORE9f1ralC7ZXIdh5pYk6Gc mSSotFiydk6wbi7YWFtB8kZ6CrJ9aZqDlpLgcKmZfokJUGJUy5oVOd6b4KRWOFEBxm09 eOkEypBhMcaP0Bybo61hycL63m1pSmV4v6UQyEl4jeQ4qCmu84d/8vmw8JRuq7/aJxW2 L3jRLfNSGGneKHKTT7s6dYf9/RZ7cPmY8fe1VevqJnD5bqI03yNG/a5X+J8vkGBrWAPO kfbQ== X-Gm-Message-State: AOAM5317nUtmJPDzUt2MOP7IsSNdNwnv5W/ZhU8RazclCcBGNhQLAD82 ckWp0IygJqC+owM10z+Khc8= X-Google-Smtp-Source: ABdhPJx4Dxr2RaztEoTqjlm4Ao926l9evgTdBBN+vsLJtkzj0doTCeZAZdeT9CKRktC4SnKfnHmUYQ== X-Received: by 2002:adf:dc12:: with SMTP id t18mr36990100wri.566.1641142662958; Sun, 02 Jan 2022 08:57:42 -0800 (PST) Received: from debby ([2a01:e0a:a6d:a8d0:7ff4:8f61:5574:9f95]) by smtp.gmail.com with ESMTPSA id p13sm25787035wrs.54.2022.01.02.08.57.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jan 2022 08:57:42 -0800 (PST) From: Romain Perier To: Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, Arnd Bergmann , Daniel Palmer , Romain Perier , Rob Herring Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 8/9] ARM: mstar: Add OPP table for mercury5 Date: Sun, 2 Jan 2022 17:57:29 +0100 Message-Id: <20220102165730.50190-9-romain.perier@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220102165730.50190-1-romain.perier@gmail.com> References: <20220102165730.50190-1-romain.perier@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220102_085744_129177_5BF0E1D7 X-CRM114-Status: GOOD ( 11.92 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Daniel Palmer Add an OPP table for mercury5 so that cpu frequency scaling can happen. Signed-off-by: Daniel Palmer --- arch/arm/boot/dts/mstar-mercury5.dtsi | 36 +++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm/boot/dts/mstar-mercury5.dtsi b/arch/arm/boot/dts/mstar-mercury5.dtsi index a7d0dd9d6132..80a19bd23c9c 100644 --- a/arch/arm/boot/dts/mstar-mercury5.dtsi +++ b/arch/arm/boot/dts/mstar-mercury5.dtsi @@ -6,6 +6,42 @@ #include "mstar-v7.dtsi" +/ { + cpu0_opp_table: opp_table0 { + compatible = "operating-points-v2"; + opp-shared; + + opp-100000000 { + opp-hz = /bits/ 64 <100000000>; + opp-microvolt = <800000 800000 850000>; + clock-latency-ns = <300000>; + }; + + opp-200000000 { + opp-hz = /bits/ 64 <200000000>; + opp-microvolt = <850000 850000 880000>; + clock-latency-ns = <300000>; + }; + + opp-400000000 { + opp-hz = /bits/ 64 <400000000>; + opp-microvolt = <880000 880000 890000>; + clock-latency-ns = <300000>; + }; + opp-600000000 { + opp-hz = /bits/ 64 <600000000>; + opp-microvolt = <900000 900000 1000000>; + clock-latency-ns = <300000>; + }; + + opp-800000000 { + opp-hz = /bits/ 64 <800000000>; + opp-microvolt = <900000 900000 1000000>; + clock-latency-ns = <300000>; + }; + }; +}; + &imi { reg = <0xa0000000 0x20000>; };