Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp1778117rwb; Sun, 6 Aug 2023 02:40:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGKjikowfRLCdu2nLRQZrv2r2mA7YqteXn0AwMRkS+sL5dJr2FyfccKP+lXSLmbknCkI/x7 X-Received: by 2002:a17:902:a613:b0:1bc:2bd:8523 with SMTP id u19-20020a170902a61300b001bc02bd8523mr4824715plq.24.1691314805178; Sun, 06 Aug 2023 02:40:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691314805; cv=none; d=google.com; s=arc-20160816; b=ZY9mZ9OP75gIvAt4ERMJ7i5Ab3gKwVVRtvQ6yl8FQ20wCDEHLeCf3lgHsJH1u01QH1 v0TStI2bEDktiJ5GO8hHEYJxXGETgb9b2qs4ksoNOO2k+WntrwSLQ0xAQNG6VH6BXPXk /7hyI7hUaQRhm+/T6cyC09hcYvX7SFq77nWHXucudvlLpl11iBU6AYRQy2tly5K6/kc3 KKXbNi/nwDCbv6s0zW9pnZCdG6b/pa+etAs3nhYqXmlPGIKI4RRVdeJKF4rh4JA3yuJG U6P/Nw/qEAJYes6VN30gF8OC2UVoOfeUc/cvg2gXlyhqjpl3afyqixYnpgxbMTscO3IO tfjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=T6mvNrk0haOLYaXTXLS/491vCrOf3wacF1Ts5UnaHOQ=; fh=kEyOfiXD5Xz1QIMrU63fnHv4zlFI5uPSfoktbLe4MFQ=; b=R2WtLD5pjllDBP9/cA0/La990z8xp8UryjIqs5GO/AhZD41MXF44equgDOfgZ0U3y+ Ctl3DfXfWNEvCIGKLJX3OUQPob9eDNA0iUNjVJEPQ5qZvcfEq51eLfiCvG6Bmh2s4y5I Y5Pn8lktPTN4DA1OEPrVm6gOxhOCPHmC4L05bpa5bkfYXh01MJzmVWsDGKxQmmaOVC+i 0P7CtwkbkC/LnvGA5Yw571twErxWC7TwSp8NUJfT+61Nvrl/a+Sak1PZxWcpM373RLXS thxBPvAi6wMuLbOTzzR5OkuMl7YVcBz6X+cNiqgZ2wxP1YWkrqFLtQDz7kt9n+pFbGzh rwNQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u16-20020a17090341d000b001b8a67f1c10si4399447ple.468.2023.08.06.02.39.53; Sun, 06 Aug 2023 02:40:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230120AbjHFIvj (ORCPT + 99 others); Sun, 6 Aug 2023 04:51:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230035AbjHFIvW (ORCPT ); Sun, 6 Aug 2023 04:51:22 -0400 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F3481FCD; Sun, 6 Aug 2023 01:51:20 -0700 (PDT) Received: from francesco-nb.pivistrello.it (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 566FE1F8F8; Sun, 6 Aug 2023 10:51:18 +0200 (CEST) From: Francesco Dolcini To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Jai Luthra , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Francesco Dolcini Subject: [PATCH v2 1/4] arm64: dts: ti: k3-am62x: Enable AUDIO_REFCLKx Date: Sun, 6 Aug 2023 10:51:10 +0200 Message-Id: <20230806085113.15373-2-francesco@dolcini.it> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230806085113.15373-1-francesco@dolcini.it> References: <20230806085113.15373-1-francesco@dolcini.it> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jai Luthra On AM62-based SoCs the AUDIO_REFCLKx clocks can be used as an input to external peripherals when configured through CTRL_MMR, so add the clock nodes. Signed-off-by: Jai Luthra Signed-off-by: Francesco Dolcini --- v2: - s/clock/clock-controller/ on audio refclk nodes name. --- arch/arm64/boot/dts/ti/k3-am62-main.dtsi | 18 ++++++++++++++++++ arch/arm64/boot/dts/ti/k3-am62a-main.dtsi | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi index ef90b2bc81eb..5f19ef46d44c 100644 --- a/arch/arm64/boot/dts/ti/k3-am62-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62-main.dtsi @@ -60,6 +60,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 { diff --git a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi index 3198af08fb9f..75ea7202e071 100644 --- a/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62a-main.dtsi @@ -60,6 +60,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 { -- 2.25.1