From patchwork Mon May 10 14:43:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 12248357 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7FE07C433B4 for ; Mon, 10 May 2021 14:45:35 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 04159613C0 for ; Mon, 10 May 2021 14:45:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 04159613C0 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id: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=eCAgUwOpvgtsQD0gom/7shkt88G4XDoMS8UyZEUbXE0=; b=m8XtIZ63FngvjvAD/XUqTYpNg gbl9danWHUfDEntMXstlgYkWCocUtP3GQTn9LCOrVHGfX4eftxxjsaHNbojNey5CU+cCB6oxP3RPE YsRPLzEx9biOww1gyAIgCjCiowAbyh0MSMY17+36/feEoP7mTE0zSBlRoHaeTvcrR1fZgu0BkNlH5 0yaKeqABstGP3jsgraxvMZCv8IBq6doF6wVJUjl7R+Lct1c2bN47hBa/W/o/2/fz8uPPpzVVH2s8k vKnYwOZoLVIYlnHST4J3pL7jPvoqQpFSLyUt+zEFfySkbxaMM+YYg4QnwZPXoz2vaN3kPT6SK3qqO jdaREMC2Q==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lg78K-00Eeuk-Dn; Mon, 10 May 2021 14:43:46 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lg77y-00EerK-B8 for linux-arm-kernel@desiato.infradead.org; Mon, 10 May 2021 14:43:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:CC:To:From:Sender:Reply-To:Content-ID:Content-Description; bh=mboloecEt7zpcUJX9MGcVgdbvpk/j/gHxod2xui5w9k=; b=k4yVcPxunU/IPnW4aHvmr3Fial vPJUOjhZfR9JdqwqTRgw445WvONHCmQPkYDRMVfvgNhI6xXTzdMaMluYWpvojp1KexyHAjeFjwybr Aub3IwbBy4FbyNux/JugcCx/uN2WgbSA9nocF1vdc/MhIGGsMYo4LVVdWyJ1oxzAz0eMzfwNutjJI NhFYv+L6y/ICF9hAu48PnQmA0HPqaKaFs3pPyqPAPKndgSZYThAfqM2Cer2/5778eanbo1OHodn5P 3d6ubxI3eKZd2L94+8FH25VhvnxBACtQd2ePghUo5lNNLUnjb+EFcQ7MtlMb2eTMMgcGQXCQPSWNr 8+ikC4Cw==; Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lg77u-008p4b-HV for linux-arm-kernel@lists.infradead.org; Mon, 10 May 2021 14:43:21 +0000 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 14AEhD3c050713; Mon, 10 May 2021 09:43:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1620657793; bh=mboloecEt7zpcUJX9MGcVgdbvpk/j/gHxod2xui5w9k=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=GEg9Q/LwzDzVdqvxXVhwDzbo/yzxZorAI/1N+O9OcmpyaaRl008SQm0QKCxGDsxDM 4g11i5NbS8qxNXYrkV0DkdzUE5Z3SBunDfWy/0AMMwzYHXtmsyayVJGFEhKm1OZo0q hWnh+vaPwIcM1iBRYDvoMlt0W4AUVIlPX4QuGUqI= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 14AEhD7D057873 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 10 May 2021 09:43:13 -0500 Received: from DFLE100.ent.ti.com (10.64.6.21) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Mon, 10 May 2021 09:43:13 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Mon, 10 May 2021 09:43:13 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 14AEhDVp126640; Mon, 10 May 2021 09:43:13 -0500 From: Nishanth Menon To: Santosh Shilimkar CC: , , , , Nishanth Menon Subject: [PATCH 4/4] ARM: dts: keystone: k2g-evm: Move audio oscillator assigned clock to mcasp Date: Mon, 10 May 2021 09:43:12 -0500 Message-ID: <20210510144312.986-5-nm@ti.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210510144312.986-1-nm@ti.com> References: <20210510144312.986-1-nm@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-20210510_074318_683654_C8659051 X-CRM114-Status: GOOD ( 12.00 ) 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 Setting assigned clock with a dependency on itself for k2g_clks creates a circular dependency. Instead, Lets model the audio clock as a assigned-clock configuration for mcasp and set it up as the first clock assigned-clock to be satisfied. Following the standard convention, we use null entries to indicate entries that doesn't need to be programmed. References: [1] schematics: https://www.ti.com/lit/df/sprr302/sprr302.pdf [2] TRM: https://www.ti.com/lit/ug/spruhy8i/spruhy8i.pdf Signed-off-by: Nishanth Menon --- yaml fixup series: https://lore.kernel.org/linux-arm-kernel/20210503190824.GA2192378@robh.at.kernel.org Specific yaml: https://lore.kernel.org/linux-arm-kernel/20210426155457.21221-3-nm@ti.com/ arch/arm/boot/dts/keystone-k2g-evm.dts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/keystone-k2g-evm.dts b/arch/arm/boot/dts/keystone-k2g-evm.dts index 14e26a4fd62a..d800f26b6275 100644 --- a/arch/arm/boot/dts/keystone-k2g-evm.dts +++ b/arch/arm/boot/dts/keystone-k2g-evm.dts @@ -544,20 +544,15 @@ dpi_out: endpoint { }; }; -&k2g_clks { - /* on the board 22.5792MHz is connected to AUDOSC_IN */ - assigned-clocks = <&k2g_clks 0x4c 2>; - assigned-clock-rates = <22579200>; -}; - &mcasp2 { #sound-dai-cells = <0>; pinctrl-names = "default"; pinctrl-0 = <&mcasp2_pins>; - assigned-clocks = <&k2g_clks 0x6 1>; - assigned-clock-parents = <&k2g_clks 0x6 2>; + assigned-clocks = <&k2g_clks 0x4c 2>, <&k2g_clks 0x6 1>; + assigned-clock-parents = <0>, <&k2g_clks 0x6 2>; + assigned-clock-rates = <22579200>, <0>; status = "okay";