From patchwork Thu Jun 22 11:34:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sameer Pujar X-Patchwork-Id: 695309 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 alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (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 E7846EB64D8 for ; Thu, 22 Jun 2023 11:38:24 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 7B97886E; Thu, 22 Jun 2023 13:37:32 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 7B97886E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1687433902; bh=OQEubNUpdPdmyMl0zTUVWynZz7T1818ePBq7KXB86pY=; h=From:To:CC:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=neSH26z02Hdc3xt70vG8Udlw7VfJh3OsYg6byfSFzYw0qWnCBY31MTgAKQpknG4SO RtacCJAcm876Xkqr343N4Pk151vvqCfTM1+VLBv2YTEUwnD0+DdsvBk3JepbzNVS9g bEiFR31zETlwSs4xPKepV08rpp2JM/wOFokZejso= Received: by alsa1.perex.cz (Postfix, from userid 50401) id 35125F805C6; Thu, 22 Jun 2023 13:35:25 +0200 (CEST) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id 9E107F805C9; Thu, 22 Jun 2023 13:35:24 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 878F1F805C1; Thu, 22 Jun 2023 13:35:20 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on20622.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e89::622]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id C0C97F805AE for ; Thu, 22 Jun 2023 13:35:14 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C0C97F805AE Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=Wvw7ikTi ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LNINejg5mrav2fw13DndTNzYL7QSSANn0yThmW4hpJewgzVAmMesvzbrJIH8/kuuBHDMHmELyPmMAWKO1P59dUOIXPwjiB5nVg4CQyMrftR1nCojxc8Cpc0gLs2Yg9qZY1X3JB0KAyLHIcxW6Mqyh/O4v/nyzCFr8BoHHOUs2aXn8MRCeJ11DqZtA5m0wL1po3vI/1HxZWeUNO8pWlqdb3Na95wO+al33Iw47Uooe0xWJjpuKpNAIl1Zr2Uva5mViP2gFgvWYfEX+IBSi4cMVc7RoOv8QvoxGHqRPLmYmnrCjafe0W4RMwk8h1sqN7g3+/XNNtWscgr9slrF1Kp9kw== 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=jGrVWp+S+O/NaInoHUg2uGXRtbSVDGzMISV7CfhHRhM=; b=M/YKIF4t0Jn1CqP4x1UinJr2Qq3vawSWgPeNA0jVwk96ojxVCYuS61QBK280ojacAR+g7931PV0rG4oL8EUVsy2K5RF3W8u6rrOmoGS6tkSMcrAnbcRKaUeP2uRA8C407UqH+PX+lsrwp9GDgcqYD6jZj9GJSZJvrr9GfsnrBf2bg/rcWjoJbrlXM7oPFuLFmObQ+2o+w1ot5niNP7pmz3cqk0b3cO9BqB4waS6Ulzp/VXGPspEug0r7oeR6MgYTNVskJU+kICdIaaECDhI4EyqAh0MA2xR7roVwe/dBYYAgumtG9i74b2W3Bjtg0MGkVuma4k9ap9MDdbeTnhASDg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=kernel.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jGrVWp+S+O/NaInoHUg2uGXRtbSVDGzMISV7CfhHRhM=; b=Wvw7ikTidQn1Bkr5qyQwEAtgC8cwL0G0R/l28aIXQlsopLMgXC6CAhGGdipumaojxcsgb9cmewOP1D/dXpswgUO4FY2UdYAwtW5rQ/EKe0X2Ah0YyOTGQztpVwFmw3+TP2apMH+wM8ynKKOmrWqLZOupO9ZiaPHlI0vCTnpFhb1CO0wGG12zw8MFqrnachOJI+H8g60Q2tlroseH1TjvNJlJXuWm7DBtxkD6nreadkenxcJFyxpeA8cWHywhTbLqKwrDANH5iT4iAy9zokAlTOLMu9D1PEzz2MTlzjrJp/opXyGX5oLzOj7lkyhMxyxAZnuGiLPWrv4/DVkL+IFgbg== Received: from DM5PR07CA0113.namprd07.prod.outlook.com (2603:10b6:4:ae::42) by CY8PR12MB7218.namprd12.prod.outlook.com (2603:10b6:930:5a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.23; Thu, 22 Jun 2023 11:35:10 +0000 Received: from CY4PEPF0000EDD0.namprd03.prod.outlook.com (2603:10b6:4:ae:cafe::7a) by DM5PR07CA0113.outlook.office365.com (2603:10b6:4:ae::42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.24 via Frontend Transport; Thu, 22 Jun 2023 11:35:10 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by CY4PEPF0000EDD0.mail.protection.outlook.com (10.167.241.204) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.24 via Frontend Transport; Thu, 22 Jun 2023 11:35:10 +0000 Received: from rnnvmail204.nvidia.com (10.129.68.6) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Thu, 22 Jun 2023 04:35:00 -0700 Received: from rnnvmail203.nvidia.com (10.129.68.9) by rnnvmail204.nvidia.com (10.129.68.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Thu, 22 Jun 2023 04:34:59 -0700 Received: from audio.nvidia.com (10.127.8.10) by mail.nvidia.com (10.129.68.9) with Microsoft SMTP Server id 15.2.986.37 via Frontend Transport; Thu, 22 Jun 2023 04:34:55 -0700 From: Sameer Pujar To: , , , , , , CC: , , , , , , , Sameer Pujar , Subject: [PATCH 8/8] arm64: tegra: Update AHUB clock parent and rate Date: Thu, 22 Jun 2023 17:04:16 +0530 Message-ID: <1687433656-7892-9-git-send-email-spujar@nvidia.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1687433656-7892-1-git-send-email-spujar@nvidia.com> References: <1687433656-7892-1-git-send-email-spujar@nvidia.com> MIME-Version: 1.0 X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000EDD0:EE_|CY8PR12MB7218:EE_ X-MS-Office365-Filtering-Correlation-Id: 00150a81-5e68-4995-f4dd-08db7314bcb8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qLNWgnyiHDn5jeyx7KSvzrLHDygUxZf+PEDfhXNVdbazwqktAuHqzfzNcpRWcet4ita1otDsxI/N9TwDu21WpcB/foFToHT6okeLyKR1EqX07aLdrKJHvc2gEAD9+GsVRMxzwFth/3TBVX/cTX20072qrmoxPrVYGGVRdrcit0+bbCa41q6e4Zg81RwnT1zcjUsd5n+Qkfo+eDo4fYq0Bta2LT1Wb6ZJsVjN/tYeOKfH4265Y1hWri4WkJ7Vx/GpHh0rRWJJDSxtpb476B/1EiKFyNEXK5S6liMpE7eADg+8AfwB/1L5wnf2+tt4kqffU6CJi/5Xskbuzvk2wNqU6PHkJ+kW4LKrwk9itEZbdDEbbF9R+L2fCYBT1Ocpxob0d6LjihrY4DIUoR8G/6WMcDU6OhsE9z9WhRK3R8qk4SRImSF3PjsZiL1XUlUbqMEc43Mq/irPk3sNWS7yfD6zzoT51BiTlEohZyKBY9mDUCkjL8vuhE4wnJvZgj8RArpM/MSnmj0F7D89CgO8HpTq4qKa7KGVz56J80VtdMY9H5Ics3SZLWhWpIGqaiQtdilXoYrizSdpu7wxXUnpLLZBLK2v+4kh0MHB8/ujaHDy6bWx1zRTHkUPesPei4IKSs6MyKkUxnCWmlqa01BVLTyBE++roiyCfpgda6Ffv8oFW/W1JR5YgatciuyhZ8A0zW2dXFwxe/vlZyDSqhqzobMk+lSkemCM6wZkiaJ30Qje1BM= X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230028)(4636009)(39860400002)(136003)(396003)(346002)(376002)(451199021)(46966006)(36840700001)(40470700004)(6666004)(7696005)(83380400001)(82310400005)(186003)(7636003)(356005)(40480700001)(36756003)(336012)(426003)(2616005)(47076005)(36860700001)(40460700003)(316002)(70206006)(4326008)(70586007)(2906002)(7416002)(8936002)(8676002)(26005)(86362001)(15650500001)(5660300002)(41300700001)(54906003)(110136005)(82740400003)(478600001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2023 11:35:10.4741 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 00150a81-5e68-4995-f4dd-08db7314bcb8 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000EDD0.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7218 Message-ID-Hash: LOUU5QO7G3URJRY4U4H7REAY2UYG5B7W X-Message-ID-Hash: LOUU5QO7G3URJRY4U4H7REAY2UYG5B7W X-MailFrom: spujar@nvidia.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: I2S data sanity test failures are seen at lower AHUB clock rates on Tegra234. The Tegra194 uses the same clock relationship for AHUB and it is likely that similar issues would be seen. Thus update the AHUB clock parent and rates here as well for Tegra194, Tegra186 and Tegra210. Fixes: 177208f7b06d ("arm64: tegra: Add DT binding for AHUB components") Cc: stable@vger.kernel.org Signed-off-by: Sameer Pujar --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 3 ++- arch/arm64/boot/dts/nvidia/tegra194.dtsi | 3 ++- arch/arm64/boot/dts/nvidia/tegra210.dtsi | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/nvidia/tegra186.dtsi b/arch/arm64/boot/dts/nvidia/tegra186.dtsi index 7e4c496f..2b3bb5d 100644 --- a/arch/arm64/boot/dts/nvidia/tegra186.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra186.dtsi @@ -135,7 +135,8 @@ clocks = <&bpmp TEGRA186_CLK_AHUB>; clock-names = "ahub"; assigned-clocks = <&bpmp TEGRA186_CLK_AHUB>; - assigned-clock-parents = <&bpmp TEGRA186_CLK_PLL_A_OUT0>; + assigned-clock-parents = <&bpmp TEGRA186_CLK_PLLP_OUT0>; + assigned-clock-rates = <81600000>; #address-cells = <1>; #size-cells = <1>; ranges = <0x02900800 0x02900800 0x11800>; diff --git a/arch/arm64/boot/dts/nvidia/tegra194.dtsi b/arch/arm64/boot/dts/nvidia/tegra194.dtsi index 154fc8c..33f92b7 100644 --- a/arch/arm64/boot/dts/nvidia/tegra194.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra194.dtsi @@ -231,7 +231,8 @@ clocks = <&bpmp TEGRA194_CLK_AHUB>; clock-names = "ahub"; assigned-clocks = <&bpmp TEGRA194_CLK_AHUB>; - assigned-clock-parents = <&bpmp TEGRA194_CLK_PLLA_OUT0>; + assigned-clock-parents = <&bpmp TEGRA194_CLK_PLLP_OUT0>; + assigned-clock-rates = <81600000>; status = "disabled"; #address-cells = <2>; diff --git a/arch/arm64/boot/dts/nvidia/tegra210.dtsi b/arch/arm64/boot/dts/nvidia/tegra210.dtsi index 617583f..e7b4e30 100644 --- a/arch/arm64/boot/dts/nvidia/tegra210.dtsi +++ b/arch/arm64/boot/dts/nvidia/tegra210.dtsi @@ -1386,7 +1386,8 @@ clocks = <&tegra_car TEGRA210_CLK_D_AUDIO>; clock-names = "ahub"; assigned-clocks = <&tegra_car TEGRA210_CLK_D_AUDIO>; - assigned-clock-parents = <&tegra_car TEGRA210_CLK_PLL_A_OUT0>; + assigned-clock-parents = <&tegra_car TEGRA210_CLK_PLL_P>; + assigned-clock-rates = <81600000>; #address-cells = <1>; #size-cells = <1>; ranges = <0x702d0000 0x702d0000 0x0000e400>;