From patchwork Thu Jan 11 11:31:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 762002 Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 27DFA15494 for ; Thu, 11 Jan 2024 11:31:52 +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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="JVwFCSsl" Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a2814fa68eeso433130266b.1 for ; Thu, 11 Jan 2024 03:31:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704972711; x=1705577511; 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=mmQnQzOW0HVCglZmRdERbSkiK/7LfpA/GFNr/QR6hMQ=; b=JVwFCSslN21uiI7WWioV2gT2cHvhLD6YZaxB2dyqeUE99eoFwPOt1uLSSG6qXmr1lh EEMSeXEME98CgCL5Wxk4LsvoI3cc7M/xe2EB0O8DnbVw0x0bn00RRTt596J1N81qYOaM LPl12SN7+zwDxrz+RGcPZNA3Vm5sw60wUPdkc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704972711; x=1705577511; 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=mmQnQzOW0HVCglZmRdERbSkiK/7LfpA/GFNr/QR6hMQ=; b=vzDYyvYbsKKVVTyevEHwIV5UVQaIgAYQlX8gMl09I0Aa5CG66zLr+RGBkoLylpLWxq UnNYJ5UWqDz2fziyggMJJn4lsJDvGFeAhrPdXw6YGZhE3Tb/fvofLiAQ+OyikB+sr6F0 +bqUZEcDI67+xD8NtvN/6XXTiB4szDA5g+nPfHTbTz1nrSw0GNsf2AINdg4aDS9sFnYX C6I/HJ8RpuF8SdA4W/d2/LkDYnnO/R4vJo37B5QeRTFH48HJ51b/KcnE2YItk/5gV7y9 6xh0gE41GhA1a5ReWU8pPddmzn1C0zMotLldaB2kktGkh+Kp+DAW5YjAibfK26umehJh aI6w== X-Gm-Message-State: AOJu0YwDXw/iHzOjCs8KyqCdBUWEpZDKHQ7tlomLRTe67NUUcar+TtjJ iK3gSMSHSmpzCDhmlRFrQ4Rtrpr6DuVT1Q== X-Google-Smtp-Source: AGHT+IEwxxzXPLLv1VEdqxREzklSYppd5lbaTbwUT+50TBaJimhy6pmMsMZswLS5MIwZB1OhpMORJw== X-Received: by 2002:a17:906:a015:b0:a29:906e:b8fa with SMTP id p21-20020a170906a01500b00a29906eb8famr714066ejy.1.1704972711523; Thu, 11 Jan 2024 03:31:51 -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.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 03:31:51 -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 2/5] ARM: dts: stm32: add DSI support on stm32f769 Date: Thu, 11 Jan 2024 12:31:39 +0100 Message-ID: <20240111113146.16011-3-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: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add support for MIPI DSI Host controller. Since MIPI DSI is not available on stm32f746, the patch adds the "stm32f769.dtsi" file containing the dsi node inside. Signed-off-by: Dario Binacchi --- (no changes since v1) arch/arm/boot/dts/st/stm32f769.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 arch/arm/boot/dts/st/stm32f769.dtsi diff --git a/arch/arm/boot/dts/st/stm32f769.dtsi b/arch/arm/boot/dts/st/stm32f769.dtsi new file mode 100644 index 000000000000..e09184f7079c --- /dev/null +++ b/arch/arm/boot/dts/st/stm32f769.dtsi @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2023 Dario Binacchi + */ + +#include "stm32f746.dtsi" + +/ { + soc { + dsi: dsi@40016c00 { + compatible = "st,stm32-dsi"; + reg = <0x40016c00 0x800>; + interrupts = <98>; + clocks = <&rcc 1 CLK_F769_DSI>, <&clk_hse>; + clock-names = "pclk", "ref"; + resets = <&rcc STM32F7_APB2_RESET(DSI)>; + reset-names = "apb"; + status = "disabled"; + }; + }; +}; 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: 762001 Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 F0FCF156E8 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="iLwTfnGk" Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-558ad44adceso270871a12.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=WpRlB+gJp+XOpt/PSy+mBm48K9+R+a5RWfdScq9Hz2/1XYrVjMg33NAqJR317zQKNN mxgk4m8X2GCWilPZoDwSOt9zqLjsgyfyC6r/pEblYghHFPUmsMS7T6XxHxhwsBJH5mCY c6S6wNEHTeAmsr+1w2LGjYwWkOBqTyWaxReF7tizOYKrvbmS0M+GXSPzqpqrwJ2kbNt0 /kHf3wruP9LkeMTClUCJFFE+HeDmyzl5XunTVGZ2HVpwI2f7oe0KCqr1qwW4rYvccICc criCzU9jy1imL/AhHTcooqSZ5plFMdz+c268LSQE57CluNpUWZ6ei1QfrfXz/uyW26aS kVIA== X-Gm-Message-State: AOJu0YzywIJziCLwxvxAbzGCHyg9CO9tAbqZPUQkiaYt/pvIfrTpxmIp ZTbVxonPyOh4gnXaQSDZdmv8cVh9g4zjIA== X-Google-Smtp-Source: AGHT+IF0DpoYHYXEoScO/CSbatKIN7cF+5QW5LJEMFj2xsjHo2rTCgfGth1Nm0dpz2UoZZhsTt6FrQ== 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: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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"; };