From patchwork Thu Dec 14 10:33:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brandon Cheo Fusi X-Patchwork-Id: 13492743 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 DA0AFC4167B for ; Thu, 14 Dec 2023 10:34:54 +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=lvqvC0ab3umRnOnsXK3HdkvUy9UDtQKTH9Ch4Xz+vmY=; b=Qy1l1yppKsKUbJ lQEtGAF+WNVi+vRaUlBWnRdbJHiqiKBigiuwZuXHmQ4RRvMeDnFKSV+Ot6ONOTOCBkAhWPcnDMqNf 9+g2ecAfcMPU02m73MYra4sLm4ur0YdvJxaOpqQ+EqqixydzRYLEpMapspK6apXcZDZHJRn1SKbn/ 5eN16Qrfj/E0+Uw/0NzbjQv0YX1YHa65aIR00/E0PperrHzUlEaPq2bIgAbVEy/N/nCUFEAcDExg9 0xr2UtAkKCPmTz+cmtLFT+pvzMGIAdW5oGFWwsqOg0vYom+BjiHVrRw7D0ErVT4B0GkO6PGE0bUWp zJYLG9z2VqGwfYQiuB1A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rDj3J-00HUFC-2K; Thu, 14 Dec 2023 10:34:49 +0000 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rDj3H-00HUCK-1n; Thu, 14 Dec 2023 10:34:49 +0000 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-33638e7f71aso251035f8f.1; Thu, 14 Dec 2023 02:34:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702550083; x=1703154883; darn=lists.infradead.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=Y0a4gKP5gtrabO/Q+KI+zErFhUsDo6C0jBoUDN/BuNw=; b=LZT/fkqLFHn+k0f9Rm8zH5wqVPnG6FfpcnNdMJnEpZAoW5YPsiZ1cnZFQVFE5JWbgU wV15u3IhpfVJ4351LiJJBci64fAoV7iCgpW87DJs+OkUYTcWPGYv/VH23DGLExeQ7Td0 u4P35VNhTMV2GCMrq5K3YDG/gvJgix5pRV5HmlQV5Qi4LMeDmFqa4nwgxWP/QjWUXZl2 iOGyHO7Grgv84P9vgx4mry34+QbGLKHJQJYFYvlmII+b+lLC9mg7H20zXeLSSZIe6e80 5sf+1beVflnqZVPKr/gCsqctzRlpFp/afXDcqDF9S5i4UpOZ5xN59q1vL8Xh1cEhAM3x NiaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702550083; x=1703154883; 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=Y0a4gKP5gtrabO/Q+KI+zErFhUsDo6C0jBoUDN/BuNw=; b=ehbVjta62unfl7u19Oduem1g91qJMAmkzjQdplnATNhhkhMYXMV1+31ZnoLG1W6wts HorC4rIMxi4tZYfAnOf9vnvEyYqEjZM1Y4iM8Shc2x2UBdiPU+mizkRBms4PrslOxciR +CgLymquvGxPfHikXmQuJATq5aGcmgIPBG9vKMys8NULpWNUSjVreeWiRiWHZhlVDyz6 S4SLn/EE7bPnx47e2Q3o8K6MeV9ra+pwZODM1KndMnZpGO45fjh1eUu/Blh8FlkENULQ kflRQ4BnNqz+JQ/JxbILGotSIGVRAJhRLZeaF3U34z2F3jTSt70qviS0WC1Clcawtxcj Ve3g== X-Gm-Message-State: AOJu0YyHL/I4x4B4Vf8h6tuR+ixb8SXcbCbmdcISM41h27P8AvLd2WAJ iH2kL0+spaHOH8+wdNovrAc= X-Google-Smtp-Source: AGHT+IFPVXHLmiez1c1QHJ6CdvlmAC2BBhWMXcwVlLmX7+8rd1VLGR63bHn6K6EuANrCno+ey5HLvQ== X-Received: by 2002:adf:e904:0:b0:336:4176:9229 with SMTP id f4-20020adfe904000000b0033641769229mr1327326wrm.54.1702550082488; Thu, 14 Dec 2023 02:34:42 -0800 (PST) Received: from localhost.localdomain ([129.0.226.240]) by smtp.gmail.com with ESMTPSA id e4-20020a5d65c4000000b003333ed23356sm15849623wrw.4.2023.12.14.02.34.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 02:34:41 -0800 (PST) From: Brandon Cheo Fusi To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Viresh Kumar , Yangtao Li Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Brandon Cheo Fusi Subject: [PATCH 1/5] riscv: dts: allwinner: Update opp table to allow CPU frequency scaling Date: Thu, 14 Dec 2023 11:33:38 +0100 Message-Id: <20231214103342.30775-2-fusibrandon13@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231214103342.30775-1-fusibrandon13@gmail.com> References: <20231214103342.30775-1-fusibrandon13@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231214_023447_594248_770C0963 X-CRM114-Status: GOOD ( 13.42 ) X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Two OPPs are currently defined for the D1/D1s; one at 408MHz and another at 1.08GHz. Switching between these can be done with the "sun50i-cpufreq-nvmem" driver. This patch populates the opp table appropriately, with inspiration from https://github.com/Tina-Linux/linux-5.4/blob/master/arch/riscv/boot/dts/sunxi/sun20iw1p1.dtsi The supply voltages are PWM-controlled, but support for that IP is still in the works. So stick to a fixed 0.9V vdd-cpu supply, which seems to be the default on most D1 boards. Signed-off-by: Brandon Cheo Fusi --- arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) +}; diff --git a/arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi b/arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi index 64c3c2e6c..e211fe4c7 100644 --- a/arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi +++ b/arch/riscv/boot/dts/allwinner/sun20i-d1s.dtsi @@ -39,16 +39,22 @@ cpu0_intc: interrupt-controller { }; opp_table_cpu: opp-table-cpu { - compatible = "operating-points-v2"; + compatible = "allwinner,sun20i-d1-operating-points", + "allwinner,sun50i-h6-operating-points"; + nvmem-cells = <&cpu_speed_grade>; + nvmem-cell-names = "speed"; + opp-shared; opp-408000000 { + clock-latency-ns = <244144>; /* 8 32k periods */ opp-hz = /bits/ 64 <408000000>; - opp-microvolt = <900000 900000 1100000>; + opp-microvolt-speed0 = <900000>; }; opp-1080000000 { + clock-latency-ns = <244144>; /* 8 32k periods */ opp-hz = /bits/ 64 <1008000000>; - opp-microvolt = <900000 900000 1100000>; + opp-microvolt-speed0 = <900000>; }; }; @@ -115,3 +121,8 @@ pmu { <0x00000000 0x0000000f 0xffffffff 0xffffffff 0x00020000>; }; }; + +&sid { + cpu_speed_grade: cpu-speed-grade@0 { + reg = <0x00 0x2>; + }; From patchwork Thu Dec 14 10:33:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brandon Cheo Fusi X-Patchwork-Id: 13492744 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 3AD30C4332F for ; Thu, 14 Dec 2023 10:35: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=95Yx1d9j6QMJLnHdzvN6EDQr4c5KHVUxtiBdRU+YSKA=; b=QOxl6X/Ku8MJh1 Ux9qBe2pI+5L4gfDIw028x4A9pGvSN7lamJolQZxzylVIQlOajwl15ZMyQr/KOnbC3PNk7uNTB0Tb iNyoyt86ehW/80NbRnU6AGtDf5v3ad9w+TDbCaUOYARP707nSCAC1JM3tQHhS/uaW6LtpktJbDAZ3 zkl/T/6jxrPVs1gPNMdA9H/I9g4wQmawk/YUvtKkeiBwmutlvCVCh21Lv0UJmSU2DuCzBXuYMltuJ ynuQ56y0qL3xcbJ4Jaz8KqcV/gjTlv9yEAw+qH5FJKOulr5ZCGn2qKy1AmPV4LxZs6NDN7Qqo3SO2 7KCcATiajCi646+HnM2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rDj3g-00HURI-3B; Thu, 14 Dec 2023 10:35:12 +0000 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rDj3e-00HUPS-0e; Thu, 14 Dec 2023 10:35:11 +0000 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-32f8441dfb5so7205645f8f.0; Thu, 14 Dec 2023 02:35:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702550107; x=1703154907; darn=lists.infradead.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=5YMMP/qsVfdoJtEElBLyEEO9c305KOAYJqUkekDdPZs=; b=XmYwZJSbG8o2vul88RKbtZ+iD6o5J9C5XQiEO0JpRKIT1Rx6DlKni/NU8XFcbyHvbJ BWDXGOfcLE978pmeLnbOwRDEpbEKR2S/z21qRPigDCLrPH+0Ka/2lnX+Y79tOzfqyHMx 181Jn9GsQjvCOQvyM5hRu/WigjcecPSulVW29a/M7diesY47e+0yzUJGkBLGu3tOWbne Cn6PoI8idxCCKPbiUqQEZ37ESr2AMDhlOjDYCKjQTLCOwGBU4yR5y31Zqc+VjS0PFtXv Yu6wkhCJqRyT+e+8BIDCuABxh2vuZKHxXENLXzOVSeU9BJTvXZaUb4l3012S4+M9D6MT m9GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702550107; x=1703154907; 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=5YMMP/qsVfdoJtEElBLyEEO9c305KOAYJqUkekDdPZs=; b=stAzJlOX/mbawlsFrbgG+QEunIqIPvWG63kZjrZTsZ585hL1hyL4e128sXIf7/dXvP Gt8a71z8+QmXcguvY2l3hDZEVIN1e+8hi8UA9j2YaKaT9N0JlPAebZDnFeKpK++YOMy9 tZPomm8hgvZiaLgn+ftrUyFb/86mDMBiDsweWJdiCeaqv+gs13nJnmCzaQej2wbPvf6y RctIEzwTIVKb5Ff6WJ6Pc4aVaEHBqn0dm5dM4U7L6HOYLQ0Fug2F9AqHEOiqO6jGkzj3 wgq89SLAAouTAmH3mFo3o71FX8p5N9smfCWThjmW+Ip3mV1v5ugoLsNxrLgp0fYkmSmO mm6Q== X-Gm-Message-State: AOJu0Yww1Hj/S1ViBbyElLhsFDQrOCU0PAcqj7/zc2WgFU1+eTaZ9zwQ ysuFCC81rF/fmMTWWr86iGM= X-Google-Smtp-Source: AGHT+IGB2gMg2Mze62sZsH15EW7tQ5RddMXqMonm4fA8WEreIbA3LcsoIasFJ6/XxlhankFX/CQcBw== X-Received: by 2002:adf:9790:0:b0:333:2fd2:6f82 with SMTP id s16-20020adf9790000000b003332fd26f82mr4844499wrb.140.1702550107021; Thu, 14 Dec 2023 02:35:07 -0800 (PST) Received: from localhost.localdomain ([129.0.226.240]) by smtp.gmail.com with ESMTPSA id e4-20020a5d65c4000000b003333ed23356sm15849623wrw.4.2023.12.14.02.35.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 02:35:06 -0800 (PST) From: Brandon Cheo Fusi To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Viresh Kumar , Yangtao Li Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Brandon Cheo Fusi Subject: [PATCH 2/5] cpufreq: sun50i: Add D1 support Date: Thu, 14 Dec 2023 11:33:39 +0100 Message-Id: <20231214103342.30775-3-fusibrandon13@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231214103342.30775-1-fusibrandon13@gmail.com> References: <20231214103342.30775-1-fusibrandon13@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231214_023510_238586_CC0A1E4C X-CRM114-Status: GOOD ( 10.78 ) X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Add support for D1 based devices to the Allwinner H6 cpufreq driver Signed-off-by: Brandon Cheo Fusi --- drivers/cpufreq/sun50i-cpufreq-nvmem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/sun50i-cpufreq-nvmem.c b/drivers/cpufreq/sun50i-cpufreq-nvmem.c index 32a9c88f8..ccf83780f 100644 --- a/drivers/cpufreq/sun50i-cpufreq-nvmem.c +++ b/drivers/cpufreq/sun50i-cpufreq-nvmem.c @@ -160,6 +160,7 @@ static struct platform_driver sun50i_cpufreq_driver = { static const struct of_device_id sun50i_cpufreq_match_list[] = { { .compatible = "allwinner,sun50i-h6" }, + { .compatible = "allwinner,sun20i-d1" }, {} }; MODULE_DEVICE_TABLE(of, sun50i_cpufreq_match_list); From patchwork Thu Dec 14 10:33:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brandon Cheo Fusi X-Patchwork-Id: 13492745 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 4B6F9C4332F for ; Thu, 14 Dec 2023 10:35:30 +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=2qqutzu8tSWBvyQuS7K5LR930pUKCdPiyXMTbfFMf6A=; b=D2esCNT+8Q5hfV 9F3TgaevSAwxv/1IkvvwrX2n5rMJrH+JD+Trg7OxE8QK1D/bpD8BJ1HcW5FLt6+TAMU1sYXBAaKvK I1RRo3APWJ3uYZx50oF/7InCeBYmzfA0uEUryKchkOqTRPfkwMARWsV/hfJi6vHuvY9Ak50H2vyuJ xWEwDFyFOms3voBMbP5UZbmaXMT5FBKahtigsktvoI/+FI0nKYcqEpjO7vzEexdBElrfjc6dLb0a8 F0WizNB0WRLbnJYZIimwJqCE0Qv0ion3Iektvt+HR7ybvyLOXBAFhH6L7it/SwJ4d+KlUA6/HFmG0 fe/gsdf7z4rmDPsh3o/w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rDj3s-00HUWz-0y; Thu, 14 Dec 2023 10:35:24 +0000 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rDj3p-00HUVZ-1h; Thu, 14 Dec 2023 10:35:22 +0000 Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-3332efd75c9so6822435f8f.2; Thu, 14 Dec 2023 02:35:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702550120; x=1703154920; darn=lists.infradead.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=4SZpEgDuZF0Kd57Q/v4Kq9sCIukMURy5kzt0ohYZmr8=; b=gDHM0S6kxVaDBYaKUw3K5WPAYXKfa/hp3cHsm7wrALaEMCOVyz4yyYK96+6X/+iITz +orf9mmiAXyn2OywNrImt1zpPaKHg4TvxBqQ2PxZrvJxyuEf5WDfJy18Q61+g+re2DEm bmHFOBL0Bi07/fDY7eiG8ARwraI0PtFwk0Sso4IkQqKoLnAkCzZnrlK/rQlv/CMlNcVt Btih8h48F1b2aaGBjl3z5lMF7hwG+x6T3znKaizHCxNRUYHDWH/ZLaEO6o+A+Be1SHsz GK9QgYk/9TXQK2DKieCrwQkxZXVr1rB1YiiRVF9aHWhFmFmhOhatsdfL2n5yJLxq39E/ /yEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702550120; x=1703154920; 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=4SZpEgDuZF0Kd57Q/v4Kq9sCIukMURy5kzt0ohYZmr8=; b=Bwktfo0Pi9HWPRnyJ9GXNiwoh+ntK/zVAxd7QoBL51uKCL85jq0O5VITkPk2rwmiQW hXan32PKX/1b2NSCh5zhPMq9Moy0NRj4WKpRjd8FnKhDsMbfxvx53howrEYYw7dtK9a4 sg9uOiGxkj42xVIumJ8rgHPHx+O5pgQT/KsMUpFU/TG2Gzu0PGqmPk7k66Ruew8+XeBu 3lfl//Zi3A3wRNCpeZMdj4nUvVRTFYhFcAIb+dLlHUsm7jJ7xYzedMqOjuUnwZg+Wu5L PYNQyF44/T6ehjkzCMGHiDRdEecy+C9kuVjczTvoTV2I3Pw8Nb/cH4yGG3QeN+s4KjZo Imlg== X-Gm-Message-State: AOJu0Yx+dEbrJd6jgHXShYu/vnZXBLfjAgf4IuhgHtThEkQKbNknYBoi HtreQXoZhTNbh61fT+/s71Y= X-Google-Smtp-Source: AGHT+IHYPY97jc9qd+t5is/0cCaszwyL2E4cFGf6c7JTug0/K/MlULH3FTa3Xttj5loEfnYxN8qi2g== X-Received: by 2002:a05:6000:235:b0:336:4a69:aa98 with SMTP id l21-20020a056000023500b003364a69aa98mr115808wrz.122.1702550119975; Thu, 14 Dec 2023 02:35:19 -0800 (PST) Received: from localhost.localdomain ([129.0.226.240]) by smtp.gmail.com with ESMTPSA id e4-20020a5d65c4000000b003333ed23356sm15849623wrw.4.2023.12.14.02.35.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 02:35:19 -0800 (PST) From: Brandon Cheo Fusi To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Viresh Kumar , Yangtao Li Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Brandon Cheo Fusi Subject: [PATCH 3/5] cpufreq: dt-platdev: Blocklist allwinner,sun20i-d1 SoC Date: Thu, 14 Dec 2023 11:33:40 +0100 Message-Id: <20231214103342.30775-4-fusibrandon13@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231214103342.30775-1-fusibrandon13@gmail.com> References: <20231214103342.30775-1-fusibrandon13@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231214_023521_567864_1496F5B2 X-CRM114-Status: UNSURE ( 9.65 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org The Allwinner D1 uses H6 cpufreq driver. Add it to blocklist so the "cpufreq-dt" device is not created twice. Signed-off-by: Brandon Cheo Fusi --- drivers/cpufreq/cpufreq-dt-platdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c index bd1e1357c..2febcfc2c 100644 --- a/drivers/cpufreq/cpufreq-dt-platdev.c +++ b/drivers/cpufreq/cpufreq-dt-platdev.c @@ -104,6 +104,7 @@ static const struct of_device_id allowlist[] __initconst = { */ static const struct of_device_id blocklist[] __initconst = { { .compatible = "allwinner,sun50i-h6", }, + { .compatible = "allwinner,sun20i-d1", }, { .compatible = "apple,arm-platform", }, From patchwork Thu Dec 14 10:33:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brandon Cheo Fusi X-Patchwork-Id: 13492746 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 663BEC4167B for ; Thu, 14 Dec 2023 10:35:37 +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=Q+Y6+sAiuHqfzik0oIAj2MgtRzfiV4KB4SB+hSuQXIw=; b=4NfUa/NODHLx30 iwg+OigVCUBUdA8lzu/qDXp9U5KHJBkayUHNFXvs0zB4H5QRJ9gHpYc3FnW0impsqIldUzAZhmwY/ HLoJSZxWuzbDH7/RtIaV+EYquFKwrqAfkyir9vvWHWY7celE+HmTrnjWEZ1qN/w+JfG231gU+TTSC zovrk/Q7FPDC1Z38poQjBkGeba9nXVH6q5nZn3Vjuy/xa+8+OqZ8TCGbB7kPyk/DC3qD99Te5wC3n 3Yykd9UkLsr7RvWb/DOnkddR09d7U+U3pfb0MKxbq9rrzctrRRE+DAn/CNjqz+NJMzRkJTqVOgJ9k HgkXR32Ld918wnFlokUg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rDj3z-00HUcL-34; Thu, 14 Dec 2023 10:35:31 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rDj3y-00HUZY-05; Thu, 14 Dec 2023 10:35:31 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40c3ca9472dso58872035e9.2; Thu, 14 Dec 2023 02:35:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702550128; x=1703154928; darn=lists.infradead.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=JrT4GQFgUc2NFNy8QfHDcUrSUYysbuxBIxCpg4THq6A=; b=eOHJzs/+jni3A6VC33hybWGcYJkEHt02QoTGCr+ygfe8HUhqUebPiXhIi70y4By4p3 6c+159e+IurJFIhC5K/nUIfjV1ZoAtOkolz3wlTixuoxveaGs2z/ZZ5l7ct577IrY+32 T6XH+0oc7L4aYgK11G7YjE4ylrs4o4S9tz3QhKslPjTIU/XFofYk3H8Zek8yMHGdjvgy zbPp6kuUK2/xVDqVEB80sE0y1hZJoULFnnPCQpt56COZVGwByOu06rK+S0lVsuIyqcHM v2REuzfpZy9IXFKTdlbYeVrJGcYAiTZCDAgN0XoFZtSZkrc1AIOXCO/Y7+EAxQPCKsq6 54/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702550128; x=1703154928; 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=JrT4GQFgUc2NFNy8QfHDcUrSUYysbuxBIxCpg4THq6A=; b=FuXO4iKjQxbcBpgQEpaX0gnZKicmb+aFpgzIjH1LBBFyKYncIjjeMqFCii9Ql3fv4L EACZ18Ahgm2FaXLU6jvL3A9ZU34XyDGtge0Ve58zas0Au+YzpGAEq8aTOBF5LPTb1cmZ 7y5l8K78uzx/zLhkS/exfYEFz5cBn+pzTagVivIQywyE6kXUNPWoRpRwebfGlYmIAhTn x+uBeMQWOxwYEzpn7inVKnyqlB0PNCxsQ2S7PaeDP6IlbYke7snpR60v1cD9JyHhqCvB zGqCWDPEOh/+arLiSEO+DyI/jnQEBakLcKFBPWWkbxuilZ/ZIyRMNSqiieWkBtPDVs6C E1gA== X-Gm-Message-State: AOJu0Ywp+6L47HgC3NonTeSrskjFSvOYhqCqrWqQwEpcqeI673I+xmPt YHGlRO1lCMUaphQv8fmdSyk= X-Google-Smtp-Source: AGHT+IGCjmnMr0NRq+HC8R0lvRI/AD01AcPL7img9WmAVtzQAIwlJBk50oZM1JWLrtlKld0tmTb1iA== X-Received: by 2002:a05:600c:2a41:b0:40c:32fa:4f45 with SMTP id x1-20020a05600c2a4100b0040c32fa4f45mr3510981wme.248.1702550128507; Thu, 14 Dec 2023 02:35:28 -0800 (PST) Received: from localhost.localdomain ([129.0.226.240]) by smtp.gmail.com with ESMTPSA id e4-20020a5d65c4000000b003333ed23356sm15849623wrw.4.2023.12.14.02.35.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 02:35:27 -0800 (PST) From: Brandon Cheo Fusi To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Viresh Kumar , Yangtao Li Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Brandon Cheo Fusi Subject: [PATCH 4/5] cpufreq: Add support for RISC-V CPU Frequency scaling drivers Date: Thu, 14 Dec 2023 11:33:41 +0100 Message-Id: <20231214103342.30775-5-fusibrandon13@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231214103342.30775-1-fusibrandon13@gmail.com> References: <20231214103342.30775-1-fusibrandon13@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231214_023530_066290_438CB2E5 X-CRM114-Status: GOOD ( 15.17 ) X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Add Kconfig file for cpufreq scaling drivers that can handle RISC-V CPUs. An entry is included for the Allwinner H6 cpufreq driver that works with D1. Signed-off-by: Brandon Cheo Fusi --- drivers/cpufreq/Kconfig | 4 ++++ drivers/cpufreq/Kconfig.riscv | 16 ++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 drivers/cpufreq/Kconfig.riscv diff --git a/drivers/cpufreq/Kconfig b/drivers/cpufreq/Kconfig index 35efb53d5..4bef39fed 100644 --- a/drivers/cpufreq/Kconfig +++ b/drivers/cpufreq/Kconfig @@ -239,6 +239,10 @@ if PPC32 || PPC64 source "drivers/cpufreq/Kconfig.powerpc" endif +if RISCV +source "drivers/cpufreq/Kconfig.riscv" +endif + if MIPS config BMIPS_CPUFREQ tristate "BMIPS CPUfreq Driver" diff --git a/drivers/cpufreq/Kconfig.riscv b/drivers/cpufreq/Kconfig.riscv new file mode 100644 index 000000000..025c7c439 --- /dev/null +++ b/drivers/cpufreq/Kconfig.riscv @@ -0,0 +1,16 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# RISC-V CPU Frequency scaling drivers +# + +config ALLWINNER_SUN50I_CPUFREQ_NVMEM + tristate "Allwinner nvmem based SUN50I CPUFreq driver" + depends on ARCH_SUNXI + depends on NVMEM_SUNXI_SID + select PM_OPP + help + This adds the nvmem based CPUFreq driver for Allwinner + H6/D1 SoCs. + + To compile this driver as a module, choose M here: the + module will be called sun50i-cpufreq-nvmem. \ No newline at end of file From patchwork Thu Dec 14 10:33:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brandon Cheo Fusi X-Patchwork-Id: 13492747 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 B973DC4167D for ; Thu, 14 Dec 2023 10:36:01 +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=fD2rzgFFzyEkzpBzaNYFk995rEc/Wv+Wpn3AlIEcbFI=; b=wJfXbQcV5FArPJ zAM2TlqZw0v/mv1hLl/gLS4uqWsyq5tsftFK5X8fanT41dlhTobVLgn7x+4e52CVf3NMTDVjSQbww jhXXJnqXydOmqkYqawoaBGUfic5U43LZHBNMJ3SclX8genzpJbm1nFFpLmOKOZdIzFBZgbDsUeydq H8C4mz06VnqURwgPKIV+54DFeMd2oGoPIb+Cf7wIQ+E/9XRtk04z3UESTf5dbt33fEviW3egSBgmd SEATHa9yYEAJQ+UufvLTjV0s5qypVUVGsAk2r4U62U2j2CikzGnAqoDK6S+Vy0HjVM+Oir/WvDlIE WghMYAH7Oou16wYNCAwA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rDj4O-00HUqV-2A; Thu, 14 Dec 2023 10:35:56 +0000 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rDj4L-00HUoF-2w; Thu, 14 Dec 2023 10:35:55 +0000 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-3364a657564so224476f8f.0; Thu, 14 Dec 2023 02:35:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702550152; x=1703154952; darn=lists.infradead.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=/bSH5LSThTrH8jKZ5V0W7uU2b3lxsQ8a/FvDmGfwzlA=; b=MKGoZNtsDPQ1jYsK+xCu+anxbnqCvK0U47jFkTbeIoMbm7XUsihf1BeNh2i7nbI6qP 6zKB7Wez8Mx2385x5b+FcqyKBzAXju/CMsyf/YMgQw+FSMCe9bwZFbxC/zPDS9Ww7OIG dsdgjZUUJMQutAUmgwBsyth5lY3mV7PcJQAlh5MSwSStm0TTb9A07Blagciggx1K9hSc GSt792u9QmtArLuXEzipRlY/InYVzQZLv3kGnkud4S4bpPxmQ3qep4vTcLOJJKFAc6hH CpdnDh+zj85lo8Y1XvdNEjtj2GgwZtJGKL7hFJ+SFBmdZOsHaM1yR0kaIY9XP/1Y0UT4 VCyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702550152; x=1703154952; 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=/bSH5LSThTrH8jKZ5V0W7uU2b3lxsQ8a/FvDmGfwzlA=; b=EaVHXHjI21nxxaJ8tlo3Lb5XWP+D6U6yHRQTr40laUGl5+w3hQprizIn446WXEQI/r XBOu5AFxh+723Lps+PqVsXCKJL6nfsihYOxAazYE4O3mNmBZWywQ4sWQdzsQ3pFbQBkW rFcNaH5AU+/BHoM3d7vNl0pOas8T6C8NeVbIkm7g9XG1X6jBGbk4z8gk3UX2goot56Dd Zt+J7rhGuKbWvZT837ja1/phxHVH2zb6akQImbo7p2Gk0p/2rN+8h5a9KeUL6ps3HwiC Hp7qTWWspHSR7xOIZBuLrGsLLabS21kUq3/sXrhaG6giRLd+bJQXhgiUQ6ods7MFiAUC G3Iw== X-Gm-Message-State: AOJu0YwEENGzOAHxvUp4swAUKOHkGGKud6JQYfgEkqmFz3XSaeVQKeFZ MIhk+C4yylotpWefsU95p/Y= X-Google-Smtp-Source: AGHT+IEbki3k5FnEaNVZtWRBuhOkVOwOnKsRmJW5T9tQx+eZlX6USeTgoCxh9UtIGcxFBYXudVg1vw== X-Received: by 2002:a5d:4bd2:0:b0:333:4940:dd1a with SMTP id l18-20020a5d4bd2000000b003334940dd1amr4977407wrt.23.1702550152438; Thu, 14 Dec 2023 02:35:52 -0800 (PST) Received: from localhost.localdomain ([129.0.226.240]) by smtp.gmail.com with ESMTPSA id e4-20020a5d65c4000000b003333ed23356sm15849623wrw.4.2023.12.14.02.35.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 02:35:51 -0800 (PST) From: Brandon Cheo Fusi To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Viresh Kumar , Yangtao Li Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Brandon Cheo Fusi Subject: [PATCH 5/5] cpufreq: Make sun50i h6 cpufreq Kconfig option generic Date: Thu, 14 Dec 2023 11:33:42 +0100 Message-Id: <20231214103342.30775-6-fusibrandon13@gmail.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231214103342.30775-1-fusibrandon13@gmail.com> References: <20231214103342.30775-1-fusibrandon13@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231214_023553_963591_AECAC1FF X-CRM114-Status: GOOD ( 11.73 ) X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Remove the 'ARM_' prefix from the Allwinner SUN50I cpufreq driver Kconfig.arm option as that driver can support the D1, a RISC-V chip. Signed-off-by: Brandon Cheo Fusi --- drivers/cpufreq/Kconfig.arm | 4 ++-- drivers/cpufreq/Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm index f91160689..510604781 100644 --- a/drivers/cpufreq/Kconfig.arm +++ b/drivers/cpufreq/Kconfig.arm @@ -29,14 +29,14 @@ config ACPI_CPPC_CPUFREQ_FIE If in doubt, say N. -config ARM_ALLWINNER_SUN50I_CPUFREQ_NVMEM +config ALLWINNER_SUN50I_CPUFREQ_NVMEM tristate "Allwinner nvmem based SUN50I CPUFreq driver" depends on ARCH_SUNXI depends on NVMEM_SUNXI_SID select PM_OPP help This adds the nvmem based CPUFreq driver for Allwinner - h6 SoC. + H6/D1 SoCs. To compile this driver as a module, choose M here: the module will be called sun50i-cpufreq-nvmem. diff --git a/drivers/cpufreq/Makefile b/drivers/cpufreq/Makefile index 8d141c71b..110b676d2 100644 --- a/drivers/cpufreq/Makefile +++ b/drivers/cpufreq/Makefile @@ -78,7 +78,7 @@ obj-$(CONFIG_ARM_SCMI_CPUFREQ) += scmi-cpufreq.o obj-$(CONFIG_ARM_SCPI_CPUFREQ) += scpi-cpufreq.o obj-$(CONFIG_ARM_SPEAR_CPUFREQ) += spear-cpufreq.o obj-$(CONFIG_ARM_STI_CPUFREQ) += sti-cpufreq.o -obj-$(CONFIG_ARM_ALLWINNER_SUN50I_CPUFREQ_NVMEM) += sun50i-cpufreq-nvmem.o +obj-$(CONFIG_ALLWINNER_SUN50I_CPUFREQ_NVMEM) += sun50i-cpufreq-nvmem.o obj-$(CONFIG_ARM_TEGRA20_CPUFREQ) += tegra20-cpufreq.o obj-$(CONFIG_ARM_TEGRA124_CPUFREQ) += tegra124-cpufreq.o obj-$(CONFIG_ARM_TEGRA186_CPUFREQ) += tegra186-cpufreq.o