Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp308273pxu; Thu, 15 Oct 2020 04:39:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHibYXv5qpiQfG2lTFnDhjaouUF2k9IRgJeBr+U5ULZsRjAFOBa9sovm0S9R738/5Br1wm X-Received: by 2002:a17:906:9389:: with SMTP id l9mr4083641ejx.462.1602761975817; Thu, 15 Oct 2020 04:39:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602761975; cv=none; d=google.com; s=arc-20160816; b=BgR2ixovC0xzXEOVmS6bHPC0MZdunR/ClEz8DX0iOJN0huZbMazzXKWSQDeh0E/zS7 /jaPZ04T3OBjX3G3GZvca+1cSvK8PyLcmX8GWmxJBwW0K6Iff8ue0/urTF61Bt2adAPG TrAB+97hcrQtkvESNf8vXfEWXgyC/aQaRL2kQRTpTygL4shu1kTf+Q5YKC0RbfEXMbnC NCR1RKr5iMousbCfrk8bH25Gq5tzJ9rLYAwgSGwjUcT5iWEUghqX+ipFP/MWtNS92vkb ThzO4xIMdCVCRGIeu61+GSiwiXoOMXpPRVp3eKwGhYEjFxNX4KOql9H3iPewr8PnBaNj Q44g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=hn6tCyuFKHVxxIsq7ogW2HdXjPG5iZrhIwXGSjtuvtc=; b=IpDWzFXcQBlr2yltNiDEnmI09KFKaHH4NWmsVCbCR0bAhbhAFSgvWixa+7aIkqHFI5 y3TUxtNk87NfdTt11yYhrO1Pdg/gtn6UbEjC+qSv66CCLB5ywcpiFJs8cTWW/Lx5T050 iDh0mtBmLGYwVzDLvbNIfK/5w8azP0T+BboC/FKSSjMNSmQhDOdPbwY52fl2ueLT6trO gEEQS8zihdxtxrGg6pQ01Lg1iKr5KB6cQO964yF/vo9q7ub68WWX4N7Flw4feSfQWyCi NaSWt5lNRAH+nxjzdKWdf4LdeaYr8ASzXgKDcPtnn7QCAOygJQfTQT2/PBJKFZmRLHHV k0Pw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw5si1635024edb.108.2020.10.15.04.39.13; Thu, 15 Oct 2020 04:39:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730681AbgJOJZv (ORCPT + 99 others); Thu, 15 Oct 2020 05:25:51 -0400 Received: from inva020.nxp.com ([92.121.34.13]:40222 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727753AbgJOJZu (ORCPT ); Thu, 15 Oct 2020 05:25:50 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 8A1811A07AE; Thu, 15 Oct 2020 11:25:48 +0200 (CEST) Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 7A6BF1A061D; Thu, 15 Oct 2020 11:25:48 +0200 (CEST) Received: from fsr-ub1664-175.ea.freescale.net (fsr-ub1664-175.ea.freescale.net [10.171.82.40]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id E8C29202DB; Thu, 15 Oct 2020 11:25:47 +0200 (CEST) From: Abel Vesa To: Mike Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Fabio Estevam , Peng Fan , Dong Aisheng , Anson Huang , Lucas Stach Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, NXP Linux Team , Linux Kernel Mailing List , Abel Vesa Subject: [PATCH] clk: imx8mq: Fix usdhc parents order Date: Thu, 15 Oct 2020 12:25:44 +0300 Message-Id: <1602753944-30757-1-git-send-email-abel.vesa@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org According to the latest RM (see Table 5-1. Clock Root Table), both usdhc root clocks have the parent order as follows: 000 - 25M_REF_CLK 001 - SYSTEM_PLL1_DIV2 010 - SYSTEM_PLL1_CLK 011 - SYSTEM_PLL2_DIV2 100 - SYSTEM_PLL3_CLK 101 - SYSTEM_PLL1_DIV3 110 - AUDIO_PLL2_CLK 111 - SYSTEM_PLL1_DIV8 So the audio_pll2_out and sys3_pll_out have to be swapped. Fixes: b80522040cd3 ("clk: imx: Add clock driver for i.MX8MQ CCM") Signed-off-by: Abel Vesa Reported-by: Cosmin Stefan Stoica --- drivers/clk/imx/clk-imx8mq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index 238835c..75f6aa0 100644 --- a/drivers/clk/imx/clk-imx8mq.c +++ b/drivers/clk/imx/clk-imx8mq.c @@ -160,10 +160,10 @@ static const char * const imx8mq_qspi_sels[] = {"osc_25m", "sys1_pll_400m", "sys "audio_pll2_out", "sys1_pll_266m", "sys3_pll_out", "sys1_pll_100m", }; static const char * const imx8mq_usdhc1_sels[] = {"osc_25m", "sys1_pll_400m", "sys1_pll_800m", "sys2_pll_500m", - "audio_pll2_out", "sys1_pll_266m", "sys3_pll_out", "sys1_pll_100m", }; + "sys3_pll_out", "sys1_pll_266m", "audio_pll2_out", "sys1_pll_100m", }; static const char * const imx8mq_usdhc2_sels[] = {"osc_25m", "sys1_pll_400m", "sys1_pll_800m", "sys2_pll_500m", - "audio_pll2_out", "sys1_pll_266m", "sys3_pll_out", "sys1_pll_100m", }; + "sys3_pll_out", "sys1_pll_266m", "audio_pll2_out", "sys1_pll_100m", }; static const char * const imx8mq_i2c1_sels[] = {"osc_25m", "sys1_pll_160m", "sys2_pll_50m", "sys3_pll_out", "audio_pll1_out", "video_pll1_out", "audio_pll2_out", "sys1_pll_133m", }; -- 2.7.4