From nobody Thu Sep 19 19:39:27 2024 Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com [209.85.167.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 46189191F8C for ; Wed, 11 Sep 2024 10:52:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726051933; cv=none; b=PPfWooLBNwA+80yYsvO0mSCsmi797NWEDAEEX80erGDCl9N/UoZVdqYhcqw50vAmtg2jGN4A3PsnwHQqgLFVrfi6/ZYA84rybLvhpjIB/Ft8O03Rk8PsgaYbZwcauU/dYNhnYe8KtZOmg3dtuvAygKkcyv04ZHKiJyhSmKexmqY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726051933; c=relaxed/simple; bh=bGEC5sAZlV+5iGf8M6Z9/6DXmZrDxRlgy1KSOOHsczA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WgbGeMka6msjQCFYnTK8Ky6GfQtFYmaGt24rgnLFPk2JVVy7omMtIW4hNJVfQaA7tuawR4BnlOqoF1fRPQgVtUMC4i5LsBAa/p+o8y2b2HZkoH7MpC1lu/NLldnzG8a2cO9ZqouvNyOOG/wX44PzUJmURCcKx4j8jZHEfexuW1I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=XsD8S0Jo; arc=none smtp.client-ip=209.85.167.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="XsD8S0Jo" Received: by mail-oi1-f176.google.com with SMTP id 5614622812f47-3e039889ca0so2135353b6e.3 for ; Wed, 11 Sep 2024 03:52:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1726051931; x=1726656731; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=iiXfhH6Tnp1v6o4UDgk+1tYvrebnqA2dEhUrxtMqtKQ=; b=XsD8S0Joz9/ZZkw9X2AGXvdCg/vVhP8aI7EsbVd9+IJJhBYwXuj1tafCkr1tjY/Rja 5SRKd6R6UoCvBYmd7UU1ms7hRkqbaqn16BhuP4gKb+u+o3zxvPtCj9rKgeVn0ADIn6NL Ajtq9WZ/x4zjUTznX5G0R1PuGCMeuZyWrYKAs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726051931; x=1726656731; 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:message-id:reply-to; bh=iiXfhH6Tnp1v6o4UDgk+1tYvrebnqA2dEhUrxtMqtKQ=; b=nlz9Lb+VNMEQlojhX5AobiBZDXncH88+qxgmI4yD5zUH8yJYf3YINit+l89ju/5fZw Zxee9WxymWyt7O/aDWUlL3khzzYtTZdW2vxN862fo2zgmP0tAx5OHgltrAz30nHFoaDH 8prNkvae8RgDjBwNTiBpggihk3hAudik5pNFW2NZ+HJL/3d0Ibi9ZlvTGwI3PApir3Pd mjOA/BfFxLQlvu8UiHj32CQ0tYphj4FeWiDUm3ftcX8eKOIwF/Ukf4sTkfGdikoLx/Ij pyp9FPju9szdfBwDScfCXq4lpOyCBBg1YUb0bMzEIxHXnEmMVRc0n6zaz+y9DyVxLNIO VolA== X-Forwarded-Encrypted: i=1; AJvYcCV0kUMFLbAKpTixqKdynpGawKoEsSmaEhgTu4zN/k5LcP1EyPKfFyOLiIjZZeWBn+x3NtPHtSGrop7Ia2I=@vger.kernel.org X-Gm-Message-State: AOJu0Yy7mCo5e6Yi1QyfH7h6q9aAEvV3FCadxwSuNTGAUdU5oS6WpX/9 XFDkemN7hnYd8da3HLgrP227ICxb2H/mBg16kZpqqAEMCojitOv5AYKNB9a0/Q== X-Google-Smtp-Source: AGHT+IHW9oSNJD8oopaqEVzs/tys0SbN6+/1X0Ax2ScypJxfEIBlNpu9QiRwIEeqPSCjhbtYV0wiSA== X-Received: by 2002:a05:6808:3c8f:b0:3e0:3d83:49c9 with SMTP id 5614622812f47-3e03d8349f4mr10035939b6e.7.1726051931237; Wed, 11 Sep 2024 03:52:11 -0700 (PDT) Received: from fshao-p620.tpe.corp.google.com ([2401:fa00:1:10:102f:d738:6069:fd4b]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7d8242b3d13sm7147352a12.52.2024.09.11.03.52.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 03:52:10 -0700 (PDT) From: Fei Shao To: AngeloGioacchino Del Regno , Matthias Brugger Cc: Fei Shao , Conor Dooley , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v2 3/8] arm64: dts: mediatek: mt8188: Add CPU performance controller for CPUFreq Date: Wed, 11 Sep 2024 18:51:08 +0800 Message-ID: <20240911105131.4094027-4-fshao@chromium.org> X-Mailer: git-send-email 2.46.0.598.g6f2099f65c-goog In-Reply-To: <20240911105131.4094027-1-fshao@chromium.org> References: <20240911105131.4094027-1-fshao@chromium.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Add performance controller node and performance-domains properties for CPUFreq support on MT8188 SoC. Signed-off-by: Fei Shao Reviewed-by: AngeloGioacchino Del Regno --- (no changes since v1) arch/arm64/boot/dts/mediatek/mt8188.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8188.dtsi b/arch/arm64/boot/dts= /mediatek/mt8188.dtsi index cd27966d2e3c..cdd2fe14effa 100644 --- a/arch/arm64/boot/dts/mediatek/mt8188.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8188.dtsi @@ -41,6 +41,7 @@ cpu0: cpu@0 { d-cache-line-size =3D <64>; d-cache-sets =3D <128>; next-level-cache =3D <&l2_0>; + performance-domains =3D <&performance 0>; #cooling-cells =3D <2>; }; =20 @@ -59,6 +60,7 @@ cpu1: cpu@100 { d-cache-line-size =3D <64>; d-cache-sets =3D <128>; next-level-cache =3D <&l2_0>; + performance-domains =3D <&performance 0>; #cooling-cells =3D <2>; }; =20 @@ -77,6 +79,7 @@ cpu2: cpu@200 { d-cache-line-size =3D <64>; d-cache-sets =3D <128>; next-level-cache =3D <&l2_0>; + performance-domains =3D <&performance 0>; #cooling-cells =3D <2>; }; =20 @@ -95,6 +98,7 @@ cpu3: cpu@300 { d-cache-line-size =3D <64>; d-cache-sets =3D <128>; next-level-cache =3D <&l2_0>; + performance-domains =3D <&performance 0>; #cooling-cells =3D <2>; }; =20 @@ -113,6 +117,7 @@ cpu4: cpu@400 { d-cache-line-size =3D <64>; d-cache-sets =3D <128>; next-level-cache =3D <&l2_0>; + performance-domains =3D <&performance 0>; #cooling-cells =3D <2>; }; =20 @@ -131,6 +136,7 @@ cpu5: cpu@500 { d-cache-line-size =3D <64>; d-cache-sets =3D <128>; next-level-cache =3D <&l2_0>; + performance-domains =3D <&performance 0>; #cooling-cells =3D <2>; }; =20 @@ -149,6 +155,7 @@ cpu6: cpu@600 { d-cache-line-size =3D <64>; d-cache-sets =3D <256>; next-level-cache =3D <&l2_1>; + performance-domains =3D <&performance 1>; #cooling-cells =3D <2>; }; =20 @@ -167,6 +174,7 @@ cpu7: cpu@700 { d-cache-line-size =3D <64>; d-cache-sets =3D <256>; next-level-cache =3D <&l2_1>; + performance-domains =3D <&performance 1>; #cooling-cells =3D <2>; }; =20 @@ -880,6 +888,12 @@ soc { compatible =3D "simple-bus"; ranges; =20 + performance: performance-controller@11bc10 { + compatible =3D "mediatek,cpufreq-hw"; + reg =3D <0 0x0011bc10 0 0x120>, <0 0x0011bd30 0 0x120>; + #performance-domain-cells =3D <1>; + }; + gic: interrupt-controller@c000000 { compatible =3D "arm,gic-v3"; #interrupt-cells =3D <4>; --=20 2.46.0.598.g6f2099f65c-goog