From patchwork Tue Jun 25 18:53:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Garrett Giordano X-Patchwork-Id: 13711830 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 D7958C2BBCA for ; Tue, 25 Jun 2024 18:54:48 +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:MIME-Version:Content-Type: Content-Transfer-Encoding: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:In-Reply-To:References:List-Owner; bh=/GzxWTZAlaE9sSZPFpOubY3prboiJdxPooethzp3Aa0=; b=P/r51EqdJ+iQgLan0r1VmortJY xvELBcYIHg8HoXRvLCEmfMXHjgvt0pqBVMUnayisYEXJHpxNiBoOvTR0WhtXHNor/LAxxkSbyuL/A KmGdTF14mzD/NxzMlvRwnPL1JYudfbYRxs6MxqvcGHjQn8Ae3fXn74k0+AgnE8NMAimfrDskrXnxb O81QjMsz537pfo4XJ3y37D4wM/VPl7BvJQI8laCeoTM3ONhhGn1zFEk0ANVqPgnwJgefxK8GzgGOb +WFo5CxgmdgnPSU7/WEDH+ca5RTPF2YppkjE1nRBApI8FRa+29WCZHJcVzBBMdZHJgFuNE+uumyr+ 0NxbdLBQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMBJL-00000004AhA-2JrP; Tue, 25 Jun 2024 18:54:35 +0000 Received: from mail-mw2nam10on20711.outbound.protection.outlook.com ([2a01:111:f403:2412::711] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMBJE-00000004Ae3-3Rb7 for linux-arm-kernel@lists.infradead.org; Tue, 25 Jun 2024 18:54:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KDFiaq/VE5UTxrDp/erjvOMPHMV/YxCtPucfQ/prymwdYy33K8LIaVk0m03cP++ZbpL8/O+ZukiKHXm0KYabvx+FfMvCF0JNpHF6Apvt3D10qnSwaS+rMG6GTRsJtNd5+pkQvJ15ewgjPJ/uWxBpMFH0C928HmdYLV8SCHEYyIaOPa7oEbrJOfkbq00eASOKdcOR0tNn89LPepxyxOYyv/tWAmvgAPwWYO7RICG6e56yDJPuFM3KT3s4nWKI1HTZ39pV+nilaHOYFV4arsFl7ZkZs5X47darjBFffrs7AV7T9D7/S4P4F1Fp11ArMWKPNo4sr/ze9z+LbteptiveXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/GzxWTZAlaE9sSZPFpOubY3prboiJdxPooethzp3Aa0=; b=TBfbdaaAB6vsiirgvFl+4k/maEsqIElXkyegucprKrlo1ZcyDiX762e49wB3pZEmvSPq+ctgnR4pbn0UP3p0c9fOQNF2d8FLvJT21ebAU06hPzt9EiNdUSmMmXDyE3pSCyNDrQxtE6pqtk6O3I/Oimkhfo0e9vHoXmcsApBjPHzRcFud3SV2inU1R/O+3Otai9Z4oXG748XyTMU/swFYVxuFV9vO5C52S+BYd3PBdCHpYLcFMxbxCiE7WuNA9bL1KdJKuipc2OPI1GVQk9XshJAOOgMBNflv2w5+3co4JNQr0WsGqyCCGRWliy+8mX9KTNRSzvwmMbrhJow3zab0Vg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=phytec.com; dmarc=pass action=none header.from=phytec.com; dkim=pass header.d=phytec.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=phytec.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/GzxWTZAlaE9sSZPFpOubY3prboiJdxPooethzp3Aa0=; b=fuLSqVSehMHvXSHVe9hgkPd2fvn1o1ZCNIHGJIEXpcuvL6pOxn0TRMCDOMUHlEviHHiYYEHhMGqB8jmqYqAiceA+hbwHZgCRcxyn9TqZEjLz2BWx/IrWLJ9bfqWNy31DcCVnN/m819Aks5UrGHqH1dkHwB3GacontifdVlWUePU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=phytec.com; Received: from SJ2PR22MB4354.namprd22.prod.outlook.com (2603:10b6:a03:537::8) by PH7PR22MB4017.namprd22.prod.outlook.com (2603:10b6:510:242::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.25; Tue, 25 Jun 2024 18:54:16 +0000 Received: from SJ2PR22MB4354.namprd22.prod.outlook.com ([fe80::789c:e41e:1367:383d]) by SJ2PR22MB4354.namprd22.prod.outlook.com ([fe80::789c:e41e:1367:383d%3]) with mapi id 15.20.7698.025; Tue, 25 Jun 2024 18:54:16 +0000 From: Garrett Giordano To: nm@ti.com, vigneshr@ti.com, kristo@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, w.egorov@phytec.de Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, upstream@lists.phytec.de Subject: [PATCH 1/4] arm64: dts: ti: k3-am62a: Enable AUDIO_REFCLKx Date: Tue, 25 Jun 2024 11:53:59 -0700 Message-Id: <20240625185402.1896623-1-ggiordano@phytec.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: CH2PR16CA0021.namprd16.prod.outlook.com (2603:10b6:610:50::31) To SJ2PR22MB4354.namprd22.prod.outlook.com (2603:10b6:a03:537::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR22MB4354:EE_|PH7PR22MB4017:EE_ X-MS-Office365-Filtering-Correlation-Id: 8e4a3e5f-8a6e-4d21-094d-08dc9548360c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230038|366014|52116012|376012|7416012|1800799022|38350700012; X-Microsoft-Antispam-Message-Info: t/r5+iUbcR10zDfPPzlWmCesxC5TWf90u4vS3U7FJoVECk3ykpWrkWWnZZssdtWp4ifzP2i+0Nc8+VXMSBTrKcCeDlGpGDxCY/VC1g1pqQJ1jV/1BcmR1hII8yKXCFmBJaP8m7AjPg9qrynYBupVkxO6dpeM4e6PYg6rFNDVlBq1vbuSGaNgS/N5fEZwqR66Ph0ZWpm+7elfF7BHmM0zTb2dudIr0I9wZE4rFw9h2gaF1ApMHg6dbvHXENJMlTUaE6curbGNxW8nz5TU2fM1Aq5RigjMoXzsvaodUnZ9kKNLChRfzxXVua8DZCe6sSfnhU9VdQZOG6SVN1UW5ePk3x+ySdBDacgPidh29b2iUvMlQ+1NQHo1xMRKXbSZshKkpT+2bBV27d8JlmeJPcBM6uykwaNAdEcp+15rAp38tRQlv1aJGkbf8KBoDwJl8MK21FCiSpNd6SQ06ff+fduDHO3WKYPmEwZC//UIDudWSlvXMlsGvtq5F1qVqVcSdzYU/LmQTzpVC3wbxMiBTOEg3l+HEumwKSb59AxHWAywVHSti+0aIudxEtF0UNcl4ryDFzh5xIN4ku4vGyym9/3HWb/D7/2Z+Vq053sTllR8DBqJTkxAmf7Y3ICJz2VIoOszoahgzT1PnL9e4A39nj8OnMjdetNOPx8yJIZfotKyfgdomOk+YHbKPoppPZe1RluixTWbt9rzmhFcyoveh6Oxb7oVaoTq/JcjQmbRcJnz0sV4okC9N8bNfZFmWLNW/iXYf/SVotOHcH0QWYqai+6Yd/Xf58KrhLC6oEV7t96gKJPojuf4GoL3PalGQr07B3tPXYWAizbPpsmr449+Jhz2XNBlCJJUf85keem/tonCNb8a0WAh+cuyZY866NTeQ5Ux0/lO37PCtqwczIO3W1+mDumDL704BcQ51IwAQBjBde1165nJ1x+rSg+OGd6xwu2MPKkAeuEZrIFEL2jWqpLtbaokXYcRsZnEfVMHqv54QzTL3XYgsIj5PhxPgy63wtS+1bB363M+5TJyWNeXpItQOX7Epzm/skQDpGUY+sW8yKKijPDaazqBUmAUNC7prgxOKuZJmmofemUaRvxf3p5MqApZouVy58PGUH7g/Agwyfex3MLPcJyFDFK3G/dL1iM8/JwIELpjW2Zn2VU9to49QCAbxYpKXFiCa9n/ZUW/oEWO9Hywwq9K98tDn2YjC2g+kiRwXefyY5rrsuVeggAnRpQP/50tJWKdAMxcdMwGr8/AOobFxCmvTiBqD/4imGNCEk/I0ghQOF7lOE3wV8InjRzmufpeJn4saiOlk/wIT0FtkI9xiuyNgc+7VT8VMTzk X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ2PR22MB4354.namprd22.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230038)(366014)(52116012)(376012)(7416012)(1800799022)(38350700012);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /+hWjAp74D62+DbWK2p9GDmyaMvnIiR7Ig83B4wnlBE6+gk1R9uhSDytERKj4ygfQaQJyKEoPymquNzI0Yq0gci8joVg0L51gds11c5YzEpALgsoqaxWt7dvxWpTYWD2XBitx9jgtA2pxJN1cNorMpOliL+QhBfNRE/LM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jPf3wyobhOIctjjiCrh22LKimVdAP/ZerfIN6PD8W2xOIy4LM1ZNoHHDIbyY9rpz2YXBGEpyEnOPivwDSE/0bhSx+k0cgqZQ8IBJdYMhP7j28kSn1XMDTchvHfaB5yo7z6qdMQw4PnCZAtVXhJc76iff894junn9uDuCBtIlrVNEmD69wLTNMfuX8t0dP+T+73YK96DBTvSeBKC48UmHX2QHLyF5O3JB19NMpTYzse3cSYC/MVJL95e9SM51rjKMDO8B/Brmf4qJcF1iQBomA8dcz0I0DLaCN/OS6kbsUjupqjwJSuMZ5QAayyyOiBFds50cO158DrAiURhnFiozYNnU94EgGqoK29yV0MRmzL+F X-OriginatorOrg: phytec.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8e4a3e5f-8a6e-4d21-094d-08dc9548360c X-MS-Exchange-CrossTenant-AuthSource: SJ2PR22MB4354.namprd22.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jun 2024 18:54:15.9029 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 67bcab1a-5db0-4ee8-86f4-1533d0b4b5c7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Dn5X0LSn/7OCZKyGqu88+is2M93L/ui8XyL5RkvIZwB1yrvk5hjqkyd4cneptfXvTQht36nbMvPih4k4LCjIQw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR22MB4017 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240625_115429_024224_5045A452 X-CRM114-Status: UNSURE ( 8.99 ) X-CRM114-Notice: Please train this message. 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 On AM62a SoCs the AUDIO_REFCLKx clocks can be used as an input to external peripherals when configured through CTRL_MMR, so add the clock nodes. Based on: Link: https://lore.kernel.org/lkml/20230807202159.13095-2-francesco@dolcini.it/ Signed-off-by: Garrett Giordano --- arch/arm64/boot/dts/ti/k3-am62a-main.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi index bf9c2d9c6439..2a6e333f752c 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi @@ -59,6 +59,24 @@ epwm_tbclk: clock-controller@4130 { reg = <0x4130 0x4>; #clock-cells = <1>; }; + + audio_refclk0: clock-controller@82e0 { + compatible = "ti,am62-audio-refclk"; + reg = <0x82e0 0x4>; + clocks = <&k3_clks 157 0>; + assigned-clocks = <&k3_clks 157 0>; + assigned-clock-parents = <&k3_clks 157 8>; + #clock-cells = <0>; + }; + + audio_refclk1: clock-controller@82e4 { + compatible = "ti,am62-audio-refclk"; + reg = <0x82e4 0x4>; + clocks = <&k3_clks 157 10>; + assigned-clocks = <&k3_clks 157 10>; + assigned-clock-parents = <&k3_clks 157 18>; + #clock-cells = <0>; + }; }; dmss: bus@48000000 {