From patchwork Fri May 19 12:52:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13248293 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 2353DC7EE23 for ; Fri, 19 May 2023 12:53:33 +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=CsScaqlwPIUwxoRG9hYyiTkraB+l6ser1119LGU3p3Y=; b=dih/Fh1HM4I/ZR 0Kea1v2REqNkd6kaFNx+EsjX8DdJr+j76uzipEDsiQ85kV858ZJdwbqTos1Dw63dxM+4s4uzronJW KEd6eov2O9doN8jy/MZODz0qk9cjA4jYElXiWylQaGpDx67XQQzufrpR3/gj0pYwi4wAj9PH+DQEy 9XMG5n4JrsnAoWNjZIoeN7bpGVr9D1LP26stBCdXYAHpkPXEyC2X4rBzo01Yg8JSIO6VB0rfx7PMj Ee86MDWGoqM5Qq1TW4UfxnDBvSEv6zaTGZOYHNHQyqI40+ldPLz8vbDh7XOOpyOOoJ1yV2IJcHCOR oBxXOYOW/6yDQfBUY4mA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pzzbc-00GJbx-2z; Fri, 19 May 2023 12:53:12 +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 1pzzbY-00GJa3-0O for linux-arm-kernel@lists.infradead.org; Fri, 19 May 2023 12:53:09 +0000 Received: by mail-oo1-xc2e.google.com with SMTP id 006d021491bc7-554e9835f4dso234600eaf.1 for ; Fri, 19 May 2023 05:53:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684500786; x=1687092786; 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=krsGcXa7GEcykxpLnKUmx0Yh+Lm3P6pAyGs9X6hUAcs=; b=LhGn1DHDwnzt0E1Yr4FxLS7HJxxnTItFXT+R4rPA9PkLTpof3iDm+9gX7SVI1UF7p2 OX+d/itit0SwrOe74GjL/dp3XD1eAc8ThLhKLoAgVeKIEovQ+pE2ySZL9SPNY4R7kWrV L8W57Cc0FurbFVt5GUur7NWcdAmRC9y6oy9em58gzi9c6014RumHuaNDwiPAcpDFZ88C Tkv+fjPSxT/znxzK0Fri9sGKYWfOouXDu8Gh0BT1bJB3d9x5snsms3lqUIgG7Q8bJM1d N06H4lUZFSuzDbD+90Dx+vjWewmjqfCRl6jHIhUEp9w80/U27q/S/VsdYWmcFyFTGz7T JQQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684500786; x=1687092786; 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=krsGcXa7GEcykxpLnKUmx0Yh+Lm3P6pAyGs9X6hUAcs=; b=QVAoOPG1S3HXrcNzaYXF/v2WEpj3qUvEZwbJZ4fbZgd6cc6nVgUo8I2o1b4rKgdtnU 84Df5Z/HKoVZoJ289aQL2fN4mWUYXbVJDqs13IDsQoj54WI8NdRxRdnlZ5QwZbKUnxgT gYtxhS196DbOFqcSTXHFn8XHKFD1EbN8GxbnQ9htU1oSqYOpMnIGpdkcOBcBoX/FPvZx RB3yL4gH0qnWzSDgXgO0cKbCOl1P0qQalSaYdTdFb4JXAMCdIcQVGM4PkSH2KNCONc40 xYFHq9SrtbPwNlwUDkjWaOvEIeSG25CMis2mPXC3q+y7W2wz+mS4U/jj8YkA21jD7NOT Jt8g== X-Gm-Message-State: AC+VfDzKsedHZos6cCqwypGRmDr9BgxI+pdGiNtqHwneN3czn5sP2KO0 +v2SYNOL/owydL6Un8xUhj0= X-Google-Smtp-Source: ACHHUZ6ldh2+rXc0/avcwTFZxJhxqwc8kBdtDwUnkf7qmSmVEj8GdDhLElYF3t3up5JtF+fK+5ozGg== X-Received: by 2002:a4a:c310:0:b0:54c:a420:aeda with SMTP id c16-20020a4ac310000000b0054ca420aedamr710019ooq.0.1684500786148; Fri, 19 May 2023 05:53:06 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:3a54:c40b:8f0c:b968]) by smtp.gmail.com with ESMTPSA id i19-20020a4ad093000000b0055278f297f8sm1375321oor.33.2023.05.19.05.53.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 05:53:05 -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 v4 3/4] ARM: dts: imx6sx: Add LDB support Date: Fri, 19 May 2023 09:52:35 -0300 Message-Id: <20230519125236.352050-3-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230519125236.352050-1-festevam@gmail.com> References: <20230519125236.352050-1-festevam@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230519_055308_155904_8F0F623A X-CRM114-Status: GOOD ( 11.65 ) 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 v3: - 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 {