From patchwork Wed Jan 26 17:56:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 12725578 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 2DFDDC28CF5 for ; Wed, 26 Jan 2022 18:09:18 +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=8l7lFAw5WgQi9XSE4J6HMIHh/JpAHWpfQxh+BGHv3s0=; b=EI6PIHuggJDIBe 7iMF2XSfU1Wws/bnmLI4RtSZWgSJQMLmg5N23xpwymD9STUvxwfxV68Mg0GHie3Gnuw0b3xVAPVgL 09qoufSWdIZ/mkAaRbb0wRbuuoSXZn4XmLvXQ1dhRpBfCBHFIRQ4VZk/BZ7CVGivgS9+fbryqu0k1 DcGsmjxDSOg7UGhIyZtJAtScoj6eSKHNsV6fwyZAunrPk38XvOmA1RNWoLilg2+7cHCA6RQoAoRDH vzzo39WDYEOQ2kSVPYepUIjNgMApGHLmm4bNRT/h1g8hLsg5BHu7ONNRN7O0r7XAUvFQk1KREZGyo 8i5c0Ht5/NdY24A0zcPA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCmhz-00DEzt-Kc; Wed, 26 Jan 2022 18:07:52 +0000 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nCmWq-00DAEa-M2 for linux-arm-kernel@lists.infradead.org; Wed, 26 Jan 2022 17:56:22 +0000 Received: by mail-wr1-x42b.google.com with SMTP id a13so377888wrh.9 for ; Wed, 26 Jan 2022 09:56:20 -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=987i68G0hoSD7befa/sZSvlzgSvWjRDhljDEuS8vWhM=; b=YW2UrPWX3Gqj7NPwSuzV0pZYMXbe6mghkz4zxiAfBMsjgRWORd2wNL9Ngd0v113N6Q l/d1ujsUKh1C4a0IkFe8cWm+W55eBPI8OLU3IMuLr9EGPsdBU4rzmsosqxzuQ9Ra1r/J GbSDXVoiYDUuKwVBb77ylkN5/wMJC/3VLqFFLlURyO5RM6w4/Vje+9MOMzsxWs5tLCI0 TjCwXoXSyssc+muDW3ktraSDb8P60usz7GTOr/Id/aOa4bi2mp7gD69wquIF8u3ir2YU 8m1A4uLkadQxpmnR4K6Qjs0JcHTAEaMTH8Fxq6M3ZWndr+S0XSXb3+m5bD9pQvb0hEOe Xv2Q== 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=987i68G0hoSD7befa/sZSvlzgSvWjRDhljDEuS8vWhM=; b=FCsHsnreOY+UclmBFX3sISRJvpGUR7OJv/aLdUgHHTQlMdFbh/ylSCs1N65aS9NUQx 9XKFn+UbCELe9jWuhEFbsMBubWkBQp/W7KpeasHrC5ERNA0lEs/FAZMtuld4MvGyTCK5 wnYGqQAQ5p0+ap2VSAF0/dZ28vVMXmxs8hY/IPAP2rV6LtK5VXn6M/YJwEu26bAW2GZh huqqP+daUNJ43ENLffbfa9YF20N7czOp1M3Eycu2mBBqCxYSvEOSKxnyRodbKR4Th4Bc 3cWQLVzFlSDSoRpN+o9EzdXNPXtbOBmZfnfk6z9oQ9WsBsCmcTPVjniRnM2cNvTwn/N+ abhQ== X-Gm-Message-State: AOAM5334FQ7TaNSxMvgPbFICmOudbwy9GvrnQeBUMNH9IVFBQMSBibil wtleeJibL+DKoTJEYvs9akg= X-Google-Smtp-Source: ABdhPJyUUeUIz50LPFJ1txfvAZ2tlqLG/uX9p2O822Wau+U7NjY7bHm99jmtJ6NwczP49HCwt50baQ== X-Received: by 2002:adf:f791:: with SMTP id q17mr23246847wrp.340.1643219779015; Wed, 26 Jan 2022 09:56:19 -0800 (PST) Received: from debby ([2a01:e0a:a6d:a8d0:7ff4:8f61:5574:9f95]) by smtp.gmail.com with ESMTPSA id o2sm2179098wmq.21.2022.01.26.09.56.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jan 2022 09:56:18 -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, Willy Tarreau Subject: [PATCH v4 6/8] ARM: mstar: Add OPP table for infinity Date: Wed, 26 Jan 2022 18:56:02 +0100 Message-Id: <20220126175604.17919-7-romain.perier@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220126175604.17919-1-romain.perier@gmail.com> References: <20220126175604.17919-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-20220126_095620_772991_F3526751 X-CRM114-Status: GOOD ( 11.98 ) 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 the inifinity chips so that cpu frequency scaling can happen. Co-authored-by: Willy Tarreau Signed-off-by: Daniel Palmer Reviewed-by: Romain Perier --- arch/arm/boot/dts/mstar-infinity.dtsi | 34 +++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/boot/dts/mstar-infinity.dtsi b/arch/arm/boot/dts/mstar-infinity.dtsi index 0bee517797f4..441a917b88ba 100644 --- a/arch/arm/boot/dts/mstar-infinity.dtsi +++ b/arch/arm/boot/dts/mstar-infinity.dtsi @@ -8,6 +8,40 @@ #include +/ { + cpu0_opp_table: opp_table0 { + compatible = "operating-points-v2"; + opp-shared; + + opp-240000000 { + opp-hz = /bits/ 64 <240000000>; + opp-microvolt = <1000000>; + clock-latency-ns = <300000>; + }; + + opp-400000000 { + opp-hz = /bits/ 64 <400000000>; + opp-microvolt = <1000000>; + clock-latency-ns = <300000>; + }; + opp-600000000 { + opp-hz = /bits/ 64 <600000000>; + opp-microvolt = <1000000>; + clock-latency-ns = <300000>; + }; + + opp-800000000 { + opp-hz = /bits/ 64 <800000000>; + opp-microvolt = <1000000>; + clock-latency-ns = <300000>; + }; + }; +}; + +&cpu0 { + operating-points-v2 = <&cpu0_opp_table>; +}; + &imi { reg = <0xa0000000 0x16000>; };