From patchwork Tue Apr 1 07:00:54 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3886 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E848A40D1A for ; Tue, 1 Apr 2025 09:01:35 +0200 (CEST) Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-43cf3168b87sf28572205e9.2 for ; Tue, 01 Apr 2025 00:01:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1743490895; cv=pass; d=google.com; s=arc-20240605; b=TXqm+v315XEQuWLpTJqLw/Trq55XGJj9FrpR0rfMlnn6SjoOqbDJTYfUpdzoOsQTMt c8xOhDPD4pSUS64EaQnnEBOzh7ddZROMgrpcL34RanBjzn47XLLydHFuHFsNUFt1OTns kPN6o5tYkIuqqZKc8PAoFg43Cehtq8DnyDYZ5A0YtUNnVQtq9i8Nkfrc/wSCkTgyRk2g yGKWn4juQvCGX8rQsk3dDunuvA/W3nvNzsUXKZeWwLFkEVMqi1QrdHZyT3NtyCAGzpjQ a2CuuJXKXx1il/cf6edt7qc2toaEbq3O53cFN+eZIpo3VtOYImp/jAaViGZolU0l5Xmi le0A== 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=Kd5r3e2me9sxrdF5DKFkkVnohF8/6u7MZir7wteg4jk=; fh=qopJ8v952bc/wjzhtQhTLV1CBau31KUfAXxEAUBCvnU=; b=KUnWX1R9FiIPpIt3tnY/mrfPuOdZohE5YoYfUZmuIs6YlwM32G2kw6zQwejChJ6R1m gKqZ1Y5eh+lgsXOQnhjzhy2jSEgXy/nbD+QU+AhgdQDzLVk01xijoTr6BYwcXKnnYlv3 FFWRTPwAlTfquB+tMqbIdaD7UOlCYM4WTS5GViTtKAGatWYyV2uyPW3LfdHVjFX8YYEh KYi7GMdHr1hQJB7v8FLcGDzWjsNOvqcVcwd+e8U0X/IaLXZike3I1Wssles2QAltJBLH xA6yZTtfjke3T5ZJtfktKYGKmtZ7Schbzw4XREVa5ZMM7Ff/0H059rdya1fPGebFxnoU E4ew==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PP3ITXfQ; 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=1743490895; x=1744095695; 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=Kd5r3e2me9sxrdF5DKFkkVnohF8/6u7MZir7wteg4jk=; b=ceUb8CxHcbklsIghN5rTRqCJAodXNdKqGn9GfJG7mmsKGrX6vt0MVKzgkAw6tLa9K3 GGQKbxUB6RF4JYtgPe09nXeqlYVZi/hrinjGQB4ilno71rvnBk+X7riEjgn76Q6BuNVk IO3qsCW45HsF9Dyq4LfCn7+J804CIfpTIipSI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743490895; x=1744095695; 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=Kd5r3e2me9sxrdF5DKFkkVnohF8/6u7MZir7wteg4jk=; b=TNffPZMf2kZw9kSp2dmMJEi+HSej2Nnp184LTXEq6VXEdZiKZ65yuzbFyK1ETVMwsW Gq7m0JyHsNVQCV0oeoOm7Cy438j9oQ8n5/FfbFW3LvY7MYjaok4qZUKdiHsN4eL0KBlE XMAR4BdasFsTDAc2yk0MBZjNVIqINddqhczahIoZkYPm1TRzC1pmhCyJBrKd1I9KVhH3 49fw9WrBzP9YFwfjK2MnU8Mn+MoCGNydZXP9h9aQejyC2fFSca7kKKM+SxVufPV2VTFl UkwRbfnSgYY4yctELWFyQN4TkVcLF9m2iOyGUBYeu10BBABac5efB5bteFR87QWS22cG FykQ== X-Forwarded-Encrypted: i=2; AJvYcCXBLcjzk9iCQzC5Ks7pIrNBcQWQ++UmBiOz9bjQG+gL5klHypOR6O1Lq+hTlQ13uALo1dKdSbDySyIMcR1t@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YwQx3ehJ8J5/Rl1k5vanHkvgHbkdqHVz8vU74Xsa6J5sTjDKuMO 2MK/Lgrkk4vE51X8v4/JjpAFMIBi2Lq8Fs/u+s6BmD/Lg9maT2Nn7iswVbfr9T7CLA== X-Google-Smtp-Source: AGHT+IF6LcfZPoJ11ytz/bc9Z82kFeEcT/uRA3gjiRqbuWmbeGIrslNQyiz1cTIODXYQyRpjOgGjPQ== X-Received: by 2002:a05:600c:450a:b0:43d:ed:ad07 with SMTP id 5b1f17b1804b1-43ea7cdfdf8mr11851725e9.29.1743490895514; Tue, 01 Apr 2025 00:01:35 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=ARLLPAKVsZo0FTW1qgall1CWjEY9QZCns3kb+C55RpdcWWBlJA== Received: by 2002:a5d:6d8a:0:b0:39a:c467:8d17 with SMTP id ffacd0b85a97d-39ad15d734fls2412237f8f.2.-pod-prod-01-eu; Tue, 01 Apr 2025 00:01:33 -0700 (PDT) X-Received: by 2002:a5d:6d86:0:b0:391:4999:776c with SMTP id ffacd0b85a97d-39c2366a850mr1201814f8f.40.1743490893524; Tue, 01 Apr 2025 00:01:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1743490893; cv=none; d=google.com; s=arc-20240605; b=Lvr+E/V/+pUInkbSPUmpnT0zdrXF8whwCWgcCbnJ44Y424EFMeb+qbaAtAdh5qXiEK YazRIzL1JZUhvMQqzgtBDTGicWFpx/XNemAkdlXuQklo/MDlAhYF4DMGQ7fMPGm4sn5e MslJVtAY4xsLtyCbEq7jGfFV6JLe5bIz7fIvwAQh5H3y0ixMToJw7NYJjJYvxPDJ+EEs tdKSUz4epInaU4aML+2UH6fjk1sjTd1/sHlUe0nXhBEUPp6YUXPKFxs9sqco0kOSyI7+ MKl2iQ1Kq8M8LmKoTEcJWocgfu1QJryrGsT6WG8p5iKjo9TC2u7UfBrNFYC5VwkColH5 9AnQ== 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=8gMeInNBRAkCkwoVlTM98xEWy0g3akZgL6kxDi5yA3g=; fh=oIe0PiPZCvrcmt6IQjgU+Fb1OoVcS0Yo3ov7NWbceYk=; b=SLOR9MZTsYSuEVsPJKoet8nqdcafOkdbPTrTNIZco2x31qf7tetsjkPt1hR2Gr7Kv2 311AfL/oCUuAVmDH4NJw4WnRM6pejkFe7uxWb5WIEFHfl5+JaGRrAuhNdTGS6vlY0OBC qFyUwuQqNQaZfj/DFiXO9tnlfK72KjxicZw8LAAlmOHGrtftSJJSghhpnTNlZ0Z+pl6b tUSf49Q7Ilj7CyshpwGuhHjtAMEpg6WVydXBhZjPpm+xk3CoIJBKCrfDV6dziHzj1IR7 JwxTArnOdNKJhquJ7wYs/EJ+OKhiSpqixRD+lOWIKvIlfxq4V95Dskdf3zfRQiqn4kip wHdA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PP3ITXfQ; 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 ffacd0b85a97d-39c265eca2csor132863f8f.6.2025.04.01.00.01.33 for (Google Transport Security); Tue, 01 Apr 2025 00:01:33 -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: ASbGncujZcFP5/sJze+pvarrK5WdAUEDDUGMkW+t96562sIDDkQUjjYunQ9Ew+KI3rI bDP7ZU51dykw8yibVgRWfW19TZrRQcG+h2yvqrRZLAIvzIuIXnGKwB5b3F0zrsve9iEgE6w/82k IvIfBJSf2qDQ7L95HtmIxmQQl3if/lqJpHFUTJTHkK8R4PtNd5hMo/vQDFk4s6UL1jt7swvkWG+ DaBVYhwW2rClzY2yNl5GU/oUBmIQdeMSFb3mJM1MZN/QsRBj8XtVjltPG/ZPZ3Xy/pbCf8F8WOE OygECRe27H6hSHtkLBHzSk2JkmzoBCXOInF1P2WQ0MF+wXFCn+WnQZz138gdZNng9Kr4kPOD0SC 94+NprI7Hig== X-Received: by 2002:a5d:59a5:0:b0:390:f9d0:5e3 with SMTP id ffacd0b85a97d-39c23646fe3mr1063138f8f.1.1743490893132; Tue, 01 Apr 2025 00:01:33 -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.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Apr 2025 00:01:32 -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 3/6] ARM: dts: stm32: add display support on stm32f769-disco Date: Tue, 1 Apr 2025 09:00:54 +0200 Message-ID: <20250401070125.3705126-4-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=PP3ITXfQ; 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 598e5adfeb6062f5d4d352c0ef888b2b29d7e215] The patch adds display support on the stm32f769-disco board. 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 | 34 -------------- arch/arm/dts/stm32f769-disco.dts | 58 ++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 34 deletions(-) diff --git a/arch/arm/dts/stm32f769-disco-u-boot.dtsi b/arch/arm/dts/stm32f769-disco-u-boot.dtsi index c5ae753debe6..16a9eecd4a99 100644 --- a/arch/arm/dts/stm32f769-disco-u-boot.dtsi +++ b/arch/arm/dts/stm32f769-disco-u-boot.dtsi @@ -32,18 +32,6 @@ compatible = "st,led1"; led-gpio = <&gpioj 5 0>; }; - - panel: panel { - compatible = "orisetech,otm8009a"; - reset-gpios = <&gpioj 15 1>; - status = "okay"; - - port { - panel_in: endpoint { - remote-endpoint = <&dsi_out>; - }; - }; - }; }; &dsi { @@ -52,33 +40,11 @@ <&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>; - }; - }; - }; }; <dc { clocks = <&rcc 0 STM32F7_APB2_CLOCK(LTDC)>; bootph-all; - - ports { - port@0 { - dp_out: endpoint { - remote-endpoint = <&dsi_in>; - }; - }; - }; }; &fmc { diff --git a/arch/arm/dts/stm32f769-disco.dts b/arch/arm/dts/stm32f769-disco.dts index b4e240a8e3eb..3fd5140ec5eb 100644 --- a/arch/arm/dts/stm32f769-disco.dts +++ b/arch/arm/dts/stm32f769-disco.dts @@ -24,6 +24,19 @@ reg = <0xC0000000 0x1000000>; }; + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + linux,dma { + compatible = "shared-dma-pool"; + linux,dma-default; + no-map; + size = <0x100000>; + }; + }; + aliases { serial0 = &usart1; }; @@ -78,6 +91,45 @@ clock-frequency = <25000000>; }; +&dsi { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + dsi_in: endpoint { + remote-endpoint = <<dc_out_dsi>; + }; + }; + + port@1 { + reg = <1>; + dsi_out: endpoint { + remote-endpoint = <&dsi_panel_in>; + }; + }; + }; + + panel0: panel@0 { + compatible = "orisetech,otm8009a"; + reg = <0>; /* dsi virtual channel (0..3) */ + reset-gpios = <&gpioj 15 GPIO_ACTIVE_LOW>; + power-supply = <&vcc_3v3>; + status = "okay"; + + port { + dsi_panel_in: endpoint { + remote-endpoint = <&dsi_out>; + }; + }; + }; +}; + &i2c1 { pinctrl-0 = <&i2c1_pins_b>; pinctrl-names = "default"; @@ -88,6 +140,12 @@ <dc { status = "okay"; + + port { + ltdc_out_dsi: endpoint { + remote-endpoint = <&dsi_in>; + }; + }; }; &rtc {