From patchwork Mon Sep 2 09:32:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dhruva Gole X-Patchwork-Id: 13786963 X-Patchwork-Delegate: viresh.linux@gmail.com Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2B9691D2793; Mon, 2 Sep 2024 09:32:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725269568; cv=none; b=eGsdA/FLHqROgYeHK1cmnFIoD0aqlZ0KQqbK8QSlg1GFvUO8APXppzjL+yRXi+A3kK5k+tRwo8/V50gpFC8S1YC6YMwqobbAho5JCHp5LlayrlQCj8ZcVcRg5sGgSgxLwwRcTbZ1NEtw1poa8V/1ZyeKS6+jvXZz1bNm5g09kzA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725269568; c=relaxed/simple; bh=smU0CmR/YIGBghRpgBIGspDNkt/834SWHOMxYhMPpxo=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=UtSAZfEApri/UrHmCnyUu7/71fNU0V4GPkWGgI0Bs0bQiW2Yq4a7VDTIRK5VfU8ToE+rouOQik/HvrNzjMs0SeoLBVIQSBmcaDagWG7wmPmsc8mE+K4envuSPOFiudzCem7JUKuSrmwIEhO9BRgoe1t/mVGoU8G3/bo4848u2j8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=thji3e+5; arc=none smtp.client-ip=198.47.19.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="thji3e+5" Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 4829Wegl012310; Mon, 2 Sep 2024 04:32:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1725269560; bh=bJLeRSS1uEsPYeV9PuMclL5R+nNKpStErsRZi/a2XEs=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=thji3e+5DwCbECQANU6bo7xdH4oZGeEbX+1FYvlE46Uk/XG6Xz6Zmij+D5k3nSVzN O5JRPHMOyD9kMOWxSl88awK1JcRJz2Wf5IiQyw3/9IDNaDgRdj4XP49I2RQ4XfpvSC dsM5Ulbqs5P902Z428G7UttfdDOy9oNTH5mZR24o= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 4829We6w010000 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 2 Sep 2024 04:32:40 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 2 Sep 2024 04:32:39 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 2 Sep 2024 04:32:39 -0500 Received: from lcpd911.dhcp.ti.com (lcpd911.dhcp.ti.com [172.24.227.68]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 4829WT7K109047; Mon, 2 Sep 2024 04:32:36 -0500 From: Dhruva Gole To: "Rafael J . Wysocki" , Viresh Kumar , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: Nishanth Menon , Vignesh Raghavendra , , , , , , , Dhruva Gole Subject: [PATCH 1/2] arm64: dts: ti: k3-am62: use opp_efuse_table for opp-table syscon Date: Mon, 2 Sep 2024 15:02:21 +0530 Message-ID: <20240902093222.2828345-2-d-gole@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240902093222.2828345-1-d-gole@ti.com> References: <20240902093222.2828345-1-d-gole@ti.com> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Add another entry in the wkup_conf for the syscon node, and then use that for the syscon in opp-table. Marking entire wkup_conf as "syscon", "simple-mfd" is wrong and needs to be addressed similar to how other child-nodes in wkup_conf are implemented in the same file. Signed-off-by: Dhruva Gole --- This patch was sent previously here [1]. However there were some fixes needed in the driver to make it work which have to go in as well. The dependencies have been mentioned in the coverletter and a driver patch that needs to go in after this patch is included as part of this series itself. [1] https://lore.kernel.org/all/20240827080007.2097276-1-d-gole@ti.com/ Cc: Bryan Brattlof Cc: Vignesh Raghavendra Cc: Vibhore Vardhan --- arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi | 7 ++++++- arch/arm64/boot/dts/ti/k3-am625.dtsi | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi index e0afafd532a5..b2b65e31c7cf 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-wakeup.dtsi @@ -10,7 +10,7 @@ &cbass_wakeup { wkup_conf: syscon@43000000 { bootph-all; - compatible = "syscon", "simple-mfd"; + compatible = "simple-bus"; reg = <0x00 0x43000000 0x00 0x20000>; #address-cells = <1>; #size-cells = <1>; @@ -22,6 +22,11 @@ chipid: chipid@14 { reg = <0x14 0x4>; }; + opp_efuse_table: syscon@18 { + compatible = "ti,am62-opp-efuse-table", "syscon"; + reg = <0x18 0x4>; + }; + cpsw_mac_syscon: ethernet-mac-syscon@200 { compatible = "ti,am62p-cpsw-mac-efuse", "syscon"; reg = <0x200 0x8>; diff --git a/arch/arm64/boot/dts/ti/k3-am625.dtsi b/arch/arm64/boot/dts/ti/k3-am625.dtsi index c3d1db47dc9f..c249883a8a8d 100644 --- a/arch/arm64/boot/dts/ti/k3-am625.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am625.dtsi @@ -108,7 +108,7 @@ cpu3: cpu@3 { a53_opp_table: opp-table { compatible = "operating-points-v2-ti-cpu"; opp-shared; - syscon = <&wkup_conf>; + syscon = <&opp_efuse_table>; opp-200000000 { opp-hz = /bits/ 64 <200000000>; From patchwork Mon Sep 2 09:32:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dhruva Gole X-Patchwork-Id: 13786964 X-Patchwork-Delegate: viresh.linux@gmail.com Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 99A9A1D2F4A; Mon, 2 Sep 2024 09:32:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725269573; cv=none; b=k6wGjOTm/sRDcHo4VSf97gyuR/VHb1ctltgNaCI0+X9P4+no9NcjDgw03NvXRlpo6D5+OMQxOeL22FJTxiT/m2/nx2QImzd7W9TMEL5VEuHE+ZdJzt7mhGksTqHKHgjAW6ng0I2TZ+2EARry/W6uvSgVR/dUvHe15keBjtijjdg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725269573; c=relaxed/simple; bh=nq46uZJLcEoJhJX/Y3rLACiJqMacu/+fOzH+Mto/gsg=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Tl5yu/Q+HlxSgggfVmAUJytOrQU//B4R77xDlPI1hPFbZArO1lJ6wJ0SO9ZgN095AmEzVERjMJl1y2JWE4mTfTe4/9qxmkVZBFaBIBt84EfC0UqiO7QM1pOU0TAQ4VKx/DDTPbO3iggfk3917RDJ6s6AoEuWq0dS9gq/4P/11fw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=KJLBDOTw; arc=none smtp.client-ip=198.47.23.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="KJLBDOTw" Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 4829WjF9074521; Mon, 2 Sep 2024 04:32:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1725269565; bh=gaS91yKXO7G1zpchqnIy09lfpA2W8HvrlWUkg/C8O/I=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=KJLBDOTwT80SpNIswegFvYk9YfEEee6NleeLO7s1p6E3Z+4wtjISeiV34d61mnWAg gfwKMh243M6IUILgIKWWOjmE/GydR+VSnkAywx2SCbvRuK6FEXiS4MUqLHgPlfeng6 P5eNKxfP4BGH/g+/bIeRTlHzb0ZlzTT+oMDrM2S4= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTP id 4829WjRB037779; Mon, 2 Sep 2024 04:32:45 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 2 Sep 2024 04:32:44 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 2 Sep 2024 04:32:44 -0500 Received: from lcpd911.dhcp.ti.com (lcpd911.dhcp.ti.com [172.24.227.68]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 4829WT7L109047; Mon, 2 Sep 2024 04:32:41 -0500 From: Dhruva Gole To: "Rafael J . Wysocki" , Viresh Kumar , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: Nishanth Menon , Vignesh Raghavendra , , , , , , , Dhruva Gole Subject: [PATCH 2/2] cpufreq: ti-cpufreq: Make the AM625 efuse_offset 0 Date: Mon, 2 Sep 2024 15:02:22 +0530 Message-ID: <20240902093222.2828345-3-d-gole@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240902093222.2828345-1-d-gole@ti.com> References: <20240902093222.2828345-1-d-gole@ti.com> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Since the efuse_offset is basically derived from the syscon node, we no longer need to use any efuse_offset for AM625. This is in line with how the AM62Ax and AM62Px are already doing. Signed-off-by: Dhruva Gole --- drivers/cpufreq/ti-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/ti-cpufreq.c b/drivers/cpufreq/ti-cpufreq.c index ba621ce1cdda..98e320832f78 100644 --- a/drivers/cpufreq/ti-cpufreq.c +++ b/drivers/cpufreq/ti-cpufreq.c @@ -313,7 +313,7 @@ static const struct soc_device_attribute k3_cpufreq_soc[] = { static struct ti_cpufreq_soc_data am625_soc_data = { .efuse_xlate = am625_efuse_xlate, - .efuse_offset = 0x0018, + .efuse_offset = 0x0, .efuse_mask = 0x07c0, .efuse_shift = 0x6, .rev_offset = 0x0014,