From patchwork Sun Nov 13 18:07:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2482 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 691153F1F5 for ; Sun, 13 Nov 2022 19:07:21 +0100 (CET) Received: by mail-ej1-f71.google.com with SMTP id ne36-20020a1709077ba400b007aeaf3dcbcasf3851223ejc.6 for ; Sun, 13 Nov 2022 10:07:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668362841; cv=pass; d=google.com; s=arc-20160816; b=RkenmuDFX3qMMSvZs6Uhp24Au/nkdqpyDEhI/D1LWnUJnIHDGiTZk58XKyBE98FuKK HvfbsYggscA+6+G/MF5cqEPaDyP3xLKO7YBgfUBINrOtsup1NbCP1uih9haPTG07lnYU 8neqYDfEd5i9FZI8Tp7kSl1Bs6gc6Q2I18u9QNQrB2gaVNzmPKz8IK9a2k/m9B0Xz5D5 qNnhJVZx9Tbt2M/AM4Ru2qGp8g88iLDLszNmrcuexBfBe/duwAqVESeaHO5r9LCP0DK9 i2kOIi+Hr0N1gPeYP/DidBPzJOFghliYRJhJSwvZl5jJgTtfE6lYREoT8Hl+VXYeFnzX DF4w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=rGrRSlfUDHJpukzY/SySGbu/R8GUNBQWCZUgCjipf7E=; b=Pa31eTUSut0zwN0rhjH2Ag14vOp0lMmq+wtmppic+37KkRwUR7z2yLVSVWf+2UaMK0 0fEKiYQRSDkfEkcvyNoybAJM+JygHVrlqstQXjO/hRwaqMhYTe5LPbbnzHLjlt7D00lv 73yK8A75aGa6xSIbg1SJQFjJDMIsq7pnSUDCCZLhW096Z+P8bB0Xdo2V+lL1SCrVEsJu 7CKi85es/ZkpBt6aKIc9GJYzP2KArbtEK4ZxppNUKuKPAY/tj9ZvoBgsE/LdT3XX6U78 HQHK8YzBtExvvNwJGRQLd545xatA7jlwnRXmJwRp/3Br7n/K6ZC5075BtEVq13OhqdQi c25A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pFemdqI3; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=rGrRSlfUDHJpukzY/SySGbu/R8GUNBQWCZUgCjipf7E=; b=r1/NVFGPQDCrsRqlctd/ynX5nTijCTC1t+Kr5DyP8Vzk6ZgloI6qooGfL+x35mazT/ ZEcFXW5z8ka+RVZ7kVnu2+9EejaBJYesVz7xrLnpbAPd+e9Svk2yT50rmLErpxKQ+jre HtCFvtsswjRmNTeIRP0LTdpLhK/4khTrCEprc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=rGrRSlfUDHJpukzY/SySGbu/R8GUNBQWCZUgCjipf7E=; b=4Bvg1XuEpjJdPsZX2+wG7XSwPbE0I2fnatn6j7Ak1hKyubU8hymjwUHoQXn2XciaXl 3GQ9Ifq2rE/WFlhJ8geAGQSfMHyt0Jn4WxBeXJ1y4H+bLhU8coVYG7Bp5pjziqG6vr+j lcGE08VkO3rTSZC9KhrBUbBttRzcXTNrMK2V41rqFz93YzCiTrp7VaJ9PFexfwsudFId Vt1EN84Js9x8hWPh0FFI8ggTH7UQVv/836wyk1SIyruobMd4pSXcZHpziN0XJz+dbve1 3GwfyHhXZLjuNpcTsuTH+Oi7z3RBTBI0Tv7Y/Y8gG3tU7E5suBEjN50VJdMGpvacsOJj z95g== X-Gm-Message-State: ANoB5pkv41CQrWMQ54D2MuTPAL7VSuQOXe/L2mtQ/pSmimyUAFGuIsHN 0M+yj2Ggx4WDFMJ3xdbE5f4vCDyH X-Google-Smtp-Source: AA0mqf5X79m8G2YqfDU/2q3L24y7C2RLYaBjk5CV1EkgWPEhI1VgoxaJMCWLS8ZdJrRG+UBk2lpKuA== X-Received: by 2002:a50:9ee3:0:b0:460:e19c:15a3 with SMTP id a90-20020a509ee3000000b00460e19c15a3mr9062738edf.252.1668362841063; Sun, 13 Nov 2022 10:07:21 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:35d0:b0:45c:bfd9:fb45 with SMTP id z16-20020a05640235d000b0045cbfd9fb45ls2526965edc.3.-pod-prod-gmail; Sun, 13 Nov 2022 10:07:20 -0800 (PST) X-Received: by 2002:aa7:d489:0:b0:458:bd09:1b20 with SMTP id b9-20020aa7d489000000b00458bd091b20mr8829085edr.176.1668362839991; Sun, 13 Nov 2022 10:07:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668362839; cv=none; d=google.com; s=arc-20160816; b=Tz9LgtbtR++KWDP7hePWX+NwBbJb4nMZGacikj67IUMJjBoEtWwr44OulLsCtNu6FE KsAEqV9JQhSx6Jte26ZKwIxga7Yfat6yrAWAQ4s7qMafmvxPtl0UbhR+GZKYRuicSUYG z66EWvp3vTaggxlDC//RKp/Yqk3OMTv5n52x9CDhnpZjGWBjZS+d7K6EUjAgjuxJ7Cld phyokYx7fEMe/OOOfnnACrkhF1ggb3AA6cxe/cJC72NmtAVn1UTgMUtJVL8ROTtajuIq b9Gchg3LGol5PtzaltCicfl4G2EneSr8yyjYUe4AZ/Qs9iVMm97jCxBUMskCDkXSWHnf APCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=i9rY57aH7I24rE4lreigisIrtzpJlcbzkFokeDM/SUE=; b=MpIc+UGGZ38ck9z632U0wYH7CD4bws5TA7mAFU8p1SPhtdSn5wwmKWcOn5q76ajPc7 OeN+RcqosA96hH1fav2KO8MG2NRxtEnQ9ENRBe9rPkfmDYgWYshyfEbX3k+SRicPHSUr HkJAgNz3naDJa/sET5PD2BuynOcr5pxBpWBSMWi9DDhT0GEoWJvcP0PBv+TCFPL74Tl1 YT4jBkfMYdNZ9d9kt8BaslMdy71JoY1RpIl75+icjSH5b92W4yHVYalIE0oKfz2MscDZ /ArZisI9ZlxyrU6JbrtT406pl+eUcF25JTRURAzshQW3hGYlH9tSHNt5xD9DKW6ruavx 2WLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pFemdqI3; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id p14-20020a170906784e00b007aeb14abe9fsor2922442ejm.55.2022.11.13.10.07.19 for (Google Transport Security); Sun, 13 Nov 2022 10:07:19 -0800 (PST) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:907:9d03:b0:7ae:87ef:d9a6 with SMTP id kt3-20020a1709079d0300b007ae87efd9a6mr8139536ejc.397.1668362839685; Sun, 13 Nov 2022 10:07:19 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-40-103-33.business.telecomitalia.it. [79.40.103.33]) by smtp.gmail.com with ESMTPSA id n11-20020a170906118b00b007a8de84ce36sm3171058eja.206.2022.11.13.10.07.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Nov 2022 10:07:19 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, michael@amarulasolutions.com, Dario Binacchi , Abel Vesa , Anson Huang , Fabio Estevam , Michael Turquette , NXP Linux Team , Pengutronix Kernel Team , Sascha Hauer , Shawn Guo , Stephen Boyd , linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Subject: [PATCH 2/5] clk: imx: replace osc_hdmi with dummy Date: Sun, 13 Nov 2022 19:07:07 +0100 Message-Id: <20221113180710.1625410-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20221113180710.1625410-1-dario.binacchi@amarulasolutions.com> References: <20221113180710.1625410-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=pFemdqI3; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , There is no occurrence of the hdmi oscillator in the reference manual (document IMX8MNRM Rev 2, 07/2022). Further, if we consider the indexes 76-81 and 134 of the "Clock Root" table of chapter 5 of the RM, there is no entry for the source select bits 101b, which is the setting referenced by "osc_hdmi". Fix by renaming "osc_hdmi" with "dummy", a clock which has already been used for missing source select bits. Tested on the BSH SystemMaster (SMM) S2 board. Fixes: 96d6392b54dbb ("clk: imx: Add support for i.MX8MN clock driver") Signed-off-by: Dario Binacchi --- drivers/clk/imx/clk-imx8mn.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c index 72f9563a0ff6..0fae97e61e2c 100644 --- a/drivers/clk/imx/clk-imx8mn.c +++ b/drivers/clk/imx/clk-imx8mn.c @@ -108,27 +108,27 @@ static const char * const imx8mn_disp_pixel_sels[] = {"osc_24m", "video_pll1_out "sys_pll3_out", "clk_ext4", }; static const char * const imx8mn_sai2_sels[] = {"osc_24m", "audio_pll1_out", "audio_pll2_out", - "video_pll1_out", "sys_pll1_133m", "osc_hdmi", + "video_pll1_out", "sys_pll1_133m", "dummy", "clk_ext3", "clk_ext4", }; static const char * const imx8mn_sai3_sels[] = {"osc_24m", "audio_pll1_out", "audio_pll2_out", - "video_pll1_out", "sys_pll1_133m", "osc_hdmi", + "video_pll1_out", "sys_pll1_133m", "dummy", "clk_ext3", "clk_ext4", }; static const char * const imx8mn_sai5_sels[] = {"osc_24m", "audio_pll1_out", "audio_pll2_out", - "video_pll1_out", "sys_pll1_133m", "osc_hdmi", + "video_pll1_out", "sys_pll1_133m", "dummy", "clk_ext2", "clk_ext3", }; static const char * const imx8mn_sai6_sels[] = {"osc_24m", "audio_pll1_out", "audio_pll2_out", - "video_pll1_out", "sys_pll1_133m", "osc_hdmi", + "video_pll1_out", "sys_pll1_133m", "dummy", "clk_ext3", "clk_ext4", }; static const char * const imx8mn_sai7_sels[] = {"osc_24m", "audio_pll1_out", "audio_pll2_out", - "video_pll1_out", "sys_pll1_133m", "osc_hdmi", + "video_pll1_out", "sys_pll1_133m", "dummy", "clk_ext3", "clk_ext4", }; static const char * const imx8mn_spdif1_sels[] = {"osc_24m", "audio_pll1_out", "audio_pll2_out", - "video_pll1_out", "sys_pll1_133m", "osc_hdmi", + "video_pll1_out", "sys_pll1_133m", "dummy", "clk_ext2", "clk_ext3", }; static const char * const imx8mn_enet_ref_sels[] = {"osc_24m", "sys_pll2_125m", "sys_pll2_50m",