From patchwork Wed May 17 21:02:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13245663 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 EB0FDC77B7A for ; Wed, 17 May 2023 21:03:04 +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=Zy6vET8t71ZSutf+BEd1HwIJ8kBKz89IMcHC387BB98=; b=4MrA5dE2ai47rS GZ7lhum51aNyuVJ1lM61+iIlruOApKKOEg8an4ZI3X+EZ75SCzVobsJuK8TmtcgTMs/4l1EaxJK8h kgx6kFs37SrCh1fJBTETbz72X+Fr7MYwDK6rWHAKIp8L+rLT3TpeoUZ+cDDldsTWhhHVrznaUY2lY /CW4l1356fT4M+1PxBz8rcbn4vm1wf+QsGqLDSjf4CaEj60j8cbcDhPRNtwfydXVTQ9Hfw8IP3J3R 0RpqX3BlbWpkV6IxBqGOOfE7oRUGCxYUgWM2T7qOnLfEEBbV+SuZpep8bU5m126mNTQoPl8v+5QfG Gm369wT25S7ZHxIltnzw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pzOIA-00B3YK-2O; Wed, 17 May 2023 21:02:38 +0000 Received: from mail-ot1-x335.google.com ([2607:f8b0:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pzOI8-00B3XO-0N for linux-arm-kernel@lists.infradead.org; Wed, 17 May 2023 21:02:37 +0000 Received: by mail-ot1-x335.google.com with SMTP id 46e09a7af769-6a603577a89so243949a34.0 for ; Wed, 17 May 2023 14:02:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684357351; x=1686949351; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ynoFbDotOwNc5NOOWmuPszhqxJhhIHV/BdWNDimLRPk=; b=bPPcQcGhu7yir08zG3RKv9uGrGgH2eyRxwYiDwfTnCrwmv/GeHfH/EMkl8QY1xMCm2 ktSkoKisajol7h4VWEvJnNHrYjQa5cJjg/EwliVr3ukZXGrwkqn4MmSe4bvtfk60l3xi WNYcPEUql9Pa887jRF4g0jPYNOUJZJ8a/AeQlt9pT38zC8+I9HkJMBHG1kalejISbMv7 3Wc4th0B52wWE1ohx3O6nZqAZUdbqWe0Vr+OkMBI/XhuvMfowG1idzIbITiKUUeHrUtu nbPTbZYqfFB1Wu7gNTdbp0Y2UXz7+/ElRgluqj5ua5ZGpIXFPe5kNotosVg6464Vz24G a7yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684357351; x=1686949351; 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=ynoFbDotOwNc5NOOWmuPszhqxJhhIHV/BdWNDimLRPk=; b=alJkCOn5rmL4ZzbFTiH/WzyoZ3/nkmlBPtivAf9r/PxAHmWmY6gPZzzk0GW/A0IHGW Qe1tGuUVZjAftbHeL84L+SOR8fBsNPZYNgO5Ttl76P5KMe4YPdRBacKwuRzTCbByVcpc xpLTV/5t9gB6XCIpAOUdWdTSc02j9n6WlHbKvU5FF8nfIPIR1cJ1tqQTtD/ZyccLlwAS F+ZJ+e/OE/2NNVsmfjw7AYtbOKqTAee9v2ZgLQoAE5kPdVml7Lfcmv/gCvBK62X1CoM6 lw7w/uJxu1mNsQafgfjOmu3t+J0U3M5mqTZI8XY9bU1Yrug5nufhg/Eb0EMDTuLODb9A xlBQ== X-Gm-Message-State: AC+VfDySCSf/Uu6Dd6dIcmdQu7RIQLBsaNIxYz21T127HbAYcaM8Crlw E8+eLQ1C4NhZNci2+Eauamw= X-Google-Smtp-Source: ACHHUZ46F539Bb2OQ+51xRcbhrPlyusCS6jOB0QiFxA2r4UoJvQd2p69fOsyemHcGo/e1O9AVJGpeQ== X-Received: by 2002:a05:6830:6619:b0:6aa:f618:8103 with SMTP id cp25-20020a056830661900b006aaf6188103mr2349139otb.3.1684357351576; Wed, 17 May 2023 14:02:31 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:2afa:8763:461b:f011]) by smtp.gmail.com with ESMTPSA id l17-20020a05683016d100b006a4244d2a7asm33838otr.9.2023.05.17.14.02.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 May 2023 14:02:30 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: marex@denx.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Fabio Estevam Subject: [PATCH] ARM: dts: imx6sx: Add LDB support Date: Wed, 17 May 2023 18:02:10 -0300 Message-Id: <20230517210210.12183-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-20230517_140236_157255_ACE955CE X-CRM114-Status: GOOD ( 11.88 ) 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 i.MX6SX has an LVDS controller that is connected to the eLCDIF. Add support for it. Signed-off-by: Fabio Estevam --- arch/arm/boot/dts/imx6sx.dtsi | 41 ++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx6sx.dtsi b/arch/arm/boot/dts/imx6sx.dtsi index 4233943a1cca..7a8a00d81666 100644 --- a/arch/arm/boot/dts/imx6sx.dtsi +++ b/arch/arm/boot/dts/imx6sx.dtsi @@ -843,8 +843,39 @@ iomuxc: pinctrl@20e0000 { gpr: iomuxc-gpr@20e4000 { compatible = "fsl,imx6sx-iomuxc-gpr", - "fsl,imx6q-iomuxc-gpr", "syscon"; + "fsl,imx6q-iomuxc-gpr", "simple-bus", "syscon"; + #address-cells = <1>; + #size-cells = <1>; reg = <0x020e4000 0x4000>; + + lvds_bridge: bridge@18 { + compatible = "fsl,imx6sx-ldb"; + clocks = <&clks IMX6SX_CLK_LDB_DI0>; + clock-names = "ldb"; + reg = <0x18 0x4>; + reg-names = "ldb"; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + ldb_from_lcdif1: endpoint { + remote-endpoint = <&lcdif1_to_ldb>; + }; + }; + + port@1 { + reg = <1>; + + ldb_lvds_ch0: endpoint { + }; + }; + }; + }; }; sdma: dma-controller@20ec000 { @@ -1278,6 +1309,14 @@ lcdif1: lcdif@2220000 { clock-names = "pix", "axi", "disp_axi"; power-domains = <&pd_disp>; status = "disabled"; + + ports { + port { + lcdif1_to_ldb: endpoint { + remote-endpoint = <&ldb_from_lcdif1>; + }; + }; + }; }; lcdif2: lcdif@2224000 {