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: 12692285 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 82113C433EF for ; Thu, 11 Nov 2021 10:16:43 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 4E74461241 for ; Thu, 11 Nov 2021 10:16:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4E74461241 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.infradead.org 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=NvMIAsvQApv3RHKdFrJhPDVJjPBXFhnxaAy4dQvO34s=; b=HJ9lZOR/T7sXvN WY3ntK1aMVPg+v0Zh5Cad9+CrroHnQ1MIFcfan6ZmmxPcrvZlP0TZSkqynz21Sdhk1TjrbvxZfaTc AED5FFdjFdyTsztLFDP9io4STX1hU1VrUtuAtuyYDjaZnJ/U2UtYM6MLGmqC91XUAMJLa4XQg3ZtF 7kEpy7Q73r5ogR6yGK99YsjMpDTwRDBcaRmbWGNwxEIGGYOCIslKRaWwAR57438bdJU1uQuUsGnOH O23SeOnLncotvSD1X36N8EYzjh++mG/brAeAM5fJwRhmgyHRgEoK4jId+HwDYoqkHwthIgbU8XOux LgDoP1sRTxlquup0uZmA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ml77B-007fta-He; Thu, 11 Nov 2021 10:15:29 +0000 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ml76y-007fpM-Pw for linux-arm-kernel@lists.infradead.org; Thu, 11 Nov 2021 10:15:18 +0000 Received: by mail-pj1-x1034.google.com with SMTP id gf14-20020a17090ac7ce00b001a7a2a0b5c3so4041944pjb.5 for ; Thu, 11 Nov 2021 02:15:16 -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=6FGHs1/Jtv4t+icDzmhuYkHcc0fyj/gIErd2ZvArS4/zrWV/RTlwiHsYMvUHGtHLsx f+mVdn3vGgsOpg43BfUeHkNDK9pRJ0bkMPHOl7nX1ISd0AUAX9Evan1Nptmo7x9vdRPE 11c/bLcIRIPoMj7PV3tTfXrnZgHFZOsek9QGp9amClvVuj1dXS3m0g35AmXOD0oY94Hn 3mQwebHcVzO7+TH35NOrCERNbynfA3DNSsMjp0F9lXbzlEYdysqsVJxkum8Jr0clqus/ h1I9aS2QhDiKIG+1iLSVfhryRoOZetKiSUQkCH23sMkYhDmJSnt0ukk3MwZPArvWavj0 OTLA== X-Gm-Message-State: AOAM531VomvhWbWr2LuifOCd32BNJovG1x2rJLgBrLis4YI0cQTmD77f rCrRmqpS2Gt4EioYew3ObQGbOA== 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 Cc: NXP Linux Team , linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-amarula@amarulasolutions.com, Matteo Lisi , Jagan Teki 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211111_021516_872775_6F93D66F X-CRM114-Status: GOOD ( 10.67 ) 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 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: 12692287 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 15879C433EF for ; Thu, 11 Nov 2021 10:17:00 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id D3FF561108 for ; Thu, 11 Nov 2021 10:16:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D3FF561108 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.infradead.org 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=PlGcb5uS+Hrkj/wiBG8BG33Q3gkzgwQptDK5KAATeTY=; b=DEqq1KR1bni7kt kMzmXF+r1ZR+Em+6M9/9Dv60zxcR+MnysS6daNph1YxC2UIR31oLJlEat8zgObnGPSZqGQsIOqQLz uihaKNVNVDJEytuHL+KUUtrTH4/ZdLGMwZ289zSoBF0Z9DkDGvK9lTJYaaTqE+OSjDxVGef81nlI1 lPwn6ySHhCgQ9KByZHZaofIbnPkMBXsiQuBVpfTXbEb55qDmnvQJgvdZWALhaWIQfPlcsKE+LH6vz pt0wfMWrqt+NI6dJJTt2T06/WdhxnH7RHq6MyMo+EA+adV1hL/koM+2F07htyw6CDjyKIaZJu+8YJ ilUg1/EpGbATrluwrcEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ml77W-007fwL-5t; Thu, 11 Nov 2021 10:15:50 +0000 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ml777-007fqi-N5 for linux-arm-kernel@lists.infradead.org; Thu, 11 Nov 2021 10:15:27 +0000 Received: by mail-pg1-x529.google.com with SMTP id g28so4774779pgg.3 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=VaaIrfyjtN0oZMJeZOQGL3ZQBr2LxGxwpgvD7G4kjFxECISluq0fPKMhQR31JoKR2U C55UtNMuUvP2aCceDzpfqqPDheVZmZkQ7bMKQg20yIBzn7LnO2jH+MibR+lKNbUybNNb oFJMXGcMykHz8yRbUjMmZRVGBGu86nVdo+bA+pIJCus/3U9fnMiQwMRr4vKrpkZd4e+b UXQyFB92aObSFmCzC2k01/IpgMIjhCT5zvg8FSiGtgirQUcsCoZkVskLOJQFMfpPuz38 vm+SGMbYvvHFms9XeuKyvo4lmh8ySS6N0eVS9mAChCsSA7Iol50WWN9PH21SqQBbqtK1 cSXQ== X-Gm-Message-State: AOAM531I2tSMHIIBG5vxf0THARZUNLjy9PD6rJABMT6Lnz9u/gho9clK lTOP4+inAcX5UKIGykFvlqeZpQ== 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 Cc: NXP Linux Team , linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-amarula@amarulasolutions.com, Matteo Lisi , Jagan Teki 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211111_021525_772008_479E9397 X-CRM114-Status: GOOD ( 10.88 ) 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 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: 12692286 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 CABEFC433EF for ; Thu, 11 Nov 2021 10:16:52 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 9659961267 for ; Thu, 11 Nov 2021 10:16:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9659961267 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.infradead.org 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=MAzHi3FQQ7TQirASgfhSxzfs9+Y/xtvhOUkd1M7R0aE=; b=E0TRhFTloWU8gp 4fnr8WQDC6WTY9AdeSQ38RjCztHlN+r/RxJyMqojsJ6Oktwh3Dswu0rBA8augn8J1/q2v4FFf3T15 LCVL4SzzYzDnV4asY8rLRp3hhqmdan4Y2s6dTZXQP7yybM2TBGTvmj8ibsVtPyL+/DzjUYeAj3fIm bhf0fw85kdUfMNskJH34SgPfkV3krKAqfN/iAm2rVOWJULSUeAb39pahRKYjpd7qRczLX39UCwOEc 5ncH1xc4x99LrkwPvbr5hU0oWetbG5FPMd60GFythwYtBAC5PhPenNFsy1WqDFcD+f/JSl4fcR9qw nmzroUUg5IAyB/MlyQcw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ml77L-007fuZ-Oq; Thu, 11 Nov 2021 10:15:39 +0000 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ml777-007frh-Ba for linux-arm-kernel@lists.infradead.org; Thu, 11 Nov 2021 10:15:26 +0000 Received: by mail-pj1-x1033.google.com with SMTP id x7so3775124pjn.0 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=rUB4RpoOKltJ1ReYJHV7nvT9jdZnhn+LCmSOlfPtE6KISpGfFLwht1JuuBwabnOxfu sJcHLrNff0UPvkIj8rnn79gGEUy3zLxGUNwRO4aHTPgz9ZlT5/wFxdoe2ec8JsqdUoqF 8hWNCtp+yykLa9Naiq/5QnMde/f/EPgIQlzOHl+ipCIavBhZpddDJuYFydeEflONLKJZ RDKib6cpkQlf3uKABRPTQwagkD4Vbff7X/jIw4jiunmKn8Wc2W1JN3f7Nw87YwfYfr5P qO4djuIiiceXTQMMddrfx/0yFd96gdLBIm21omVOCYtHbkx0dpy2Be6MYUZZCp7HVRmc XVfA== X-Gm-Message-State: AOAM533g1obalwSgYmx+IPiBuM++SYQzLgtBakFqh+SYRxeKh7bSnIFI Vv5UEhQHDsMkpfG2UawVrDUAyg== 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 Cc: NXP Linux Team , linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-amarula@amarulasolutions.com, Matteo Lisi , Jagan Teki 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211111_021525_426459_064CFE21 X-CRM114-Status: GOOD ( 10.64 ) 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 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>;