From patchwork Mon Mar 24 18:00:27 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 3879 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 12ADE3F0CD for ; Mon, 24 Mar 2025 19:00:58 +0100 (CET) Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-43cf327e9a2sf37052855e9.3 for ; Mon, 24 Mar 2025 11:00:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1742839257; cv=pass; d=google.com; s=arc-20240605; b=FrAV9uF9G+aDI8leFaQqqviZUNTUpfolt4nAqvUHCWh4gb6w4hKQV48HB+rpG5TuG/ L0IXK4v6WmVLk5gNb0VytkSq621O3eCWb4T5nVA+0hMjmGqeNqcpHOwKG+fyz1LlbKw0 b35mIv8oQ5S6ZC6SoCgW8oOVC1Y3pjV0AwqY4VJpRujM7WtT//qiFPIFF/a/R7KIkFby 1sLJfhZY2uefI9ITaEGzenNx0CLoPVKG2JyMnyhnmOdJhoNC3y0DGzNULord5DpbgltF dOYuZRhw7xaiIEAupYJdObB6X5dlrEc8f3f45McRLvu82721ClWlMiMlk8u9r76WCUXp RXYg== 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=hpkfUCPs3TKZrndBzXqTyR3V8IC10/fM/6SG9G3ixRQ=; fh=Y51yZ5GviWHcb4bQ54TuyLyQ0sFuP5LkQTilUPqKGAI=; b=H5xQdZ0zqQ7C4DMnfBt+dpjl0LP8A+5Fr609+v/Gzsgvwu0KhCJBqFCJIeRxUWAdCK TCxfQnjSHfRU1hou5au7HgzBUy4O1RrUtmmnUVp5+PBJh7rV1z9birEIhGaVieKRs23B hGwmBgiWRVJp39MsrB5edY/ybIf3g8GSO0TfnnB2MtN/1p7Ka4ZLe+xkfp8+U+a0ypaD 5chYOw0y2E7eyK24ksS710dqItuew2h5WM05PMGvWTSloMiKiknb61nZM1s6oJTUrMFc L80wU+xn8HUy5lT2izvUDqqHmBF9cha1nrzp6dbc+nU266BJiOM3xIhYST6HWOrUNPN+ 8BGQ==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=L7jwOKQB; 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=1742839257; x=1743444057; 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=hpkfUCPs3TKZrndBzXqTyR3V8IC10/fM/6SG9G3ixRQ=; b=rYniO1YxPdZtZGyNA8GL9VVc4RkdsRMMX3+ro24rMuMW0OqzMFF8SNXJPd4LoBVIWJ 4YO6tcyM8e4m26xXwiGo3+2SP053F/oV0m6oBuUeb/pqO/wsdWPLgLJlOehiqiqO59/4 V82PWjGIJCFZxQZtl3hdXAEAE0GJU865fpIeY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742839257; x=1743444057; 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=hpkfUCPs3TKZrndBzXqTyR3V8IC10/fM/6SG9G3ixRQ=; b=vuMmP0mkI8uYao5uEdqGhLJZZhILjExPLrIN9HeQeJkYBSIQJMn/CFGQFOcQSbs5Yo juI/wg8I/g0UCdT7luacz1smrZbp5qLHn2kyoFWhNicjtmu2gzyRiBsTzliX5hn//q22 XkihwRgH+5SuhdVCtNHnd1RZa0vbHFSK2qPNvyidN5B9KDWlFxQKv+qKzWozJLrM3Kv2 DS7uVWWk1ptbt2Qm9lV1BnqJyPt9MHfRtDLNn7erXz9+w1ASSErTGgpJfHuAe5FKplaE zCAT/6aS7iPqVmPjq90whk4cX8c57YOXRu9hY8rdcOYUcL33icZr0z6mQQPcgrOdoMXa XIkw== X-Forwarded-Encrypted: i=2; AJvYcCXeV4JRZsFjpiMzJFdCFBbfs3fFY/dHAnBlHk1Dh9bBU8C3E59QjXfgnClO0GPgKFx5XiS07b/bwFKqi8Wr@patchwork.amarulasolutions.com X-Gm-Message-State: AOJu0YzO2RmhLxDk/hwIg0MUS03tZQEbbHPSlz6GhgAUDDxhHn3vNLqo Axv5Q1wjS0xwOH6BkoEFHXBWsTmfoluUA+Uph3Ef92YgYby13mOKiIPQDGE5f9UhJIPWzecbfA= = X-Google-Smtp-Source: AGHT+IHtykpS451+ljW4vDEDCYvT47AocYuK5VMYWvxm+YdbiI947GxTcYkIvyiItEvNpJz2L0ksgA== X-Received: by 2002:a05:600c:3110:b0:439:9e13:2dd7 with SMTP id 5b1f17b1804b1-43d509e42bemr109282855e9.2.1742839257400; Mon, 24 Mar 2025 11:00:57 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com; h=ARLLPAIFGk7JUnjVCeIPs8wzCo7YGGN6FcSNJiKqBsmgM6otOw== Received: by 2002:a05:600c:4790:b0:43c:ef03:56fa with SMTP id 5b1f17b1804b1-43d491bfe44ls8202065e9.2.-pod-prod-02-eu; Mon, 24 Mar 2025 11:00:55 -0700 (PDT) X-Received: by 2002:a05:600c:1548:b0:43c:f78d:82eb with SMTP id 5b1f17b1804b1-43d509f5985mr154064715e9.15.1742839255136; Mon, 24 Mar 2025 11:00:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1742839255; cv=none; d=google.com; s=arc-20240605; b=HHcDUtyPTFbsp9r22ZcF7WsQXcrrBg8wVSynMVkI39GV5+o95AwNGvlUJTOQXNlI+Q SYMPFhg5WLbwAjclDcMMoW1g1MRVRAqR7T2ek4himfcu+UG36Enjl/C6VRU/BcsubiOz wTqFkwEVBamaeY/QRW4WvJUc86bJaw1DDvfGuEXtxyeZ9F97v+LfB3h0o9fdOE2jzWZA kI/6RcQyyjBRpmq7MqUrarz8rU3D1hmgX4ttyHef/GbFzQANPjWyq9ojWOhQyKblxQUG x9IX8fHoS9PXI7vmnjbDZULwaJdblG6sOxk13oarNloSKx1oRJBMHiQALcTZEp5CGAkg Bggg== 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=iFaFn/OC4j0QG0f+ruGPqbpwF76TJl6MZZ0HQgXuxOk=; fh=oIe0PiPZCvrcmt6IQjgU+Fb1OoVcS0Yo3ov7NWbceYk=; b=h6bNNYbSR067Al0aGGSOAFgtNOg7UoGDm0LcT55dsb36NJ1Kni2Z8VKxBNo9xmjMZl pJOJhOFBStJk1QCx/Eaz/CeD4qaFG0NTFryXBU6G67EUebOHb+/kepAdrQY0aAeiSTwV JsZTM1gIbnG/thO2q22ptIgKr3N0Rx1jSkCs+0GikXXwi9tatxJlNZ0nhWyDUT9TrQu9 hUg6CY/jUhZwBE+W2ffFbk4aiYUCbfAjpSGyzIHrFvlP8wzzPWOyeOYRSuGMnAFycN84 M9vtxXlWFvybBFDuMzfqJFzU/jCGc33x8KdO5TbyqA0OsqHQQZYFsMjN/L7TfhJBVPDV Mr/g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=L7jwOKQB; 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-43d4fd4e5f1sor30620425e9.6.2025.03.24.11.00.55 for (Google Transport Security); Mon, 24 Mar 2025 11:00:55 -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: ASbGncsIrBeuZqslvEzEUQ1KF98859xxnDsMZ9yt6YT24xnftWiEF45Yl8ob7I/AlG9 2FOCgVJbtNxUmnLzjrCE+WGBJ31NG1ax5zpy3asQNuEav5qw9Mjk6eTqZCE0YescxjkjT9TdaZM rbkmYy/80M/Fo1INb+vFPgOAx6g0nbl7MF/ZKdzsqDO0gwz+w4AH2Y7LzGZSXyNZuCrcOYT+2aG X40soBDh6UvbN0ElxnuAMBu87D1TJfnmbMzCV5KbJ75CTkyEGFyg1B88lSa5sZ8w9g3o8Z5t5oA rUQcquyOfJs6siauV8wWGkUQnZuwyLRLk96VCVju/L+RR+TLSWyKVqBSOZU7cOco7TpUs/sT8U5 HFU7eI8JnEhQPMfKCo7TwN/oZFvIfhXEFUtY= X-Received: by 2002:a05:600c:cce:b0:43c:eec7:eab7 with SMTP id 5b1f17b1804b1-43d509ed65amr140521595e9.11.1742839254591; Mon, 24 Mar 2025 11:00:54 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com ([2.196.41.220]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43d43f556a4sm178289285e9.22.2025.03.24.11.00.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Mar 2025 11:00:54 -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 3/6] ARM: dts: stm32: add display support on stm32f769-disco Date: Mon, 24 Mar 2025 19:00:27 +0100 Message-ID: <20250324180047.1571378-4-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20250324180047.1571378-1-dario.binacchi@amarulasolutions.com> References: <20250324180047.1571378-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=L7jwOKQB; 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 --- 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 {