From patchwork Fri Nov 12 05:38: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: 1755 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 014A43F18E for ; Fri, 12 Nov 2021 06:39:07 +0100 (CET) Received: by mail-pg1-f200.google.com with SMTP id p20-20020a63fe14000000b002cc2a31eaf6sf4424890pgh.6 for ; Thu, 11 Nov 2021 21:39:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1636695546; cv=pass; d=google.com; s=arc-20160816; b=yNyVYtJDsULevuRPs4wfpIfjTiOvlUANW8KgIW3uUq5s1tKXC82AdN7S+zbESlws09 2IQAbI6xAZwSEHCbb37+7PE9Bf5QznxoXsuU/wkOqbcTFTSy0eB9aL4GfQjVmHAY5WfU GbUHbPii0QrblZAEeGZqYtENG/S/dMhR9sUMzinDo7hqG/6VB/fSfhdWGkUsaPF9gwIS D7Wt3WbmaVnPMoJ4J6WB+SHTC6v5mNnDZnMeoV9zZ7h2nY/or62SkcggIhRoS3KCWq4U I3nYJhFiMAaHDktPkdB2ii11J4URTWb8PEMrejKrgKhUwPaZqLpRt/ECxdC003YeL9+c BfRQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=W2WYLoQMQm2U2/fW9C/zen6zYlkMm9Et4xk3qsx5tmk=; b=tkn/bb4jAzRT//rl6XYf96EVjhe78zoJ7g5Tegw/PRrBF4X7wgQyFojdWOxvIj4/Kx IKxCMTXWPaUhAzYUk4tCg0lIgaF05fRYgCTzSEA8CiKu3RtK40rxbFTPq3KzVqAXmXBE 9yLcd7Xe90mCHMwabYaO2l04J1F+qFo7RZKXNl1Dxs+6e2K3rRiqNurYmH0LbkfUaMhB FhKtZRf9jt+r1MW7VE6dZaGj02z+MGDZQWQhNG7c1qkJHw3RoK6efiJo35ER0jU2K+e0 Wz2Ewr3hIqPpZ3Fw6raWC1s2lPka+eYcwXYY36WEwMtEvTb0bRp4/9XU3CPLot1pip+T a1wQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YbqZyz32; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com 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:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=W2WYLoQMQm2U2/fW9C/zen6zYlkMm9Et4xk3qsx5tmk=; b=W4irDMbVRdjDH6GhPW9D2ec2IMXDsdPSi6yB19eHuYU0l8sntGB19VtovzL/NqG3/G gLk/5+uZ3Sxr6P2gF9Uj/KXkP+B+Ct0kEHmPbEOLY5ScPeHYahSQp7zRAvPCaj8g7/Dw 12mZhQaxlcZrVirApk6CDscR/JQsOQ6CM7GDM= 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 :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:list-unsubscribe; bh=W2WYLoQMQm2U2/fW9C/zen6zYlkMm9Et4xk3qsx5tmk=; b=8ER1eJ9XGLLcA2DFta1lyWrYHKjfkLJGnur15S5Cns+luAmlTTP+55vWc63hHwX4IH j84yuzgmFFbZYRU2mCxZ2ZiBTUeoLek9aQaOH8B6IwOMAiRMGKInCix7pbNUqf1HVI3W 5YOxbg4knWtCs+1RwFYgbeJR2KWVnj5armhip6XPjOifF/s+31Up4D257lmsynGyLkha garw8xuLLYF2Z9C0R1FFUIyhJCSb8Ikd6OMHYfPl3q1fBrPSGlMfd91yT55QSzRlLknE wlXQS1IZs0yqfSBgWpoAhloyF1U0aYFFSQVS5P/223QiZ5A6ZiuOZYV/lVS89OVyVo+7 4x3g== X-Gm-Message-State: AOAM530+abg6SA+eopy8H9hh+Xcol5Ea1Hi7Hj6Uc1VECjZF+Ib1p/Ez w6XAymSUdxw+WvUMHcMBeaTyhBq7 X-Google-Smtp-Source: ABdhPJygL1CmKK6I2zxOuItUiQXoscAif9PsnMKFU0G2C9MAVvFah2OeyD8mpQil9RfVSJF3O2wqFA== X-Received: by 2002:a05:6a00:1a01:b0:44d:af99:19c9 with SMTP id g1-20020a056a001a0100b0044daf9919c9mr11487291pfv.36.1636695546055; Thu, 11 Nov 2021 21:39:06 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:903:1c2:: with SMTP id e2ls3530008plh.9.gmail; Thu, 11 Nov 2021 21:39:05 -0800 (PST) X-Received: by 2002:a17:90a:2ec8:: with SMTP id h8mr31009569pjs.168.1636695545346; Thu, 11 Nov 2021 21:39:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636695545; cv=none; d=google.com; s=arc-20160816; b=G57hjArOIX5n9DkwgX6wyNLVCxXwF3XtV9aVN97IAayQoOR/fqoh0QDV98e8YQJWp6 uvkGYOQZLPrjyZAtJjjh4an4HvlQJnjeHsXkqS+itj+OjBr98ctboB8wKD1iwrhtq43N 0wiq5t2XW8smR4KEwdzNQ8MHtXDqIqBdO1BavSPq58Kf4gXb7ya3nEimcByE8U1XhFCA cB7kN1xEjx97QgiQ0uRj8Gij0CJrBrgqQs6fV4IMHP7nevQidy+MeMVo/AWnm62kmh8n aCZ3H8g/MfoT+E4L7OxfohXv5JCMxnL5vn0HLcWoGL+ONyX7y8fUOPITAlWMOLj0zYKN nQ2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=3ux6niDLdsPk8MAPGpHmvnQ2ygKaZewBFfo24yv2+C0=; b=MzPT3k80VVIHbARdpekRQgdeLTh5imK30EXznZLAs7gMH7GQqJVBXZdq4S+qCd/Dea eVnNh3N+R4tJabJLxnvk2dtVIi1rkEZ/OjXLkATfE6YF5Vs2aV97baHNHHbuCYZKQtrM JaZEd2qM3pslrNAPMqeqk7uikIVfutk8ZWXYJFQr3SravbXunWE9buX7MhlCnxt15DHZ cvxo71+bf/0P0wsJ525famqqMowYF6wEpn2oGHlP4XV68SKwYeA234hhcU776imPlpoW /HyEF+f6Yeoy+TiaAiEOXO4Vrclb7m7h6rOUQpVG9gedPPqdZKdrgGwwaxHPn9TqsznM qneA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YbqZyz32; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id t9sor2129803pge.66.2021.11.11.21.39.04 for (Google Transport Security); Thu, 11 Nov 2021 21:39:04 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a63:414:: with SMTP id 20mr434718pge.178.1636695543804; Thu, 11 Nov 2021 21:39:03 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a0a9:de19:8cdf:97cf:a6b1]) by smtp.gmail.com with ESMTPSA id v38sm3764345pgl.38.2021.11.11.21.39.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Nov 2021 21:39:03 -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 v2 1/3] ARM: dts: stm32: Enable LVDS panel on i.Core STM32MP1 EDIMM2.2 Date: Fri, 12 Nov 2021 11:08:54 +0530 Message-Id: <20211112053856.18412-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YbqZyz32; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 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..d80b4415e761 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 = <0 1>; + }; + }; + + 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 {