From patchwork Tue Apr 1 07:00:52 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3884 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 8698340D19 for ; Tue, 1 Apr 2025 09:01:33 +0200 (CEST) Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-438e180821asf23377105e9.1 for ; Tue, 01 Apr 2025 00:01:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1743490893; cv=pass; d=google.com; s=arc-20240605; b=iJu6BUBQ2DvCXgxHWuhgc4d/tfpszAIFf1i7A9irSzHbQrHAot2lZbLdp/O5WpKQgF yapbFjvluospFBiYRlUirxabsajevrF1E5NSHQrEop72JQ8KT8t9Wob7s3M/SVNSq92j 07m6WEXe1zmB3hfkMZ7hfJ0PJianOyifW0h7bC4sqORbhDFpv5w6n7PQRJ7YxQybm3V4 q0iyzFO9mrhtEwmGS6d+ec3rXWf53N1cFtJBy2kNb/SDD+Oqe4+6vPZYf0e2JNosfKN3 SJG6n7AenzXhu0+v067x4UKdObcTkCxNxuEVcnlsKHt+MNGMnSJD8EYMvPCzK/tI+j9J GSNg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=3B4KHGvIejqWrXVwaIDgbAskhGtqfjmN6hgxF9In9cQ=; fh=VWhw4kAmbXkcGwUqoxamD5LFyfBgSPEVvNwxGoo2AQw=; b=WfbhU2kd9psKeqgAlA8P+tjGXdA0mfbateqQ44APGmUWkYb7MDptBp8oytS1kDt9Jg jfAg9VjJ0YwD2jez70DBUulLXoOza/2rrbFFTynSIbNKu0mUB4PjyWcLuc7T5Gw0ULg3 DVq90W2tX7WBelNWcs+Bfnbxe4w0dO31ZI+IamMS/AAGo9gWppxcB8YeIMzVdvDAYgFj FfV2C2ieDygRzpaqgEyekRWC8MBuEHOwsSNbGteU6IqalWYK+zE40BMd2c40d3ynb0It Yx8cWnNXxsTiBoWOQBwdI2o1R3rxKLm8lJqPFYSVEeiijFCRlWfG/SN0nHqnbs6SfHv8 fSTw==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=HAuyOwHg; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1743490893; x=1744095693; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=3B4KHGvIejqWrXVwaIDgbAskhGtqfjmN6hgxF9In9cQ=; b=G3/HO2hqrjg3seOhXRB4dsQJrrRaV19ochjEW+Cplp+zSDl//qNPoRHM149c8VuJ9c YM7i+b+QovKcWO+idyDhxsnaj0grUkUSRkKZIM+YH84V3Q2Wu64jigDUVrYAUfbF/Msw 83iEB4yQJ+owI3DT4ZgBl9xJ1YkUFfYvgVfNg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743490893; x=1744095693; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3B4KHGvIejqWrXVwaIDgbAskhGtqfjmN6hgxF9In9cQ=; b=DD0WypFJdh4Z1SKSUn3LnKi98DB+VBAjNOydItEWlcZIjS9FvVIPBjaOgBiGHINjqg CWberOetvtTQ7l175Fa95PlLEIKDvVczBmV9SnFMzslxtCK6VuKIgSsNaLAKifP4F5kN WCiMrnpZ1DHdj2mzch8IjW4Gd97n/oUdejM//i/biOqvzBK4p5nqMddxQzrTgoSs0vje URWr2Zia7HkaPR7s+tg86ClHElGOPdFD8WU4X/wduSiQjfVpjUMO/Gc4wfHaowxp9Xy8 BxEQzBF7lvTkUB80bNbi9Eka1e7EURfWdtNBey4M8/YebG/LtfY65EotxLA+AeK6nC6C BmCQ== X-Forwarded-Encrypted: i=2; AJvYcCVE9iUs0goaZmu1gDr4QHUKDlTs9ayKNuAJio6DZImu/HLtUfJgJOfUltrzG82UmlXvIG4+5g++pWDqqCQP@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YzuryJPDezpO8jsIX/bFOFmGVUnGcy1KgcKBdawKqJUJlMC2KQ+ 9WThOQgRoijptif8O1JVC6O9Uf/HGN4tJAy3a+aq/vvc2oxRCCPKALqzbY0CiVqpTLAcWWxQ+Q= = X-Google-Smtp-Source: AGHT+IHLJpi2gmQbyYyMbBJc23fYKSaTrEvborJm89BkBdoZhUK6+04N4/9tP2TLj+Ed/L6HxHohFw== X-Received: by 2002:a05:600c:22c1:b0:43c:f61e:6ea8 with SMTP id 5b1f17b1804b1-43dd692392cmr82873175e9.2.1743490892899; Tue, 01 Apr 2025 00:01:32 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=ARLLPALoxnIM70kPaQUWYuRfAFsBbD8/Rd8KuG6/8wsw7cto9w== Received: by 2002:a05:600c:1ca9:b0:43c:ec29:489d with SMTP id 5b1f17b1804b1-43d84ee86cdls717705e9.2.-pod-prod-04-eu; Tue, 01 Apr 2025 00:01:31 -0700 (PDT) X-Received: by 2002:a05:600c:cc8:b0:43d:b3:fb1 with SMTP id 5b1f17b1804b1-43ea5f001b7mr25631605e9.27.1743490890849; Tue, 01 Apr 2025 00:01:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1743490890; cv=none; d=google.com; s=arc-20240605; b=KePOMsZYfQFQ9S/ytrePxSmoL+cHjOqYzFnQYwSYsYgRo9z1SpMOKhxUHOi6sUWpbs iY1E4osRkrZKqFU8solpzJM8phPtjMRUUDowIc8+Q5P7Wd0VVQCDs8yg8JBjzVXrE6UF lS+A+3w8bf6wsuQbHf4eibIwXu+7Se7BJ2ic54vZbbjRtRZnoxNsbHHp2eHN2Eab72Qg WevJdVHpNfIss755Pp7aWDslS90MCZeQDX+vtQXxPCLq52j1m7KdK4igQ7q04qdW5BkE +XC/OyysHeRxCdVp/e9KLLiRJZhEfya5uLs9wjHP1+bSoaXY0pw8UZCyXWQ8InNRLQDJ 0pFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=i044n2zFt+fwDjOmTfhSbZNrYh1Q9DyCsR3YROwfPZg=; fh=oIe0PiPZCvrcmt6IQjgU+Fb1OoVcS0Yo3ov7NWbceYk=; b=Z2AXVOx7IgP2AvEnmTK4S36k+x00KxqfvC9wWBdVxe9giKB1OQO7BQfj8c53xEPtxE 7OnHRrcEQxBT9re2xtP1ipOkA4ftqNDtnXR0luZzXVKLE9E9lVK77lyVXa8py4YiXZ4a ZhkgioS5XPRtXoTnrrxjac49tmaMfAHJIrkf/Yl3xpEAx+eydJgsE+nzcElJ7i/X9PMm ZG7NCU+Jvd86WGI+yxmwFdtyIFYHnw5eDjzyArya8lTj1eNJ5Safj7m4CNr2SC9nmIsX MZY7vuZfaf5i+L3iUeNNarHTp6Ef78wLchv5EJ3GVV9+fQJLLQ6D8xMsoIeHNA/4WWwS FPng==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=HAuyOwHg; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@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 5b1f17b1804b1-43d8fba29e6sor30121155e9.2.2025.04.01.00.01.30 for (Google Transport Security); Tue, 01 Apr 2025 00:01:30 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Gm-Gg: ASbGncsqzYbjJG5RVfN9O9FjL1r+QH8J1YvEjgUx7sEI6sXJS+dhe4t5M2si2X7mHLB rGDQyqyy2OkCavWc6EdgNCrUdCrJ6/A4JD7rGcA6axl84Fx9mTu2Iib3oJzwjkHbcXMuUHslj2J KRolVbRK2P/93oMmwX0vSO8umMNH1nA4Q6dXIs/w/KFlV1MVNmKkS3g/8Vaf0aNoCD0xp9E2nV8 h4+yd4UBSWoXmsK+/UTcleGTD3ShTSWcTxV6ahHTqOujOWilE3cK/u8O5dBWnTuIbge31F5oRRb X13MB9zErccj65bxDKVjNtxZoUgNRVFTHdGwOzWaX/GqrMlnaDms2GKjGop2nBEBbilZAcbyrYc 7rvrr6WO2fQ== X-Received: by 2002:a05:600c:83c4:b0:439:91dd:cf9c with SMTP id 5b1f17b1804b1-43db6223feamr148997085e9.10.1743490890455; Tue, 01 Apr 2025 00:01:30 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.. ([2.196.40.230]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-39c0b66b015sm13701760f8f.54.2025.04.01.00.01.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Apr 2025 00:01:30 -0700 (PDT) From: Dario Binacchi To: u-boot@lists.denx.de Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , Patrice Chotard , Patrick Delaunay , Tom Rini , uboot-stm32@st-md-mailman.stormreply.com Subject: [PATCH v2 1/6] ARM: dts: stm32: add DSI support on stm32f769 Date: Tue, 1 Apr 2025 09:00:52 +0200 Message-ID: <20250401070125.3705126-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250401070125.3705126-1-dario.binacchi@amarulasolutions.com> References: <20250401070125.3705126-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=HAuyOwHg; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=pass header.i=@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: , [backport from Linux commit a995fd2e8b3c6defd1dcdd3fb350c224e41ea1d0] Add support for MIPI DSI Host controller. Since MIPI DSI is not available on stm32f746, the patch adds the "stm32f769.dtsi" file containing the dsi node inside. Signed-off-by: Dario Binacchi Reviewed-by: Patrice Chotard --- Changes in v2: - Add Reviewed-by tag of Patrice Chotard arch/arm/dts/stm32f769-disco-u-boot.dtsi | 41 +++++++++++------------- arch/arm/dts/stm32f769-disco.dts | 2 +- arch/arm/dts/stm32f769.dtsi | 20 ++++++++++++ 3 files changed, 39 insertions(+), 24 deletions(-) create mode 100644 arch/arm/dts/stm32f769.dtsi diff --git a/arch/arm/dts/stm32f769-disco-u-boot.dtsi b/arch/arm/dts/stm32f769-disco-u-boot.dtsi index add55c96e21f..c5ae753debe6 100644 --- a/arch/arm/dts/stm32f769-disco-u-boot.dtsi +++ b/arch/arm/dts/stm32f769-disco-u-boot.dtsi @@ -44,30 +44,25 @@ }; }; }; +}; - soc { - dsi: dsi@40016c00 { - compatible = "st,stm32-dsi"; - reg = <0x40016c00 0x800>; - resets = <&rcc STM32F7_APB2_RESET(DSI)>; - clocks = <&rcc 0 STM32F7_APB2_CLOCK(DSI)>, - <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>, - <&clk_hse>; - clock-names = "pclk", "px_clk", "ref"; - bootph-all; - status = "okay"; - - ports { - port@0 { - dsi_out: endpoint { - remote-endpoint = <&panel_in>; - }; - }; - port@1 { - dsi_in: endpoint { - remote-endpoint = <&dp_out>; - }; - }; +&dsi { + clocks = <&rcc 0 STM32F7_APB2_CLOCK(DSI)>, + <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>, + <&clk_hse>; + clock-names = "pclk", "px_clk", "ref"; + bootph-all; + status = "okay"; + + ports { + port@0 { + dsi_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; + port@1 { + dsi_in: endpoint { + remote-endpoint = <&dp_out>; }; }; }; diff --git a/arch/arm/dts/stm32f769-disco.dts b/arch/arm/dts/stm32f769-disco.dts index d63cd2ba7eb4..ad1b442055e1 100644 --- a/arch/arm/dts/stm32f769-disco.dts +++ b/arch/arm/dts/stm32f769-disco.dts @@ -5,7 +5,7 @@ */ /dts-v1/; -#include "stm32f746.dtsi" +#include "stm32f769.dtsi" #include "stm32f769-pinctrl.dtsi" #include #include diff --git a/arch/arm/dts/stm32f769.dtsi b/arch/arm/dts/stm32f769.dtsi new file mode 100644 index 000000000000..4e7d9032149c --- /dev/null +++ b/arch/arm/dts/stm32f769.dtsi @@ -0,0 +1,20 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2023 Dario Binacchi + */ + +#include "stm32f746.dtsi" + +/ { + soc { + dsi: dsi@40016c00 { + compatible = "st,stm32-dsi"; + reg = <0x40016c00 0x800>; + clocks = <&rcc 1 CLK_F769_DSI>, <&clk_hse>; + clock-names = "pclk", "ref"; + resets = <&rcc STM32F7_APB2_RESET(DSI)>; + reset-names = "apb"; + status = "disabled"; + }; + }; +};