From nobody Sat Dec 27 00:08:57 2025 Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.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 A723314ABD for ; Thu, 11 Jan 2024 10:53:21 +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="MzHH+rmD" Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-50ea8fbf261so5889413e87.2 for ; Thu, 11 Jan 2024 02:53:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704970399; x=1705575199; 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=oZHp7o9P6sSCcRzfgnf9GmPoPPKRvORDv/jTzo46w2U=; b=MzHH+rmDBp4lEC/4Z+kUgPJFdcsuwRf2WYfcDMJnmLZbeZOZ+IzwqkQ015P6/ywcgc aLyhNM7xKBVV2aOJXdjsZI8/KN2zL4YniNDaGwxNNLkhDNUu2INcWArXf+wKXp+UPwCh O4S+hBO0Y4oiScwSCFH3dH9NUMy/5J9LU12us= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704970399; x=1705575199; 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=oZHp7o9P6sSCcRzfgnf9GmPoPPKRvORDv/jTzo46w2U=; b=POmZSo/kV1luk2fvp2z4cSacycqlaxtdihLDH6c9Q66xtGU++qkzCRRwmoxFYZdfvK 6eQDR9DGrn49HcrWIelyaOC9OTHffj1KbF8kFyQnrwFLzteoZr5m5UYOeD6EIq9ohAbL JH8sLQISHBGPrGj2v8Q/bIEgviRqh2/SQiQg50YotDc6YcEHY5M1nqJvUUAQqe0Qzuff Pn25GdP0y1tYeEnnsGY7kBF/kawUy2W2bTCNubYnwVZsstsOEmuLEYjBAO1tlgKygC1A MNhMHWzHNZeqLlb1QkUtGkhy9bZRaW5I3Xp85QjXUheo/s5Lau/QfkpQGjBCd+2kSSgb wGxg== X-Gm-Message-State: AOJu0YxHAfxiTNieroI5nuEG/E7j355zPOabHkDs+ThPf/McYJYlw7Uz ZvcdQOlbKv41v7ifGOObm7LXflwhfE7FDtYz7ONCx4p73mg= X-Google-Smtp-Source: AGHT+IFWSjXByH6ZKx/v1vTqMtJ7fp1k2eHQ6huyT0Q3lwRrsx9pvciok9UGoesseA9JTkKiNriD0w== X-Received: by 2002:a05:6512:47a:b0:50b:c57e:1418 with SMTP id x26-20020a056512047a00b0050bc57e1418mr452684lfd.16.1704970399508; Thu, 11 Jan 2024 02:53:19 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it ([95.236.91.90]) by smtp.gmail.com with ESMTPSA id eo9-20020a056402530900b00557b0f8d906sm459774edb.70.2024.01.11.02.53.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 02:53:19 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Alexandre Torgue , Lee Jones , Dario Binacchi , Conor Dooley , 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: [RESEND PATCH v6 1/5] dt-bindings: mfd: stm32f7: Add binding definition for DSI Date: Thu, 11 Jan 2024 11:53:07 +0100 Message-ID: <20240111105314.8186-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240111105314.8186-1-dario.binacchi@amarulasolutions.com> References: <20240111105314.8186-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" Add binding definition for MIPI DSI Host controller. Signed-off-by: Dario Binacchi Acked-by: Conor Dooley --- (no changes since v2) Changes in v2: - Add Acked-by tag of Conor Dooley include/dt-bindings/mfd/stm32f7-rcc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/dt-bindings/mfd/stm32f7-rcc.h b/include/dt-bindings/mf= d/stm32f7-rcc.h index 8d73a9c51e2b..a4e4f9271395 100644 --- a/include/dt-bindings/mfd/stm32f7-rcc.h +++ b/include/dt-bindings/mfd/stm32f7-rcc.h @@ -108,6 +108,7 @@ #define STM32F7_RCC_APB2_SAI1 22 #define STM32F7_RCC_APB2_SAI2 23 #define STM32F7_RCC_APB2_LTDC 26 +#define STM32F7_RCC_APB2_DSI 27 =20 #define STM32F7_APB2_RESET(bit) (STM32F7_RCC_APB2_##bit + (0x24 * 8)) #define STM32F7_APB2_CLOCK(bit) (STM32F7_RCC_APB2_##bit + 0xA0) --=20 2.43.0 From nobody Sat Dec 27 00:08:57 2025 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (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 D3CB414F89 for ; Thu, 11 Jan 2024 10:53:22 +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="L2HIqfuN" Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-556c3f0d6c5so6118074a12.2 for ; Thu, 11 Jan 2024 02:53:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704970400; x=1705575200; 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=L2HIqfuNWDEVZ1mwsmlPx1OYxsS6jJ92OUxtq4EVt7JaviA+D7RDKuunlAj23KUHz8 ajmpAe080VaBLvB9QAOBy8uQM7Tml26asp3li0RrglxP+Sv9qeRXr8PDmJqeJ0VQ9DVk Ua6l63rAGv8sDw8VoRQzFBraTHa724p11DOB8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704970400; x=1705575200; 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=RqBbetMP9gSKPE1MkG+NrMCOCRZBNEiB49zldh3CeIzbNsQtFhzbQU/EEHJJxDu4ey XumrveAZ2XQyjn9KtxzjWunEDPpuM4jqzB+p22UN1blUbMvd4s2vq02xA6+oTD3KuBA/ /RSzT2IxjvLT7Xg/8PqMy0w9vzBFRjr5JfTP2SxRKXoU0BzO6V6YpaYCAsFcfAR+Lqqm vvlU5rEgzguk2b3fRyWjNpDsWEcDTEKQGvCFNszzTicesX1YheJ5aEHkm5dUnXFb2hHS IS0MOSC/p/90GniCCHgFgiw/Xm4DcpTHb3RVyf53Pb+haJmlz+jsc0CK1wINIJ4PyQ79 ojCw== X-Gm-Message-State: AOJu0YxzQck8iEfvaOOoVPqgU+f9d46ZLYirnIOllwNDAK+E5zJiniNO h0an8tMs7yDWQ8WBdEt7tT0TMR5oBo4vu3C8WOL+aexNTw4= X-Google-Smtp-Source: AGHT+IHbxxIKk3NteWkU//Ar74s0SpE82pEJRJtg2JrYTPT5Y4V1l3Xs8p5WIrDx1N9DEZhJchqThg== X-Received: by 2002:aa7:c1c6:0:b0:558:afee:9fa5 with SMTP id d6-20020aa7c1c6000000b00558afee9fa5mr41821edp.84.1704970400837; Thu, 11 Jan 2024 02:53:20 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it ([95.236.91.90]) by smtp.gmail.com with ESMTPSA id eo9-20020a056402530900b00557b0f8d906sm459774edb.70.2024.01.11.02.53.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 02:53:20 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Alexandre Torgue , Lee Jones , 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: [RESEND PATCH v6 2/5] ARM: dts: stm32: add DSI support on stm32f769 Date: Thu, 11 Jan 2024 11:53:08 +0100 Message-ID: <20240111105314.8186-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240111105314.8186-1-dario.binacchi@amarulasolutions.com> References: <20240111105314.8186-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" 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/stm= 32f769.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 =3D "st,stm32-dsi"; + reg =3D <0x40016c00 0x800>; + interrupts =3D <98>; + clocks =3D <&rcc 1 CLK_F769_DSI>, <&clk_hse>; + clock-names =3D "pclk", "ref"; + resets =3D <&rcc STM32F7_APB2_RESET(DSI)>; + reset-names =3D "apb"; + status =3D "disabled"; + }; + }; +}; --=20 2.43.0 From nobody Sat Dec 27 00:08:57 2025 Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (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 24A081640A for ; Thu, 11 Jan 2024 10:53:23 +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="paGTC+yw" Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-557ad92cabbso4699057a12.0 for ; Thu, 11 Jan 2024 02:53:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704970402; x=1705575202; 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=/mPDNXnb7QOonc0RYCjpM23Kv+HuP4dW7ug+KwP2qeg=; b=paGTC+ywLxbI/k1otTM+/mQbSKafbtw+ZJCGQmghQff+QHAaA4lFsoYu80o/h9nItf qv7Vjl7SnT/sBFuMeTLodTbmZ9jRDMnc6Dbq1hAtxv0GW/MEtqfaNz+SXpewUJFb6YuJ Vs/rQb8RcGLdZK63NBQyhw4+WTikC6rBZh/t0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704970402; x=1705575202; 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=/mPDNXnb7QOonc0RYCjpM23Kv+HuP4dW7ug+KwP2qeg=; b=w/k2d9a/NAmlaZmPHySB00zIlPduuR+mWkGU8M1ghIPsBWLVHvwxNWbJYiozoJ0Kgc LUNs0P4xM1jjmaLeKDngwrTsyUVD2iRHuPqWsRN8Bqyx3xLtCnL3wzeHYsMD4l5/zlkC N7YWaB0rJrcJp2kyLoeC7kV7w/sA8lo0BtZoCTDIsgz78EXbogmfOehMLyzfM5JTftAn 60nYTLb3r+2sVWcqYBX1xas8iJPqB6MuqPe2v4PsamIwmzfridJqQ0mkYLgXQbG0sr36 iVXkxp0juK+V0yd96Sra7bRMhhOR1hIsXrjmBK5RMGA2pjpxR9yN2hAUa1GXdjplWUjG zCvg== X-Gm-Message-State: AOJu0YwQ2zCGHdhnlAfazGWEIKIhv6ovURp01OC/YaZz9aO7BM2cuLwj pvnc+gTx8Z6vEB54YT8PUs5FI2dgKxla3CKL3mG4mrCpISQ= X-Google-Smtp-Source: AGHT+IGIWbCv4PnMgXnRbbJHR/lEed57VjJ6cuH+5z5J9Itaar6fGZvHeEt5Bz1kJQZaj1IdPk9KLQ== X-Received: by 2002:a05:6402:22e5:b0:553:34b1:1130 with SMTP id dn5-20020a05640222e500b0055334b11130mr264317edb.58.1704970402103; Thu, 11 Jan 2024 02:53:22 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it ([95.236.91.90]) by smtp.gmail.com with ESMTPSA id eo9-20020a056402530900b00557b0f8d906sm459774edb.70.2024.01.11.02.53.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 02:53:21 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Alexandre Torgue , Lee Jones , 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: [RESEND PATCH v6 3/5] ARM: dts: stm32: rename mmc_vcard to vcc-3v3 on stm32f769-disco Date: Thu, 11 Jan 2024 11:53:09 +0100 Message-ID: <20240111105314.8186-4-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240111105314.8186-1-dario.binacchi@amarulasolutions.com> References: <20240111105314.8186-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" In the schematics of document UM2033, the power supply for the micro SD card is the same 3v3 voltage that is used to power other devices on the board. By generalizing the name of the voltage regulator, it can be referenced by other nodes in the device tree without creating misunderstandings. This patch is preparatory for future developments. Signed-off-by: Dario Binacchi --- (no changes since v1) arch/arm/boot/dts/st/stm32f769-disco.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/st/stm32f769-disco.dts b/arch/arm/boot/dts/s= t/stm32f769-disco.dts index 5d12ae25b327..8632bd866272 100644 --- a/arch/arm/boot/dts/st/stm32f769-disco.dts +++ b/arch/arm/boot/dts/st/stm32f769-disco.dts @@ -92,9 +92,9 @@ usbotg_hs_phy: usb-phy { clock-names =3D "main_clk"; }; =20 - mmc_vcard: mmc_vcard { + vcc_3v3: vcc_3v3 { compatible =3D "regulator-fixed"; - regulator-name =3D "mmc_vcard"; + regulator-name =3D "vcc_3v3"; regulator-min-microvolt =3D <3300000>; regulator-max-microvolt =3D <3300000>; }; @@ -128,7 +128,7 @@ &rtc { =20 &sdio2 { status =3D "okay"; - vmmc-supply =3D <&mmc_vcard>; + vmmc-supply =3D <&vcc_3v3>; cd-gpios =3D <&gpioi 15 GPIO_ACTIVE_LOW>; broken-cd; pinctrl-names =3D "default", "opendrain", "sleep"; --=20 2.43.0 From nobody Sat Dec 27 00:08:57 2025 Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (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 9CB4614F9C for ; Thu, 11 Jan 2024 10:53:25 +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="NXHYAjPp" Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2cd703e9014so30538151fa.1 for ; Thu, 11 Jan 2024 02:53:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704970403; x=1705575203; 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=NXHYAjPpKA3Q1ux+0SOabItYFgfO41DrkziN7/orQfIWT96Vlg1uOrY/8I5CQo+vuX hDHeQw8OGKYghiHxsuXusZsCMT7908VWxu0TiYeq3CNYIvx3WmmD/b6dWnmYbgEf+3xa q9Qk/xP+v/VsjbJ9MWEZaKG5g1UaU1Q4ZhVis= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704970403; x=1705575203; 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=eLmHHY+gEh0N9e6wIaW9BAxO6P1zpUTr0TzLrt5OuHAmzOwomXOEkkKT7RFZ1aWHCJ 4rfPqb2MPDkI89cuE9nCOuzyB3BumI8KOhvNJTMkSoJAAu44Dr73M06+3yx53SaJSFME BoqRZaArykoopoGym228w/AVrt8R8u9fqNnGk6uEz0uZvFvb6BDohocaMt1S7+vI+xtA 9JXxZGfuXbz53WaoRvvCicFyQSN7KEuFstAQU66bftkNEx46Rs6WPMmQKt6gSTeHgDWa lDz5gBi49WJUuxeoIX2W5/2blecRk7leWfua6OYAaYurZMHwQuopHIDgx6K/gR4SBSve adIQ== X-Gm-Message-State: AOJu0YxrOtWMz6g9b5ms/UUF5ikzFxyfTCJKpZKokHKl+xY8ln+wKxZk x9xZhvofUepPQ3X9hUIj3l+wCg48QvfNOc265VG1hTad6tU= X-Google-Smtp-Source: AGHT+IE1HKcG66xzhedJzYZxl313ZtU0FtvPMZKoDArJOHYOCPj+6qDMc+3XAcw/hed8iod9lUmPpQ== X-Received: by 2002:a2e:b1c7:0:b0:2cc:8545:d6f9 with SMTP id e7-20020a2eb1c7000000b002cc8545d6f9mr329576lja.15.1704970403355; Thu, 11 Jan 2024 02:53:23 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it ([95.236.91.90]) by smtp.gmail.com with ESMTPSA id eo9-20020a056402530900b00557b0f8d906sm459774edb.70.2024.01.11.02.53.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 02:53:23 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Alexandre Torgue , Lee Jones , 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: [RESEND PATCH v6 4/5] ARM: dts: stm32: add display support on stm32f769-disco Date: Thu, 11 Jan 2024 11:53:10 +0100 Message-ID: <20240111105314.8186-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240111105314.8186-1-dario.binacchi@amarulasolutions.com> References: <20240111105314.8186-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 --- (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/s= t/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 @@ */ =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; }; @@ -85,6 +98,13 @@ button-0 { }; }; =20 + panel_backlight: panel-backlight { + compatible =3D "gpio-backlight"; + gpios =3D <&gpioi 14 GPIO_ACTIVE_HIGH>; + default-on; + status =3D "okay"; + }; + usbotg_hs_phy: usb-phy { #phy-cells =3D <0>; compatible =3D "usb-nop-xceiv"; @@ -114,6 +134,46 @@ &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-dsi@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>; + backlight =3D <&panel_backlight>; + 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 +182,16 @@ &i2c1 { status =3D "okay"; }; =20 +<dc { + status =3D "okay"; + + port { + ltdc_out_dsi: endpoint@0 { + remote-endpoint =3D <&dsi_in>; + }; + }; +}; + &rtc { status =3D "okay"; }; --=20 2.43.0 From nobody Sat Dec 27 00:08:57 2025 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 D5E63168D0 for ; Thu, 11 Jan 2024 10:53:26 +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="gwjd/+nW" Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-558ad44adceso210541a12.3 for ; Thu, 11 Jan 2024 02:53:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704970405; x=1705575205; 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=07GZlbDEPiZyBFQar7cofI0kUTpkas/bOfqyP7AOZqE=; b=gwjd/+nWvfhtu2C0UXNhhmOlDQzFgpdy6rm7H9wnSXgjaCo2uO1laenOX5Gagw8Zzl /p2J4dqJqXqtnlTODTPqIrWsbi8pRigSaP0cw8wexbOQIsVOQnnTXOqiokndXx4qGCzW ATJH3KrBh8C3sppOIv56Rak8teBBXwYBQLwvk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704970405; x=1705575205; 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=07GZlbDEPiZyBFQar7cofI0kUTpkas/bOfqyP7AOZqE=; b=FBtXwCCM6IhkgiovnUtrnZt1wmN+xbDyZEH8a08PMr8P0dHVgzUaIsUxdhMyyI3MIX fhr+U1KPFunsnsxUF/aF0Q67xNVvnX/I/f9G/5SqDlwNmiD8isOFmTh1xun/wkTGMEY8 ueZr+XvpRouWgiGPINXdAr4ZI1LfTx7l11ySazHzAVqUP5kxH7ItdzO4HcuxRfJ3eAag qDezigUuQzXIB5sQp6COa/0t/1+t1KcohgC3DkQJGUsTQR2jATUz286nyBTuw9GyuV67 d+xGH84K1ksaX3SDr4MZfOEv9fQ0SEqWX9pGPLxuM4Wykd87H8sdnf2bL8Fl+DWdFbLy j6vg== X-Gm-Message-State: AOJu0YyRjHGi5PLd3Y0YjsDhZzB7CmATDGnXBlw85BCIwyEETEtOaDx5 V+vDAQ614HV9bqOCzGyPeIc9kvI+Roz1opM97iBvhXFs958= X-Google-Smtp-Source: AGHT+IErKbNHU1lSm1I5j0Y/BKOFu7GR/fneD4zc9HUeecOhzjFHvKjF72ilRx9vZI4fmzvKq+Lmhw== X-Received: by 2002:a05:6402:1d1a:b0:557:a3c:9d45 with SMTP id dg26-20020a0564021d1a00b005570a3c9d45mr488768edb.79.1704970405000; Thu, 11 Jan 2024 02:53:25 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it ([95.236.91.90]) by smtp.gmail.com with ESMTPSA id eo9-20020a056402530900b00557b0f8d906sm459774edb.70.2024.01.11.02.53.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 02:53:24 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Alexandre Torgue , Lee Jones , Dario Binacchi , Andre Przywara , Conor Dooley , Krzysztof Kozlowski , =?UTF-8?q?Leonard=20G=C3=B6hrs?= , Maxime Coquelin , Michal Simek , Rob Herring , Sean Nyekjaer , Viresh Kumar , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [RESEND PATCH v6 5/5] ARM: dts: add stm32f769-disco-mb1225-revb03-mb1166-reva09 Date: Thu, 11 Jan 2024 11:53:11 +0100 Message-ID: <20240111105314.8186-6-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240111105314.8186-1-dario.binacchi@amarulasolutions.com> References: <20240111105314.8186-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" As reported in the section 8.3 (i. e. Board revision history) of document UM2033 (i. e. Discovery kit with STM32F769NI MCU) these are the changes related to the board revisions addressed by the patch: - Board MB1225 revision B-03: - Memory MICRON MT48LC4M32B2B5-6A replaced by ISSI IS42S32400F-6BL - Board MB1166 revision A-09: - LCD FRIDA FRD397B25009-D-CTK replaced by FRIDA FRD400B25025-A-CTK The patch only adds the DTS support for the new display which belongs to to the Novatek NT35510-based panel family. Signed-off-by: Dario Binacchi --- Changes in v6: - Drop patches - [5/8] dt-bindings: nt35510: add compatible for FRIDA FRD400B25025-A-CTK - [7/8] drm/panel: nt35510: move hardwired parameters to configuration - [8/8] drm/panel: nt35510: support FRIDA FRD400B25025-A-CTK because applied by the maintainer Linus Walleij Changes in v5: - Replace GPIOD_ASIS with GPIOD_OUT_HIGH in the call to devm_gpiod_get_opti= onal(). Changes in v2: - Change the status of panel_backlight node to "disabled" - Delete backlight property from panel0 node. - Re-write the patch [8/8] "drm/panel: nt35510: support FRIDA FRD400B25025-= A-CTK" in the same style as the original driver. arch/arm/boot/dts/st/Makefile | 1 + ...2f769-disco-mb1225-revb03-mb1166-reva09.dts | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 arch/arm/boot/dts/st/stm32f769-disco-mb1225-revb03-mb11= 66-reva09.dts diff --git a/arch/arm/boot/dts/st/Makefile b/arch/arm/boot/dts/st/Makefile index 7892ad69b441..390dbd300a57 100644 --- a/arch/arm/boot/dts/st/Makefile +++ b/arch/arm/boot/dts/st/Makefile @@ -23,6 +23,7 @@ dtb-$(CONFIG_ARCH_STM32) +=3D \ stm32f469-disco.dtb \ stm32f746-disco.dtb \ stm32f769-disco.dtb \ + stm32f769-disco-mb1225-revb03-mb1166-reva09.dts \ stm32429i-eval.dtb \ stm32746g-eval.dtb \ stm32h743i-eval.dtb \ diff --git a/arch/arm/boot/dts/st/stm32f769-disco-mb1225-revb03-mb1166-reva= 09.dts b/arch/arm/boot/dts/st/stm32f769-disco-mb1225-revb03-mb1166-reva09.d= ts new file mode 100644 index 000000000000..014cac192375 --- /dev/null +++ b/arch/arm/boot/dts/st/stm32f769-disco-mb1225-revb03-mb1166-reva09.dts @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2023 Dario Binacchi + */ + +#include "stm32f769-disco.dts" + +&panel_backlight { + status =3D "disabled"; +}; + +&panel0 { + compatible =3D "frida,frd400b25025", "novatek,nt35510"; + vddi-supply =3D <&vcc_3v3>; + vdd-supply =3D <&vcc_3v3>; + /delete-property/backlight; + /delete-property/power-supply; +}; --=20 2.43.0