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: 13786958 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 2794FCA0ED3 for ; Mon, 2 Sep 2024 09:34:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding: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=bJLeRSS1uEsPYeV9PuMclL5R+nNKpStErsRZi/a2XEs=; b=dFnaVfjq08jWYYuZ7pVG0Z8fnE QC87/B35P0gVp0uYqiplaOrVvJhreYTpHIn+/vVVlQkd0qQINTP87qUDzxQxiuzaL4rTYNN5M2v7E RULRmx1SepG7ShkMWEufWPqrcubhcuI4b3798RxxnUBf18KEMe77bZdGj5lcBfkDZGi4hiaOtehPN V38NhS+IHkKhb1fMz8NLFWqTTVFcTRHGVhmDjWL9wiRUCxG299DcsgL7vbFRf4bls5/X16DtME7Xv QnsgOfWZ1EX5aFw/oQQYSk49zeixXZJxoHlffsl3hs6AF59/hbtDhmEBZd65zIb+GRgbzwznG5n/m UVdxPR8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sl3S9-0000000DipE-3rxD; Mon, 02 Sep 2024 09:34:29 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sl3QS-0000000DiPZ-3G9Q for linux-arm-kernel@lists.infradead.org; Mon, 02 Sep 2024 09:32:46 +0000 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> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240902_023244_928678_CA029742 X-CRM114-Status: GOOD ( 17.63 ) 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 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>;