From patchwork Mon May 22 12:51:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13250513 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 DBFAFC7EE26 for ; Mon, 22 May 2023 12:52: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=oXM0KHtceeV5S0uqOnD14YCDIBxCJUk9YORj6FVAzD8=; b=TNIHZxA7DtjY7T oVImnjZnF+/5izYTZ3tkheIlOeprZEFqxrx8F0ms+Tu3+/IeofmC8WwfKv4aeFj6tkdf2dj6CT7/C g7hm+iVNzWVKbXiDEdCQlDRtfZx+0pnEpmCmNcS6rWV3sBvmZ0Hl0akWiqTaiKAsGUCWgavdGRrOW FDB9hJwHpxtYOMoI7c1xzgFYlxsk8DJc4lVQCFyqnRyCxcY4JHag/lrzx4TlReOTjFqfyJT+YYsBi bO1417qLrjv3HDGFJPQszNDOpw5/31RwOiY4S4cQH1w4gSg2zMbIaoIv4UieNhJ7YQXNOQXxcZH22 +kZKw1shHfPgJVZrmLxA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1516-006YcK-22; Mon, 22 May 2023 12:52:00 +0000 Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q150y-006YZP-0i for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2023 12:51:53 +0000 Received: by mail-ot1-x332.google.com with SMTP id 46e09a7af769-6ab0d407a8fso373424a34.0 for ; Mon, 22 May 2023 05:51:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684759911; x=1687351911; 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=Q6t53yFxRsKqj5M9UZvvQ0JSzpBiw1eJPevysJhZqzg=; b=HmLG0ojzuOghaecGITsVT2oACG6peJaiYzEFVQx/kaX/iQx4if4dkxocSMphHtbU1h pvu1MdgLLNvxQw1EBUu1E0o70+ec2O3ayx1sRdhiKmgqXTISsRROVRkHrL2876QWykfy tgdi0CHHQw15cIIEI4pawPR/1u0n6oWFF9XWF5c4knPw2Zi9shlqPd19KYtr0hZQyr03 fE+JC8JwfwtKHHGVqBsAfPhNOS2sz0Ss/7SG+jJFVAnFJfUO+o7ZjAHRCCoyM8RA8cZS SLnHMwdSoiaBV/PDqBR7Yu2DJfoYGxGsYNQM+2xG4lqsDrWhSN0bKm3Ejl3GAEnhjtGA qVQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684759911; x=1687351911; 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=Q6t53yFxRsKqj5M9UZvvQ0JSzpBiw1eJPevysJhZqzg=; b=i2b9ojM/AxQNkPJLKiaOqPeg7jIrpjKLVnWA4jCgdFhlaIvTPiDIwLpUmOZbxPBw7W VZsxknFykvFkFcOBJu28dxlQiDJXmRdLJvSVYHP7EqsyTSXag/27idl4QMuxIuNHYVI3 k84+CqzgzZo/IBIzSh1bIz8qlQq0QyBC2wp8WACKdAcnEPogmgyWPYVPWZewOeajtenp Ua0fehD6rfYhENIYMwY+DkF1dYOL+ufIx1/X192qCWUCXrlk4UZ8/NzYrN5L2PpKFCWC CG6pg9F+eKOZoTEIF8qRkRK8h1CFle/uu00FT1mTdnpeyyj+bcdTsAMHPOMYxLPdOG8V 85fA== X-Gm-Message-State: AC+VfDzdoYWaWqgrDLhNuOefhUuhjuPJK7D5dN2snEmCZx7I+aESXICC Uf9s5H+Eyl1GwkNaHekoCA4= X-Google-Smtp-Source: ACHHUZ6QfUlustG3ZTrw5pvS4lw9fyls7iRIDHTpHj/WTAuW0JkNIfBtU89b2+cX4sgwbtlNPBGtcQ== X-Received: by 2002:a9d:12ca:0:b0:6af:75ad:3e41 with SMTP id g68-20020a9d12ca000000b006af75ad3e41mr1649114otg.2.1684759911592; Mon, 22 May 2023 05:51:51 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:b71d:e403:4337:204f]) by smtp.gmail.com with ESMTPSA id r126-20020acada84000000b003943e08ee03sm2676408oig.16.2023.05.22.05.51.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 May 2023 05:51:51 -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, conor+dt@kernel.org, Fabio Estevam Subject: [PATCH v5 3/4] ARM: dts: imx6sx: Add LDB support Date: Mon, 22 May 2023 09:51:28 -0300 Message-Id: <20230522125129.526604-3-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230522125129.526604-1-festevam@gmail.com> References: <20230522125129.526604-1-festevam@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230522_055152_257007_594E560F X-CRM114-Status: GOOD ( 11.28 ) 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 --- Changes since v4: - None. arch/arm/boot/dts/imx6sx.dtsi | 39 +++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx.dtsi b/arch/arm/boot/dts/imx6sx.dtsi index 4233943a1cca..442106565025 100644 --- a/arch/arm/boot/dts/imx6sx.dtsi +++ b/arch/arm/boot/dts/imx6sx.dtsi @@ -844,7 +844,38 @@ iomuxc: pinctrl@20e0000 { gpr: iomuxc-gpr@20e4000 { compatible = "fsl,imx6sx-iomuxc-gpr", "fsl,imx6q-iomuxc-gpr", "syscon"; + #address-cells = <1>; + #size-cells = <1>; reg = <0x020e4000 0x4000>; + + lvds_bridge: bridge@18 { + compatible = "fsl,imx6sx-ldb"; + reg = <0x18 0x4>; + reg-names = "ldb"; + clocks = <&clks IMX6SX_CLK_LDB_DI0>; + clock-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 {