From patchwork Mon May 22 20:14:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 684790 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21210C77B75 for ; Mon, 22 May 2023 20:14:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230497AbjEVUOa (ORCPT ); Mon, 22 May 2023 16:14:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232345AbjEVUO3 (ORCPT ); Mon, 22 May 2023 16:14:29 -0400 Received: from mail-ot1-x331.google.com (mail-ot1-x331.google.com [IPv6:2607:f8b0:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6DCDB9 for ; Mon, 22 May 2023 13:14:27 -0700 (PDT) Received: by mail-ot1-x331.google.com with SMTP id 46e09a7af769-6af8ccb491cso18592a34.0 for ; Mon, 22 May 2023 13:14:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684786467; x=1687378467; 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=qnNkxpreDgq26CG57fd0M0OJM5UJkONUnE3UR9s1bqM=; b=VYAmIGbOqs7k5HbHxThot+Ykl3Gm8VTVHflv+WQl41OQL48dR1VMdTx8R6keOZqmxX XduIaY9g228ZAm3zAYD4ptoRRQ2AKFJDehvAJ+OOZBlEBXf6UkkDWXu8RAQ74I7QQRsR nilXICPsNAiDiLK1HtgnhiZJ6lHca3/j4AQWQOgQHuSN/X1ztkL+IUDEDiNmJeNKWf0i zLCcwN8gAceytpW6xWUfpUSoEdW6SQf9O2uCZ7vepbMeyHN+qW6m/cDNInG+ssqlSWse urwcbjVJJnRReqhc8VgXXGgq+QGPo4/GYOts5ASo2zEPkrLLvcxKlAZv6IMRylJxX0x8 PHrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684786467; x=1687378467; 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=qnNkxpreDgq26CG57fd0M0OJM5UJkONUnE3UR9s1bqM=; b=XYgmFIu2DSyp+/z+Sfvmegk+TnJAa9TcoBv/OaqfH9xsmxvpSfechD4AqSXZIjWzUh Zod4sq9LcdJdw6J31St+SpS2ScpL4pWefMlFNELF0o5VZdlQBehMtpukCA1zQQ5MJWWV jwCB3mnhTcVBW8LrRfPjeWl8J4oJDnz+hIjvWOfsuqi2Xi0AXBGLmVR60Hr/yz2vYiVd THVDC3yP/0R+V8P+fNIgk3rGpXJquFJrdzQ85GcSI9DrOBZQWRyOpZtNkPsbPgayi8L3 1tSr5ByqlwxP6zfgm9Ak+4RPW3CuLVKCaJJruQaRK6/j5QGDEviGLisvE+KiogdWiwua kloA== X-Gm-Message-State: AC+VfDw+u3DcScMfY0PMx3zQ2EyU2FDgt4xk/+4sau/9UKt08pRZ2ibV QKScfkv4hDf0hoxyY8WhzKI= X-Google-Smtp-Source: ACHHUZ43QBPidqOZayheIayd4E1WwxeTeDcjnXlor6tlDw7hDy8ua2hgxxFXIKK5CGTrIrKaUwJPLA== X-Received: by 2002:a05:6830:3886:b0:6ad:23c2:e0ab with SMTP id bq6-20020a056830388600b006ad23c2e0abmr5756147otb.2.1684786467032; Mon, 22 May 2023 13:14:27 -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.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 May 2023 13:14:26 -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 2/5] dt-bindings: display: bridge: ldb: Adjust imx6sx entries Date: Mon, 22 May 2023 17:14:01 -0300 Message-Id: <20230522201404.660242-2-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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 --- Dependency: This depends on bd60d98a11da ("dt-bindings: display: bridge: ldb: Adjust imx6sx entries"), which is available on linux-next. Changes since v5: - Dropped reg-names for imx6sx (Marek). - Indicated the dependency to avoid error when Rob's robot runs. .../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 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: 684789 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF14EC77B75 for ; Mon, 22 May 2023 20:14:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234002AbjEVUOj (ORCPT ); Mon, 22 May 2023 16:14:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233689AbjEVUOh (ORCPT ); Mon, 22 May 2023 16:14:37 -0400 Received: from mail-oo1-xc36.google.com (mail-oo1-xc36.google.com [IPv6:2607:f8b0:4864:20::c36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1890FA9 for ; Mon, 22 May 2023 13:14:36 -0700 (PDT) Received: by mail-oo1-xc36.google.com with SMTP id 006d021491bc7-555486c9196so253219eaf.0 for ; Mon, 22 May 2023 13:14:36 -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=jTOV1Pz6ttVc+bs8B65j+RMy/8LvGSEFkFuzi0wDolV11coatzKxqGQ69xXqg7iCDM tDoHW60BhuaOk/Mqf1b4c30LPUk5q3dOc1UUkjSDNLdQRGp31nyU7VRvmgRL5UZTGTCR f86vlwMYVejF8Jl5m9jk6cP3cf6RAzQcb/yeIRpo9KU8EA7DCz3ikcSr2MXy2mUyp7QD 17nox9LmqQSSRdWXc6vcgSML9E016/1iW3hAoMAYJz5plOtIhrtnUolSUzZiOiFki8OK 8/mPIs4JJiwHQAbLQi32o/35FcM8EOZyCnxhoC+/V6NjvoGOcy2vXcbGQiMS9vRT3mRO tlLw== X-Gm-Message-State: AC+VfDyDaNSkAIuXCzAKNapz1vIoey4M2WAVNQv0fnpJRlv89qubD+Q+ vHVr2fVPqH21sb1OuOz0D6I= 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 {