From patchwork Fri Oct 20 13:00:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13430671 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 9CB9AC001DF for ; Fri, 20 Oct 2023 13:01:10 +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=HrCAkQWnvuU3nf97fthJklfMkS9XZgISwYNM+8W6szI=; b=SUVv7I8hq0jmQT +VT7o6Ac2Rp9jXJ8Sc5XaPrtTrGROJcMl6AlxBqx/ephrVMgG5Mk2Iw0AqxtD/rsM8ju8HaSqh4bd A4VJWMYhFRozC/3dauxOsHnrcXNDCUo8fxA3vw6SD0B90tTXXs9keFIQzdxh7vGBFF6/fn9sejM+9 sJOf4KCpmQiMYLdcucWz7+tPCCrQzIVB/TGWilj8e+j8Xq7j5+16o09V3oC2Vo8XA65CPNio5ax0o vJMyCsY54tDXaCIXXU/mNsGwJN/+o8rSxjR8eO/PzR41wgxijWjZM6wasHN3M1p5TQZHi2HAeu3Go BHwGdKD027nu95FUCZ9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qtp7G-002Ic4-19; Fri, 20 Oct 2023 13:00:38 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qtp7C-002IZ1-37 for linux-arm-kernel@lists.infradead.org; Fri, 20 Oct 2023 13:00:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1697806835; x=1729342835; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=A4GXrDNHTGMFmp07G5G0Ww5OP+EEWgvQMbcH27cLW/c=; b=BNOvfVe2o8/cftIS5BCC04T3dOIACPRaL1b33napOg5r6S71Hls8zkO6 lXy1UcU8G+b9XSu4ozxQcNgUqTw8WWhznHhMTl9AFaAZJEVol7Wv+Rgmv 8aibGSZRsQUjACIFHc1ex2R1fbRlKq6bkZ53NQ2lFIyUooDF2QHtDzNjR z1MhIrIP0nEJDdeSMh3gFCUxgtyIYqn9m3TXdgPbciHEKvNLo7USd2sAP 3b5aKgc9o1vOsleW1pPK4vdGSyAPKibcjGSNVZBGa3+eU2XzRZHbDIm7p F2sm5Amkt8FhHtGry53fBDl8+dagIR8bXm0lywOq9OZNXBrrI7xjfbZMX g==; X-IronPort-AV: E=Sophos;i="6.03,238,1694728800"; d="scan'208";a="33575469" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 20 Oct 2023 15:00:22 +0200 Received: from steina-w.tq-net.de (steina-w.tq-net.de [10.123.53.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id C8D77280084; Fri, 20 Oct 2023 15:00:21 +0200 (CEST) From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Abel Vesa , Peng Fan , Michael Turquette , Stephen Boyd , Ulf Hansson , Marek Vasut Cc: Alexander Stein , Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux@ew.tq-group.com, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 1/5] soc: imx: imx93-blk-ctrl: Scan subnodes and bind drivers to them Date: Fri, 20 Oct 2023 15:00:14 +0200 Message-Id: <20231020130019.665853-2-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231020130019.665853-1-alexander.stein@ew.tq-group.com> References: <20231020130019.665853-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231020_060035_385653_9FA4F893 X-CRM114-Status: GOOD ( 12.40 ) 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 This particular block can have DT subnodes describing the LVDS LDB bridge. Instead of misusing simple-bus to scan for those nodes, do the scan within the driver. Signed-off-by: Alexander Stein --- drivers/pmdomain/imx/imx93-blk-ctrl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/pmdomain/imx/imx93-blk-ctrl.c b/drivers/pmdomain/imx/imx93-blk-ctrl.c index 40bd90f8b977..dbce40297078 100644 --- a/drivers/pmdomain/imx/imx93-blk-ctrl.c +++ b/drivers/pmdomain/imx/imx93-blk-ctrl.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -297,8 +298,14 @@ static int imx93_blk_ctrl_probe(struct platform_device *pdev) dev_set_drvdata(dev, bc); + ret = devm_of_platform_populate(dev); + if (ret) + goto cleanup_provider; + return 0; +cleanup_provider: + of_genpd_del_provider(dev->of_node); cleanup_pds: for (i--; i >= 0; i--) pm_genpd_remove(&bc->domains[i].genpd); From patchwork Fri Oct 20 13:00:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13430672 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 471ECCDB474 for ; Fri, 20 Oct 2023 13:01:21 +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=P/6wVu5CuxEPdBG937MwovIYrYnCvumsKFiMOl+c8TM=; b=Irery8fYgmbBX6 /mVu8Wvyuw4LAetumgZSori16lLTvdpPKrENiKnpTW8JRJRVH3TI8d63MjR4E/AZUjcrWCN7rmIf7 o4YnUQJMj/AiazSe9+njuubeyBfx3XBNo27Oi4AN29hK3Xr9opdmtSG8LMVO+OiBldv8hRLBk3y/m EpkHnGQWOHAYbKNS18H4zTQrsIm5Sdhv96aUG3kToZt2gR7Sb8ISTTXsSDlgNQnO9hJWPuA71UqXM 3r9Y1Fg9oFDmtSEmsR2m4Da+fikplIoebnP1rudjsgSHkWDApHiJzEINtAMcTDfN2m1TivG5Db4Po 3Tj51WHyb0BjRT/Zsu3A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qtp7T-002Ihs-12; Fri, 20 Oct 2023 13:00:51 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qtp7F-002IZ1-16 for linux-arm-kernel@lists.infradead.org; Fri, 20 Oct 2023 13:00:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1697806837; x=1729342837; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Hd4Emqyn1f/ioRu7HJKUdLwnMCvvFUuy8Lnwq9cpDbU=; b=HT6legQCQuLtrcD6sl5Uwd+UZCcRs08M8FTAaGxhPKaKD7M94QtmbmUK 7fucZN/ARu67l+6CLQLYlQc77LJymvv6K0U5jz+eKFaQkUhI20tXxHP9a 0ScHGd+1+DpbSEXYw7yXCnDauR/vxrP0V0PdwuXTxsmmwa/hCABOJFHkw ivKhMVW6Pta/cKxzg5iat6ALj13AvAtFMGj0oC1wJ1UG3xpJTk6BcoDSE gTH0DoZln1oTDrsw+b+mKPNijU681h3d0LUmcNiOfOf5CXthqQvYVPk/Z CJRgaOosX774/9fpDLH/qmxB5CDjlaBljathNHCbyV76EnDhT4FScG3m1 A==; X-IronPort-AV: E=Sophos;i="6.03,238,1694728800"; d="scan'208";a="33575470" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 20 Oct 2023 15:00:22 +0200 Received: from steina-w.tq-net.de (steina-w.tq-net.de [10.123.53.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 28134280085; Fri, 20 Oct 2023 15:00:22 +0200 (CEST) From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Abel Vesa , Peng Fan , Michael Turquette , Stephen Boyd , Ulf Hansson , Marek Vasut Cc: Alexander Stein , Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux@ew.tq-group.com, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 2/5] dt-bindings: soc: imx93-media-blk-ctrl: Add LDB subnode into schema and example Date: Fri, 20 Oct 2023 15:00:15 +0200 Message-Id: <20231020130019.665853-3-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231020130019.665853-1-alexander.stein@ew.tq-group.com> References: <20231020130019.665853-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231020_060037_727307_526CD657 X-CRM114-Status: GOOD ( 11.12 ) 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 Document the LDB bridge subnode and add the subnode into the example. For the subnode to work, the block control must scan its subnodes and bind drivers to them, do not misuse either simple-bus or simple-mfd here. Signed-off-by: Alexander Stein --- .../soc/imx/fsl,imx93-media-blk-ctrl.yaml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/imx/fsl,imx93-media-blk-ctrl.yaml b/Documentation/devicetree/bindings/soc/imx/fsl,imx93-media-blk-ctrl.yaml index b3554e7f9e76..5ba66dfb0e05 100644 --- a/Documentation/devicetree/bindings/soc/imx/fsl,imx93-media-blk-ctrl.yaml +++ b/Documentation/devicetree/bindings/soc/imx/fsl,imx93-media-blk-ctrl.yaml @@ -24,6 +24,12 @@ properties: reg: maxItems: 1 + '#address-cells': + const: 1 + + '#size-cells': + const: 1 + '#power-domain-cells': const: 1 @@ -46,9 +52,16 @@ properties: - const: csi - const: dsi + bridge@20: + type: object + $ref: /schemas/display/bridge/fsl,ldb.yaml# + unevaluatedProperties: false + required: - compatible - reg + - '#address-cells' + - '#size-cells' - power-domains - clocks - clock-names @@ -77,4 +90,35 @@ examples: clock-names = "apb", "axi", "nic", "disp", "cam", "pxp", "lcdif", "isi", "csi", "dsi"; #power-domain-cells = <1>; + #address-cells = <1>; + #size-cells = <1>; + + bridge@20 { + compatible = "fsl,imx93-ldb"; + reg = <0x20 0x4>, <0x24 0x4>; + reg-names = "ldb", "lvds"; + clocks = <&clk IMX93_CLK_LVDS_GATE>; + clock-names = "ldb"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + ldb_from_lcdif2: endpoint { + remote-endpoint = <&lcdif2_to_ldb>; + }; + }; + + port@1 { + reg = <1>; + + ldb_lvds: endpoint { + remote-endpoint = <&ldb_to_panel>; + }; + }; + }; + }; }; From patchwork Fri Oct 20 13:00:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13430675 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 1B43DCDB474 for ; Fri, 20 Oct 2023 13:01:28 +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=4EKNO5E3GZtT1zlSMYXUiHKjp3bguRWD7WMn3oimidQ=; b=IueKdgL0Hw47Zv 3w8TF25aWDI2w82EpY1shuUiQhzbBQod46A4Qj4YNfmqiUmLWnUvHX9tA/YPbMXXmPi1JebUCpdon tzfppOeE+d5xpK3oKjOc9Zfn3qFud3XFJ0Lc+TyT3tmMpmP6kTmH5kp2EBEVLTHNuwgZhBZrd85iF pTsKppk1vFXFxBKmHVb8eRBga2s3D1IegWdbU/USDBBzUNFFVBAGteu4jf60z1gBf+E5iwdXzwHnH M0LfRxxHKhmHaOoEMGpWI2mQwagarOZIqv71ZzNMOmbQBgxzyuA368DFX08mH3q9Cv+toiNSdyvxj J1kAemwWxjSH+DPV0aew==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qtp7U-002IiY-0Z; Fri, 20 Oct 2023 13:00:52 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qtp7F-002IYU-18 for linux-arm-kernel@lists.infradead.org; Fri, 20 Oct 2023 13:00:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1697806837; x=1729342837; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=6NsjdVRKrU1cywbzFwvQUQKcvsrnAUc1urD+yHBG+gw=; b=msgh781OqlHZInXofNjdWClL1DFr6KIXeDpBoLcLiGAkupW6GGi1d2XA C5m/x4CZgAbnU/nQvsret2pPMDGB+MfJHaH3hwfMypaf2/dbiHx2XZHF8 D711YmWzKj+rU2bOsJMwI4Ms+FJrEgqNyTuFjO8OR/8pk7XLUagxb28mG zSlazZL435/mu/xXSUF0pmkPZre2JluHBCdF0whgm+CInSAIf9uW8VTPp EO2dkgGj0XT1H+b92TKicPR2q6A5nUMXHhO8OZzrbfMmpsaHKCyO1DrSR B8TEaOQIDPzjFkNcsMh6f/foom5H/Fvw4x/BK+4Q1qz/AcyeBACIVOCBj g==; X-IronPort-AV: E=Sophos;i="6.03,238,1694728800"; d="scan'208";a="33575471" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 20 Oct 2023 15:00:22 +0200 Received: from steina-w.tq-net.de (steina-w.tq-net.de [10.123.53.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 74C8B280086; Fri, 20 Oct 2023 15:00:22 +0200 (CEST) From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Abel Vesa , Peng Fan , Michael Turquette , Stephen Boyd , Ulf Hansson , Marek Vasut Cc: Alexander Stein , Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux@ew.tq-group.com, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 3/5] arm64: dts: imx93: Add LCDIF & LDB nodes Date: Fri, 20 Oct 2023 15:00:16 +0200 Message-Id: <20231020130019.665853-4-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231020130019.665853-1-alexander.stein@ew.tq-group.com> References: <20231020130019.665853-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231020_060037_728842_A9F9441C X-CRM114-Status: GOOD ( 10.73 ) 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 LCDIF port 1 is directly attached to the LVDS Display Bridge (LDB). Both need the same clock source (VIDEO_PLL1). Signed-off-by: Alexander Stein --- arch/arm64/boot/dts/freescale/imx93.dtsi | 76 ++++++++++++++++++++++++ 1 file changed, 76 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx93.dtsi b/arch/arm64/boot/dts/freescale/imx93.dtsi index ceccf4766440..c0213850445d 100644 --- a/arch/arm64/boot/dts/freescale/imx93.dtsi +++ b/arch/arm64/boot/dts/freescale/imx93.dtsi @@ -1037,6 +1037,8 @@ s4muap: mailbox@47520000 { media_blk_ctrl: system-controller@4ac10000 { compatible = "fsl,imx93-media-blk-ctrl", "syscon"; reg = <0x4ac10000 0x10000>; + #address-cells = <1>; + #size-cells = <1>; power-domains = <&mediamix>; clocks = <&clk IMX93_CLK_MEDIA_APB>, <&clk IMX93_CLK_MEDIA_AXI>, @@ -1050,8 +1052,82 @@ media_blk_ctrl: system-controller@4ac10000 { <&clk IMX93_CLK_MIPI_DSI_GATE>; clock-names = "apb", "axi", "nic", "disp", "cam", "pxp", "lcdif", "isi", "csi", "dsi"; + assigned-clocks = <&clk IMX93_CLK_MEDIA_AXI>, + <&clk IMX93_CLK_MEDIA_APB>, + <&clk IMX93_CLK_VIDEO_PLL>, + <&clk IMX93_CLK_MEDIA_DISP_PIX>; + assigned-clock-parents = <&clk IMX93_CLK_SYS_PLL_PFD1>, + <&clk IMX93_CLK_SYS_PLL_PFD1_DIV2>, + <&clk IMX93_CLK_24M>, + <&clk IMX93_CLK_VIDEO_PLL>; + assigned-clock-rates = <400000000>, <133333333>; #power-domain-cells = <1>; status = "disabled"; + + lvds_bridge: bridge@20 { + compatible = "fsl,imx93-ldb"; + reg = <0x20 0x4>, <0x24 0x4>; + reg-names = "ldb", "lvds"; + clocks = <&clk IMX93_CLK_LVDS_GATE>; + clock-names = "ldb"; + assigned-clocks = <&clk IMX93_CLK_MEDIA_LDB>; + assigned-clock-parents = <&clk IMX93_CLK_VIDEO_PLL>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + ldb_from_lcdif: endpoint { + remote-endpoint = <&lcdif_to_ldb>; + }; + }; + + port@1 { + reg = <1>; + + ldb_lvds: endpoint { + }; + }; + }; + }; + }; + + lcdif: display-controller@4ae30000 { + compatible = "fsl,imx93-lcdif"; + reg = <0x4ae30000 0x23c>; + interrupts = ; + clocks = <&clk IMX93_CLK_MEDIA_DISP_PIX>, + <&clk IMX93_CLK_LCDIF_GATE>, + <&clk IMX93_CLK_MEDIA_AXI>; + clock-names = "pix", "axi", "disp_axi"; + assigned-clocks = <&clk IMX93_CLK_VIDEO_PLL>, + <&clk IMX93_CLK_MEDIA_DISP_PIX>; + assigned-clock-parents = <&clk IMX93_CLK_24M>, + <&clk IMX93_CLK_VIDEO_PLL>; + power-domains = <&media_blk_ctrl IMX93_MEDIABLK_PD_LCDIF>; + status = "disabled"; + + port { + #address-cells = <1>; + #size-cells = <0>; + + lcdif_to_dsi: endpoint@0 { + reg = <0>; + }; + + lcdif_to_ldb: endpoint@1 { + reg = <1>; + remote-endpoint = <&ldb_from_lcdif>; + }; + + lcdif_to_dpi: endpoint@2 { + reg = <2>; + }; + }; }; ddr-pmu@4e300dc0 { From patchwork Fri Oct 20 13:00:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13430674 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 A8E00C0032E for ; Fri, 20 Oct 2023 13:01:24 +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=zO1LM4QVn7+BkGXmcF2QXDZCptE3on3iZHA173i3m6Y=; b=aqF3juwaQjzQL1 0xWK2j1n0CGMawK5e24GQ+RyYNiVOi0+VyokyZy/4uMNydZ9OP4FDAiSkl2hvP6GucTHgEldHvKYl Z2+uhNXgxyP/RzcHZeEvO7t6x5Ve9ftnsJWMdtwnCCt2ZXaUjRvjfLuGx7n6Fg+WXuDRfLm/l85VP MySs3txHWLF9Za7E+Loxw+/NvzqbS/AjUTLza+PG/8mw347x0g+rfr1GlVs+fQ71C7KA2myp+QPnr xAQ9VmH9VV6k/6mcdA+WZ0InseGLsVax12PiG6PtHm4xiHaLXblH0TMLoQ9cFXsQVF66GI8qnS+xp FtUAZiYzojOZPPl4txlQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qtp7V-002Ij0-0U; Fri, 20 Oct 2023 13:00:53 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qtp7G-002IbG-1F for linux-arm-kernel@lists.infradead.org; Fri, 20 Oct 2023 13:00:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1697806838; x=1729342838; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mLOxA8Bx0MyGO/U31hrvN9KrvyYCpT1lmRzQsWSFyG4=; b=UO+heo/bjc8v04aiO+vzyhhsCSzHDbMS7DHtACfJhpwejqBS9zRPqijr hvozD45N1S98X3BlUlLf12wNG973wUZQYnO0ZJrdmPwONJ7nbWEsI1MOv F0MKd+Ap7AkP8HOYqafvE3VeQJ/fRQEuetKmbs+sTyz8FFp9AOLQB+rke 76FLYkrx0IQjO5fbS6ZVLusbY9PTo3OvhkJHsrpbcaeya+zNCdfVMa3g7 cJ8a0oIFQpqjN7Y+UzdQbsTviQFELAC7wxCTMDrT+fKn0pyFbTTgyrSR2 wo+aFibxsVeQO+kYvPVb9ixxtf4D61jU0sQPUS5RbzznopkHH5ReUZVyf g==; X-IronPort-AV: E=Sophos;i="6.03,238,1694728800"; d="scan'208";a="33575472" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 20 Oct 2023 15:00:23 +0200 Received: from steina-w.tq-net.de (steina-w.tq-net.de [10.123.53.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id C026F280085; Fri, 20 Oct 2023 15:00:22 +0200 (CEST) From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Abel Vesa , Peng Fan , Michael Turquette , Stephen Boyd , Ulf Hansson , Marek Vasut Cc: Alexander Stein , Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux@ew.tq-group.com, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 4/5] clk: imx: clk-fracn-gppll: Add 477.4MHz config for video pll Date: Fri, 20 Oct 2023 15:00:17 +0200 Message-Id: <20231020130019.665853-5-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231020130019.665853-1-alexander.stein@ew.tq-group.com> References: <20231020130019.665853-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231020_060038_769572_CAC7189F X-CRM114-Status: GOOD ( 11.10 ) 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 Add the 477.4MHz frequency support that will be used by video subsystem on imx93. Signed-off-by: Alexander Stein --- drivers/clk/imx/clk-fracn-gppll.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/imx/clk-fracn-gppll.c b/drivers/clk/imx/clk-fracn-gppll.c index 44462ab50e51..deb03c6d16e9 100644 --- a/drivers/clk/imx/clk-fracn-gppll.c +++ b/drivers/clk/imx/clk-fracn-gppll.c @@ -84,6 +84,7 @@ static const struct imx_fracn_gppll_rate_table fracn_tbl[] = { PLL_FRACN_GP(519750000U, 173, 25, 100, 1, 8), PLL_FRACN_GP(498000000U, 166, 0, 1, 0, 8), PLL_FRACN_GP(484000000U, 121, 0, 1, 0, 6), + PLL_FRACN_GP(477400000U, 119, 35, 100, 0, 6), PLL_FRACN_GP(445333333U, 167, 0, 1, 0, 9), PLL_FRACN_GP(400000000U, 200, 0, 1, 0, 12), PLL_FRACN_GP(393216000U, 163, 84, 100, 0, 10), From patchwork Fri Oct 20 13:00:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 13430673 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 9CEF3C001DF for ; Fri, 20 Oct 2023 13:01:24 +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=6CYi4p24fDv+nQ7QZOBQCuE3JVQoCND/WKozJV8CoaQ=; b=RMo0JeclN+9rI1 mHb845/eYQaeVNNe6paNPZ6WML33YMZn4c14b/teJ83CQ+mCnVyP5ulJLqDbUPNhGYXtMS3cmlYnO PKwZBeGy0QOtH4RgPNMxjOQoZIZ3n4EQOI+uky9k+O9HRCjV7AxiOPiDnlcosO5+BQExMyUTRwXS1 arLMQnMfMQSlZVy0zejMYMQy4fQQ12Dt72gJNmFHrlaTfVr4JvBG5UVlHQ59+o3eR6mkUQ5hzT2p6 BGD6zsUUJQaMfPu7Ncy/cdKtU4BVVCxt7I0zokTxHQYmnkSLVc3ipeRCs6e4A1n+Y8MZxAIEJpMIW 4PTIoR/5Vs2OyN9QCDUQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qtp7V-002IjZ-3A; Fri, 20 Oct 2023 13:00:54 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qtp7H-002IZ1-1j for linux-arm-kernel@lists.infradead.org; Fri, 20 Oct 2023 13:00:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1697806839; x=1729342839; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1v0FIctfXRxXXdGfP79mZdDhr3QMXDS4n7+VsOpM9N4=; b=dJeFS8+ceMhUs4FPxQvM02+uUptdMBOjSzfOmKA3fVPMdNjAgTOPHjBW 5QkjjMCFNKYyHHUG7QAuhq3OEUeQusoplPboRVHJHgm7NmhWTFNy0Kcbr 5TXrabWJOpW86oZtV9x1KNsDDbjT48cH9aD5dms2sMY2vYtwfoFkQS0+t pkp8lOwdn1JCEOz5QcagE7YLkKriragDTr9besePwiWOgMQ4d5GA5VIX2 wLraJtCH0opolA67XGXldpFi5jiBGLi7iZBOeFuBjSX9kI5gtyZmevV4p 4VOmkTKN9kjLGyHvNE78VWmTPtA8qTmCMAeUmCTW6WMAF+xfXzUChjXwr A==; X-IronPort-AV: E=Sophos;i="6.03,238,1694728800"; d="scan'208";a="33575474" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 20 Oct 2023 15:00:23 +0200 Received: from steina-w.tq-net.de (steina-w.tq-net.de [10.123.53.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id 21D4E280086; Fri, 20 Oct 2023 15:00:23 +0200 (CEST) From: Alexander Stein To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Abel Vesa , Peng Fan , Michael Turquette , Stephen Boyd , Ulf Hansson , Marek Vasut Cc: Alexander Stein , Pengutronix Kernel Team , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux@ew.tq-group.com, linux-clk@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 5/5] arm64: dts: mba93xxla: Add LVDS overlay Date: Fri, 20 Oct 2023 15:00:18 +0200 Message-Id: <20231020130019.665853-6-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231020130019.665853-1-alexander.stein@ew.tq-group.com> References: <20231020130019.665853-1-alexander.stein@ew.tq-group.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231020_060039_914555_81A9B9D4 X-CRM114-Status: GOOD ( 16.71 ) 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 This adds the overlay for the Tinma TM070JVHG33 LVDS display. Signed-off-by: Alexander Stein --- arch/arm64/boot/dts/freescale/Makefile | 3 ++ ...3-tqma9352-mba93xxla-lvds-tm070jvhg33.dtso | 45 +++++++++++++++++++ .../freescale/imx93-tqma9352-mba93xxla.dts | 27 +++++++++++ 3 files changed, 75 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxla-lvds-tm070jvhg33.dtso diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index ba70adc51bef..85802bc1639f 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -191,6 +191,9 @@ dtb-$(CONFIG_ARCH_MXC) += imx93-11x11-evk.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-tqma9352-mba93xxca.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-tqma9352-mba93xxla.dtb +imx93-tqma9352-mba93xxla-lvds-tm070jvhg33-dtbs += imx93-tqma9352-mba93xxla.dtb imx93-tqma9352-mba93xxla-lvds-tm070jvhg33.dtbo +dtb-$(CONFIG_ARCH_MXC) += imx93-tqma9352-mba93xxla-lvds-tm070jvhg33.dtb + imx8mm-venice-gw72xx-0x-imx219-dtbs := imx8mm-venice-gw72xx-0x.dtb imx8mm-venice-gw72xx-0x-imx219.dtbo imx8mm-venice-gw72xx-0x-rpidsi-dtbs := imx8mm-venice-gw72xx-0x.dtb imx8mm-venice-gw72xx-0x-rpidsi.dtbo imx8mm-venice-gw72xx-0x-rs232-rts-dtbs := imx8mm-venice-gw72xx-0x.dtb imx8mm-venice-gw72xx-0x-rs232-rts.dtbo diff --git a/arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxla-lvds-tm070jvhg33.dtso b/arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxla-lvds-tm070jvhg33.dtso new file mode 100644 index 000000000000..9eb24abca6bf --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxla-lvds-tm070jvhg33.dtso @@ -0,0 +1,45 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) +/* + * Copyright (c) 2023 TQ-Systems GmbH , + * D-82229 Seefeld, Germany. + * Author: Alexander Stein + */ + +#include +#include + +/dts-v1/; +/plugin/; + +&{/} { + compatible = "tq,imx93-tqma9352-mba93xxla", + "tq,imx93-tqma9352", "fsl,imx93"; +}; + +&backlight_lvds { + status = "okay"; +}; + +&display { + compatible = "tianma,tm070jvhg33"; + status = "okay"; +}; + +&lcdif { + assigned-clocks = <&clk IMX93_CLK_VIDEO_PLL>, + <&clk IMX93_CLK_MEDIA_DISP_PIX>; + assigned-clock-rates = <477400000>; + status = "okay"; +}; + +&lvds_bridge { + status = "okay"; +}; + +&media_blk_ctrl { + status = "okay"; +}; + +&tpm5 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxla.dts b/arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxla.dts index f0d0bf84f6ba..84fdeaaaea44 100644 --- a/arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxla.dts +++ b/arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxla.dts @@ -40,6 +40,23 @@ backlight_lvds: backlight { status = "disabled"; }; + display: display { + /* + * Display is not fixed, so compatible has to be added from + * DT overlay + */ + power-supply = <®_3v3>; + enable-gpios = <&expander2 1 GPIO_ACTIVE_HIGH>; + backlight = <&backlight_lvds>; + status = "disabled"; + + port { + panel_in_lvds0: endpoint { + remote-endpoint = <&ldb_lvds>; + }; + }; + }; + clk_dp: clk-dp { compatible = "fixed-clock"; #clock-cells = <0>; @@ -420,6 +437,16 @@ &lpuart8 { status = "okay"; }; +&lvds_bridge { + ports { + port@1 { + ldb_lvds: endpoint { + remote-endpoint = <&panel_in_lvds0>; + }; + }; + }; +}; + &pcf85063 { /* RTC_EVENT# is connected on MBa93xxLA */ pinctrl-names = "default";