From patchwork Sun Jan 2 16:57:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 529552 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8BD88C4321E for ; Sun, 2 Jan 2022 16:57:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229625AbiABQ5k (ORCPT ); Sun, 2 Jan 2022 11:57:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229608AbiABQ5j (ORCPT ); Sun, 2 Jan 2022 11:57:39 -0500 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94305C061761; Sun, 2 Jan 2022 08:57:39 -0800 (PST) Received: by mail-wm1-x335.google.com with SMTP id g191-20020a1c9dc8000000b0032fbf912885so17213963wme.4; Sun, 02 Jan 2022 08:57:39 -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=0JpeJi0yBD942AUCHxsREdLSnIblSWTMYzLY8RDVTEU=; b=gYiQJr9qOZfUgO3rCKc+/aCbfxKPV3OS+qhOj4d7Tj12PBcldY8C4aO+PoW9K4p935 0TQgy/b+/02G6cDsLdsUjrPF2F0KrhxEfT2hgAsfPCX8WV+h4A7UJEgdW3yRL/vShFpv LWogpGjXC5OxxAOW5oYKVd+/jaicjL61SaqgtqEZ12qNBBfCRvvL8sIyaSnPw6y6O5fN d5LLtQlPmGl04LPPDPurbTm+kJ3pyWJOjrwDkrF4AElYTdeV/59BckqGDdTcGP5fRUxH YWH1Nb8/7qca/V185BJCBFCUSRkIp+uFAd0yytDmzPqEW49wmXi0/PEQ5pUDDZatdSdP sLbA== 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=0JpeJi0yBD942AUCHxsREdLSnIblSWTMYzLY8RDVTEU=; b=eKWNy5Fgnox59JTCajRc9fZQHKKOe7ChTRuc8T8PxCEKpnRyhrhUeCuV1uLWUvN2q+ M02ZX8NV8ahy2rvPA5H9ihD87rO+QwMXz5bXoR95x06RShotdAt8KWYK4gnM7KjtshXE 6tCbh2czBSWIMeWLyvjTVmz9YYhvEU34ki079528+QcMryPtUo/UTdkqmcW4oocHMmlT qDbK5IEQnrXcU+0vO6GqpQB//f96lVIACCwN0tMBc7k5qk8G7BvTpCyZuBoPXqmpdD0y //X1KMlHyHde/EqAIDtdyI7CG+ZzWvfP0q/NbP5Oq8Y4sSdvsOZ5vfCR3heF+KF91tdz whiQ== X-Gm-Message-State: AOAM531pt26lZzXdU7Xs8AnxVD9MKOjMmioZ8KWSMDZH1sMxtxZGIe1S 71qJDf87UusPyajEpwgXaXkCXtG7MB5i9w== X-Google-Smtp-Source: ABdhPJytsMoKEXSNH/cIPbIMvFJtaeNzmKn21Hbr+6f0Cy8+YgR+2GlCQxMZo7+dn35Jsadqow94sQ== X-Received: by 2002:a05:600c:296:: with SMTP id 22mr36751205wmk.11.1641142657899; Sun, 02 Jan 2022 08:57:37 -0800 (PST) Received: from debby ([2a01:e0a:a6d:a8d0:7ff4:8f61:5574:9f95]) by smtp.gmail.com with ESMTPSA id y11sm32899848wrp.86.2022.01.02.08.57.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jan 2022 08:57:37 -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 3/9] ARM: mstar: Add cpupll to base dtsi Date: Sun, 2 Jan 2022 17:57:24 +0100 Message-Id: <20220102165730.50190-4-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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Daniel Palmer All MStar/SigmaStar ARMv7 SoCs have the CPU PLL at the same place so add it to the base dtsi. Signed-off-by: Daniel Palmer --- arch/arm/boot/dts/mstar-v7.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/mstar-v7.dtsi b/arch/arm/boot/dts/mstar-v7.dtsi index 89ebfe4f29da..2249faaa3aa7 100644 --- a/arch/arm/boot/dts/mstar-v7.dtsi +++ b/arch/arm/boot/dts/mstar-v7.dtsi @@ -155,6 +155,13 @@ mpll: mpll@206000 { clocks = <&xtal>; }; + cpupll: cpupll@206400 { + compatible = "mstar,msc313-cpupll"; + reg = <0x206400 0x200>; + #clock-cells = <0>; + clocks = <&mpll MSTAR_MSC313_MPLL_DIV2>; + }; + gpio: gpio@207800 { #gpio-cells = <2>; reg = <0x207800 0x200>; From patchwork Sun Jan 2 16:57:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 529550 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8D1FEC4332F for ; Sun, 2 Jan 2022 16:57:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229590AbiABQ5m (ORCPT ); Sun, 2 Jan 2022 11:57:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229630AbiABQ5l (ORCPT ); Sun, 2 Jan 2022 11:57:41 -0500 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9641BC061761; Sun, 2 Jan 2022 08:57:40 -0800 (PST) Received: by mail-wr1-x42a.google.com with SMTP id j18so65698495wrd.2; Sun, 02 Jan 2022 08:57:40 -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=PSLPG0MzXHr2sBAsU44qorgJ49GZ8FzI0+68Kp64Drs=; b=VOQd0Ow+1WrNgYoFwglIyEDD6eh0BYvqxp/o+V8B/ljFwgxQTOEv6OJej9Mm5R+oYR hkhJn924zrQiLQcJnGGw3JAdk3VOqMJwJkpkOvmlDEjNQ9hU+kQ52Ftz1a4TKcUJNrUa 7Ozk7l+nDnMIdRpuzunuEk28K5nHqv3kP+A1i5CiKF6V6WSNN848CrI8bs1omgDwEv4V ERNaMlDYKH8a4Jrd9vug/k4Fy7od9oHsSA9alNkU50hWXcUwFZRz4/96ke0ewxaIol8+ wVJt6r+O7Yh/X2+qAXheK37OiawrgLjj3R3NxZKPGn/xstgbIaeGGFecPDFaDkmdSrm4 0cRw== 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=PSLPG0MzXHr2sBAsU44qorgJ49GZ8FzI0+68Kp64Drs=; b=uGh4pE9r3ien+f2mVwMYTXFGnywHln3hUZacA9y2TeEcKT+Fo/ZFzdeP969ae7fMt7 EHk24ywif3nMTc4hbHpWNkfrgCdzTfXhCVUnLigX68Cv2xtAosKSxx/6hpyBFZysiGVm oN3LRweDbZHh8hYbN/LssiCV30Zpkv6p8jxYEh/Xcx4fxjYCFkPEcSlRuYy9ses07kPk oj7qyLT/1qk3rNWRMDZaSdw1vfaX2TGZ9yxBBmfiPyaBn7qcuv7fx+uNNsvaC4HkFcJx UM/WYzJexsBR+1M2C0x20WA/jIFxgMQGfjLdRQ8axVJU9WQ6dKKDqokghH5gJUh1o9ph BDRw== X-Gm-Message-State: AOAM533qQFoa+CZxahr/Fwa/Hqcz3sRC4WpuPxin7s/ptqKTaB/Kq1qQ kXQtX8UyDpxv9nKS85jorpUY7Qs5VfAe5w== X-Google-Smtp-Source: ABdhPJz7QrYuQYvDwF8GFlCqsOZUggIWRhwsYrBN7X2EcIR/k/YLBCU5wE1SdWo+1XMV6CkNH71Jkg== X-Received: by 2002:a5d:6d0e:: with SMTP id e14mr37348800wrq.407.1641142658912; Sun, 02 Jan 2022 08:57:38 -0800 (PST) Received: from debby ([2a01:e0a:a6d:a8d0:7ff4:8f61:5574:9f95]) by smtp.gmail.com with ESMTPSA id p13sm25786857wrs.54.2022.01.02.08.57.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jan 2022 08:57:38 -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 4/9] ARM: mstar: Link cpupll to cpu Date: Sun, 2 Jan 2022 17:57:25 +0100 Message-Id: <20220102165730.50190-5-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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Daniel Palmer The CPU clock is sourced from the CPU PLL. Link cpupll to the cpu so that frequency scaling can happen. Signed-off-by: Daniel Palmer --- arch/arm/boot/dts/mstar-v7.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/mstar-v7.dtsi b/arch/arm/boot/dts/mstar-v7.dtsi index 2249faaa3aa7..c26ba9b7b6dd 100644 --- a/arch/arm/boot/dts/mstar-v7.dtsi +++ b/arch/arm/boot/dts/mstar-v7.dtsi @@ -21,6 +21,8 @@ cpu0: cpu@0 { device_type = "cpu"; compatible = "arm,cortex-a7"; reg = <0x0>; + clocks = <&cpupll>; + clock-names = "cpuclk"; }; }; From patchwork Sun Jan 2 16:57:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 529549 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 22A2CC41535 for ; Sun, 2 Jan 2022 16:57:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229846AbiABQ5r (ORCPT ); Sun, 2 Jan 2022 11:57:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229692AbiABQ5m (ORCPT ); Sun, 2 Jan 2022 11:57:42 -0500 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B2F1C061792; Sun, 2 Jan 2022 08:57:42 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id l4so20212305wmq.3; Sun, 02 Jan 2022 08:57:42 -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=MwkPi3zTHNX/WgU468/COGljzbksLucVcX9Vresnwgs=; b=JA3YqBV0dBer5Kp4K4W0e1lBP6bSyY186oVs0gUMBG/kXP0OX78v3XYHCJ8PBQo8uB cWYW3Ib/cvCCIONWmyVw2+E+GgSZcxO2vGZb/TfXDSSBwbGOMG3jyFm5lSp6vPaHVZjZ UTwdWVwx3kmBJ1Pg0LaVcHw08IXN5jizUIdEpH9boncaqtN00PdeOm6rXJ8hHBdFY3m9 gat0WYf7GEIKTchc+6r6l82+dwKBz6Cg3lIGIw+ysX/c42L78vNXfh5YfnYIVdRVtH1D uFREgLOjlIlUNtIqIAi6MVwAAPFskIl2qINRBUvLxueBlWP7msm3PeSrIq0OmAsRb+yQ 8M9Q== 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=MwkPi3zTHNX/WgU468/COGljzbksLucVcX9Vresnwgs=; b=FJ++KW9TNlLlu/OF/QyAm2VsbpfWfEefrgR2gel+kLrRD6lVweZ5kjeDOrdyKtkeYZ gT5HAjfjrrUb8UJvS4oig2SC/Q3pe6DtZ5TnW1pTZq3cu7bSTOjO/2WEL/TNclab3p6C TVLJzDYQePOazbQQPIRBW7stBRDWGwKU2Xz0QPW6QUK14cufpASFJVCAGUpGhPSvruqT tUqbkKcYJgEWNioJWfFFdrWqUZj3xscc4mmgSJAElDJdfOnA9zJg14iez8DXEsYwxOp8 Tr1BhYKNSANGg/ylWeR2mhl1YmmVaAePKRi+XyRWSzn6fjrpUi4pHyu6GzTiZ4ExsfEE t6HA== X-Gm-Message-State: AOAM531eNIMn7fH1Z2LfXsPXTB7KcFZRF63rdeGoccIohDMktGwTQLxL 9k5y8FMzhgEeumXvbm2YBD8= X-Google-Smtp-Source: ABdhPJw+T+7Kva7Grqslf4Ard+f+I0ns0p4qkTopFlTEorvQ7OO+iaZQtaZdCphuRJ7GAg2DLWSmcA== X-Received: by 2002:a7b:c745:: with SMTP id w5mr36644779wmk.96.1641142661060; Sun, 02 Jan 2022 08:57:41 -0800 (PST) Received: from debby ([2a01:e0a:a6d:a8d0:7ff4:8f61:5574:9f95]) by smtp.gmail.com with ESMTPSA id o15sm26163717wri.106.2022.01.02.08.57.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jan 2022 08:57:40 -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 v2 6/9] ARM: mstar: Add OPP table for infinity Date: Sun, 2 Jan 2022 17:57:27 +0100 Message-Id: <20220102165730.50190-7-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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 --- 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>; }; From patchwork Sun Jan 2 16:57:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 529551 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C64FEC4321E for ; Sun, 2 Jan 2022 16:57:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229836AbiABQ5q (ORCPT ); Sun, 2 Jan 2022 11:57:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229719AbiABQ5o (ORCPT ); Sun, 2 Jan 2022 11:57:44 -0500 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5147FC06179C; Sun, 2 Jan 2022 08:57:43 -0800 (PST) Received: by mail-wr1-x42f.google.com with SMTP id v7so65574323wrv.12; 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=21h9f/ui8ZIqSSrHzJ4KrN8YACvdlcc8m+OIu8z6NvM=; b=ElGGNSCD9QRK7+dw5nfGGhnn8BxEqs9+Jm/XI0ZtwxDwdeI7y6hp/nKKzi8OmmkTfd DfesxdRQQk9RqiyI/gy8nV7M1JGKw5EXwm1V8ZsxS4++cNwA9Y9cvcGFKl3yJ4TYDFJR PdQo3mBGXpTYUy6CjffI3IEKAMAs0z/QXgFssHDMe0orAfv10vB6jROWsQZ3td7PZ/Cd L9axkJZxSYMmyaxtnUMJ6UL9CFqC7S8Zsv4AXyzVbkF6LBpcxF/KA/W4R0WmoM6CWEYp Rd2Zt7f2YKdTAI+W8rAJkk5EKgtHHmQ2E9c8rt/nJgcbaTcrXFkVN5W0pZaqji6gTMJD E99w== 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=21h9f/ui8ZIqSSrHzJ4KrN8YACvdlcc8m+OIu8z6NvM=; b=FvjYyLLaNvp5KpnOLK6DHPUnpThtJM1sHELA54l/dh6ebyjmgF1N/QmxwsV8m1czzW gA3lDYy+XR9gg4yEguPXhsr7mp7krp1SX3EdB8RmyLDntAX7Z3CDdqQDNM0rQPNRqnLB 5mD9tOkHDVgH5q98vCmzxTmmn9Z/jvF+vh4+8y6ge+pbkMEEpMWy8388pmigWcHElGQ/ gHq5r+2SwCovzjogWtj5Yp+Bd0MCV6/9pA6DZwX07tmKMfY5SWikDj0fNqIof4HL55vP NTabJQCRAaE32DjYsDYRZX0swVc4/riVyORihZkpyFDMLqJHatggH+5MOImfUd+4no7V w98w== X-Gm-Message-State: AOAM530wbLwRVmT0hl6wX0EeVJIReNFgRWF1mwL1ouk7Ik4LR2YohyD5 k1XaYJ5QpsMWd++O03JAQdE= X-Google-Smtp-Source: ABdhPJwJOhTLzvSn3l0lO6PPzb+/Xo7IVWWa+kzDE8rxBggDHlIZdM774Ruhx9LE0tOuEbvyX2a6LA== X-Received: by 2002:a5d:440e:: with SMTP id z14mr14054757wrq.611.1641142661995; Sun, 02 Jan 2022 08:57:41 -0800 (PST) Received: from debby ([2a01:e0a:a6d:a8d0:7ff4:8f61:5574:9f95]) by smtp.gmail.com with ESMTPSA id y1sm32261901wrm.3.2022.01.02.08.57.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Jan 2022 08:57:41 -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 v2 7/9] ARM: mstar: Add OPP table for infinity3 Date: Sun, 2 Jan 2022 17:57:28 +0100 Message-Id: <20220102165730.50190-8-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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Daniel Palmer The infinity3 has a slightly higher max frequency compared to the infinity so extend the OPP table. Co-authored-by: Willy Tarreau Signed-off-by: Daniel Palmer --- arch/arm/boot/dts/mstar-infinity3.dtsi | 58 ++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/arch/arm/boot/dts/mstar-infinity3.dtsi b/arch/arm/boot/dts/mstar-infinity3.dtsi index 9857e2a9934d..a56cf29e5d82 100644 --- a/arch/arm/boot/dts/mstar-infinity3.dtsi +++ b/arch/arm/boot/dts/mstar-infinity3.dtsi @@ -6,6 +6,64 @@ #include "mstar-infinity.dtsi" +&cpu0_opp_table { + opp-1008000000 { + opp-hz = /bits/ 64 <1008000000>; + opp-microvolt = <1000000>; + clock-latency-ns = <300000>; + }; + + // overclock frequencies below, shown to work fine up to 1.3 GHz + opp-108000000 { + opp-hz = /bits/ 64 <1080000000>; + opp-microvolt = <1000000>; + clock-latency-ns = <300000>; + turbo-mode; + }; + + opp-1188000000 { + opp-hz = /bits/ 64 <1188000000>; + opp-microvolt = <1000000>; + clock-latency-ns = <300000>; + turbo-mode; + }; + + opp-1296000000 { + opp-hz = /bits/ 64 <1296000000>; + opp-microvolt = <1000000>; + clock-latency-ns = <300000>; + turbo-mode; + }; + + opp-1350000000 { + opp-hz = /bits/ 64 <1350000000>; + opp-microvolt = <1000000>; + clock-latency-ns = <300000>; + turbo-mode; + }; + + opp-1404000000 { + opp-hz = /bits/ 64 <1404000000>; + opp-microvolt = <1000000>; + clock-latency-ns = <300000>; + turbo-mode; + }; + + opp-1458000000 { + opp-hz = /bits/ 64 <1458000000>; + opp-microvolt = <1000000>; + clock-latency-ns = <300000>; + turbo-mode; + }; + + opp-1512000000 { + opp-hz = /bits/ 64 <1512000000>; + opp-microvolt = <1000000>; + clock-latency-ns = <300000>; + turbo-mode; + }; +}; + &imi { reg = <0xa0000000 0x20000>; };