From patchwork Fri Jun 2 22:16:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13265914 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 4C4D4C7EE2C for ; Fri, 2 Jun 2023 22:23:09 +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=J19ZoesUBiqPxIE196KyYWNUUVofsAS2pnpPvfvW8Cc=; b=4uMmslCsC4M5xf ddFU+SGVcWrxIxZ6iMJbDNEom0bxzpKTbWwO/wjIOrFRu6X/Rog7ZcKjRwFwEE8eeOyEPCfPWJvkd +9tcYwDZbNAORHhd5FebZrJUgBQQQc00z07XzMiuMWgvTGcEvl1wsJAp7Xhxf/v+QStiiZlQmcdsQ WqGUP6c7S2xOgrG2L1Rj5YBlspiI5qmCh1q7lqNXSNPUOd6sZjcTk4yFRGcKxGJA3avlxkwEP32kG dU7EP8ZoZesU+3vV8MBWrlBa+hK0tvhdCWvs6Er2k2D3oLi3/WmvV6PFs9Okj/PjyyfizPXSTMLkG YH+39alNBL2uzdQh6PtQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q5DAU-0083tR-0S; Fri, 02 Jun 2023 22:22:46 +0000 Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q5DAR-0083sr-1g for linux-arm-kernel@lists.infradead.org; Fri, 02 Jun 2023 22:22:44 +0000 Received: by mail-qt1-x82c.google.com with SMTP id d75a77b69052e-3f7f53e8444so3095471cf.0 for ; Fri, 02 Jun 2023 15:22:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685744560; x=1688336560; 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=mK9ooTnIIPstvRuHFdXn4jUqcXC6NMJg2ggUZKFIvy8=; b=BRTdr3vwHAgPPzQ6E1wQ0mLg5i5bxh1OMeABMF5qKH1xEvKF9GlJgK69Qp0+aXQ/Wm k/RUGA77SSeq9FHmTLj07lO6DmDoO+aNNhXsYr7jWYZjGq4U8wbLH3vCIZpIMDwShG9B 4xHD14wGPhi3/ERV5pL5DXU4JMv9XT7qaggBgt+2GOD675+S4n3h9W3Kxcd6WdAQIUne kgMjdGk+5LhDj+vlt4GhKVFlZXPGHQTDxAHp9upecaaEi74DilIF9DI7vEuD0YEO3jnf xGaBAS0NS9xt/uxhlCCs/tOyF/3fDxdb+N2C3ROEd8DetqaMTGFlHq3+CMRoIM34qXim NOTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685744560; x=1688336560; 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=mK9ooTnIIPstvRuHFdXn4jUqcXC6NMJg2ggUZKFIvy8=; b=DEHsqRhRf4lb1Jlh2tPNjg+Q0jq8rE+LNM4djkr+IEegXCnQnHbkHRZZz+hQ/N6R4t oT6uVnynVIEGRkBjU/c6cs/VJtNSdmAqN+Wn0elBrQpfdXqwRGRTUsk+/qxtWc7EJiYW 04KL7HnAEgRVN4nin0pi0tQA178yT67eg61ta1bYTVdoN0E6VdS3kTuRY+NR6tyrpAPi k+sHTiB+DKwSIpOjOvwSN/HcJGNS5UhD87emEpdBst7l1iqW1o375y31b3+LpltPYSpY glrD8xF5TLbML2DFLY+biSOirR+/Gu+mpqL71h4baFc0oJrTZEub6mXZaKsmY1DbpxtW GcmQ== X-Gm-Message-State: AC+VfDyXEoQT0VenyX8lsY4jRNgeYB427fM8wLSOuIy8OXdWAnPSLU5f BCJwyCaYmCiRZLq7jcvVQAQ+ejEVP3g= X-Google-Smtp-Source: ACHHUZ5PcZIPcD/CDwiMTGCm6Hjx0oaaa6NIs0etRWPWX9rPJxQ+L5t5kG7HP1j3LClnmyBj1/DBxg== X-Received: by 2002:a05:6870:8184:b0:187:afcb:87ec with SMTP id k4-20020a056870818400b00187afcb87ecmr7646427oae.4.1685744179006; Fri, 02 Jun 2023 15:16:19 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:dad1:c980:e6de:3901]) by smtp.gmail.com with ESMTPSA id k4-20020a4a4304000000b005584e0c8f9csm951587ooj.3.2023.06.02.15.16.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jun 2023 15:16:18 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: hs@denx.de, abelvesa@kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Fabio Estevam Subject: [PATCH 2/3] ARM: dts: imx6sx: Describe the default LCDIF1 parent Date: Fri, 2 Jun 2023 19:16:03 -0300 Message-Id: <20230602221604.155027-2-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230602221604.155027-1-festevam@gmail.com> References: <20230602221604.155027-1-festevam@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230602_152243_564829_EB24DDB2 X-CRM114-Status: GOOD ( 13.42 ) 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 --- arch/arm/boot/dts/imx6sx.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx.dtsi b/arch/arm/boot/dts/imx6sx.dtsi index 41c900929758..0d549e1f3ced 100644 --- a/arch/arm/boot/dts/imx6sx.dtsi +++ b/arch/arm/boot/dts/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";