From patchwork Wed Jul 12 11:52:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13310247 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 34D5FEB64DA for ; Wed, 12 Jul 2023 11:53:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=TzrephYM0m0kC7VEpUisEhKCQe9pPtxzp0+LgGw1HyA=; b=wnMiggny8Rss81 RllRwjLui2vXk1n1g2XxYINl3YPn1ttP3Qyjec584mimF8H0Jhy3tJp9l8yprZPsZVwLCqEZTa2FO kPxYIPa8gcnLuC9T9zBBYKIx4zEOND6WHrpZ8gU1cda6MXMj2yklNPx8hm/rzmDm3AhRJp7LFjBbk 1WHtJ+hvutK3RVKMu1U4SriZYFTNX6DHb4c1BGXm6F0TKngp6dBkxt678lnFo9Kqa5hRzP6kuBUnb +S8zvCLi3Ba3jgpVKvdLTL+nPj/59oChNfWsNT0nTzgbvONTNxxqfk2Vl72dT4Rq6yKFGVQw96Uff 5GMkFxmahHSRruf5yKwg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qJYPC-00HSCr-0r; Wed, 12 Jul 2023 11:53:14 +0000 Received: from mail-oa1-x2a.google.com ([2001:4860:4864:20::2a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qJYP9-00HSCM-08 for linux-arm-kernel@lists.infradead.org; Wed, 12 Jul 2023 11:53:12 +0000 Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-1b3e118aa55so1660602fac.0 for ; Wed, 12 Jul 2023 04:53:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689162789; x=1689767589; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Lk2CkawsWRPhUJhT7owy+MSUDnvJYEHIC5w9ORyYobQ=; b=Km9zYC/U6UXcasyyGW1McNOjTg4581w63rMh1WmLdV8hhNk70SF+VsTtw72+4GSVhi tjj3rxoSkaVcbqvPfr87FIikooOFnixJtOxSXNKKvMPqzicEA5Fg3goHUPjbzq7jQ6A3 yiaglOgdeLY99baAsNfsZMAc6cYhwhou8dukfGVwSeChImq+gC1DTIB9k7JIO6SLdRsU 7tcnD+MFbdcZjiHDogLqxH942DciGVQBc6kz/TQPOpZ3Uy0UhwPgdqAotlqYarj5fMxu wSN0IsL5L/8X3RBwHIrxWo1x9hpFZbHEYqiuX0yMfFrDML+unOnMaa3HSekYxu24dPFc /R1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689162789; x=1689767589; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Lk2CkawsWRPhUJhT7owy+MSUDnvJYEHIC5w9ORyYobQ=; b=GUj3FbGZBf1L+lhEafAy3jNoOoVbtDC4jk8h3oFUHPQG6vYXfYauzb+6bBFuKE7ORS ywe2VnujEe1w2c+rc+hL3v9sOfKsH3gHKi8+KnahMmKZ4cdQqkuFjolibiHGaLRuMs+z nLugO/UQeMuZefsGKYjeorqGP7xPUTXGbM9b7k5ciQbfcLjTYychetl9ho4VP7kwWr1C ctDe0ULYmUFws8RHsHeCrk9vqShlVdXAB3vj7vXDrOhWeZBBpsG7dsJ9RPm302pstZTR Ti/y4+BprPC1DLj4aPCkydVFDGZyFJe8N3Q5SIfuQzH8qRstkxyn+Sie6aH4n4aiz9uK V3+A== X-Gm-Message-State: ABy/qLb2xoUhC50TMmExqM1908SDcE0guy1raElSXm0M+LF+tjCI9Vzw d/Hl8ErhOG3K/o44trQLq9Vkr/laP91R9A== X-Google-Smtp-Source: APBJJlHEla6YNT5iMgxmsaeujd1HxpkpIWcPh/o2YYUbBsJqgGJgv5+E7pT2BZwaZYV6WiMOr2m5fw== X-Received: by 2002:a05:6870:230d:b0:1b0:6500:8045 with SMTP id w13-20020a056870230d00b001b065008045mr13859449oao.1.1689162789293; Wed, 12 Jul 2023 04:53:09 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:ce5f:dbc6:1eb6:2900]) by smtp.gmail.com with ESMTPSA id zh27-20020a0568716b9b00b001a663e49523sm1905890oab.36.2023.07.12.04.53.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jul 2023 04:53:08 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: hs@denx.de, linux-arm-kernel@lists.infradead.org, sboyd@kernel.org, abelvesa@kernel.org, linux-clk@vger.kernel.org, Fabio Estevam , stable@vger.kernel.org Subject: [PATCH v3 1/3] ARM: dts: imx6sx: Remove LDB endpoint Date: Wed, 12 Jul 2023 08:52:59 -0300 Message-Id: <20230712115301.690714-1-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230712_045311_081792_01F1A9ED X-CRM114-Status: GOOD ( 11.56 ) 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 From: Fabio Estevam Remove the LDB endpoint description from the common imx6sx.dtsi as it causes regression for boards that has the LCDIF connected directly to a parallel display. Let the LDB endpoint be described in the board devicetree file instead. Cc: stable@vger.kernel.org Fixes: b74edf626c4f ("ARM: dts: imx6sx: Add LDB support") Signed-off-by: Fabio Estevam --- Changes since v2: - Rebased against 6.5-rc1. arch/arm/boot/dts/nxp/imx/imx6sx.dtsi | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/nxp/imx/imx6sx.dtsi b/arch/arm/boot/dts/nxp/imx/imx6sx.dtsi index 3a4308666552..41c900929758 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6sx.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6sx.dtsi @@ -863,7 +863,6 @@ port@0 { reg = <0>; ldb_from_lcdif1: endpoint { - remote-endpoint = <&lcdif1_to_ldb>; }; }; @@ -1309,11 +1308,8 @@ lcdif1: lcdif@2220000 { power-domains = <&pd_disp>; status = "disabled"; - ports { - port { - lcdif1_to_ldb: endpoint { - remote-endpoint = <&ldb_from_lcdif1>; - }; + port { + lcdif1_to_ldb: endpoint { }; }; }; From patchwork Wed Jul 12 11:53:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13310248 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 83C1CEB64D9 for ; Wed, 12 Jul 2023 11:53:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=TaQT9PHG5aOHjPFSaAuHZAAraiz/vUxpee0VwxiVl4Y=; b=DHkqlpiY8OprMX zGNGG9x/qqME6RCHYgIXHWsyJWQ3s9CujIFY/DhzLT/K21vW+rwZsVRUs0Hq8Y23Lm0ZpRHRt3w8d fy0qkdFgMhv39IWiSi2pG+Nt8Y3xM8ZmwJ9bGBP+G7j1h3AuZDndJvP4o4HfYRP/UND+8WjN0lbVz 69eK9+cx074nDhpkUrqAPy/j0r0fU0/04uTRFxRNUgDLLxY+8kAOC4SC0xOWlGBNXZPIDy+wXcH01 MsQmzbmSlbxRHGCC4xkGvUOSjhtmuSUlSfPr6f8z1AmciRba4XIijfonuQntUL2Za6am9Mj0SL7+m BiSxp9vn7cJi6dqxaZdQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qJYPH-00HSE3-30; Wed, 12 Jul 2023 11:53:19 +0000 Received: from mail-oo1-xc2e.google.com ([2607:f8b0:4864:20::c2e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qJYPF-00HSCn-0Y for linux-arm-kernel@lists.infradead.org; Wed, 12 Jul 2023 11:53:18 +0000 Received: by mail-oo1-xc2e.google.com with SMTP id 006d021491bc7-562fcc76dedso540845eaf.1 for ; Wed, 12 Jul 2023 04:53:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689162792; x=1689767592; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yzbz0hc2TWNvLrywr/bdFJaS83jkhqY5GQagZ14q+5M=; b=pHYiCJNf6rQn4QA3loFIU96JV9M5tD6sn5G+/nD7kM1VLUZhRkKKjn6oZXca8/psz1 7kW8UgYyxdGTaSOkPTVanMAK+29MDUem0kNVaquJ2vUXtRK112AWANNRcm3bO22x/kJa RaPtkAKIx8KJNTm9kGlAAZ8T8FyWcsHm61uYT+/5B1+lMowQW3E1VrjUVzdWI3bHf/Hk k5bR33BqMe6N6via32+8onAzcSf5iPdOZ7Mx9+g9EobxJOfy4P87JHXbHOUNk6cEVvsl 5HNK/yRlDLx4CQNpsC244UE9AlvvhjmI5Y270td7UgPkSfquNnK5v2UPusYEcukJvmj8 Efkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689162792; x=1689767592; h=content-transfer-encoding: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=yzbz0hc2TWNvLrywr/bdFJaS83jkhqY5GQagZ14q+5M=; b=ZITV++3y6Iil3vrr0o3pNhPAnN33EfMGeqWRsjOunLx0YZq62uwLJIecsLbojvJJq7 gUnCSKgyINNs9QrVBpQ3pKUE4LLAfdNX7HrZRV465TFNgyC/KAbJh1Kr2xFaxSzez4vP aUkiJp3IVCAgFFZnnQrjsAvdicDhKNDV08TDhWQhwvxSsH7QGoNcM90fB7d399jvovaJ 5cTxeIVid62b6eSnotWDk5PiSx3DkbK4NFU1AK9sZwvM2w/Zzf8TppWL4vZPDr+lGIjo aRCXGoLTVA5hKDbm5ysvNCr7kimZjmmRGs+uf1gq+Qv0nEzOv8u9YOoeA/DXk7LWp1hy dTYg== X-Gm-Message-State: ABy/qLYsi/5PrX8buZgaUleQH39ocuE4slQgTWb7GZfdiRXN3nXWF191 uLb6MuD2bR64SYHydGvdQEq8PM2p9+Fp6w== X-Google-Smtp-Source: APBJJlEaara2sS8sPaw9c00SpEacflV6uILENpS/lJQD/UOpWlL/WSIiqyQ2lYO041Jwy22lZeFxxA== X-Received: by 2002:a05:6870:548d:b0:1b7:5f4b:c686 with SMTP id f13-20020a056870548d00b001b75f4bc686mr3464544oan.2.1689162792213; Wed, 12 Jul 2023 04:53:12 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:ce5f:dbc6:1eb6:2900]) by smtp.gmail.com with ESMTPSA id zh27-20020a0568716b9b00b001a663e49523sm1905890oab.36.2023.07.12.04.53.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jul 2023 04:53:11 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: hs@denx.de, linux-arm-kernel@lists.infradead.org, sboyd@kernel.org, abelvesa@kernel.org, linux-clk@vger.kernel.org, Fabio Estevam Subject: [PATCH v3 2/3] ARM: dts: imx6sx: Describe the default LCDIF1 parent Date: Wed, 12 Jul 2023 08:53:00 -0300 Message-Id: <20230712115301.690714-2-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230712115301.690714-1-festevam@gmail.com> References: <20230712115301.690714-1-festevam@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230712_045317_210205_DDC27304 X-CRM114-Status: GOOD ( 13.82 ) 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 From: Fabio Estevam A suitable default for the LCDIF parent is the PLL5 clock, so describe it in the device tree. The imx6sx clock driver harcodes PLL5 as the LCDIF1 parent, but in preparation for removing such hardcoding, describe the parent relationship via devicetree. There are some boards that may want to use a different parent for the LCDIF due to EMI reasons, for example. With this approch, the user can change the LCDIF parent in the board devicetree if needed. Signed-off-by: Fabio Estevam --- Changes since v2: - Rebased against 6.5-rc1. arch/arm/boot/dts/nxp/imx/imx6sx.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/nxp/imx/imx6sx.dtsi b/arch/arm/boot/dts/nxp/imx/imx6sx.dtsi index 41c900929758..0d549e1f3ced 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6sx.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx6sx.dtsi @@ -1305,6 +1305,10 @@ lcdif1: lcdif@2220000 { <&clks IMX6SX_CLK_LCDIF_APB>, <&clks IMX6SX_CLK_DISPLAY_AXI>; clock-names = "pix", "axi", "disp_axi"; + assigned-clocks = <&clks IMX6SX_CLK_LCDIF1_PRE_SEL>, + <&clks IMX6SX_CLK_LCDIF1_SEL>; + assigned-clock-parents = <&clks IMX6SX_CLK_PLL5_VIDEO_DIV>, + <&clks IMX6SX_CLK_LCDIF1_PODF>; power-domains = <&pd_disp>; status = "disabled"; From patchwork Wed Jul 12 11:53:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13310249 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 08139EB64D9 for ; Wed, 12 Jul 2023 11:53:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=SwqjXn/QQkamgGrU2isvBi9fF8S9/9Ocnfxc/CM62j8=; b=iXHZwmCacXZvcF eAWF7Xane4myoPSvrS+fP8jvEZFG5Oudq7BxJJw/SlaghqIiwNCkymg9ekDuDqYrTKI2Z2JZqKSmw 1GswhjgOpguW2Xsfqk30feSH+Dx5Y4chtQf3psQUXfacXWthXwMalAgj6bYgcucJa9x/Q1YBaD25l eWrKfTfFWPFbThxzqSzOJUgXfmxV0g7IOhbvI/ZPso3qVeLRm3f3cptZi4YntDnH30Y8204fwSjwL pqh0IzTW7wKOU/OrOVvTDS2rSL8GGrIk8LPi7Rsw+YhSvHP43WhYewEcw3Wb0jkkgie1vigXmwovl q+ry2v5l0yY620S54pMg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qJYPI-00HSEL-1U; Wed, 12 Jul 2023 11:53:20 +0000 Received: from mail-oo1-xc2f.google.com ([2607:f8b0:4864:20::c2f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qJYPF-00HSDB-0n for linux-arm-kernel@lists.infradead.org; Wed, 12 Jul 2023 11:53:18 +0000 Received: by mail-oo1-xc2f.google.com with SMTP id 006d021491bc7-562fcc76dedso540860eaf.1 for ; Wed, 12 Jul 2023 04:53:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689162795; x=1689767595; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LhxNJrO+C7dqS4hZc7jEcBrR+kGnCAyE3Qa2KVh3AZ4=; b=MEWsxjPVUjHs7u8eIqXBpNBo+voE7Cg2M9UnfHOFGBZAAQVty1EliINRWIm112NiPZ 0Go01D4Sj2qQQrXl0taNzVr3rMCF+ab89PYwsb6AqMaNe35yL45wjTkiK84z+TTK4qeD mu5+21i3cieKs3D6UdJSY9aC5uryHqpVnytr2MIfCPud5kKbCyfKrDQeLpHRhKR+EGMA 7TGgik7CYa8szdZoFe7EIMNPPoXrNl50Jx5Tm05CiJxUC6XKKbYT+kcQ43eTU5ieUdhD BvI1BXgvYnXAfeeL7uFry3Nbfx+EwVYXPQkMrzR44vUFhLDLxEOtJWQGGmQeoPPfi9ZS 1lBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689162795; x=1689767595; h=content-transfer-encoding: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=LhxNJrO+C7dqS4hZc7jEcBrR+kGnCAyE3Qa2KVh3AZ4=; b=Wu8KPxskrJO2IYqjY5CdbUOQEs1/Ap1/TMr+I6XjhXi3Twbx1BedKF6BQRsCdeJ+y9 WTyQQnXel9Wlv9FG2wju5ZmQR08eIxPodtyi9WfxeOVa4yBNUxXGRTv+HOSZqULFQEl1 Cn9Xggn3f2RC1RdAf5qVA4ghKlm9i4TfE7IlIQZGs6QtsMXZiPm58gen4XZzSO4PR/vt t57VbnCqNX0pay9QcyybMzeyFzoeOsvY85wwtdFNd5c6SdZdx/WtUGNxVce0Xb4ZvAbj TC+uwCmN0j2AiuRn+0P8bcGMi63XlJ8HxhITG4NmzusgUHwlbdby+kGee/SXTI7W+/Wu PneA== X-Gm-Message-State: ABy/qLZ+lRXAH+jEQVRiVJOkGxTs3H/kwsEDRkjF3yciIu081Zsr89B6 CvWEeq36WjDAuuJBHdZTwwE= X-Google-Smtp-Source: APBJJlGJQIZJA8B4pZuHg+Po2JXZJdxDBXRVpNdstY/fkoPZ0lKrgEbZe/bsK98g7aIBDzU+s98CqA== X-Received: by 2002:a05:6870:548d:b0:1b7:5f4b:c686 with SMTP id f13-20020a056870548d00b001b75f4bc686mr3464617oan.2.1689162795154; Wed, 12 Jul 2023 04:53:15 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:ce5f:dbc6:1eb6:2900]) by smtp.gmail.com with ESMTPSA id zh27-20020a0568716b9b00b001a663e49523sm1905890oab.36.2023.07.12.04.53.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jul 2023 04:53:14 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: hs@denx.de, linux-arm-kernel@lists.infradead.org, sboyd@kernel.org, abelvesa@kernel.org, linux-clk@vger.kernel.org, Fabio Estevam Subject: [PATCH v3 3/3] clk: imx: imx6sx: Remove hardcoded LCDIF1 parent Date: Wed, 12 Jul 2023 08:53:01 -0300 Message-Id: <20230712115301.690714-3-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230712115301.690714-1-festevam@gmail.com> References: <20230712115301.690714-1-festevam@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230712_045317_283257_55DC355A X-CRM114-Status: GOOD ( 13.66 ) 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 From: Fabio Estevam It is not a good idea to hardcode the LCDIF1 parent inside the clock driver because some users may want to use a different clock parent for LCDIF1. One of the reasons could be related to EMI tests. Remove the harcoded LCDIF1 parent as this is better described via devicetree. Signed-off-by: Fabio Estevam --- Changes since v2: - Rebased against 6.5-rc1. drivers/clk/imx/clk-imx6sx.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/clk/imx/clk-imx6sx.c b/drivers/clk/imx/clk-imx6sx.c index 3f1502933e59..b110258b9036 100644 --- a/drivers/clk/imx/clk-imx6sx.c +++ b/drivers/clk/imx/clk-imx6sx.c @@ -498,10 +498,6 @@ static void __init imx6sx_clocks_init(struct device_node *ccm_node) clk_set_parent(hws[IMX6SX_CLK_EIM_SLOW_SEL]->clk, hws[IMX6SX_CLK_PLL2_PFD2]->clk); clk_set_rate(hws[IMX6SX_CLK_EIM_SLOW]->clk, 132000000); - /* set parent clock for LCDIF1 pixel clock */ - clk_set_parent(hws[IMX6SX_CLK_LCDIF1_PRE_SEL]->clk, hws[IMX6SX_CLK_PLL5_VIDEO_DIV]->clk); - clk_set_parent(hws[IMX6SX_CLK_LCDIF1_SEL]->clk, hws[IMX6SX_CLK_LCDIF1_PODF]->clk); - /* Set the parent clks of PCIe lvds1 and pcie_axi to be pcie ref, axi */ if (clk_set_parent(hws[IMX6SX_CLK_LVDS1_SEL]->clk, hws[IMX6SX_CLK_PCIE_REF_125M]->clk)) pr_err("Failed to set pcie bus parent clk.\n");