From patchwork Tue May 23 23:52:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13253130 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 A1985C7EE26 for ; Tue, 23 May 2023 23:53: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=ygV4SPx/tHvdStKXEp517ltjSYcU31Obt0O92zfeL8g=; b=aPMMPn0ppofIHI vmedGo3K8An0s7+aM+gb7Xaj2cThBgT2lC7k1bXhPB3PBKLaiDhlnuvmBXsOLH1L5TpETN6fWSIz6 Ra5cMGKyiSqCBevYBFnZ8admdowRsV8oguCGhWV+I3W/LmpWld6dGzC7OPqn1TZ2BlMJoxVDIY07W S1lL3D7wMlnkktlqQtwGYauwsM+T/UeP4i/rJAoTRUtyFJsW6GCNZQBitarWFpXY5V63GCuNHFZXO H8OI6/n3Sr/vxjlBZ/zx+CslaqpbdHQAp01jmnoQZqUVNjUAY8ttYkcFKn1EMCm+j4pI6r8C//lh7 dcKrRSNRFu7ffhTMkJlQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1bo7-00BqEi-1J; Tue, 23 May 2023 23:52:47 +0000 Received: from mail-oo1-xc31.google.com ([2607:f8b0:4864:20::c31]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q1bo5-00BqDp-1C for linux-arm-kernel@lists.infradead.org; Tue, 23 May 2023 23:52:46 +0000 Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-555752282ceso50528eaf.1 for ; Tue, 23 May 2023 16:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684885962; x=1687477962; 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=dWnbeYWBwvLFEtp6veydKMiIhgUpeiC8+e3Qh5iiCZM=; b=KvrI9vQRwMBtM12K2cUSMD+wvnQbMoYJ3NXQ2rIGCk8po93Z926tmhtJvAcQAjRkig 3Lwokf48EhM82C4Iwvd3WyGR4feK8Ae5ZmPRDuaHr5Bz06jBGMChEtVkRkH0mW6DFk0T Ebue1TQHzDvMEFzgfcJN2dfQl5WvbD0Gniln00bM70+8Yu3Z2Trlu8GMXF8bU3TATWS0 eQRz8u1lC+wGgVp1juGl2xpwv05iOG9dwtrSsac4cfFuE/5cn+MfQG3yAQ+2Czrv3Q1H C6Pc92OcEBlaLDBfCy4JXkWYwlprQ0mUzeN2GWIkH4q+am7eaxQDlQguO6eHhZINCYqe WiNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684885962; x=1687477962; 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=dWnbeYWBwvLFEtp6veydKMiIhgUpeiC8+e3Qh5iiCZM=; b=cL7eq8GB0E+9hIWgZcUj9KlfFXq+1XQE2cSNo6l4j+Dt/0z4QAKrx5l5ytrw+Qbd/Y cn9PQJx2lq2fI2/K2vNhTiW8Ipgc6GjYPTdbHAMM8IKrOHat47xpF9YZOwRrdHXJn9tX pDKIPB7fidFLTbeBDTTZOUbT+y5UvvY3fOaHv04bx5GMEoEbB1iCN3RUGW/huBFjvOLv 8d+19k/2/pH0Cn1RYUdsATF9pcjbLg3Td0ETY7PFpTfULIzImEsUR/TkedseVW9bWyDM CibHrlq+OhMP/ndLUnTkHTNZK2fZmx9diK87OLz4mRL2tozC23J+IYyjtBbURl0e54qU 49Ig== X-Gm-Message-State: AC+VfDz7w6YIDXm9RHhPihwChqhHtd4NqPIkxMClqkQMTZC1JmClm3T/ ZcmwFDpWt3OYhkzWbMmLp/E= X-Google-Smtp-Source: ACHHUZ5/olY9g2Hi1urdccqW13iaOVdaUzDuQrkek4BUEYj0tloJaCeu8gw8MiCNGbWAj9dA0ULhsQ== X-Received: by 2002:aca:efc6:0:b0:385:d91:ee30 with SMTP id n189-20020acaefc6000000b003850d91ee30mr7413924oih.3.1684885962577; Tue, 23 May 2023 16:52:42 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:14ab:657f:c6e7:b30b]) by smtp.gmail.com with ESMTPSA id h13-20020a4ad74d000000b00552502f3ae1sm2454559oot.39.2023.05.23.16.52.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 16:52:42 -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 v7 2/2] ARM: dts: imx6sx: Add LDB support Date: Tue, 23 May 2023 20:52:32 -0300 Message-Id: <20230523235232.7358-2-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230523235232.7358-1-festevam@gmail.com> References: <20230523235232.7358-1-festevam@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230523_165245_428983_0A7B5127 X-CRM114-Status: GOOD ( 12.92 ) 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 --- Dependency: This depends on bd60d98a11da ("dt-bindings: display: bridge: ldb: Adjust imx6sx entries"), which is available on linux-next. Changes since v6: - Use simple-mfd. arch/arm/boot/dts/imx6sx.dtsi | 42 +++++++++++++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/imx6sx.dtsi b/arch/arm/boot/dts/imx6sx.dtsi index 4233943a1cca..3a4308666552 100644 --- a/arch/arm/boot/dts/imx6sx.dtsi +++ b/arch/arm/boot/dts/imx6sx.dtsi @@ -841,10 +841,40 @@ iomuxc: pinctrl@20e0000 { reg = <0x020e0000 0x4000>; }; - gpr: iomuxc-gpr@20e4000 { + gpr: syscon@20e4000 { compatible = "fsl,imx6sx-iomuxc-gpr", - "fsl,imx6q-iomuxc-gpr", "syscon"; + "fsl,imx6q-iomuxc-gpr", "syscon", "simple-mfd"; + #address-cells = <1>; + #size-cells = <1>; reg = <0x020e4000 0x4000>; + + lvds_bridge: bridge@18 { + compatible = "fsl,imx6sx-ldb"; + reg = <0x18 0x4>; + 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 +1308,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 {