From patchwork Thu Jan 11 11:31:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 187316 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp1383290dyi; Thu, 11 Jan 2024 03:38:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IGHEBXRxHjH39l7qK/qAU2jhZHnuCLTlbvQQOtjvwMj4jVxVBn5egtVvLgmEhVSWyVteKfl X-Received: by 2002:a17:902:d4c2:b0:1d5:36a9:10dd with SMTP id o2-20020a170902d4c200b001d536a910ddmr1026542plg.12.1704973097939; Thu, 11 Jan 2024 03:38:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704973097; cv=none; d=google.com; s=arc-20160816; b=ZuJnQtAtOIzu1yexP4uawTqMQCtZ4Og7FS7HqGrfC1Kbk/ASotZZOXp2IN6+Y9ufRm fjqv8YbXxOYXfgz/2Y78fZ8Tz23TbFBQNXqPo2+OaiuMxOChejE9F6CLMWex5qteYFsS xALFPDcdPJ/xYOLn9f0lS1bop7hUQlvqV5AQQNNfebKHNJKD6m3d7+cKI7bYyf86T5KD PA+exLH+b3VgZ0erNVSjV9zzyc40ayDTjUMIg/m5Z6qvdcP62mjo/AYeA8M9p04Gl2J3 rk/4O9mS893I3VUlZiha5tJYZ0NSnnwNwyLpxwYDeML5hmSj4TXNlw+IkwI2ewyBIkud Mavg== 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=7UbZitqD+WdiOiHngmmxDwF3Y5tB1Br/ZP8zW2sRN9I=; b=Lw/SuosjlTOXBKDUCUNoyZBeMgcvlP10vKXW/Ay2IsxlpSBAObDnmT6haXcZfP+jSe 1B7iy0HuYdkipwissclpdeyh7AZjYob6oARcjj7TzEBouGGsCfnBqOXHLqE0xnuZn20r V7DmrGODnDsVl4D95wuHjdx7a91AVm8NqNOFOTxOoQYrcRI/og1XjkvrM6SlUKRRj6sl u8N9JkZgzDlyiAVgm7Jj4lHP6ubKyqB39DVpnc5aq4huudhRnR97StARwvmGRvfUdwJq lzpAlsNbWLretgLYSgf/dLXtG2N5cNSIg0Swor2vA5Fc5uiIQDgoeuMAq0gIJ7vxspWN 6pHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=iLwTfnGk; spf=pass (google.com: domain of linux-kernel+bounces-23493-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23493-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i13-20020a170902c94d00b001d3e6b2ba3dsi958996pla.312.2024.01.11.03.38.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 03:38:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-23493-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=iLwTfnGk; spf=pass (google.com: domain of linux-kernel+bounces-23493-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-23493-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E8C7DB26EEF for ; Thu, 11 Jan 2024 11:33:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E3FF15E9D; Thu, 11 Jan 2024 11:32:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="iLwTfnGk" Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (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 27A7F156F6 for ; Thu, 11 Jan 2024 11:31:55 +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-f47.google.com with SMTP id 4fb4d7f45d1cf-558ad44adceso270879a12.3 for ; Thu, 11 Jan 2024 03:31:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704972714; x=1705577514; 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=iLwTfnGkBvAl9KnVlRdICwtGpitcE0DraW3PxhdX1fEIe0z6sqpo80G2kuatUbOw6p YmFGBqFOWs/1d2y1gbMJOodgcyyARLlYbHDwtC8fCZWeZ9kACog52u3oRaBQ5Ch6Gjol MPQKj5OhkD1cEL0BtfEiPoI/MGADIqNjqkfkA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704972714; x=1705577514; 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=OmuJwgxp6IeGsNmRo54ygftHT0E51aBgCl2ahz1gGV2Vybz/npCasoPKfGyeOS/7v3 ZLoXhkce9jsGr53ANPreSjTiArT/WIqk0qGJ5V5t70N5WQimA1T/t82BXWVWEo1nmnrV hjHDts36mQIuFzk8SiUSnqa580eS5ztcCpMMXib49/mVOQrqYIiik4JjKVhnOxKK8LVu OkNjdOi/vcKBvHZSHoC3yFGMLfXz830WKY6FHt9pV8urEH4GdiLWKCApj4RR3dAcvRF8 YO+s/uKlkjAnCvhGA8g1hpfw7KSfK4UxTRPu+IYOZs9XSCif3yuYYR+L27OGYpaUf28E y2oQ== X-Gm-Message-State: AOJu0Yx22ocWNeJ6dEQkJ5HbxVmSDMsuJ+JLYt6SvFG9g09TDxPn1pHh cksZwXFoKVlrzNN31ZBS5/wDrvpPkbgcsfXVfywgI/V+Ru4= X-Received: by 2002:a17:906:ef08:b0:a28:ac5d:ffe with SMTP id f8-20020a170906ef0800b00a28ac5d0ffemr571895ejs.122.1704972714313; Thu, 11 Jan 2024 03:31:54 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it ([95.236.91.90]) by smtp.gmail.com with ESMTPSA id n3-20020a170906688300b00a26aa734349sm461565ejr.39.2024.01.11.03.31.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 03:31:53 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Alexandre Torgue , linux-amarula@amarulasolutions.com, Lee Jones , Raphael Gallais-Pou , 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 v7 4/5] ARM: dts: stm32: add display support on stm32f769-disco Date: Thu, 11 Jan 2024 12:31:41 +0100 Message-ID: <20240111113146.16011-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240111113146.16011-1-dario.binacchi@amarulasolutions.com> References: <20240111113146.16011-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: 1787793870846828682 X-GMAIL-MSGID: 1787793870846828682 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"; };