From patchwork Fri May 19 11:29:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13248279 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 CD795C77B75 for ; Fri, 19 May 2023 12:31:00 +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=1Yx9VuyRpNwZVuBaHXn2pkCHukIBuJfDe9EfNiisJUU=; b=i1s5JzKeRa60d/ 3DRj625ZqpHnl3fCmvsAoNQGbUxjrShi32nmHCfC6qXLj85rAzYxo8JkZu2kTBKB09Bssg9xTBad1 71Jxc4kQjLeMdBLf0a0+1BGEmYQ4L3e/DZXIW29qJ4DnsOp9L+kQgrpPFswt4cohXh63slLT9KJ2i wio1ciM5JGuCrwwrhkcyGI+/cxCFTiNYMcPl/n3bLfr9wl/kGf3G9EbSTY7usmorr3IneSfklIQi9 /6JDXHKtimS4mFZrFXL+kKTeHwokw6gy9jFpR64E+Ehlldp3J/T72DuCDmAx1liT7Eg1pWGXaRmRH e6qfru0O9ltTS/OIKDEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pzzG2-00GGau-2b; Fri, 19 May 2023 12:30:54 +0000 Received: from mail-oo1-xc35.google.com ([2607:f8b0:4864:20::c35]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pzyIg-00G6rA-0Q for linux-arm-kernel@lists.infradead.org; Fri, 19 May 2023 11:29:35 +0000 Received: by mail-oo1-xc35.google.com with SMTP id 006d021491bc7-54f8e5472a4so469713eaf.1 for ; Fri, 19 May 2023 04:29:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684495773; x=1687087773; 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=ejT1HekoTuTtiQ5rliaJhJUFFTJ26UWGUs+MnEQ+4SA=; b=qGeFcBQk1WGA1ZaWRCqqnHaPCeN+NAjGrk71UGRbatQRDqVV99uqPYtgt26pPMlSVg 4Ral0RyhMIJttyY1YPnxV6qMFejSvRPqg7CoD/6nRgMEEALIJkVr2Zt7K88GtNfO7GF+ WK3vUMTM6cKJmTapqQebj1XaHLLM6M5rjhU/F748QrFgd7uJqKO0bjcOSnC6KgaBucO+ ekOG3dhaxt5hbZg6aEvlEvTjwnpt4iqKyMSeEdjWLZ8O042FqeERBB9k8M9fwKfINIi2 3L5nFrsgr0YcG56O/1/B70CtlkwPxRjiCMCuAU7imCUU46aOmMgMkEmOF2Iz35LoevYt iRJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684495773; x=1687087773; 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=ejT1HekoTuTtiQ5rliaJhJUFFTJ26UWGUs+MnEQ+4SA=; b=hNs0L2uaoRU0aKagZgye+oiUBCbWog9OxSGAdIy+Q5j3oAKyt6QNo2dQYBTvJYQqnd e4sqv/Dcr2sdK68y1zwgiWvOfcjRJbp3cy7ZQ4vTXTUQKiG0cjE4AzxULrAsEPSRWkDB 1jptZ3jJWKNK1poTtaaAFxAtsEtsi5lgv/B9oATdyje2zn4JfUJE5ApqDi5zKtamLFtq DI5CXK7B75gKlptunqjVKKi4Iro5BSYGrrVcNp4PzqJWCPFjwLfMgzp3qe11xAfK1ufM nC1XhWDPJNTqYZkEt3zAaJCj03KWcCjxntnahTLDEjOdWh1G+Nwl/Z5D3VzD/Xf8+kW0 Nx1g== X-Gm-Message-State: AC+VfDxjvhfgJXCub5aonTQnc7JgxNsswBELuoy60dNZ9HeMKZg/m+P8 cKbTcypDFui7c432XwTEITY= X-Google-Smtp-Source: ACHHUZ6wU4RRaQBqezoxRjWB9ZC2LARmL/O+oU6TTN72et49AdQnJqLBhL44+nCuVbqvqLppgN9BoQ== X-Received: by 2002:a05:6820:16a3:b0:54f:d702:a405 with SMTP id bc35-20020a05682016a300b0054fd702a405mr765990oob.1.1684495770981; Fri, 19 May 2023 04:29:30 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:3a54:c40b:8f0c:b968]) by smtp.gmail.com with ESMTPSA id u1-20020a4ae681000000b00549f4d87eecsm1327679oot.30.2023.05.19.04.29.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 04:29: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, conor+dt@kernel.org, Fabio Estevam Subject: [PATCH v3 3/4] ARM: dts: imx6sx: Add LDB support Date: Fri, 19 May 2023 08:29:13 -0300 Message-Id: <20230519112914.309669-3-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230519112914.309669-1-festevam@gmail.com> References: <20230519112914.309669-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_042934_169617_16018661 X-CRM114-Status: GOOD ( 11.66 ) 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 v2: - 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 {