From patchwork Tue May 23 23:52:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13253131 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 CC2E8C7EE26 for ; Tue, 23 May 2023 23:53:19 +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: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:In-Reply-To:References: List-Owner; bh=JWd4MRQBgolM8LLEFCxA+w+xD92lJcg8RZb4oZiM35Q=; b=Txk5rAt6R6h+ca J1Yx7GQ+VWjlNpgoc3pxC2RBe8MvjfjnPqTeYGd1WOf1fIIjmoEAwULazWgJzqgMmstFhkOl/Nng4 gVJqDPduoJROmu1MqfyR3QKN5E6RnKj/+PvQEyZyTxSZJD9dfcWpT2PFiIhFAgGrgJ0BJHKqR/nsh A/AQCZpXjnYZ2n1nkQQ/3gZGC/63nh58jlJWNtT3g0zzXCHGpL5YqimPn+RbgWhq2Igdx96FRKPbQ 7iKtvn/MhGSHMLHL/tqp7AN28YSqakljKn/J6amBSpbAbOucL0N4CCBiCs3d/80B3Qdgkcd2cQ+ia vX0MKJUmIY1J9GRgE3eg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q1boE-00BqFp-0J; Tue, 23 May 2023 23:52:54 +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 1q1bo6-00BqDe-22 for linux-arm-kernel@lists.infradead.org; Tue, 23 May 2023 23:52:47 +0000 Received: by mail-oo1-xc30.google.com with SMTP id 006d021491bc7-555752282ceso50516eaf.1 for ; Tue, 23 May 2023 16:52:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684885960; x=1687477960; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=ojbBjUwlKVt2/9+CCAjrur00lN7Lj3Zr989tamB+iNU=; b=K0gAhgeXV1dkUECCcaHC14wWadNNulIDBxTqK20yYytGpisoG4F25S6rG0tnzeposs 3KKxj1C4+4vlX5DcvvzHrqOjVgDjr71MNkBCLpwB6iVERNRxRCLSZM5v3pqqqyHJdsJU kXq2LCdObuP7NWbhiA9eGFEWBbEsekdVQ4+8fAT0aGOxpp64LnlHDd99Yh3STfOxdQzJ a2sWkr1rlaPl+FsyfVYPvtTuUcx9Fv61zihOFhfl8t1Su0Hza4aXr+W80CGe+wHnDrPI 68FMmLVPIkS49XrHkIy7KwZgDV29UwqVYOXiUU38kYSOHmwxSw6Q445w9xiUy/HT5dn9 8LIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684885960; x=1687477960; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ojbBjUwlKVt2/9+CCAjrur00lN7Lj3Zr989tamB+iNU=; b=U/XoDlc6jef7+BsqrOOZeP8esaD/LkWJDkBov16Vb7sWan2J+ZgQFhdgSyw5bD3/GQ 1aHOP3L75Iw/zVZq+JBvOACaTWMJxVE0nvuuHqfhAeeKC7ugjc20QDsz5gb7tpmzhXqT dn5hRXHDl7YEqW/kfIPRXznk7pE+qx+s3etVPFGdE4IH69HS+4HVHsSxwkkVLORqVx7z 3Qy2TIJ+VRGRWeVPIoMx4975Yb8fUxy3xFiZ7yof6EtzvhzIPHwx4amjbyf1SbgkmoUQ onR0gc3AcN6hYGAjgWheCPbN4+1YYvZ1RvKeCSyWwR4gULqcmXXgbxN/RSXotCFxSWC6 Yl2w== X-Gm-Message-State: AC+VfDyHF6ObZbEZ6Y2d9e3WIzTj6uEVQ7wSYYgAFVUu7ITTktS4mZXr EMTYO8JasD8bPLGBG7pEFf4= X-Google-Smtp-Source: ACHHUZ5HUpsZrYYzlMKEfrFF9m4L4u1G2QABAgS1N668H1gkoyCXbhN3v8RaKE5Apwjg7TqAl2D7Xg== X-Received: by 2002:aca:efc6:0:b0:385:d91:ee30 with SMTP id n189-20020acaefc6000000b003850d91ee30mr7413882oih.3.1684885959682; Tue, 23 May 2023 16:52:39 -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.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 16:52:39 -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 , Conor Dooley Subject: [PATCH v7 1/2] dt-bindings: display: bridge: ldb: Adjust imx6sx entries Date: Tue, 23 May 2023 20:52:31 -0300 Message-Id: <20230523235232.7358-1-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230523_165246_685139_2A02DB31 X-CRM114-Status: GOOD ( 10.14 ) 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 On the i.MX6SX there is a single entry for 'reg', so add some logic to reflect that. Signed-off-by: Fabio Estevam Reviewed-by: Conor Dooley Reviewed-by: Marek Vasut --- Dependency: This depends on bd60d98a11da ("dt-bindings: display: bridge: ldb: Adjust imx6sx entries"), which is available on linux-next. Changes since v6: - None .../bindings/display/bridge/fsl,ldb.yaml | 24 ++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/display/bridge/fsl,ldb.yaml b/Documentation/devicetree/bindings/display/bridge/fsl,ldb.yaml index 07388bf2b90d..7ff45e3d4929 100644 --- a/Documentation/devicetree/bindings/display/bridge/fsl,ldb.yaml +++ b/Documentation/devicetree/bindings/display/bridge/fsl,ldb.yaml @@ -28,12 +28,11 @@ properties: const: ldb reg: + minItems: 1 maxItems: 2 reg-names: - items: - - const: ldb - - const: lvds + maxItems: 2 ports: $ref: /schemas/graph.yaml#/properties/ports @@ -57,6 +56,7 @@ properties: required: - compatible + - reg - clocks - ports @@ -74,6 +74,24 @@ allOf: properties: port@2: false + - if: + properties: + compatible: + contains: + const: fsl,imx6sx-ldb + then: + properties: + reg: + maxItems: 1 + else: + properties: + reg: + minItems: 2 + reg-names: + items: + - const: ldb + - const: lvds + additionalProperties: false examples: 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 {