From patchwork Fri Jan 21 19:35:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 12720175 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 E100AC433EF for ; Fri, 21 Jan 2022 19:39:09 +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=n/UXX5N8TDGA9+ ZjJ4srR4lpmcYPCyTCbm7GwY35Kg3ZcurZLbKH3zo3mVpjXEPuHI3osC9GywTFFqizSohrycos+Gj d5cVKD9UkbBgzdyzPiOrcm6IGzcE8C5eICm0hh/OenGo8Kwqr/6h6MoWMcA+B30k9AFhnbJbwSykS lkO8t1BBemLT3ULqX+N+0BtKdjdE4iJiNApGwgJRU5Vsby0+BrNVEsZEzarhdKDmWWkhDMAsbPq0q NABAJsJAQIVQ5IJRRcky1bqzRvax+wADSP6sJEdCAkiB51iRTYfiyVv6VWVPrbbbd/GXoC77LwroE iFq+cYaaMQK8JDLuKOFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nAzjD-00Fwh5-58; Fri, 21 Jan 2022 19:37:43 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nAzhX-00Fw4Q-Dk for linux-arm-kernel@lists.infradead.org; Fri, 21 Jan 2022 19:36:00 +0000 Received: by mail-wr1-x42d.google.com with SMTP id q22so1506481wrc.5 for ; Fri, 21 Jan 2022 11:35:59 -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=NdscIRvh8fAAFXuKFaXuFzMMpmCBhWr3gQzI2sudRnqcA4FoFC60bzcV0qDFs05El7 w0RQOojsRJGakOew/tA761yJATOkkJoQ4KP8URJQDCmpcCSyAP5GfFdklfJyraWI8Clj gw8ffadp2BQ2hciyvG5bemoNmwKMYEmwnrbZCerGot8+SFeJrCOBEaHNVbXvgjd7Itl8 HW1CnMvw7Uwu8GiVGwS0WF4MN6UHse+xOgCnjR/A+w6pAFWYr5xXgaf6NbujkO2s5A6V PFqbytNQtIZHQISsTB8RUiFs30XvypU5MSah3sRZnwP393N3vCcrBb7+VeDOY5tfADot pqBg== 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=irzv4wvHuhi1GOqU9zObcygLokcUdl5+mb9LT/yI5H8tb/L/X1rCDWx6Q9xbZYl3tG XE6ncS3lr8W2rxjlYR05K8ntX8QoYDapWJo3oSRp0mBOg7X+fs0SW3GucwGow4BpcL60 uEWPnkUSNAinKcboJjPXW200xIqWrfp1o5Uls/BN/ACuH0qQ48Ln4N4qQNVPh1jFFUNG 0/r3OkEjr/t4W8Or0Xj2UvhHdRyUFQPyPAeos063PFyqyf8xjE6gWSynHYfJ4F04yJp/ iiwKr26wjfdSIOOVirBYQv/WkFWqAfA/pUKjIeo9M8DMTpmOu//KAl3kGhEYyDT2t26O 4IdQ== X-Gm-Message-State: AOAM533KBcKHV6L2pR0jUlz5+5Ww4BKkTDSTRZUdhKKRwFtXAD5WHEIh nyKblp9F7+4P1akOaUeAMQE= X-Google-Smtp-Source: ABdhPJwE9vP9ZtU3zbsjE3UwgozenBF5PKt1srh15GTFxRwhjzhtsuQQ5sU8utey1E5qVE8U9UJNeA== X-Received: by 2002:a5d:59ae:: with SMTP id p14mr4877325wrr.559.1642793758047; Fri, 21 Jan 2022 11:35:58 -0800 (PST) Received: from debby ([2a01:e0a:a6d:a8d0:7ff4:8f61:5574:9f95]) by smtp.gmail.com with ESMTPSA id f13sm7201114wri.49.2022.01.21.11.35.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jan 2022 11:35:57 -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 v3 8/9] ARM: mstar: Add OPP table for mercury5 Date: Fri, 21 Jan 2022 20:35:43 +0100 Message-Id: <20220121193544.23231-9-romain.perier@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220121193544.23231-1-romain.perier@gmail.com> References: <20220121193544.23231-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-20220121_113559_501942_C3D06E4E X-CRM114-Status: GOOD ( 11.44 ) 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>; };