From patchwork Wed Jun 15 11:49:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Krummenacher X-Patchwork-Id: 12882233 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 6B600C433EF for ; Wed, 15 Jun 2022 11:54:23 +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=c3EwW1JmHZqgJcOGM22pcziGKYViaC9z52xXyMKtubo=; b=wjeNEQgf+wKAJ6 ADAqmFAbqx+l7yLAJ4O5H3BGcOQtLlNo9Uv/VzFyPUWXYA9hFuBteSaNyvHpHw/17Ebr/N1xgI5xw Ke19ygjprc7SKBhpMtfsmNhT9O5J7QuL4EyFRZ+z+C1w6JMy3YaW5lN9kudlVi1K+UpwWyMB393yA 2liZ1c2m0INS8N5VHO6nWwkNVaqG49gm3XPwOfsFY74WIvANXZ3uONYLEzQZsBAcwx5LqktijmUwE tJvrkPMBki1pQru2ahPuw+a7RdrHjZT9QC/3Xb7qEETKO2Duo9DbWL4gGqjAR/GCjiTPZLgYmr3Iu 4efZEVwhXiHVcZ7cpucQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1Ra7-00EI1B-8F; Wed, 15 Jun 2022 11:53:07 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o1RXz-00EGhy-Ci for linux-arm-kernel@lists.infradead.org; Wed, 15 Jun 2022 11:50:56 +0000 Received: by mail-ed1-x533.google.com with SMTP id 25so15702578edw.8 for ; Wed, 15 Jun 2022 04:50:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3DWcX8Od03/UApijSUWJq2RJ9QBnMd2wigkqz4nDJyM=; b=PBTExrVD+THL+SpJ9En5rEOJY31TcUF58Vd/88kyzxKIOgzcSgQFKACiHVrxYQ++X4 8ZC9KRq4Ku5w45ZPUxcxyIjNShK/5pnk9/S/7LU74Bd1StdhQ6PXfXxGUmgeJBOqlPH+ 3KvLipLIZAM/QV/tWQjt6zDek0+LzBllDUIQnMFuUmsyg6z9NbVRCTYqAjVB4au2a9b3 DgLBIbSfFceYXItQvG365H3tdyLO67OQX/IjVj72Y1y/R2SCsmLxCkbsvUSo708dB76q 55S/Xz2myZiRQQxRy1SbG+sRAv5CmDEDBKMkLVUse1aCpWOq8aefuaTvdF9BRpn1NI3i Sb2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3DWcX8Od03/UApijSUWJq2RJ9QBnMd2wigkqz4nDJyM=; b=c9J2uWdWXCTCM96v4Nv6Bqe/5eYhWSiTq/8aKHMBt/Kp9+QOwf8m1gpWsBH7x3+OYi b6rxGUou1yGvjiTtBuK6S/xnknHjW04t93bx6AloRwe9CGTA3JS03P8ZlH+1yXxjrUSZ ehPtrllIDmZSUSlyqO/Rw1HHDFbH5wk5kFm8PqWapiCl/jSwt8ISsR14trCanGA8cld+ MbvF3tW+C+puuQEvH/l+aaFT00e3vJYv96LcFYl74WTnl2uhMPkDxSupPCNT638XlUJh 1kHJe71TprVb2iNyjvSOekLv5F3HcEkiKL+0LWmwbstQViGGqDPc6nNvfCCxCckcYjgh V5AQ== X-Gm-Message-State: AOAM531AGVhvvaYdLCtAYynwWHAcFPk6il4QH3XYwVnjqoWrBTTWvsDr x8auAYhhnNr3XQTLjWViPXI= X-Google-Smtp-Source: AGRyM1vj8HkiO0aUwCSPFvYx6F5XRhfVJlPRVZQWvaSTk0/0Y0eH/fVQWG5Eb/ftiiUH4kG/q47peA== X-Received: by 2002:a50:ec12:0:b0:42d:cbcf:a629 with SMTP id g18-20020a50ec12000000b0042dcbcfa629mr12151968edr.224.1655293855007; Wed, 15 Jun 2022 04:50:55 -0700 (PDT) Received: from linuxdev2.toradex.int (31-10-206-125.static.upc.ch. [31.10.206.125]) by smtp.gmail.com with ESMTPSA id t6-20020a17090616c600b00715a02874acsm4561158ejd.35.2022.06.15.04.50.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jun 2022 04:50:54 -0700 (PDT) From: Max Krummenacher To: max.krummenacher@toradex.com Cc: Oleksandr Suvorov , Fabio Estevam , Krzysztof Kozlowski , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 09/18] ARM: dts: imx6q-apalis: Add LVDS panel support Date: Wed, 15 Jun 2022 13:49:57 +0200 Message-Id: <20220615115006.45672-10-max.oss.09@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220615115006.45672-1-max.oss.09@gmail.com> References: <20220615115006.45672-1-max.oss.09@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220615_045055_463750_32285B56 X-CRM114-Status: GOOD ( 13.45 ) 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: Oleksandr Suvorov Add LVDS panel and endpoint linkage support but keep the inherited disabled state. This allows to enable it in an overlay per the current system configuration. Signed-off-by: Oleksandr Suvorov Signed-off-by: Max Krummenacher --- (no changes since v1) arch/arm/boot/dts/imx6q-apalis-eval.dts | 4 --- arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts | 4 --- arch/arm/boot/dts/imx6q-apalis-ixora.dts | 4 --- arch/arm/boot/dts/imx6qdl-apalis.dtsi | 36 +++++++++++++++++++ 4 files changed, 36 insertions(+), 12 deletions(-) diff --git a/arch/arm/boot/dts/imx6q-apalis-eval.dts b/arch/arm/boot/dts/imx6q-apalis-eval.dts index fdcb740a7a54..51efa7c57879 100644 --- a/arch/arm/boot/dts/imx6q-apalis-eval.dts +++ b/arch/arm/boot/dts/imx6q-apalis-eval.dts @@ -88,10 +88,6 @@ status = "okay"; }; -&ldb { - status = "okay"; -}; - &pcie { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_reset_moci>; diff --git a/arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts b/arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts index 21f88e19e87d..beb1981fc775 100644 --- a/arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts +++ b/arch/arm/boot/dts/imx6q-apalis-ixora-v1.1.dts @@ -104,10 +104,6 @@ status = "okay"; }; -&ldb { - status = "okay"; -}; - &pcie { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_reset_moci>; diff --git a/arch/arm/boot/dts/imx6q-apalis-ixora.dts b/arch/arm/boot/dts/imx6q-apalis-ixora.dts index e6fc76776b2e..3d42f8ffeb34 100644 --- a/arch/arm/boot/dts/imx6q-apalis-ixora.dts +++ b/arch/arm/boot/dts/imx6q-apalis-ixora.dts @@ -94,10 +94,6 @@ status = "okay"; }; -&ldb { - status = "okay"; -}; - &pcie { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_reset_moci>; diff --git a/arch/arm/boot/dts/imx6qdl-apalis.dtsi b/arch/arm/boot/dts/imx6qdl-apalis.dtsi index 240783d0901c..636b04139a5b 100644 --- a/arch/arm/boot/dts/imx6qdl-apalis.dtsi +++ b/arch/arm/boot/dts/imx6qdl-apalis.dtsi @@ -82,6 +82,18 @@ }; }; + panel_lvds: panel-lvds { + compatible = "panel-lvds"; + backlight = <&backlight>; + status = "disabled"; + + port { + lvds_panel_in: endpoint { + remote-endpoint = <&lvds0_out>; + }; + }; + }; + reg_module_3v3: regulator-module-3v3 { compatible = "regulator-fixed"; regulator-name = "+V3.3"; @@ -624,6 +636,30 @@ remote-endpoint = <&lcd_display_in>; }; +&ldb { + lvds-channel@0 { + port@4 { + reg = <4>; + + lvds0_out: endpoint { + remote-endpoint = <&lvds_panel_in>; + }; + }; + }; + + lvds-channel@1 { + fsl,data-mapping = "spwg"; + fsl,data-width = <18>; + + port@4 { + reg = <4>; + + lvds1_out: endpoint { + }; + }; + }; +}; + &pwm1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_pwm1>;