From patchwork Mon Jan 1 16:15:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 184169 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp4042552dyb; Mon, 1 Jan 2024 08:17:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IHlyTXaQYWbOiyeN9td3xLAzr1OFp59r9Umu+mdJmlqgfV6stp3q2M1AmQz/BYMA+0m1z4i X-Received: by 2002:a50:bac5:0:b0:551:14f0:f7ae with SMTP id x63-20020a50bac5000000b0055114f0f7aemr10775141ede.25.1704125865628; Mon, 01 Jan 2024 08:17:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704125865; cv=none; d=google.com; s=arc-20160816; b=ieko2Q3l/Wti1BimdLlHRchLQg0uGZ58D+1h07IVW6jSqPnnSHU7Y/Lf3YFjnGkMw0 H1xrnDN+UMSsttFaaKZGi5oTV8yYZn6GkNeIoXQfYsbMPgZbObKd928ftDc1tFSzcccv 2UBAM1VkHY4/Lu71j/tcOCW2IvxM4WLHwmFncl709Brij3RRgvKxrGssxFyVcLwZAi/O Mz6P9xda9r/XLiwStduHo28CNo4iU4wXwQ8kgMfu+r1ZiXdjthSrGnUkGp5hL/Rsw1bk rvrX3zbZxi97B2ht+GI1izzF+khB1KAYFti5hLblAZ5tBkUCxc5TD2n1m1GCIeKZVv0K 1LcA== 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=BJT0h+WCnSDFpWy4pVf8bG08/M+N8Q0kMmdGRAETGn72hvSuyXHzmLhHBBL93606gk H+OdtcJkL/u0TkZcT5mh6ZDhusfpJlA9/1I8LiXxIKIXZ7nNG6CmaT6oPoW5TrJxCwo5 KyHm9C/94+a32d6DbL7QqcmeOc6ltSVDKKU4UGLpXk9tJ6hEUPVYs62qSY1webOrsOkU HT57kW8QxFgfQ9R1hN8+OmTLrZAWbQFPU6suIm767/tjzOz0eym5FDZUsgPOy4SjqSuc 71kHfecRkrjpQibE4ei1XJtq9GJYnPDZ/loG+L6UZvhfzhVu0f309y0NavoXKY5e3sk1 RPFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=jVCMfrh3; spf=pass (google.com: domain of linux-kernel+bounces-13898-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13898-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 s26-20020a508d1a000000b00553f9df5df6si10436030eds.213.2024.01.01.08.17.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jan 2024 08:17:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-13898-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=jVCMfrh3; spf=pass (google.com: domain of linux-kernel+bounces-13898-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-13898-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 172781F21769 for ; Mon, 1 Jan 2024 16:17:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 19FD3D2E3; Mon, 1 Jan 2024 16:16:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="jVCMfrh3" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.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 F39818F79 for ; Mon, 1 Jan 2024 16:16:13 +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-ej1-f47.google.com with SMTP id a640c23a62f3a-a23350cd51cso960482466b.2 for ; Mon, 01 Jan 2024 08:16:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704125772; x=1704730572; 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=jVCMfrh34goWeK/cOd/BDdOZIE7ocAAoDpv4Wmyv5bRhZYUVbXFGI/HqFAzya3ceKA N2hHqeAfThG4IM5W+GdMLLSKq/T6iJfgSJzJ/4FW5z9W5fAohNCcu4QYAlNSHSBHZWqL xQULRD/3jSAP5nD+BQOSUOxJnxYu2pGcIbnR4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704125772; x=1704730572; 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=RYWKYZ4+hk+4VCQYu1lcKhJdtJZaNn02ShtiNlMeBjk5qgRF3zpRMrO0hfjd4AsnoQ 0hI8ySMBtkDayCgL9ScycG3jFy1gZlmgSl17enmu3IkzvBSWZ6PfqIOcbR2+mQDLsj2A FEBhhhYiR1uj++BkzirhsrTuMMpZuWIWqEpjHPV832RMFqvIF+fSidU4g1O7gLJXrfe5 tnX3HPT5ws8HuGJMwkXP2+9ZVmSmBBdTgOZOn51RKW+Qs0z1/MIyVMPh4ZbrqLeNGG0i gkHOo1lNnR44Yg/i1BR0iLXNiOB0Sa2xffWeZMO+D2SlZWHvND6JBCW5nf8lcMVUqebo CNaw== X-Gm-Message-State: AOJu0YyErfp+lAKPF6fx73QRo6at7b92Ottrhd5JZiCOQXIBkH815u5E Ij4yHNpEKg+8+RXEA7FLxs5aTh13Y8wS9OZ6Zjn8BA8HAIY= X-Received: by 2002:a17:906:4090:b0:a27:fdc1:593f with SMTP id u16-20020a170906409000b00a27fdc1593fmr790479ejj.67.1704125772195; Mon, 01 Jan 2024 08:16:12 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-82-48-44-179.retail.telecomitalia.it. [82.48.44.179]) by smtp.gmail.com with ESMTPSA id ep16-20020a1709069b5000b00a27d5e9b3ebsm1897857ejc.105.2024.01.01.08.16.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jan 2024 08:16:11 -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 v2 4/8] ARM: dts: stm32: add display support on stm32f769-disco Date: Mon, 1 Jan 2024 17:15:47 +0100 Message-ID: <20240101161601.2232247-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240101161601.2232247-1-dario.binacchi@amarulasolutions.com> References: <20240101161601.2232247-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: 1786905483846506845 X-GMAIL-MSGID: 1786905483846506845 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"; };