From nobody Wed Dec 24 19:50:22 2025 Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com [209.85.208.173]) (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 C005E2C6A4 for ; Sat, 27 Jan 2024 15:29:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706369345; cv=none; b=cbnUIbcjCqna29yLipi19cLIUWdBP7Vj6MGSlL1OlFj1rmV4C4SA0+ySMquI9k0B5nhA7kNroKP9IRzP8cZsEPW/7Q0YLjPc2JLwtCbfuzSyjNA0g7tKTHkgDikWPw/KpPJ9k0skw+CWlw/Szk6fSNN+wIYKrab904gpE9Bt43c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706369345; c=relaxed/simple; bh=GHo5Uu0Of2iBtObC3ZLX7wSpejqKaAA4OKsTcwbixqQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RVVUkvxNc/xHsFge9GJvJQLO06brlUxyI9Xq8XaE5PdbYveC6QXAST0GY9rXJZpyvA1gFTCc0/WX0RSRcW6avrzwUQjiZYFEe6pKXiZNP2ERQpCsqQH8PGnbPTnvADHZJkfV3Y5NBnpv85/1o7yvLl/Li/JBxIa9X06MZdyEPZQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com; spf=pass smtp.mailfrom=amarulasolutions.com; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b=kT3PWrM4; arc=none smtp.client-ip=209.85.208.173 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="kT3PWrM4" Received: by mail-lj1-f173.google.com with SMTP id 38308e7fff4ca-2d03fde0bd9so591341fa.0 for ; Sat, 27 Jan 2024 07:29:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1706369341; x=1706974141; 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=rQ9PYTfLUcfjyRJqgcRWuTdkFl4CeqFScaddJa4Lyi0=; b=kT3PWrM4aw5y98DV3dubCPWShsP1BOb7ro/FGA7CD5KwF/TEZpfIvENWGd7sTzwfwD kO3kJ/s3xjRFkclm+O5rLOlaLXytdbOQ8gZ2t2iplJg5Y6UU6sGTainoswB3QOWmG4/+ vQFUgsC5PHfFUI6i3dYMRESpF4lUzObVCMnlg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706369341; x=1706974141; 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=rQ9PYTfLUcfjyRJqgcRWuTdkFl4CeqFScaddJa4Lyi0=; b=oiLKyCBZUyP8k88I/Rgv9elR66PeTD9vc2q5gwPiAXgohr9b8JdR8Kj2nCxHzaY35g 17VLscNDpPHoXRG+S2L93JBzB56xziDarzo9i3ljf1Nor3gJ94kN0tUhoXcGmbrCYNbp JQXwN4dTQLaZKO6qbxtZZFRyKc1KlhvDkIVbT8cz8zju++hguRDV27HSNXtC1GiwGtHn xT45swIENgdhMfbQFXIEwohMrqQt6nsHciphl3OJKvLgVxVt4R+0BMFWBVqSDFSxHBxk lmz1dCfUQ8t2w1/rGkQnbGW0Dnte31LOBDZfHtvJteViZm2UuCxAOVLJzxrhuKJDZIG1 B3JA== X-Gm-Message-State: AOJu0YypZ7mLO/TUovZtcHsbBowupH9pqMDKm32a8iICJCfxL3J2E2Qz nUL4+jO5I0TKHpEMT8M/Nr3vJkyygf+BcNCu463eUuhk155qkWNjAOEtxPh37VW5twxz743tH2+ 9 X-Google-Smtp-Source: AGHT+IFbqC5mI6d85g/WTmEICTQPFRXc2Q3MZ26rVAnIhbQylAq8FLk78zQxkd8AP9QrJIUphT0u1g== X-Received: by 2002:a2e:965a:0:b0:2cd:143c:9283 with SMTP id z26-20020a2e965a000000b002cd143c9283mr1436284ljh.27.1706369341158; Sat, 27 Jan 2024 07:29:01 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-21-103-141.retail.telecomitalia.it. [79.21.103.141]) by smtp.gmail.com with ESMTPSA id l5-20020a056402344500b0055974a2a2d4sm1745220edc.39.2024.01.27.07.29.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Jan 2024 07:29:00 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Raphael Gallais-Pou , Lee Jones , 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 v10 4/5] ARM: dts: stm32: add display support on stm32f769-disco Date: Sat, 27 Jan 2024 16:28:48 +0100 Message-ID: <20240127152853.65937-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240127152853.65937-1-dario.binacchi@amarulasolutions.com> References: <20240127152853.65937-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: quoted-printable Content-Type: text/plain; charset="utf-8" The patch adds display support on the stm32f769-disco board. Signed-off-by: Dario Binacchi --- Changes in v10: - Drop backlight. From a closer analysis of the schematics en.MB1225-F769I-B01_Schematic.pdf and en.mb1166-default-a09-schematic.pdf, it is noticed that the GPIO I14 is connected to an unmounted resistor (n/a), making the backlight functionality via GPIO unusable. Changes in v9: - Rename panel-dsi@0 to panel@0 to fix yaml warnings Changes in v8: - Remove unit name from 'ltdc/port/endpoint@0' to fix the compiling warning: ../arch/arm/boot/dts/st/stm32f769-disco.dts:189.28-191.5: Warning (unit_address_vs_reg): /soc/display-controller@40016800/port/endpoint@0: = node has a unit name, but no reg or ranges property arch/arm/boot/dts/st/stm32f769-disco.dts | 64 +++++++++++++++++++++++- 1 file changed, 63 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/st/stm32f769-disco.dts b/arch/arm/boot/dts/s= t/stm32f769-disco.dts index 660f85984164..52c5baf58ab9 100644 --- a/arch/arm/boot/dts/st/stm32f769-disco.dts +++ b/arch/arm/boot/dts/st/stm32f769-disco.dts @@ -41,7 +41,7 @@ */ =20 /dts-v1/; -#include "stm32f746.dtsi" +#include "stm32f769.dtsi" #include "stm32f769-pinctrl.dtsi" #include #include @@ -60,6 +60,19 @@ memory@c0000000 { reg =3D <0xC0000000 0x1000000>; }; =20 + reserved-memory { + #address-cells =3D <1>; + #size-cells =3D <1>; + ranges; + + linux,dma { + compatible =3D "shared-dma-pool"; + linux,dma-default; + no-map; + size =3D <0x100000>; + }; + }; + aliases { serial0 =3D &usart1; }; @@ -114,6 +127,45 @@ &clk_hse { clock-frequency =3D <25000000>; }; =20 +&dsi { + #address-cells =3D <1>; + #size-cells =3D <0>; + status =3D "okay"; + + ports { + #address-cells =3D <1>; + #size-cells =3D <0>; + + port@0 { + reg =3D <0>; + dsi_in: endpoint { + remote-endpoint =3D <<dc_out_dsi>; + }; + }; + + port@1 { + reg =3D <1>; + dsi_out: endpoint { + remote-endpoint =3D <&dsi_panel_in>; + }; + }; + }; + + panel0: panel@0 { + compatible =3D "orisetech,otm8009a"; + reg =3D <0>; /* dsi virtual channel (0..3) */ + reset-gpios =3D <&gpioj 15 GPIO_ACTIVE_LOW>; + power-supply =3D <&vcc_3v3>; + status =3D "okay"; + + port { + dsi_panel_in: endpoint { + remote-endpoint =3D <&dsi_out>; + }; + }; + }; +}; + &i2c1 { pinctrl-0 =3D <&i2c1_pins_b>; pinctrl-names =3D "default"; @@ -122,6 +174,16 @@ &i2c1 { status =3D "okay"; }; =20 +<dc { + status =3D "okay"; + + port { + ltdc_out_dsi: endpoint { + remote-endpoint =3D <&dsi_in>; + }; + }; +}; + &rtc { status =3D "okay"; }; --=20 2.43.0