From patchwork Fri Dec 3 16:54:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 12694730 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 4BBDCC433EF for ; Fri, 3 Dec 2021 16:56:25 +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: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:In-Reply-To:References: List-Owner; bh=as8aymj5v72RKrv1s9ivjRgY52jRGJXrQmrJygOakFA=; b=pquBGzbHMJ0HvL mN545Ywbk8WLsjG+WgyC6mFoErUgs2wNlInn1Bp96R4uTblzoiGJRw80navisGLPw3uRYaKj2FUDZ 3nVhzm+MRiCjkE6RLwZVFqp8bVZ9xhPTU4AJXq1hJPicmfiwl02kUeKmLz30y8JRmt3IzunnbYZ8q 0HXaNLuCueBWUtDi2sFIvn9TNa3OABvOlPxeUJLUGevG/sluaxKfRLAD9PcD9iTA4oWrADIcJdd6+ /Y79XnlmzSsqIALs9CPyZ8yoBtV5Tbz2Kg5jW6XSmomc7S4dq/l8J6i4b0UmQ+4aSgjWxwr5pLDHi fJwoLi12yfB5kY2NfPjA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mtBpm-00Gb9y-Qy; Fri, 03 Dec 2021 16:54:55 +0000 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mtBph-00Gb92-G9 for linux-arm-kernel@lists.infradead.org; Fri, 03 Dec 2021 16:54:51 +0000 Received: by mail-pg1-x52c.google.com with SMTP id f125so3697153pgc.0 for ; Fri, 03 Dec 2021 08:54:48 -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:mime-version :content-transfer-encoding; bh=UA3ii36hU7CdFEgS88eAZUCDHAYVIn1jZ23qtSJM4UQ=; b=ooGW6c2JtcWB6Z7qX/xxQgDAgbHQXqbIOErmLKsxLC8fe3xCwRbXjvVK/NrOOMfh1p pitbMmaJ6twHOl/1D89GbJyC6AlFIRHfNFKFVs5rNkkfsemwclyL4NpySf3j3mnthZ4k IqGji4pbnlff2wdzE1EOJp0brNBZtnRWuMCD4= 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:mime-version :content-transfer-encoding; bh=UA3ii36hU7CdFEgS88eAZUCDHAYVIn1jZ23qtSJM4UQ=; b=xzM/KOKHYQ52UJqGyuc9QnRm/I088LxZraJaw/7xTERbbDXY6FlF2/TB4vFmU2b/hT S/d29TAVgZjnyc0JGPLk3xaNQVa8Hq6clE/2fsQG7MFCvBvukzKwL+gtHoM5xqSuvrtp i02KGdSWMAbM+KrwVaAfAhX6BkywmQE6LbO1jVD8/ZcGLA9pQ9KXYYtYkWObQv7Rf4eo vhwgZB8nDU/ndbQYKm0u57+SG4qIMYh+par0iL688ksajsyapxJDCbA1f+7Yfb8vCzsB ePT/rWZfjeTOB7yWV9e/IrKdqF9V1S8F1cLAvaYwamLXX4b314HaY3BKnPIEyWPQjxWN 8FyQ== X-Gm-Message-State: AOAM531il5rVoJzfLPkSEHEKJCE+2/18ZAggWI/dTdxqaeDAiBpEhYQ3 G9HJUCX+MINpdlFw8aEUStVwYA== X-Google-Smtp-Source: ABdhPJxJYkiXrbYqX6lTlZURwnlCJAqFBzbUOiRcQC2IgJNCDLFsdBPBjaMtqnwewL9ZpvMXR4gBxA== X-Received: by 2002:a63:86c7:: with SMTP id x190mr5335423pgd.230.1638550488153; Fri, 03 Dec 2021 08:54:48 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a0a9:9d21:588c:4f26:8400]) by smtp.gmail.com with ESMTPSA id s72sm2783693pgc.69.2021.12.03.08.54.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Dec 2021 08:54:47 -0800 (PST) From: Jagan Teki To: Rob Herring , Maxime Coquelin , Alexandre Torgue Cc: devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-amarula@amarulasolutions.com, Matteo Lisi , Jagan Teki Subject: [PATCH v3 1/3] ARM: dts: stm32: Enable LVDS panel on i.Core STM32MP1 EDIMM2.2 Date: Fri, 3 Dec 2021 22:24:33 +0530 Message-Id: <20211203165435.8042-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211203_085450_516240_3C7EF359 X-CRM114-Status: GOOD ( 11.12 ) 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 Engicam i.Core STM32MP1 EDIMM2.2 Starter Kit has plugged with 7" LVDS panel. Engicam i.Core STM32MP1 SoM has SN65DSI84 DSI to LVDS bridge. This patch adds a display pipeline to connect DSI to SN65DSI84 to 7" LVDS panel. Signed-off-by: Jagan Teki --- Changes for v3: - fix dtbs_check Changes for v2: - none .../stm32mp157a-icore-stm32mp1-edimm2.2.dts | 85 +++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp157a-icore-stm32mp1-edimm2.2.dts b/arch/arm/boot/dts/stm32mp157a-icore-stm32mp1-edimm2.2.dts index ec9f1d1cd50f..a797eaa917b7 100644 --- a/arch/arm/boot/dts/stm32mp157a-icore-stm32mp1-edimm2.2.dts +++ b/arch/arm/boot/dts/stm32mp157a-icore-stm32mp1-edimm2.2.dts @@ -24,6 +24,91 @@ aliases { chosen { stdout-path = "serial0:115200n8"; }; + + backlight: backlight { + compatible = "gpio-backlight"; + gpios = <&gpiod 13 GPIO_ACTIVE_HIGH>; + default-on; + }; + + panel { + compatible = "yes-optoelectronics,ytc700tlag-05-201c"; + backlight = <&backlight>; + power-supply = <&v3v3>; + + port { + panel_out_bridge: endpoint { + remote-endpoint = <&bridge_out_panel>; + }; + }; + }; +}; + +&dsi { + status = "okay"; + phy-dsi-supply = <®18>; + + ports { + port@0 { + reg = <0>; + dsi_in_ltdc: endpoint { + remote-endpoint = <<dc_out_dsi>; + }; + }; + + port@1 { + reg = <1>; + dsi_out_bridge: endpoint { + remote-endpoint = <&bridge_in_dsi>; + }; + }; + }; +}; + +&i2c6 { + i2c-scl-falling-time-ns = <20>; + i2c-scl-rising-time-ns = <185>; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&i2c6_pins_a>; + pinctrl-1 = <&i2c6_sleep_pins_a>; + status = "okay"; + + bridge@2c { + compatible = "ti,sn65dsi84"; + reg = <0x2c>; + enable-gpios = <&gpiof 15 GPIO_ACTIVE_HIGH>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + bridge_in_dsi: endpoint { + remote-endpoint = <&dsi_out_bridge>; + data-lanes = <1 2>; + }; + }; + + port@2 { + reg = <2>; + bridge_out_panel: endpoint { + remote-endpoint = <&panel_out_bridge>; + }; + }; + }; + }; +}; + +<dc { + status = "okay"; + + port { + ltdc_out_dsi: endpoint@0 { + reg = <0>; + remote-endpoint = <&dsi_in_ltdc>; + }; + }; }; &sdmmc1 {