From patchwork Mon May 22 20:14:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13251047 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 18A6AC77B75 for ; Mon, 22 May 2023 20:15: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: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=qNaszJIyV5kWAwj20qSnNWZNJvGbPMJ4jGkdiR+XCH8=; b=QiuD0LrrWMkmys l8lWJFe773ZAE7IveJxHpVWaNbF59ponSZv1ANYCzuKNQ9TO0NP0Tn7AEtgCr0PLuiISQJybQ461A Zuew3Aabd4q6YvCJso7r6kmACW/ftM9TrnlPOj+UbVWtzBlq4mzzUGa6Zu65mfOI3pRtWZIuqIyaw O6B1ABYiGm+fjxTE4nvwHTJl+wIlRj1Pkwfo1KwSDKLg7MmpOpO/g5QAmIqAqpRVDiTZJ4xfwsotg rKVNFi+SZ5AxR184EsO39q3UL+u0eSvpFdsD0y7RYNfk34KWxK8Auc8cTF8E8P3K/sWPP8/3DcKCW jNRgFsRtwIs7eTWAJhGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1BvV-007rrJ-3A; Mon, 22 May 2023 20:14:41 +0000 Received: from mail-oo1-xc30.google.com ([2607:f8b0:4864:20::c30]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q1BvR-007rpF-2C for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2023 20:14:38 +0000 Received: by mail-oo1-xc30.google.com with SMTP id 006d021491bc7-5553104aeb4so289753eaf.1 for ; Mon, 22 May 2023 13:14:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684786475; x=1687378475; 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=/U4MwQegtEt6biQ+P7puU9U2kpax+9v8Rb+ryQwCgwU=; b=QQ6iHwDgvDeh5WIpNwR/r+GyI7SxXSdZH/sEjJnOk0JdYflkFYyZGiKJKE3CQifEWc 2dpc1YgytIRsQu93fGQ4v33am8lIW0qLz8CRQz7kYc82MempAHsueXNmLuIXeTV6fRJk IMQn2cWqqAAh+9LHa0v+zSduI+9xFED8m2vKvZIY5+5OTl+UXcVhPC/BNWs9taMzmmXk CPZAFMnMvlo6/IeSZNhrHMP1k8v7b8iTPByrBLEKFoSoM9InEHK57bNbMVQ3BmcpJ36E 6tpPbWjiTI+XlDqUrQcPy2SiZVhLCPqnpkck/vH0tzEjYkXE2d0m76aHqcLWpdmbbaCI 1c4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684786475; x=1687378475; 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=/U4MwQegtEt6biQ+P7puU9U2kpax+9v8Rb+ryQwCgwU=; b=W4J2ovj1u0PMKFb/9JAtPhA5LSVXraQ7Fmk8ipo9bFp5pIVXoV9hFdVaL8LjN7asjC +mP7L/kAk5mJxUNU5301P9Yk00djP6oL1xYTgzGfdh5ee6U1Otj0kK9N8ff8zv3fDO0I wAxdhufhuDAkUFYmAGRvlBTmrqQLg0fQ9af78l1gKb3k0KKEewtlvqo9n8BttLiGqRh1 Yx5A1lvNwAtRJt4VbT3Sbf80FJfvTzBJOs1IALDcOQZg80nu1f8x2Kc2yBQNcA2YHMNU xbkwYg2QdCHuABvok/jG0SF3Fi/XdCetfEFaZo/hME241iLqc01aLGCIsl75lP/RaApC Lf3Q== X-Gm-Message-State: AC+VfDxSC0YlgBN/sGKiLwc65L9zuV9+P94BzXV1eZb0HU5StnoSN/81 LzYSnFwBz4Ro/9DQpjZ44xE= X-Google-Smtp-Source: ACHHUZ6tRK3jeBUL5kL2bT5YgkitFHQFx0vOwnMXBOJ11TWLcTmFxqLTxbnQvqVBgc9hMijSfW358w== X-Received: by 2002:aca:b9c6:0:b0:38e:52a1:4e2 with SMTP id j189-20020acab9c6000000b0038e52a104e2mr5075876oif.5.1684786475306; Mon, 22 May 2023 13:14:35 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b69:9a57:1c6:1c2e:4047]) by smtp.gmail.com with ESMTPSA id q11-20020a056830018b00b006aaff32ac36sm2692857ota.66.2023.05.22.13.14.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 May 2023 13:14:34 -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, bhelgaas@google.com, Fabio Estevam Subject: [PATCH v6 4/5] ARM: dts: imx6sx: Add LDB support Date: Mon, 22 May 2023 17:14:03 -0300 Message-Id: <20230522201404.660242-4-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230522201404.660242-1-festevam@gmail.com> References: <20230522201404.660242-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_131437_717477_738B92D4 X-CRM114-Status: GOOD ( 12.20 ) 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 v5: - Dropped fsl,imx6q-iomuxc-gpr" and "reg-names" (Marek). arch/arm/boot/dts/imx6sx.dtsi | 43 ++++++++++++++++++++++++++++++++--- 1 file changed, 40 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/imx6sx.dtsi b/arch/arm/boot/dts/imx6sx.dtsi index 4233943a1cca..8dd38107bed2 100644 --- a/arch/arm/boot/dts/imx6sx.dtsi +++ b/arch/arm/boot/dts/imx6sx.dtsi @@ -841,10 +841,39 @@ iomuxc: pinctrl@20e0000 { reg = <0x020e0000 0x4000>; }; - gpr: iomuxc-gpr@20e4000 { - compatible = "fsl,imx6sx-iomuxc-gpr", - "fsl,imx6q-iomuxc-gpr", "syscon"; + gpr: syscon@20e4000 { + compatible = "fsl,imx6sx-iomuxc-gpr", "syscon"; + #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 +1307,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 {