From patchwork Wed Jan 10 08:05:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13515731 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 80571C47074 for ; Wed, 10 Jan 2024 08:08:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PRtM0HdtdxgzHazkKIlfNnbQIV9GoDKfPbY93kVE3Fc=; b=YGZDB1YNZ2Bk3m HLCsxbi6hBhCi/QXddkEDUBNqrGQWjmhgtpozDSjdXAsoxcgWXxHXIRXslZIBohp70e+dSSO0IxFc eczG2/kKciFLzm584x0gI9ViCXZvg3CLaUrhGTn68tmY4sUCxAYTMiB5D8/0b86ZSY4j9XOWd5dPu xVL+SPQQyAi5S9yDuCnjNeEDDCmpt/kn11D/r15ilm7jlzlVBSf28XbahNKCianQ3f+PJXjDSmwE+ 75mRgD4yK8SEaBKLTAKuVQE2F4IIX+oI67tS5RwXj076yfddYKLeS3EF9J6qPqgdhTBXlpI2tpDkR HtXsJsR5Bz40BhBik2Qg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rNTd2-00AhJU-1R; Wed, 10 Jan 2024 08:08:00 +0000 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rNTcu-00AhFG-2S for linux-arm-kernel@lists.infradead.org; Wed, 10 Jan 2024 08:07:55 +0000 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-a271a28aeb4so398934666b.2 for ; Wed, 10 Jan 2024 00:07:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704874070; x=1705478870; darn=lists.infradead.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=d1fRhCUiDmCiK7I/va47eBJ2WzkvX6r15iIyeQ8Oi2px8oMQSJDFyO6H4UwAo1HIuh 94yLoOfzGtO+aD1tPtRnuOcQI0db51+PBstxb8MKt8IYo19X3oIJogVWlBV6Hpe04k4G bY2riaAt+aJr+NnIQ4PuwyyGXWYVxZFGscWDQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704874070; x=1705478870; 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=wPE5HvuL9GkbyDhJtvJKosrH2HUJ04Ok5h0PP/ImIKzPNPLcFnEc8zKLWn4cCU/cWY UH9wgA9yF/Oe3Gbcyq3A0TrRPr7q7i67I3c0+/pXvUCrHYJu3OF0CuU3arRGaZSLmI8M in2I3lFPAVcVELAbg41siVJWRDGZjYsw61zbh5l6cI0Z9zgBUO3JKLkMKGFpetquzqho ADBABTbI/OmA6RKALD4zWCPg0hzTCv69HMDMxD8tSYD8HL348GZ/+SVE4Y1gPejEES37 JXliln3RmiLATJrhYZpLbIDV2XanvcGWOWjxe3tlp15AkFbWlWP+P0MimwC6NkdvIb9V p1Ag== X-Gm-Message-State: AOJu0YzP2A8Oftu1vW7eV/sV4KsBDVF+u7VwyDiO4gOdFdUDVaNHPJ5y kSFuA+030XoLJd7SsG2tWUlh5yz56w2NvA== X-Google-Smtp-Source: AGHT+IEkp4To+EdEwzKocKvJGGic2K05vMnkli55fGO4k7AitlUuiLPO0FuKsGMf55/LMrpF5crO1g== X-Received: by 2002:a17:906:c155:b0:a1f:6eac:6f9e with SMTP id dp21-20020a170906c15500b00a1f6eac6f9emr507623ejc.137.1704874070451; Wed, 10 Jan 2024 00:07:50 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-87-2-38-81.retail.telecomitalia.it. [87.2.38.81]) by smtp.gmail.com with ESMTPSA id v12-20020a1709061dcc00b00a2af672cdd8sm1833341ejh.161.2024.01.10.00.07.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 00:07:50 -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 v6 4/5] ARM: dts: stm32: add display support on stm32f769-disco Date: Wed, 10 Jan 2024 09:05:50 +0100 Message-ID: <20240110080729.3238251-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240110080729.3238251-1-dario.binacchi@amarulasolutions.com> References: <20240110080729.3238251-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240110_000752_804567_8A75BF24 X-CRM114-Status: GOOD ( 13.06 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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"; };