Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp4552770rdb; Fri, 29 Dec 2023 05:53:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IEr2pzwosUzlkpdW6/8vienCQxlZn0xd9xiP4Y1Rqsvx7tJlSFpddMBFILXU5AkcKJiTgLD X-Received: by 2002:a05:622a:100d:b0:427:e93a:b30 with SMTP id d13-20020a05622a100d00b00427e93a0b30mr6051169qte.14.1703858007234; Fri, 29 Dec 2023 05:53:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703858007; cv=none; d=google.com; s=arc-20160816; b=Ztug5oKvUvhjuJr1UWLHeKLENCZI4JF8zKeYfedArJF2kTjRi0iD62tLe9N5DYzlUW r6x7eIYxll+tiEfOqpYAkzDmLlWx6cGfezb8HTa+2e1UrLesedIRzafnoaU5rnoZDQub wxYXDZicJpu0Rf8MKvc2/jzFQFGyBa3CA0GXMBwtcVGpKdnsijNEyU4PDpOJbGcmygcw 4+CMNmhR03KdkTcGwSyrrj6HoEY4bRH9UA0cahdKuxN+ezcgWVAY1tI8XkL0DPzSK6Zi gQFGlFwpaQ2IT40uI6ES80AmA5Uzb6mRv25Lk6Bzc4kTcrOsVs6ullhc6dPK8PgXIqsV hmBQ== 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=Gga6jIGQV6Uokv7TaAQoZWe7KKBaoCfGdy4Mk3xFQ7I=; fh=vtNV/F+F7Ia7aRobr1lDLcPdFj/lrCkZfthyTDWv03U=; b=iyHympasARfJCWjMRMQIMQAEAwtihjlj+V65leC6OFj5UtbtTbTrXYiaM4OTquovvV zo3eD6EQF0RirhUttnQjkdhCm/rBCAZXVqR8DekTwRe70nuls0rxdlExnMa3QHAkyOYo 68sZXjDezqwd2Cmf1u1olJrfoxXzZ5e5dqJuuuWw6/W/7o3tMji+Qzi4RmnB4WEc2xJS 8P472S1/gfcgrGMZ1UIGk7wncFJ3eZnLHU02WgFaolDPHD1Z1Wv/h++KiTYGFsswpncx O4SSWLAJnElTfQgwa0M9Wr2wc6F9zL8OC5tLXdcOw0nDOR8QwHPQVogx0seghPYA67VM GXJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=cleI8mmO; spf=pass (google.com: domain of linux-kernel+bounces-13109-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13109-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f5-20020a05622a104500b0042383c851a2si19109992qte.282.2023.12.29.05.53.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 05:53:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13109-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=cleI8mmO; spf=pass (google.com: domain of linux-kernel+bounces-13109-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13109-linux.lists.archive=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EABD11C222C8 for ; Fri, 29 Dec 2023 13:53:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8727C12B75; Fri, 29 Dec 2023 13:52:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="cleI8mmO" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (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 329D9125A7 for ; Fri, 29 Dec 2023 13:52:25 +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-lf1-f51.google.com with SMTP id 2adb3069b0e04-50e78f1f41fso3980057e87.2 for ; Fri, 29 Dec 2023 05:52:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1703857944; x=1704462744; 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=Gga6jIGQV6Uokv7TaAQoZWe7KKBaoCfGdy4Mk3xFQ7I=; b=cleI8mmO9wfr40KowC+LY6/gFV5ua71ij4/gh9NQTtRO+2cPap6wbqTNqZMBo7ayDx qNPd0maGyJ4fg7D7Gcdbk1QTk+WkhJXHBexCXzvJvO8k4EZViMJlf0jkLl++JVpm0d+O Cl/Fp8Dhb9mAttNWUsU1vM9LvvOp/Rkp0/3mo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703857944; x=1704462744; 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=Gga6jIGQV6Uokv7TaAQoZWe7KKBaoCfGdy4Mk3xFQ7I=; b=utcSbNRhpAuGmzdS3KsQAxy0/WOjirYjYx1vzmo8wYQxmdfC7+aAoU/vKzzD/+Rn1u te+YYD1kEpJx2gN2Q3wyXKGotmopbdprzeeN1B9HrbBeNKUVTGG/OqvEnpp4RpAkLyGW QKBoZ0Hsb+Et8xVpliFSIczb8WxQR/PT/BgKp5AGvNDZl16jxv+jd3gkS6OPVnK4x/rp tDiDVdS8hryqJEtwHPvXRsm3CvBJzrTmYdIFZ1s/TGORhuP0fwOpSK5oAwcpmxYpZA5f piZ/763Ki9bVqwg2O/qoD9Vy+T0a/ZjE8FuK1HEjx1JfQRQ3nq52OlcZErqabCbPk5Dq 4Kvw== X-Gm-Message-State: AOJu0YzeZFeQ9hUlH4Ko+7QYiCd6rU28pJwz5WwE6rB4Yw9PTUvLDNq1 yB7+2XjyemCEHJbkyuyMCazZ5DOT+T2zE9q2xxmrWgqIfoE= X-Received: by 2002:ac2:5e6a:0:b0:50e:935a:b682 with SMTP id a10-20020ac25e6a000000b0050e935ab682mr221610lfr.45.1703857943769; Fri, 29 Dec 2023 05:52:23 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-49-57-70.retail.telecomitalia.it. [79.49.57.70]) by smtp.gmail.com with ESMTPSA id i16-20020aa7c710000000b00553b243b1a8sm11019160edq.92.2023.12.29.05.52.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 05:52:23 -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 4/8] ARM: dts: stm32: add display support on stm32f769-disco Date: Fri, 29 Dec 2023 14:51:19 +0100 Message-ID: <20231229135154.675946-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231229135154.675946-1-dario.binacchi@amarulasolutions.com> References: <20231229135154.675946-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 Content-Transfer-Encoding: 8bit The patch adds display support on the stm32f769-disco board. Signed-off-by: Dario Binacchi --- 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"; }; -- 2.43.0