From patchwork Wed Jun 26 15:52:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Garrett Giordano X-Patchwork-Id: 13713144 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 B9CC5C27C4F for ; Wed, 26 Jun 2024 15:54:00 +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=zzdSY55biEmkVp84Pe715Qjxdp fCRvMilg0qE+W14RyoTjpeL/H5KV2vtROn8HGZkh5vxZd0rFea72r2SEDxjhDv/ZMflZlOauMZbCJ xHW7HiUH7cA+jPdvONFNkWpmQ/ondAVRFW4g5C241pSk4gp/39p3QVxIAM8peMBQo3kmxiUrIAdBB FZutaOs6lUnD+R8NM19mbssVjFgvleXMYH2ZPBXhsNmqowRtj+bHqVCfgQLUMKQOesS4l1A6rnU2V G2VGvbbudOiNazBiDqzK9kGKmzipu1sMq6SvAAS3d+CCq2zkuVmc1l8Ceb6sthjrR6WW93xrdxN2f OlxMnIlQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMUxu-00000007TWI-1Tel; Wed, 26 Jun 2024 15:53:46 +0000 Received: from mail-bn1nam02on2072f.outbound.protection.outlook.com ([2a01:111:f403:2407::72f] helo=NAM02-BN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMUxa-00000007TNY-2D0r for linux-arm-kernel@lists.infradead.org; Wed, 26 Jun 2024 15:53:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lWw8LKI2mRZzEt5ccAj706xHGT1X8z5L35aM/azmgB7K0ErJ/uya6nStomeNc9Kq2a0kItCtJW/oHmYblu4qFJmAcpMNMoGWm5BDn1K6PnPcMRDNQ5mDKU7fsI3/GkUETeP1FA4F6EHFRMrUaq2YCX85TdhUwjJlYCUt8djO1PXUJCnSMxAmTK4zYQd7ziwIwgJNSipvvmW38HAzBGCvHLhPVkg2YRMz0I0KwHaBj8gIkbmK1Ym1moipEpQFIYZNBaHo0cduTZsNImm6Seg8jHZUdG/2/Fz0tWsi6reeW0y6JBCcEH5VtJkc+kM2IVQmSL4q4t1O0fihDwRPJkSCow== 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=iA1+dOSQ5xZjzqVV/GvY4vkd2tpHbYjjdGG7yKxjSA1QJzlpppZoD3Lf5w5v4M9prvA20KeT9skjPybjcy0bPBkhG1jBIUFiLf0Dqx/7bsCxXsDbV8eVLWVoZ3ONt8mlLVxEjG3yxPZyTY/HGusOkGaYK+bdj7EYBE/EyI4sWs7zsAbUmWvQvzbP7IEsgnqkS6v0ZpTrijDotTaz94j9aAHKxDTngULeClFbqN3K+yroGUigolbGsM7DSc1L+INX/o3GnFdH80UwwppHyUSabJhvSOFgJc0dT3NjY9LeDJAtOHCPTzL3bcTLcfvxRFLZ16LJQALyDzpxTKpfbhS4Aw== 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=RDqCEx7Za3lM+hYVv+Ka6G55KQ6LXDmLO3uCUTOkKnsSl1hIG6KSTH3ST3LcHTrvS/Peo3WZVRTmUGqYr5iZebjqwKecX0BLLOXfSlwU2gKyucJUzUvGVdpiyc3i3UCMwBrAlhQrICteN2PAuEspZdrUQ9S3NqK6xqTO/p2cs1g= 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 IA0PR22MB4564.namprd22.prod.outlook.com (2603:10b6:208:48f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.32; Wed, 26 Jun 2024 15:53:13 +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; Wed, 26 Jun 2024 15:53:13 +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 v2 1/4] arm64: dts: ti: k3-am62a: Enable AUDIO_REFCLKx Date: Wed, 26 Jun 2024 08:52:41 -0700 Message-Id: <20240626155244.3311436-1-ggiordano@phytec.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: CH0PR08CA0030.namprd08.prod.outlook.com (2603:10b6:610:33::35) To SJ2PR22MB4354.namprd22.prod.outlook.com (2603:10b6:a03:537::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR22MB4354:EE_|IA0PR22MB4564:EE_ X-MS-Office365-Filtering-Correlation-Id: 67fcb343-72f3-40ec-4f35-08dc95f815fc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230038|366014|1800799022|52116012|376012|7416012|38350700012; X-Microsoft-Antispam-Message-Info: g4n9QAYVzwY8lyE489KoTYQ+jDbTzCvQuoEdr/lp+tJDsNKpCT/dvEZv4dgdeFjuFsEVFPmk0RobTvIMkpzKct+PK+/ysBBpdNToPRFOOhAwnSUnQxcGkWXQ2sZfGnytJR65uIyP0f21pCqZrES4bX66muKTLBmUCOcQFWWsxXRRcyVprldKKqaPg9HFAU6SYbDjgInCi1QUIC4Sn3MAXZqaDT/kK8lmMXF9H2C2LDT04lcduLn5PP0v0zwLH2pQlRiyTRw52n3fFr5xgsiAtkVlGhaxJ/z8rIxYA3qvDxqC97E44keSySnswDUKW7aCm3QHXtS6FCM6Dp1dnU86RfqrmEINtnZIGLBaiZwT04Uv7DCkGz1Dff4HbvKBKj31lNqsOLwzWdBsTCNLv0QtSLot4CMB1sqD8GhTeA2loMPFexEanZozueen2GTzR6t1YysuiWELazljzwlp8wGol/5wt06TffJyjBlNBWkWEEJej+xWhwVHCmwsqo2WtNJ7wP11TCBEj1W0V7U6jQ6aYZ8sReBZRKj8eWE4W/jgI+nl5udB/SVhUs6L84Y4LhXFyoYuq/oVpzxuhd75pAyTMyD87S4LoMMxnixhhqi6VJ0lgUn4MOqxU1an7iPqzHv+3+Pgfp7V393tG0dvhvv9BBVOs5/yBm8iKJ+DUFe3I04d9v/KiTapC/S/Z/UKg8rFHoroBBqreaucFX1MAo95D66lnYTCFnOGahNIujhkj25eBVVlDeVum6cEXVVqothC6JqsECRNRocEMJ4bLu9eY1x9zd6mM2rt7erO0jg3kFVLi4ibi94hzYF4S1OL/s52zJVgc3JiZBAa205Ez+wLlvgXumf0lC0hvH5ObkdknAcixOhh69TGDwzhYRMVUxLAwGtIPyUgc7ZLRzF2f7pafB0GLHgDfi6zaJAgqYXYC072D9lepSc9EOSff1Rmlh/GsrvhUha9yjpw4VpFIZRB2IDK7Xkv/jmrXifBiqWbEIu25Ky99WF8HV9v3QJobZOj36sZYYDpWVUPQeGhS5Yk6zOAF7DYtUv6RaQs2fxf4bKXhcOaqWA6ENSxAhj1c2M8273FOeu9LcAUE479F6XRWbZDLc8H6rGRVVir1jfw8drSMWCNaUalun1xrSc4rZFrJXVlrfiN9WSyamKmvY2GpMQPNJsaFpHuxylKj/m4Cg4uLfFJkoEZR2lWphpmCz8JWTpxxqxEljUkJAMJq2mKT7kFdWRDx1lUQrdD4arftDTxiwKw3Ut5B5wH343A/3telzhxvgZq5BNZSe4CLjESvLfgGxavevViEOvjLnG5sZNYfDAQeHb7vUoXQnhRkDrw 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)(1800799022)(52116012)(376012)(7416012)(38350700012);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: MbwmENupOtpbaNgdJIuDgJWhjJEhtw+b+WdHYyaXoo9SYz/X2IRG9Ee8D64mvr/Rktf3Bj+I4B8jQP1eY97iYxMtJylD/zUnc4u/qYKkvR84P3YzWzGdrhaBoT3X4IW3yu5CE27o9++Jm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wf394lAg7RfnJ8ilkEC2cjrzS1KdLBGg++ULbHH/3a30mZvJG51iZRHUjQBwixWdh+vk/D6r3TSfXpB8yNVeExfbSYwyPi0qLqGo2eMmbkV5+Lickf28F1CNgoqILubVTE6D3JCGWaS2flrY/CMw5m5OYTrWFD1eHazseM8k8hgmvTlGNlq3ctWcZW3LjgS6pUWsbpnpxTEyrikr/UhIWNNU2OoNpxxokJAthR80K4553RNaBurQVcAUNpmchV0LVvmBVDyXHPwnNw2QXbgYLxgHPjhY5B6vuoGB+x3sp3/bzAsPWE05dsslU4b59hKOtxJyGr6mBms/TNM/vRfHpiG0XWzzP9DUksJ1AP3AENdAPkBa0168UEH1rsG4PLe6q5RRvOpND X-OriginatorOrg: phytec.com X-MS-Exchange-CrossTenant-Network-Message-Id: 67fcb343-72f3-40ec-4f35-08dc95f815fc X-MS-Exchange-CrossTenant-AuthSource: SJ2PR22MB4354.namprd22.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2024 15:53:13.4927 (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: FQhL+tImOEa5lxPg7pG+fcOrbfCmIYWMixraDkxXvjAj/ObcogYJ17qxgm/sL+3xu/8aYgA7XJEIR5OuE2qTRA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR22MB4564 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240626_085326_583334_8E0B4424 X-CRM114-Status: UNSURE ( 8.63 ) 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 {