From patchwork Thu Nov 17 11:36:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2498 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 2F9AD4211D for ; Thu, 17 Nov 2022 12:36:51 +0100 (CET) Received: by mail-ed1-f72.google.com with SMTP id z11-20020a056402274b00b00461dba91468sf1039269edd.6 for ; Thu, 17 Nov 2022 03:36:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1668685011; cv=pass; d=google.com; s=arc-20160816; b=K9gNqqTBnaWM9S6/DFflxotbJtQAWZm8HtTA6/9bW7hLXpejElaA3I5mI8qwRKjHp9 TQwhFFGXOZYKvCpgcHuPlK0BOyG+jCyop8h8PhTsewLnHyFeqMiSUHVtB+/PfS4A0ip8 hFHzUwRh0B7RCVqnn1+lPbIbCSLbZPjH+yVin8rWxPb4EqDyaHtl86hYtHn1cG9yS+Ih j9ADP9TCVHNA3IdZlmi78Mi1nWsOE8maWtzEGnUmE6MEUL4woRdaaozObrLS+UMh8xiu w3mBgb+5hXfKDbKMIIF5DQloo8WluITKuLRmdUf3I9dxV1sjD3zE5myGesy8I8X1KZud wIBA== 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=hbwxr+5ZzyI0mWDQ8lTNlVqlWN9b+ep8AayiCU1AJqY=; b=tuPgPPcujlgAe7UZsQRYMLrr1TcrQLcL+kKAaTWUOSYq1rGEDxU2+niiZbShXBUM1U D2RAowWk2vEl50gaQnVHGQNAKj49nxObZMPAVdTF1h3XF2aqwaZtIp9szYKvEv4/urZO xfnRk2DdolAvwVjneKdFYDvXG3vZqKJ628xgoIMqGqzfWkWoiniC44xteYtFnhPd9fgZ PsPdc7R/IpSiCgljSKbmACm1HrwlhlATn5b0fJV9t6zK9vQ4Px64PJ0fCZfRqYbxcPDm rkLY6xJGzkcsa7rN6H+7S19rOGmOME0KkO+rO1Alr9BPck+jMZmP6ZT7LRcSEUZ6zyRe kTmA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=N3eCNDBE; 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=hbwxr+5ZzyI0mWDQ8lTNlVqlWN9b+ep8AayiCU1AJqY=; b=fE3q9IZAUlgY45N4Ko6o311eeHkUSGuxTfdfUgJpd5F8HSxX50uFQbEwQJJQNju0Y9 loL1R36VlDUqf0Y/IrT7fDSXO7bRyGimn1ICbPmn76IwYhmw2gih/sAXDnYoZxg0tjcT 0K2LY3n0WmNAFgJsHn1mmy465rs4r4L4bKjXI= 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=hbwxr+5ZzyI0mWDQ8lTNlVqlWN9b+ep8AayiCU1AJqY=; b=Ly7aNr3lzeAMtcOK8qbzm0OeXz18byMmGRePh+EI/9aATQNWYLuC8/xEmNfcxfOXfH Bz1uK/7hIeOmCDYZiGu7ZJ9WmOreRLKHefH8ZKl/8G47oU13g0uQW1u/4swQ0iKDDDc8 LsvshKnHlb5IcVnBHNLQ67iTYA+CrWEqQYBIe6Q0tNnc3rpIqxwGSGNEnvY0HE5q120C fxbU/BqlEdYAZl30zI40eyaSHHu3ZgHaCn2JC7Kao0IBZRmcx3nuBbO51wXSbYEru4Q7 X7y/A2hWVmbn5v37XvylP88OjRUu3kPL1gQhNoVgywc/mqiX1GkiNikjHmQ3jAUVy56G qY/A== X-Gm-Message-State: ANoB5pltkO/p2XYccujDwbo1L7CtVwprxct6h+5oZhmA8ww8ULb8TXc7 KOkpIX0qJi1r4Oz1j0PMNJKXnDBp X-Google-Smtp-Source: AA0mqf7+6q1A5sdS7tKNP1SUUuXxOnoy4tJPA9xa7hrnWVCoBr9RIRNGizz+uZB4Fy2WSFvdRk5P6A== X-Received: by 2002:a17:906:4c4f:b0:7ad:a8c3:588f with SMTP id d15-20020a1709064c4f00b007ada8c3588fmr1680984ejw.687.1668685010984; Thu, 17 Nov 2022 03:36:50 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:906:7e1a:b0:7ad:934f:14b9 with SMTP id e26-20020a1709067e1a00b007ad934f14b9ls883505ejr.9.-pod-prod-gmail; Thu, 17 Nov 2022 03:36:50 -0800 (PST) X-Received: by 2002:a17:906:2743:b0:7b2:92ce:faf2 with SMTP id a3-20020a170906274300b007b292cefaf2mr1779624ejd.158.1668685009894; Thu, 17 Nov 2022 03:36:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668685009; cv=none; d=google.com; s=arc-20160816; b=Z0lEmaEpbJCJvQrPoBdK/ebapqCQ90K9iDMmUJ1Ly0VO0RNSZVorZvMrrfV/hHHMpq Gof/8RZ0ZHQ/j+xOP49c56/+Sdi4Ng4IuzWgJ1x3QCEBhv+QAFsz+MYzVuef15mop94e hz6cBl0Edm1Jnvt5TTDJ+KRNRSVn1AGZSw7xdNMAQOSSesTRYNHh//mrpyT57am2E6Ql J6tJHrZtlgxJLe7BVm/ieNbOZVY5/Kzzj6apgP3UCLijdbgq0CPZDas65im2AJD+gTY5 gUjf4imfFK+MXdoHxQA9vasGv3gzjrc+ItN9bbM//b23+CvXzKprjC+VK02Km8VHKBPm 2g3A== 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=yxMfjMiirY7i5b76cAjsj02YyQXT341SCmcBph5Qf+U=; b=A3pLW008Z1OtwpHFPZZSfN6F9Wd3DKUULufEklnBN2vzGYDtw2PrPT24axEkoPt1hK CMeMp2uPN8nj0jhJtqTKxikrv5CZ8cazVCEZoR/FK5hqY+ReV+fwsBfrAmBbhGhEze89 8fpKS4kWMrztQyZJHdyD20fi1ck4P8cMxd/1FTX/b/Ot0objAP/7Y0/p5RXRsFFf3Stz OnTzoAVR+58eu36bvrmLTGFqOhFffdvS8QEOVLB7d9SK+OdFeyCB2Ph6pyHPmsbz11/I vV7g3NNT9o5qUSom5uHaSZLIacVwi9LuQ22VrgIEucuQ/lCKa0Zdr72AG7kC456oiDDC ykeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=N3eCNDBE; 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 bq16-20020a056402215000b00459284788a2sor512241edb.10.2022.11.17.03.36.49 for (Google Transport Security); Thu, 17 Nov 2022 03:36:49 -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:a05:6402:1399:b0:461:53b0:2ac0 with SMTP id b25-20020a056402139900b0046153b02ac0mr1740983edv.153.1668685009735; Thu, 17 Nov 2022 03:36:49 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com (mob-5-90-137-239.net.vodafone.it. [5.90.137.239]) by smtp.gmail.com with ESMTPSA id g3-20020aa7c843000000b0043bbb3535d6sm413897edt.66.2022.11.17.03.36.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 03:36:49 -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 v2 2/5] clk: imx: replace osc_hdmi with dummy Date: Thu, 17 Nov 2022 12:36:34 +0100 Message-Id: <20221117113637.1978703-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20221117113637.1978703-1-dario.binacchi@amarulasolutions.com> References: <20221117113637.1978703-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=N3eCNDBE; 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 --- (no changes since v1) 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",