From patchwork Thu Jan 4 08:41:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 184939 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp5487724dyb; Thu, 4 Jan 2024 00:43:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IGqKLzJmCV10gThiTMh1Crm0f+yY9wRnJ32uIfybX5VIXMQP6FWlaOljaIAMS34SJ6DR6xK X-Received: by 2002:a50:ed99:0:b0:556:ebeb:74cf with SMTP id h25-20020a50ed99000000b00556ebeb74cfmr179415edr.25.1704357809967; Thu, 04 Jan 2024 00:43:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704357809; cv=none; d=google.com; s=arc-20160816; b=DPo8E7rOT2aSCwddFh1pydz0YOjS4eL+OO+rK+tnSdPlJhgRYaNxddRAwcPRkqcbat YVBse1KEgXfSBeDL6ES9gBcTVYWOp8HxN1BhGkq9P+LRZXzQJQsA6wpFdCnOZQOab2Fj Z/HnGBtINA5GdixvKSbT2bq0Dzj/wDcwImqh+K00yX6/iW8lxfeO6iB461DacjAgJBCR SHaqXkTZlm93Kc4GGGkKVu4SdhoLZQ7PtntLJyxisZHacamI0GaliBUOu8rmcnac4Rj7 91aa+gJ071rgZ5DBtL8RttUqF5sMbcgQcqva0BLfp0FzaWaoshfMLAQOYNGksM01CDHp kLhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=c6lTYGwOZkH/q3mVT10Wfxgf2APvMbHICMTqCuHaYlQ=; fh=vtNV/F+F7Ia7aRobr1lDLcPdFj/lrCkZfthyTDWv03U=; b=c5cCkOu8P1r+LRkwaS56EgsdyzSbIGcWM8tUfIi3AKdw3LDgDZUOqDasgMd4gKO/i5 kqXuSDomDmuLAxeU/HZy5GthrxT0TUAnJ5a+oH4SJZEZtKjiC9Or+f9nFCP7ofrBr+5q q0NmNhW12GGx6xo8g9fg04YQVb7PFF4mq424FqH40ji0Hgkw48hkwiYR2wNqrDvRNvhx PDhgPR8bEbUj/Hj66+H9h/CKsC19boqu7hzz4BeaaMKEyRBqxeVUc9ylnqhAe9XT7P3C V26yRc4kTfeaWn9pfvBIXJRhLqgLlSr8nk71EcY4dbwmSOMvPZDNBs7i8DJhzBe5ls24 JxsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fH5zyrUY; spf=pass (google.com: domain of linux-kernel+bounces-16381-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16381-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id g21-20020a0564021ed500b005549748fea0si10354702edg.67.2024.01.04.00.43.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 00:43:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-16381-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=fH5zyrUY; spf=pass (google.com: domain of linux-kernel+bounces-16381-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-16381-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8F0001F24B26 for ; Thu, 4 Jan 2024 08:43:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B19F020B1C; Thu, 4 Jan 2024 08:42:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="fH5zyrUY" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 856B3200D8 for ; Thu, 4 Jan 2024 08:42:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=amarulasolutions.com Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-55539cac143so320431a12.0 for ; Thu, 04 Jan 2024 00:42:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704357738; x=1704962538; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=c6lTYGwOZkH/q3mVT10Wfxgf2APvMbHICMTqCuHaYlQ=; b=fH5zyrUYCmZQGCg6NMEVdBFUpVIM58zto2elXL74n8DzVcZProaDlb4YICAInDAzBS RXwyTYm8nS/aORDJRstiLWLPMwU6eGpXbcqPoM/9phTc9BRaPtyuDYiHcZuScyQldFeJ ORfhp212RB0G0G/oH30ebFwvkSwmqtbQudcDE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704357738; x=1704962538; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=c6lTYGwOZkH/q3mVT10Wfxgf2APvMbHICMTqCuHaYlQ=; b=aQ3jCD5U/JC1ymbb3lQhyjWNZvNrVPN591VLOF1feRjVr7dlDPouyPgMiqU0kj6yFi 9ZOxULYz3bR0w32wFgKnpXFqiwaEFMBAFLB1xro7uqACTayeBdIOnTklC3sxUj02j4ln 8rJkB8laTjUZ3refdOVr1bSUc5j3te5zlryqL+681IRFDeU4/Pt7vgYDn7KXfiPnltRJ DhGGza3xB3EOT2dKUqsVcWhnpNW2oU9NYXex+Rhhnd9ZUbIRKiX4qJu/wt8jn28+XGgP GcZIW3bqlxKrZWp6jWo8e1UcMUcSBqJoxBsjNMjI5hqsrC0aZQQi0BLkSqPSRO/GY1xz TjCg== X-Gm-Message-State: AOJu0YzHDTsO+4qGt8Q612U4tY84d0sGuSfZLSGd/Jdcy35dmk5OSgyu QMkVTi+v9o2yBr3TNd6EVlJxWA1M5MDYLuo6XpDF199Nn4Y= X-Received: by 2002:a17:906:cc50:b0:a27:e0ae:99a8 with SMTP id mm16-20020a170906cc5000b00a27e0ae99a8mr112579ejb.145.1704357738586; Thu, 04 Jan 2024 00:42:18 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com (net-93-150-255-34.cust.vodafonedsl.it. [93.150.255.34]) by smtp.gmail.com with ESMTPSA id wh14-20020a170906fd0e00b00a233efe6aa7sm13495704ejb.51.2024.01.04.00.42.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 00:42:18 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Alexandre Torgue , Dario Binacchi , Conor Dooley , Krzysztof Kozlowski , Maxime Coquelin , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v4 4/8] ARM: dts: stm32: add display support on stm32f769-disco Date: Thu, 4 Jan 2024 09:41:44 +0100 Message-ID: <20240104084206.721824-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240104084206.721824-1-dario.binacchi@amarulasolutions.com> References: <20240104084206.721824-1-dario.binacchi@amarulasolutions.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787148694801509922 X-GMAIL-MSGID: 1787148694801509922 The patch adds display support on the stm32f769-disco board. Signed-off-by: Dario Binacchi --- (no changes since v1) arch/arm/boot/dts/st/stm32f769-disco.dts | 72 +++++++++++++++++++++++- 1 file changed, 71 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/st/stm32f769-disco.dts b/arch/arm/boot/dts/st/stm32f769-disco.dts index 8632bd866272..d1eb5f9c78bf 100644 --- a/arch/arm/boot/dts/st/stm32f769-disco.dts +++ b/arch/arm/boot/dts/st/stm32f769-disco.dts @@ -41,7 +41,7 @@ */ /dts-v1/; -#include "stm32f746.dtsi" +#include "stm32f769.dtsi" #include "stm32f769-pinctrl.dtsi" #include #include @@ -60,6 +60,19 @@ memory@c0000000 { 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; }; @@ -85,6 +98,13 @@ button-0 { }; }; + panel_backlight: panel-backlight { + compatible = "gpio-backlight"; + gpios = <&gpioi 14 GPIO_ACTIVE_HIGH>; + default-on; + status = "okay"; + }; + usbotg_hs_phy: usb-phy { #phy-cells = <0>; compatible = "usb-nop-xceiv"; @@ -114,6 +134,46 @@ &clk_hse { 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-dsi@0 { + compatible = "orisetech,otm8009a"; + reg = <0>; /* dsi virtual channel (0..3) */ + reset-gpios = <&gpioj 15 GPIO_ACTIVE_LOW>; + power-supply = <&vcc_3v3>; + backlight = <&panel_backlight>; + status = "okay"; + + port { + dsi_panel_in: endpoint { + remote-endpoint = <&dsi_out>; + }; + }; + }; +}; + &i2c1 { pinctrl-0 = <&i2c1_pins_b>; pinctrl-names = "default"; @@ -122,6 +182,16 @@ &i2c1 { status = "okay"; }; +<dc { + status = "okay"; + + port { + ltdc_out_dsi: endpoint@0 { + remote-endpoint = <&dsi_in>; + }; + }; +}; + &rtc { status = "okay"; };