Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3536762pxj; Mon, 21 Jun 2021 00:29:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRC4YgFCYh1wxKBtOa9HP6PBr6GLXU0Tz9lw5RorqXZsoViPd9aSD42kP5lEYXO41pYkYQ X-Received: by 2002:a17:906:d972:: with SMTP id rp18mr6281111ejb.192.1624260568048; Mon, 21 Jun 2021 00:29:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624260568; cv=none; d=google.com; s=arc-20160816; b=nQkNEm+tQ69TK8duZg2TMlpLFAwiLfonB0kibI3kH/xFH43fADTNgAMPCuBVKEVs23 l2dOC705k6lyBimBZnPQib3eqqCVq49u+SpFDvOauKlye/w07wLiSTZyBRMCM1A2FhdU q2n/NccWfzH1q8VbGwtIDdS7oRQH3G25iurOv6IgErlsukz7Vr1eXwZLk2+nYwYDYSwB 0YgekGC2OGxSelJ9Aj3H44zOg3BZ5AzI+1iXPTlBy2VaIzNfsn92bv6DwshVAtpn++Hl zWgw6sk45/KJmcWHv63rq0CL3LRwi98vy94QASYrLspEj20zOZg4iWBeI21m7NJ3v2g2 jfXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lTGm4JdvD3Vra2uimR9VdWCccBLfDRHg1bYd/TgBubU=; b=Ljb4ME9pCTpMK1lqowCA44nik4iyPqALwKYhBJz7PkBr15yIWuZT3duvYqO1WG/NBV RNfTEAWeWBFJzZB5I0vYrPkBjY6B3t8SKufQ7m5IYCt+C3JYHM2Y0vsBCd6uAoYmT706 vh+CEqsT2NRDytNrDumI6+LqpqZK/9tNw2nFi28o/8ze/J7mSuWT0xeFwv0Mys8JAyPV /qvyPB0vZ+/6ZruB9gMbekLWEW89Yn4CUeicTXawosFJFVppGQ5gMkY6MP6pYFZ6Xx3K IgfpuYfXILlydsNR0kauYl4gSGJWj85ktxc6nyqKkdMy6yHB/KW8ZLMQ9nXtq1aCKxn5 B2Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PFJ+240o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j2si9858827ejo.509.2021.06.21.00.29.06; Mon, 21 Jun 2021 00:29:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PFJ+240o; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230520AbhFUH17 (ORCPT + 99 others); Mon, 21 Jun 2021 03:27:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230500AbhFUH1z (ORCPT ); Mon, 21 Jun 2021 03:27:55 -0400 Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57BB6C061756 for ; Mon, 21 Jun 2021 00:25:41 -0700 (PDT) Received: by mail-pg1-x52c.google.com with SMTP id t13so1627611pgu.11 for ; Mon, 21 Jun 2021 00:25:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lTGm4JdvD3Vra2uimR9VdWCccBLfDRHg1bYd/TgBubU=; b=PFJ+240oebdQnrjo/n/RAYbIElojZ4FKbPovvcLEqUz4yBbkyVuFvAOGUWXkm30rfe 75bW0/Ce4RgwAgC4v3Vrk7kmCKD6qi1mkuF5f0eGUUYyW6TGPpMB4W5gED+bP1XNgU3J fcUqMyXjuP9ETuCKYHTX4nrwrmYudt7xQPSBo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lTGm4JdvD3Vra2uimR9VdWCccBLfDRHg1bYd/TgBubU=; b=Gpi7Qiq6h99DTOUBjTHM4ptNEQGlKlh4ke2DYT6G95T0FQzCcTQVfLvvY2t2Wy5Al9 Bbnc3NyBjNFZNnCcgMp7PtwCLKuXZ4uI4TFoXl323VQ+E2YKoE/3gVtxEe/+yATNUbKg w1/MkGseSvWNfkXlik12wjBMB8K2wYTvIg8nGKnFuG36LIx57AONg3SSq5HShw4xjtuF rnf1ZRbUfNM6A9zX/3wR2Gi4zQwVOXtF/SjEWFnfyhbAiPYyA/rdRS5iFfxYIofp9VAC VXmsGu1isTfZwGAsef4sDHyUDQvKTllTDZ+EyuIvvQco2MrHcSSKptpkpi42NcuOuC8k 6dvw== X-Gm-Message-State: AOAM531N9qzoQZ5CyLPbIwkBqsFy0DjNFZrXyhAL23UxXRVLCJ+ABA+0 bsDU+z8is6HaSpzOpOEHAW1DJw== X-Received: by 2002:a63:185b:: with SMTP id 27mr23058306pgy.164.1624260340808; Mon, 21 Jun 2021 00:25:40 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a884:139:e97f:a55d:7f66]) by smtp.gmail.com with ESMTPSA id 21sm13951294pfh.103.2021.06.21.00.25.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Jun 2021 00:25:40 -0700 (PDT) From: Jagan Teki To: Peng Fan , Shawn Guo , Sascha Hauer , Tomasz Figa , Fancy Fang Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org, NXP Linux Team , linux-amarula@amarulasolutions.com, Anthony Brandon , Francis Laniel , Matteo Lisi , Milco Pratesi , Jagan Teki , Rob Herring Subject: [RFC PATCH 9/9] arm64: dts: imx8mm-icore: Enable LVDS panel for EDIMM2.2 Date: Mon, 21 Jun 2021 12:54:24 +0530 Message-Id: <20210621072424.111733-10-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210621072424.111733-1-jagan@amarulasolutions.com> References: <20210621072424.111733-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable LVDS Panel for Engicam i.Core MX8MMini EDIMM2.2 board. Cc: Rob Herring Signed-off-by: Jagan Teki --- .../freescale/imx8mm-icore-mx8mm-edimm2.2.dts | 90 +++++++++++++++++++ 1 file changed, 90 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-icore-mx8mm-edimm2.2.dts b/arch/arm64/boot/dts/freescale/imx8mm-icore-mx8mm-edimm2.2.dts index a4a2ada14835..f1256c9c9bd7 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-icore-mx8mm-edimm2.2.dts +++ b/arch/arm64/boot/dts/freescale/imx8mm-icore-mx8mm-edimm2.2.dts @@ -14,9 +14,51 @@ / { compatible = "engicam,icore-mx8mm-edimm2.2", "engicam,icore-mx8mm", "fsl,imx8mm"; + backlight: backlight { + compatible = "pwm-backlight"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm1>; + pwms = <&pwm1 0 1000000>; + brightness-levels = <0 4 8 16 32 64 128 255>; + default-brightness-level = <7>; + }; + chosen { stdout-path = &uart2; }; + + panel { + compatible = "yes-optoelectronics,ytc700tlag-05-201c"; + backlight = <&backlight>; + data-mapping = "vesa-24"; + + port { + panel_out_bridge: endpoint { + remote-endpoint = <&bridge_out_panel>; + }; + }; + }; +}; + +&dphy { + status = "okay"; +}; + +&dsi { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + ports { + port@1 { + reg = <1>; + + dsi_out_bridge: endpoint { + remote-endpoint = <&bridge_in_dsi>; + data-lanes = <0 1>; + }; + }; + }; }; &fec1 { @@ -35,9 +77,43 @@ &i2c4 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_i2c4>; status = "okay"; + + bridge@2c { + compatible = "ti,sn65dsi84"; + reg = <0x2c>; + enable-gpios = <&gpio3 9 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_dsi_bridge_enable>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + bridge_in_dsi: endpoint { + remote-endpoint = <&dsi_out_bridge>; + }; + }; + + port@1 { + reg = <1>; + bridge_out_panel: endpoint { + remote-endpoint = <&panel_out_bridge>; + }; + }; + }; + }; }; &iomuxc { + pinctrl_dsi_bridge_enable: dsibridgeenablegrp { + fsl,pins = < + MX8MM_IOMUXC_NAND_DATA03_GPIO3_IO9 0x19 + MX8MM_IOMUXC_NAND_DATA02_GPIO3_IO8 0x19 + >; + }; + pinctrl_i2c2: i2c2grp { fsl,pins = < MX8MM_IOMUXC_I2C2_SCL_I2C2_SCL 0x400001c3 @@ -52,6 +128,12 @@ MX8MM_IOMUXC_I2C4_SDA_I2C4_SDA 0x400001c3 >; }; + pinctrl_pwm1: pwm1grp { + fsl,pins = < + MX8MM_IOMUXC_SPDIF_EXT_CLK_PWM1_OUT 0x19 + >; + }; + pinctrl_uart2: uart2grp { fsl,pins = < MX8MM_IOMUXC_UART2_RXD_UART2_DCE_RX 0x140 @@ -77,6 +159,14 @@ MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3 0x1d0 }; }; +&lcdif { + status = "okay"; +}; + +&pwm1 { + status = "okay"; +}; + &uart2 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart2>; -- 2.25.1