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: 12692332 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 5320DC433F5 for ; Fri, 12 Nov 2021 05:40:34 +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 14E0C60F70 for ; Fri, 12 Nov 2021 05:40:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 14E0C60F70 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: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=6QudPQXe7klYXEYG2mX8Vs9GmbZ1/bS4jbhWC/5Vhw4=; b=brB/jkn18tUDNp BKjYceLFaVaWW2A1c48gPbeMlKquxEassqlGZClL+v19tK2EpKS7GXqNz+0VE0vnfdglLt2v+x19A 6KH88oaUIHWP/E5/famxVcLff0ZO38oRsgyQc7HCX0KDO7R9TKJcJK9h80M8Q1XoZFSaWhZb/RD0O PXRXjsOG9OjJripO6ZsiUk+IhhhUwm9zBgrgRvx9PrLNV5lua/dnWOjGmympM17jVK5hB2PDiLTDy 4TC5k3Hb/CPXt+z+TByZYI3RNZyjeLup3l5WTiwDZI6ioTK8mzf3ij7ekGiCA6xkJNBijrY5scv2y 98QDuQBMZjvZno+HnVEw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mlPHJ-009Qvb-LK; Fri, 12 Nov 2021 05:39:09 +0000 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mlPHF-009Qv9-88 for linux-arm-kernel@lists.infradead.org; Fri, 12 Nov 2021 05:39:06 +0000 Received: by mail-pg1-x52e.google.com with SMTP id 200so7164587pga.1 for ; Thu, 11 Nov 2021 21:39:04 -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=3ux6niDLdsPk8MAPGpHmvnQ2ygKaZewBFfo24yv2+C0=; b=YbqZyz32VjJoNgJyTfYsHMJIaZX/N7I4TESRxWQdTDBoGQq+LaMfgTPHRbmp5K46W2 kxVvI2DGKMifDyqSNwbmav+QT0I6qXGGBiGro/DphwUBgBnaW6PT+6B1FS8ocLlJg9Yt eo7iER8bl49ip/AgCJqUaLOOyYJB1Z+Al0Vsc= 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=3ux6niDLdsPk8MAPGpHmvnQ2ygKaZewBFfo24yv2+C0=; b=bmskQhnhj6xN/jg+YyEvYl496467i19MS3ClVfy8CKjBz4BggaN4V+zN3vdJdrrbFH c1QbFW1N6lclupvkyxn2+agHHBLd0SZ+t0NAMWecfDK4F/YeOFfelE97hmbJFOJNH4KK ZlL+fuSJGSlEdDq4YoUAMU5SqExr/HJUu/BPN9B1q3uZaG+DkBNX1wpQMBGIiD3f5ujN a/3Mu0HyzCMAuDq7nEVliXmgGnL19/7aqJsKIgRIU+hfzsSS34iNtPmi+iJpfpfuYkw7 dNHZ/Aee8rkJ/U3W0m3GrudtiiF8GB6jGUFll1J/WxS9NFYysyk+uSVhqzY/ont4u8Xw 0EvQ== X-Gm-Message-State: AOAM533d0ODrspRuiEU5DgVxOoBYKhx2PyY8LeDUmnNL3/aky2rzyLrg AxWZO5jPhyDI1DUucJqpFcm8kQ== X-Google-Smtp-Source: ABdhPJy3ErD6gWNx649ZzuzsxaCDMhfAx9aFJnqoT/BdK6zR/T4Gqt4M4ev8huLNxKBpY09CTRjf0g== 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211111_213905_468425_55B8589C X-CRM114-Status: GOOD ( 11.05 ) 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 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 { From patchwork Fri Nov 12 05:38: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: 12692331 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 3B0B0C433F5 for ; Fri, 12 Nov 2021 05:40:30 +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 E61EB60F70 for ; Fri, 12 Nov 2021 05:40:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org E61EB60F70 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=afS5I4AeObM3fYqYYgYR97jWcA9gqwod4eSm4T8qpmo=; b=T2FZViMI2yvDHf ntV/z4AsuxxfCsE5ENg6958r+kfaD5/kNWdP7v5mWqGf4Qx3LfyOGrk/VNFFwGWwFOPoiHZL/KIP5 4dlWrwI+6g4mJZo3FCRDEkoFPIKLh7rogk81Hh2b8GC0ipwNSM5jGaK76ryfKngPCg3nOXEZ5EuZJ KWEIeA9w6/ZKmYy+hm/OMcSSwTr2po9DY8XWcaMWpcxEUAej7bH5UmGSp5hKFRiSw0xhtRm1sWsJy q2iE7k43kugj6fBvueldrqWzh5VA9lMJqB3kiIJ+Wtykg1Oov/+HHfnz9W3LYHp1q163pdCdi0E7+ veo91tiE1p8TS3tVfTUw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mlPHT-009Qx0-OV; Fri, 12 Nov 2021 05:39:19 +0000 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mlPHK-009Qva-2S for linux-arm-kernel@lists.infradead.org; Fri, 12 Nov 2021 05:39:11 +0000 Received: by mail-pl1-x62f.google.com with SMTP id v20so7567581plo.7 for ; Thu, 11 Nov 2021 21:39:08 -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=y7lfOFFMzKe+kiTUn4fLEQP7ZxMtSNXXkb4oUnjFYrE=; b=Uut0dc0q27gGEIx7ezk23/w2XG4rJfYHhE2oWggCCsYaAnJCBmwLRTj9oX5bmB5rN1 waLtj6A1dBZwvUCD98FlX59U4XCMDysMvyEwso+d8tyylbljugbujgFEtsXg2HA5UUNX ffRsMLCan8qlMSkQRMVAmpE4ARai1Kd0MWCK0= 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=y7lfOFFMzKe+kiTUn4fLEQP7ZxMtSNXXkb4oUnjFYrE=; b=ex4tKPrZsJFBzaHzap5fjcLKAA6aF8IXAYKf30+H9Ok40AONLmHVu53TESHWXDrv05 iHT3YgXxdYdizFtGwWiTFYBCjzDzs+vK4fDU8V5wZ3cb/VIc4wII/T3lZ3ENCy0uJyji QYJIVMBtq6DCwW80HTJLpdT/OAtezNNA39SsQZKJ6ah1N9MgwsPROafBWm2HTvzalXZj MOcGphhbcR4Sil3PLHPYkUS6MIdqFrqXfvp9hR9Q72jtTz6plwrxlVT4jViRQTqU2sZb y4+y/7QyONU76Irx8HFoaTl1/Mx8lwBfZDT2mEpqZJ6pdyUnfn4GzHAX+W6kQi90fJG5 mr9g== X-Gm-Message-State: AOAM531tjy0C5YQsk9NqshwA6TpGSHhTk7fQAuT5EBc7O8m3SiBn8a1T SivnrPcebja0ZnOsnKFKpyGhGg== X-Google-Smtp-Source: ABdhPJxvpPfjHFmX6h1llLBSmbiKNzUM2EMJL/tdlZxM0sd1VXO3uhl5VV3vwQ5PPsM+cP3kzXCxGg== X-Received: by 2002:a17:902:ec8f:b0:142:11aa:3974 with SMTP id x15-20020a170902ec8f00b0014211aa3974mr5227566plg.30.1636695547706; Thu, 11 Nov 2021 21:39:07 -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.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Nov 2021 21:39:07 -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 2/3] dt-bindings: arm: stm32: Add Engicam i.Core STM32MP1 C.TOUCH 2.0 10.1" OF Date: Fri, 12 Nov 2021 11:08:55 +0530 Message-Id: <20211112053856.18412-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211112053856.18412-1-jagan@amarulasolutions.com> References: <20211112053856.18412-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_213910_142669_E429DAD9 X-CRM114-Status: GOOD ( 11.00 ) 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 i.Core STM32MP1 is an EDIMM SoM based on STM32MP157A from Engicam. C.TOUCH 2.0 is a general purpose carrier board with capacitive touch interface support. 10.1" OF is a capacitive touch 10.1" Open Frame panel solutions. i.Core STM32MP1 needs to mount on top of C.TOUCH 2.0 carrier with pluged 10.1" OF for creating complete i.Core STM32MP1 C.TOUCH 2.0 10.1" Open Frame board. Add bindings for it. Signed-off-by: Jagan Teki Acked-by: Rob Herring --- Changes for v2: - Fix line-length warning Documentation/devicetree/bindings/arm/stm32/stm32.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/stm32/stm32.yaml b/Documentation/devicetree/bindings/arm/stm32/stm32.yaml index bcaf7be3ab37..b07720ea9611 100644 --- a/Documentation/devicetree/bindings/arm/stm32/stm32.yaml +++ b/Documentation/devicetree/bindings/arm/stm32/stm32.yaml @@ -77,6 +77,7 @@ properties: items: - enum: - engicam,icore-stm32mp1-ctouch2 # STM32MP1 Engicam i.Core STM32MP1 C.TOUCH 2.0 + - engicam,icore-stm32mp1-ctouch2-of10 # STM32MP1 Engicam i.Core STM32MP1 C.TOUCH 2.0 10.1" OF - engicam,icore-stm32mp1-edimm2.2 # STM32MP1 Engicam i.Core STM32MP1 EDIMM2.2 Starter Kit - const: engicam,icore-stm32mp1 # STM32MP1 Engicam i.Core STM32MP1 SoM - const: st,stm32mp157 From patchwork Fri Nov 12 05:38: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: 12692333 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 35719C433F5 for ; Fri, 12 Nov 2021 05:40:36 +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 EAC3360F6E for ; Fri, 12 Nov 2021 05:40:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org EAC3360F6E 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=6FDQcu73GkXnIufn8Nf1tbj7YO6VCQEAIRjF8YwdEZM=; b=qiDxZEj3JD5Y8f 9WEw5atX9oDcIghEBTtKP1uZ6rCOjLOp9aZs6vBfIOqT2yN3V+yCKKwnwKQBM9G4GKADAynerOFsw JL6zjbLsEUoFKCPnqal6xHPztIH2sgth0b44ESLxRH5fIRGppNpCVU0tbAEtF2bz5RtnQbQ4gaUuu AKrVBLODBRlrRHP+KY6Esvsr1sOxVeBduJoEOdBe9f8usRoTXcO9WMpbcKCKnxkLpd5IpV6Hv8KDx t94N8IU4aL24rrN/XGojlOLr7KAQ7BQ0pu+kAFL3kysCUvXAxPH2ylIypoU86AZeXOJaqOyDI/nX+ IYm6icgFDJHL6O5B52Rg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mlPHf-009Qy7-BG; Fri, 12 Nov 2021 05:39:31 +0000 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mlPHM-009QwC-2R for linux-arm-kernel@lists.infradead.org; Fri, 12 Nov 2021 05:39:13 +0000 Received: by mail-pl1-x634.google.com with SMTP id u11so7597434plf.3 for ; Thu, 11 Nov 2021 21:39:11 -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=zwSmaZ0/XBjCCpcjkMDJ976dMmOGPgUfSWLa9+mY8As=; b=LsRTIR3Qwpo3xYnQju230XT6ajXoYMJ4sg7/11NlrfGxKyymx1z915yRin5ORS7iJa Cv+YJbpWTh0wsKxHrecAzLKua8xlqEiCQ6zgVmyFs6NTzVdWbjARc6bpiiW1IXb7+Hqc iEzraWwhtZP3VJntGgJEaIe4YYhy1y8/vK9u8= 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=zwSmaZ0/XBjCCpcjkMDJ976dMmOGPgUfSWLa9+mY8As=; b=JTtnOrMhPS6cxa32ZlcXFE2GUcC/GeqhA3SK7Q9+DoojQyiAX0NcxcSi4VYoKc2AHI 8LcrkJnzAy2mlLKC7EsOtRD0Qu7maCH3Dic1/S2N4XkC8JpMHxM0Sowhs0jh7lmbePeg f8tsfFKsuLqrDHpFlGhQeDBXhoUhxJHJexQVemnELcPES7YvHXMeJWy1u+C2qCuPEZHj 9KP67EkvKNAuR0A9lIOLbJ3NxgxcsFKPPD1t2f6+6FEEDHbZV9VnTpQdwxhVMYkN5SpO WGqa/prDwbs/Eh7O3Cy1uWVku+th8kVtBJSOo+I6aGQdkSuKAeusWsGL3X2X1Y5AmRYL RmmA== X-Gm-Message-State: AOAM531OCYoHSaZsoL5A63BzNgxOi9MTLAERU5Tnxtbqe5vJAi4W7RHn oDTVuTbgBLj/CdXDcGEMYhLu8g== X-Google-Smtp-Source: ABdhPJzeFsEK8Jc335z0N/alGaTtbAlORtl477rEH9WM9e0Tb0J3yfZCT2kMOeWDWNvqfrf37hTHBg== X-Received: by 2002:a17:902:8f93:b0:142:8731:1a5d with SMTP id z19-20020a1709028f9300b0014287311a5dmr5490076plo.60.1636695551306; Thu, 11 Nov 2021 21:39:11 -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.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Nov 2021 21:39:10 -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 3/3] ARM: dts: stm32: Add Engicam i.Core STM32MP1 C.TOUCH 2.0 10.1" OF Date: Fri, 12 Nov 2021 11:08:56 +0530 Message-Id: <20211112053856.18412-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211112053856.18412-1-jagan@amarulasolutions.com> References: <20211112053856.18412-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_213912_140028_A76DC190 X-CRM114-Status: GOOD ( 15.85 ) 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 ARM: dts: stm32: Add Engicam i.Core STM32MP1 C.TOUCH 2.0 Engicam C.TOUCH 2.0 is an EDIMM compliant general purpose Carrier board. Genaral features: - Ethernet 10/100 - Wifi/BT - USB Type A/OTG - Audio Out - CAN - 10" LVDS Panel (SN65DSI84 DSI-LVDS bridge on SoM) i.Core STM32MP1 is an EDIMM SoM based on STM32MP157A from Engicam. 10.1" OF is a capacitive touch 10.1" Open Frame panel solutions. i.Core STM32MP1 needs to mount on top of C.TOUCH 2.0 carrier with pluged 10.1" OF for creating complete i.Core STM32MP1 C.TOUCH 2.0 10.1" Open Frame board. Add support for it. Signed-off-by: Jagan Teki --- Changes for v2: - none arch/arm/boot/dts/Makefile | 1 + ...tm32mp157a-icore-stm32mp1-ctouch2-of10.dts | 132 ++++++++++++++++++ 2 files changed, 133 insertions(+) create mode 100644 arch/arm/boot/dts/stm32mp157a-icore-stm32mp1-ctouch2-of10.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 0de64f237cd8..641220e970e8 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1140,6 +1140,7 @@ dtb-$(CONFIG_ARCH_STM32) += \ stm32mp157a-microgea-stm32mp1-microdev2.0.dtb \ stm32mp157a-microgea-stm32mp1-microdev2.0-of7.dtb \ stm32mp157a-icore-stm32mp1-ctouch2.dtb \ + stm32mp157a-icore-stm32mp1-ctouch2-of10.dtb \ stm32mp157a-icore-stm32mp1-edimm2.2.dtb \ stm32mp157a-stinger96.dtb \ stm32mp157c-dhcom-pdk2.dtb \ diff --git a/arch/arm/boot/dts/stm32mp157a-icore-stm32mp1-ctouch2-of10.dts b/arch/arm/boot/dts/stm32mp157a-icore-stm32mp1-ctouch2-of10.dts new file mode 100644 index 000000000000..351be43b3d39 --- /dev/null +++ b/arch/arm/boot/dts/stm32mp157a-icore-stm32mp1-ctouch2-of10.dts @@ -0,0 +1,132 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) +/* + * Copyright (c) STMicroelectronics 2019 - All Rights Reserved + * Copyright (c) 2020 Engicam srl + * Copyright (c) 2020 Amarula Solutons(India) + */ + +/dts-v1/; +#include "stm32mp157.dtsi" +#include "stm32mp157a-icore-stm32mp1.dtsi" +#include "stm32mp15-pinctrl.dtsi" +#include "stm32mp15xxaa-pinctrl.dtsi" +#include + +/ { + model = "Engicam i.Core STM32MP1 C.TOUCH 2.0 10.1\" Open Frame"; + compatible = "engicam,icore-stm32mp1-ctouch2-of10", + "engicam,icore-stm32mp1", "st,stm32mp157"; + + aliases { + serial0 = &uart4; + }; + + backlight: backlight { + compatible = "gpio-backlight"; + gpios = <&gpiod 13 GPIO_ACTIVE_HIGH>; + default-on; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + panel { + compatible = "ampire,am-1280800n3tzqw-t00h"; + backlight = <&backlight>; + power-supply = <&v3v3>; + + port { + panel_in_lvds: endpoint { + remote-endpoint = <&bridge_out>; + }; + }; + }; +}; + +&dsi { + status = "okay"; + phy-dsi-supply = <®18>; + + ports { + port@0 { + reg = <0>; + dsi_in: endpoint { + remote-endpoint = <<dc_ep0_out>; + }; + }; + + port@1 { + reg = <1>; + dsi_out: endpoint { + remote-endpoint = <&bridge_in>; + }; + }; + }; +}; + +&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: endpoint { + remote-endpoint = <&dsi_out>; + data-lanes = <0 1>; + }; + }; + + port@2 { + reg = <2>; + bridge_out: endpoint { + remote-endpoint = <&panel_in_lvds>; + }; + }; + }; + }; +}; + +<dc { + status = "okay"; + + port { + ltdc_ep0_out: endpoint@0 { + reg = <0>; + remote-endpoint = <&dsi_in>; + }; + }; +}; + +&sdmmc1 { + bus-width = <4>; + disable-wp; + pinctrl-names = "default", "opendrain", "sleep"; + pinctrl-0 = <&sdmmc1_b4_pins_a>; + pinctrl-1 = <&sdmmc1_b4_od_pins_a>; + pinctrl-2 = <&sdmmc1_b4_sleep_pins_a>; + st,neg-edge; + vmmc-supply = <&v3v3>; + status = "okay"; +}; + +&uart4 { + pinctrl-names = "default", "sleep", "idle"; + pinctrl-0 = <&uart4_pins_a>; + pinctrl-1 = <&uart4_sleep_pins_a>; + pinctrl-2 = <&uart4_idle_pins_a>; + status = "okay"; +};