Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4501066rwb; Mon, 31 Jul 2023 07:50:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlGDtVH8dNbH5lJDyBDwijfuqGKJ6hrYNkDQCdmmjsNdWSGUeLG1ODRX/71rY/WgPowQeM3G X-Received: by 2002:a05:6830:da:b0:6b9:8ff8:e87c with SMTP id x26-20020a05683000da00b006b98ff8e87cmr10662251oto.24.1690815013756; Mon, 31 Jul 2023 07:50:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690815013; cv=none; d=google.com; s=arc-20160816; b=gSP8h7hvdhhYI/8hUytMVWGz403RdPB7SZrGyXB3V0uRu9X3faezGehDsEGfhEQ+tO 69Pe3riORtE9Wtm7THyvjRrcDRc/ilL3B+X6k5uHZTwKyxfsAkiLrhpEeuO0SIWpC5ST PIliE/F0koMGd6TiaQ3cUYP+W4Dcpi5kcCK+ij7u2/V1/oR5xM+tHDeEr6SrRNZ88zxY C7APWhKL28qDdIjfHXiX/XBSxnPjUifVykAJL00J5W4UugFuidCvoN3cdNZcw9S48oyt yXNJ/PULc+g4smrUEI7FXXD69ObZhTwKgPMBSIgI/hACjbdvisN/fK34dMOGDfJrZs0z njUg== 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=NVwbIC4AugD4EPhJPPvQj6C8NysSKvybmYmyxe7QiGo=; fh=kEyOfiXD5Xz1QIMrU63fnHv4zlFI5uPSfoktbLe4MFQ=; b=reRk/tjhyY3GI87CDZffoRNASjwSn/WenxJlkRrvwcGLpl2Djr+TEMwTw+uLMZ7bwb iGKjw+p2Wv9ABfYnnZ5UQnZTExhVMdg8GmYaJ3IRl0Xhyd36LMKETV76gjvGLoTjx6Os 0VlaMhGz3Ire3kiyuyW2vf8U0krmfeL+umOUGkKyZ1hfor+PxuvBj6k/YtEsIqx1CYBK PVQhE/Z86wrcCo4a6315YDrZMaFe+TacfjZZz4dOfkq23QueaaxWG+jan6iDTqPRCTKx dwRlTX716as0YhRoJoCh0ZYZnNNJFTSOprz30DNkTFu/huvJ5NNKCeHEIHDiGBAYrl8l slhw== 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 b3-20020a639303000000b00543cbd73c02si7097110pge.409.2023.07.31.07.49.59; Mon, 31 Jul 2023 07:50:13 -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 S232329AbjGaOWK (ORCPT + 99 others); Mon, 31 Jul 2023 10:22:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230171AbjGaOV5 (ORCPT ); Mon, 31 Jul 2023 10:21:57 -0400 Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50313B6; Mon, 31 Jul 2023 07:21:53 -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 3DA3620798; Mon, 31 Jul 2023 16:21:49 +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 v1 1/4] arm64: dts: ti: k3-am62x: Enable AUDIO_REFCLKx Date: Mon, 31 Jul 2023 16:21:32 +0200 Message-Id: <20230731142135.108477-2-francesco@dolcini.it> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230731142135.108477-1-francesco@dolcini.it> References: <20230731142135.108477-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,T_SCC_BODY_TEXT_LINE 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 --- 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 33b6aadc9083..3a1b387bbf49 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@4130 { reg = <0x4130 0x4>; #clock-cells = <1>; }; + + audio_refclk0: clock@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@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 8397cb80f559..30b163a9b248 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@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@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