From patchwork Thu Nov 11 10:14:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 12614581 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 185BEC433EF for ; Thu, 11 Nov 2021 10:15:18 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DB94261241 for ; Thu, 11 Nov 2021 10:15:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org DB94261241 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 285036EA5D; Thu, 11 Nov 2021 10:15:17 +0000 (UTC) Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4C0BB6EA5D for ; Thu, 11 Nov 2021 10:15:15 +0000 (UTC) Received: by mail-pj1-x1034.google.com with SMTP id y14-20020a17090a2b4e00b001a5824f4918so4223102pjc.4 for ; Thu, 11 Nov 2021 02:15:15 -0800 (PST) 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=PmAR2r824mQlySNSu51pCpbMoZygwoXpZuJUsTXAJjI=; b=X7UxPIRacek4rIzKl6scYdcsM8ZB8t8k1R6xVw/FSffcZ3TyuZKmZurz1ZMlS0UL7V p66er6Lr3mr0M+9WgOSGXkzDqN1dK7CrZPHHRIyV3jWj+X//rzAtWU3/Vruj34zOSzEB LV56nFTX9Y7PllriHO52zr0RDF/uCyNPNyFYk= 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=PmAR2r824mQlySNSu51pCpbMoZygwoXpZuJUsTXAJjI=; b=KFw/UyE+hJcVrL/nQdXv+CVmgb6FTDwoy3Y5zZ43btgHzaoD6n5pRArQJRPdMLyf1O vZQJExb2sCFTcSt9JXS3Y07z9levhNRk2kuHEo2uCTG+pVB6iL8ieArTgL6Yg2v2lT99 Mu37w03A1cmeeuIzRkGMEQCzIWex5bmr7FYtpyUpX6aD7KprXjn4onBhzSifvoIcX+Qf TcikTWrwzLYuqdjxqtf36F1F2t1BMXBn92N8cGP1oAib+R5STl3DQzL5KrfV9sPBfZX+ xYdAxOAmLjWKkwKiSjHZI5F68o+/GzyJfx8RdOcdLNeJtx02zdolsENW+5eca77lZ3hu OddQ== X-Gm-Message-State: AOAM530jrAH8k7vfusp7TGkLVhrG9AuQJJXedpFMnSZ32r5WzIo5FbJK TFhar3HGNBWDyNOUqWEhbfQX7w== X-Google-Smtp-Source: ABdhPJyBWVnW3u1HyJFgCnA8z70Ir4ps1qLkNiAShrLP3rpA4BV30jACufrTssJFHFFgURZH0rHkBw== X-Received: by 2002:a17:90b:4b86:: with SMTP id lr6mr6847752pjb.98.1636625714755; Thu, 11 Nov 2021 02:15:14 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a0a9:3041:135c:4e21:846c]) by smtp.gmail.com with ESMTPSA id t12sm8035667pjo.44.2021.11.11.02.15.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Nov 2021 02:15:14 -0800 (PST) From: Jagan Teki To: Tim Harvey , Adam Ford , Fabio Estevam , Lucas Stach , Peng Fan , Shawn Guo , Marek Vasut , Frieder Schrempf Subject: [RFC PATCH v2 1/3] arm64: dts: imx8mm: Add eLCDIF node support Date: Thu, 11 Nov 2021 15:44:54 +0530 Message-Id: <20211111101456.584061-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211111101456.584061-1-jagan@amarulasolutions.com> References: <20211111101456.584061-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Matteo Lisi , dri-devel@lists.freedesktop.org, Jagan Teki , linux-amarula@amarulasolutions.com, linux-arm-kernel@lists.infradead.org, NXP Linux Team Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add eLCDIF controller node for i.MX8MM. Signed-off-by: Jagan Teki --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi index c2f3f118f82e..caeb93313413 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi @@ -1068,6 +1068,25 @@ aips4: bus@32c00000 { #size-cells = <1>; ranges = <0x32c00000 0x32c00000 0x400000>; + lcdif: lcdif@32e00000 { + compatible = "fsl,imx28-lcdif"; + reg = <0x32e00000 0x10000>; + clocks = <&clk IMX8MM_CLK_LCDIF_PIXEL>, + <&clk IMX8MM_CLK_DISP_AXI_ROOT>, + <&clk IMX8MM_CLK_DISP_APB_ROOT>; + clock-names = "pix", "disp_axi", "axi"; + assigned-clocks = <&clk IMX8MM_CLK_LCDIF_PIXEL>, + <&clk IMX8MM_CLK_DISP_AXI>, + <&clk IMX8MM_CLK_DISP_APB>; + assigned-clock-parents = <&clk IMX8MM_VIDEO_PLL1_OUT>, + <&clk IMX8MM_SYS_PLL2_1000M>, + <&clk IMX8MM_SYS_PLL1_800M>; + assigned-clock-rate = <594000000>, <500000000>, <200000000>; + interrupts = ; + power-domains = <&disp_blk_ctrl IMX8MM_DISPBLK_PD_LCDIF>; + status = "disabled"; + }; + disp_blk_ctrl: blk-ctrl@32e28000 { compatible = "fsl,imx8mm-disp-blk-ctrl", "syscon"; reg = <0x32e28000 0x100>; From patchwork Thu Nov 11 10:14:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 12614583 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49203C433EF for ; Thu, 11 Nov 2021 10:15:22 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 020AC61108 for ; Thu, 11 Nov 2021 10:15:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 020AC61108 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C9DDB6EA69; Thu, 11 Nov 2021 10:15:20 +0000 (UTC) Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by gabe.freedesktop.org (Postfix) with ESMTPS id B28186EA69 for ; Thu, 11 Nov 2021 10:15:19 +0000 (UTC) Received: by mail-pf1-x42b.google.com with SMTP id b68so5182408pfg.11 for ; Thu, 11 Nov 2021 02:15:19 -0800 (PST) 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=G4Vsnm+KN57AyBuovnCtAA6nuAOl1P3qjMg431Kf+ME=; b=pX2LgSK0aMfAVY6DbC0aaNykMDSy2c76sSb59u5g5r62SZKnm+NOjD5g7vBfIkYSfI N0/4AQpoiMvCU3R9qOa17ImJ3i/Xd+5FB30HuWHKhlgYvp5Ki9RccbjYw6djFZ3cxwrx Wu/gFLL6Ko8cBoZqdwPe0Z2uQkVpBhIbTJniY= 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=G4Vsnm+KN57AyBuovnCtAA6nuAOl1P3qjMg431Kf+ME=; b=QLf8+QC84OWvZ1yQcK8mzdtzqs5xhUxGgUcu2rvs+wgv8FIBQq1unozIAyqPkAamNL sTLMuF2GIa2sG6Z27pd++kOLbTuTCiKgkygSfXHzeWCgcMuaHQXrUNDy0jW8KU/RmbKP aXKFuxsaMCXKVt6erlKHG5mfdBlLSRAnukhAgrHnMz3eeI153EDInjgAFK2eD7s+ZiS1 Q+pPIgcOrb+Er6Py4LLPbgXoRLkdyO4CdXJ/LanoptW6Zj4KKgHkesiU1bHLj+mz2wWo pUusae6SSzJSP6GbXyFrGrrLcY+Pxjb2oJUuENn+V6J1wGsnCYPh/cz52hndeX40VL6U Kmsg== X-Gm-Message-State: AOAM533gFliGA6iKSBw7g4neCnpRGhUYUXawdiBNlydE3dkmwQ1Shpbu UVdUPyllPLqQO6KvE59QY8dkZw== X-Google-Smtp-Source: ABdhPJy+N+yR5OmQz7K+eSdLWarox6smbyMCvYcQAIreVrEFPt1e8er1wwb9sRqSQNFxkxvOHWR7Qg== X-Received: by 2002:aa7:9101:0:b0:49f:af85:b72c with SMTP id 1-20020aa79101000000b0049faf85b72cmr5502332pfh.53.1636625719136; Thu, 11 Nov 2021 02:15:19 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a0a9:3041:135c:4e21:846c]) by smtp.gmail.com with ESMTPSA id t12sm8035667pjo.44.2021.11.11.02.15.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Nov 2021 02:15:18 -0800 (PST) From: Jagan Teki To: Tim Harvey , Adam Ford , Fabio Estevam , Lucas Stach , Peng Fan , Shawn Guo , Marek Vasut , Frieder Schrempf Subject: [RFC PATCH v2 2/3] arm64: dts: imx8mm: Add MIPI DSI pipeline Date: Thu, 11 Nov 2021 15:44:55 +0530 Message-Id: <20211111101456.584061-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211111101456.584061-1-jagan@amarulasolutions.com> References: <20211111101456.584061-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Matteo Lisi , dri-devel@lists.freedesktop.org, Jagan Teki , linux-amarula@amarulasolutions.com, linux-arm-kernel@lists.infradead.org, NXP Linux Team Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add MIPI DSI pipeline for i.MX8MM. Video pipeline start from eLCDIF to MIPI DSI and respective Panel or Bridge on the backend side. Add support for it. Signed-off-by: Jagan Teki --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 55 +++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi index caeb93313413..eddf3a467fd2 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi @@ -188,6 +188,12 @@ clk_ext4: clock-ext4 { clock-output-names = "clk_ext4"; }; + mipi_phy: mipi-video-phy { + compatible = "fsl,imx8mm-mipi-video-phy"; + syscon = <&disp_blk_ctrl>; + #phy-cells = <1>; + }; + psci { compatible = "arm,psci-1.0"; method = "smc"; @@ -1085,6 +1091,55 @@ lcdif: lcdif@32e00000 { interrupts = ; power-domains = <&disp_blk_ctrl IMX8MM_DISPBLK_PD_LCDIF>; status = "disabled"; + + port { + lcdif_out_dsi: endpoint { + remote-endpoint = <&dsi_in_lcdif>; + }; + }; + }; + + dsi: dsi@32e10000 { + compatible = "fsl,imx8mm-mipi-dsim"; + reg = <0x32e10000 0x400>; + clocks = <&clk IMX8MM_CLK_DSI_CORE>, + <&clk IMX8MM_CLK_DSI_PHY_REF>; + clock-names = "bus_clk", "sclk_mipi"; + assigned-clocks = <&clk IMX8MM_CLK_DSI_CORE>, + <&clk IMX8MM_VIDEO_PLL1_OUT>, + <&clk IMX8MM_CLK_DSI_PHY_REF>; + assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_266M>, + <&clk IMX8MM_VIDEO_PLL1_BYPASS>, + <&clk IMX8MM_VIDEO_PLL1_OUT>; + assigned-clock-rates = <266000000>, <594000000>, <27000000>; + interrupts = ; + phys = <&mipi_phy 0>; + phy-names = "dsim"; + power-domains = <&disp_blk_ctrl IMX8MM_DISPBLK_PD_MIPI_DSI>; + samsung,burst-clock-frequency = <891000000>; + samsung,esc-clock-frequency = <54000000>; + samsung,pll-clock-frequency = <27000000>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + dsi_in_lcdif: endpoint@0 { + reg = <0>; + remote-endpoint = <&lcdif_out_dsi>; + }; + }; + + port@1 { + reg = <1>; + }; + }; }; disp_blk_ctrl: blk-ctrl@32e28000 { From patchwork Thu Nov 11 10:14:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 12614585 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07AA6C433F5 for ; Thu, 11 Nov 2021 10:15:26 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C807E61108 for ; Thu, 11 Nov 2021 10:15:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C807E61108 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E6F276EA78; Thu, 11 Nov 2021 10:15:24 +0000 (UTC) Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2BD3D6EA78 for ; Thu, 11 Nov 2021 10:15:24 +0000 (UTC) Received: by mail-pl1-x62c.google.com with SMTP id k4so5354361plx.8 for ; Thu, 11 Nov 2021 02:15:24 -0800 (PST) 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=ReGXXSgMAWBVWqtZW7yiuvm2VXa8F8R9ZU2mQqCsZ6Y=; b=AODSSiz+j7VKRDXvjzjKudw18f2ncpzlSgQR6iRK4SV6lkfsPbuLMgz+R1w7ZqZoT3 ZWpF+xyvWoyOapitMD3vp8z3UmeZ+yOcX6fPBZXVqTejc6FlnvlzEf5nvMWSr+1X2YkC pWj6EoKcNCe1b8QLD/q6OS9bdcKEtpctpA9qo= 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=ReGXXSgMAWBVWqtZW7yiuvm2VXa8F8R9ZU2mQqCsZ6Y=; b=1rRfHifB91deG5o+3Xpgwwngih0VWiaVLNvAe7zxTS7ffQBGyUXYLwwWH9WrKpJzT5 VsIBiXgNZ3RFi+WTrmhV2eMUvh5LrAA6VzqYX22TjWfEBHBNZjnC+PDcMW8SuhAf/0yM oSbCGDRqS9TpNamAd+BW9WRlWSldmGXf6XZC6O6eJa34naqR72CFXlxaZqQRnjgeEyil j/tb7CEGAJ4bl37khuNZYj6B2go2/RcN4YK7xVWbW9XSx94+CeCRJFZIUM4AKb495mxE uQ5rrKupPLMVToTTmIyyWl3NNzvaf390l49y454rWLmHPmaEf+kyGyTEc1FlEwOJotnf NPeA== X-Gm-Message-State: AOAM532Eb/j7IfkEgmlEI5sc1ZGoMFkZ7o3a9+WVGRIWGSeIxt3N+YQg nfyiVpgqr6H3Bg3kpWEwNMhXVg== X-Google-Smtp-Source: ABdhPJzYC/ToGsoJIz4oDAcvjP9aSLxWt4FpP7HRZASPJWaJ6KowAi/e2tHZUPKRWzz8Iod3AKDNsw== X-Received: by 2002:a17:90b:33d0:: with SMTP id lk16mr6984798pjb.66.1636625723610; Thu, 11 Nov 2021 02:15:23 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a0a9:3041:135c:4e21:846c]) by smtp.gmail.com with ESMTPSA id t12sm8035667pjo.44.2021.11.11.02.15.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Nov 2021 02:15:23 -0800 (PST) From: Jagan Teki To: Tim Harvey , Adam Ford , Fabio Estevam , Lucas Stach , Peng Fan , Shawn Guo , Marek Vasut , Frieder Schrempf Subject: [RFC PATCH v2 3/3] arm64: dts: imx8mm-icore: Enable LVDS panel for EDIMM2.2 Date: Thu, 11 Nov 2021 15:44:56 +0530 Message-Id: <20211111101456.584061-4-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211111101456.584061-1-jagan@amarulasolutions.com> References: <20211111101456.584061-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Matteo Lisi , dri-devel@lists.freedesktop.org, Jagan Teki , linux-amarula@amarulasolutions.com, linux-arm-kernel@lists.infradead.org, NXP Linux Team Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Enable LVDS Panel for Engicam i.Core MX8MMini EDIMM2.2 board. Signed-off-by: Jagan Teki --- .../freescale/imx8mm-icore-mx8mm-edimm2.2.dts | 85 +++++++++++++++++++ 1 file changed, 85 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..58065fee27f6 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,45 @@ / { 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>; + + port { + panel_out_bridge: endpoint { + remote-endpoint = <&bridge_out_panel>; + }; + }; + }; +}; + +&dsi { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + ports { + port@1 { + reg = <1>; + + dsi_out_bridge: endpoint { + remote-endpoint = <&bridge_in_dsi>; + }; + }; + }; }; &fec1 { @@ -35,9 +71,44 @@ &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>; + data-lanes = <0 1>; + }; + }; + + port@2 { + reg = <2>; + 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 +123,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 +154,14 @@ MX8MM_IOMUXC_SD1_DATA3_USDHC1_DATA3 0x1d0 }; }; +&lcdif { + status = "okay"; +}; + +&pwm1 { + status = "okay"; +}; + &uart2 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart2>;