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>;