From patchwork Fri Sep 2 06:50:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 12963690 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 6F7A2C54EE9 for ; Fri, 2 Sep 2022 06:52:28 +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=WgN4G8Hl2EQrZDVPtXAL7Qtk25XnEQVLu63NseqVyqU=; b=AIVwEHPSBa7qNq Y37s/dNMoq9e+jqx+d5Owi10JkZp1whmsqXlTGOtEo808ytjPPu20UDdNaHQljfiGNGRGgnIIbIgc 6QOnYIYo5hNhO6sDbAw9SX8I2ZnD0naaiQvciNnVX8zL/72cugsir1QQ/nNh0nQaWANcsQRKNHpV3 z4yWcHcFQs7+xt5ynwiZJlLdExwuquNYzcDH38vnZ5LIQOl9A/bTw/erdIxoMne8t7Lxz0+5zhNfC 0VX36iSQq5iE0jAdjuo5seVWWks44ncptVLmoNeI7Y6XLRCKNfV+It3MPWy0dGI1WRjAkDKLzKgWJ Psym0RUjU6WrfCYLFSlw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oU0WT-000zsB-VF; Fri, 02 Sep 2022 06:51:26 +0000 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oU0WK-000zmh-WD for linux-arm-kernel@lists.infradead.org; Fri, 02 Sep 2022 06:51:18 +0000 Received: by mail-pj1-x102a.google.com with SMTP id l5so1133947pjy.5 for ; Thu, 01 Sep 2022 23:51:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=vZHYMRZyWlyW2jlBdgxed8KmgG5fMCMo0+ikPtTJWgQ=; b=gdWMtBFhnryJ+Z3D74PXL2uiNgjWJxhxK+HrKtz93vj1ZO8BvWbt81GyyWEUeU4PYS W8x/MEDihQBH/iJSR0Ci8EOCDVYc2HW8cAcoKzZuOqnfJLVvQlyP1ONlnOmsyCn/m8Eo cgl8x5LQh230PAZgr+kh9uNC+nCXhDEZg6a2c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=vZHYMRZyWlyW2jlBdgxed8KmgG5fMCMo0+ikPtTJWgQ=; b=Q09bUVe8iGv84sto7BZQPn8H7pcuqGoF4MBZdSSlHDsAf47lZQnib3dBskqgDO9dm9 eUQ1Z6unryEx0kPZEv6+X+TGlcceZitx1ndTBlLEnHPytadY9wXBY2llfSDw8UeJ8hJH 8fWqtAJfC4njGMAuoXNeerNJx72WvTqf+VttpU54p7q0b0t3hGh1zfda+ylLUWiWGVfQ eavii2Q+h/HJsuQcvpdOb8uci1lCqDBP+Iw+akB4un2pk64wBmmxB9PfrIcgKHjIsbu/ /xrNeApdi8YrdaR/9gx5xl4c5Caqk4LJM9lxedx3Ws5V6HCJFM/wwwMVwt1QDBYXHspz crug== X-Gm-Message-State: ACgBeo2zwlR8C0ajjKVYqfgjHeXix4mhlNPpLZtK6oNNGnt2QfR+foF/ tnkT9wv+XQW9zV68XqSvuJqqdA== X-Google-Smtp-Source: AA6agR7FVosOCHr7koSgjgyHxpaptX6ySR/hYr2g04aXBfZn9ah7vdT2XuYO8u3qW+XsDhLOFlsspQ== X-Received: by 2002:a17:90a:748c:b0:1ff:f437:d36c with SMTP id p12-20020a17090a748c00b001fff437d36cmr2548512pjk.0.1662101474101; Thu, 01 Sep 2022 23:51:14 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a073:e40:9bbb:af2b:bca3]) by smtp.gmail.com with ESMTPSA id e17-20020a17090301d100b00172a2a41064sm769815plh.298.2022.09.01.23.51.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Sep 2022 23:51:13 -0700 (PDT) From: Jagan Teki To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski Cc: FUKAUMI Naoki , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v4 2/3] arm64: dts: rockchip: Add RK3399-T OPP table Date: Fri, 2 Sep 2022 12:20:56 +0530 Message-Id: <20220902065057.97425-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220902065057.97425-1-jagan@amarulasolutions.com> References: <20220902065057.97425-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220901_235117_041639_19DA5DF2 X-CRM114-Status: GOOD ( 15.37 ) 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 RK3399-T is down-clocked version of RK3399 SoC operated at 1.5GHz. Add CPU operating points table for it. Signed-off-by: FUKAUMI Naoki Signed-off-by: Jagan Teki --- Changes for v4: - update opp-table node names Changes for v3: - new patch .../arm64/boot/dts/rockchip/rk3399-t-opp.dtsi | 114 ++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3399-t-opp.dtsi diff --git a/arch/arm64/boot/dts/rockchip/rk3399-t-opp.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-t-opp.dtsi new file mode 100644 index 000000000000..1ababadda9df --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk3399-t-opp.dtsi @@ -0,0 +1,114 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright (c) 2016-2017 Fuzhou Rockchip Electronics Co., Ltd + * Copyright (c) 2022 Radxa Limited + */ + +/ { + cluster0_opp: opp-table-0 { + compatible = "operating-points-v2"; + opp-shared; + + opp00 { + opp-hz = /bits/ 64 <408000000>; + opp-microvolt = <875000 875000 1250000>; + clock-latency-ns = <40000>; + }; + opp01 { + opp-hz = /bits/ 64 <600000000>; + opp-microvolt = <875000 875000 1250000>; + }; + opp02 { + opp-hz = /bits/ 64 <816000000>; + opp-microvolt = <900000 900000 1250000>; + }; + opp03 { + opp-hz = /bits/ 64 <1008000000>; + opp-microvolt = <975000 975000 1250000>; + }; + }; + + cluster1_opp: opp-table-1 { + compatible = "operating-points-v2"; + opp-shared; + + opp00 { + opp-hz = /bits/ 64 <408000000>; + opp-microvolt = <875000 875000 1250000>; + clock-latency-ns = <40000>; + }; + opp01 { + opp-hz = /bits/ 64 <600000000>; + opp-microvolt = <875000 875000 1250000>; + }; + opp02 { + opp-hz = /bits/ 64 <816000000>; + opp-microvolt = <875000 875000 1250000>; + }; + opp03 { + opp-hz = /bits/ 64 <1008000000>; + opp-microvolt = <925000 925000 1250000>; + }; + opp04 { + opp-hz = /bits/ 64 <1200000000>; + opp-microvolt = <1000000 1000000 1250000>; + }; + opp05 { + opp-hz = /bits/ 64 <1416000000>; + opp-microvolt = <1075000 1075000 1250000>; + }; + opp06 { + opp-hz = /bits/ 64 <1512000000>; + opp-microvolt = <1150000 1150000 1250000>; + }; + }; + + gpu_opp_table: opp-table-2 { + compatible = "operating-points-v2"; + + opp00 { + opp-hz = /bits/ 64 <200000000>; + opp-microvolt = <875000 875000 1150000>; + }; + opp01 { + opp-hz = /bits/ 64 <300000000>; + opp-microvolt = <875000 875000 1150000>; + }; + opp02 { + opp-hz = /bits/ 64 <400000000>; + opp-microvolt = <875000 875000 1150000>; + }; + opp03 { + opp-hz = /bits/ 64 <600000000>; + opp-microvolt = <975000 975000 1150000>; + }; + }; +}; + +&cpu_l0 { + operating-points-v2 = <&cluster0_opp>; +}; + +&cpu_l1 { + operating-points-v2 = <&cluster0_opp>; +}; + +&cpu_l2 { + operating-points-v2 = <&cluster0_opp>; +}; + +&cpu_l3 { + operating-points-v2 = <&cluster0_opp>; +}; + +&cpu_b0 { + operating-points-v2 = <&cluster1_opp>; +}; + +&cpu_b1 { + operating-points-v2 = <&cluster1_opp>; +}; + +&gpu { + operating-points-v2 = <&gpu_opp_table>; +};