From patchwork Thu Jan 4 07:23:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13510836 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 AAE1EC4706F for ; Thu, 4 Jan 2024 07:24:48 +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=1YCeGcSuhk1BiA1Ca7V+J9jjVJF6lwiRWeaaHnm+bDU=; b=FtinjRZDqdcOHz yBvwKZlUVteJAy4P/t5GXy2nermuttNSpGFzV7118RxMFGDLhOcEsNnHpB50rsGxX/AXx6w8Qwo9J zkeepOj2Pgi3mkKjxLGTL5SNlls+bHhSZ2WANdN5HCb3YVfxySt09kkEpD/mM00+W4BQ0H3AtXhjB YY557+6NR02IZ2DaCkFl90bZPbd2ImHA5gThyrPkO1ZVMs5WuP1eAHN+V6zpBWU1ZNtWmPqAlYnU3 OVFxF8KxTGx0pf3ezzE0BodJsklUyoF2vtTIyhhx5jsfvBoGGUmXWZjQFsQAIUK61pgsV0Fro/f0Z p9+7RIttnmLFkmHO5Nhg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rLI5V-00D42z-2h; Thu, 04 Jan 2024 07:24:21 +0000 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rLI5R-00D401-1n for linux-arm-kernel@lists.infradead.org; Thu, 04 Jan 2024 07:24:18 +0000 Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2ccbc328744so2474601fa.3 for ; Wed, 03 Jan 2024 23:24:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704353054; x=1704957854; 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=oZHp7o9P6sSCcRzfgnf9GmPoPPKRvORDv/jTzo46w2U=; b=Ru8I8hDYoBTD7MvQE00bop7/DIRdkYZ+hBxkcQ8xDLNSEjhX5HqGeiBbEHwkzrvQPP sCMUfUJP8XdlfiGxC1Le5AfnKcgKKeZYbW7hygyLexBBqxPR8GcNTfHdaOL9yLpnsPx/ dCMYEwAL9uFrOOFcph5e6aOFMJfsA4PmP8Yt8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704353054; x=1704957854; 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=tjsPvSorrABM7ashvtnUEwiCsLWhLqhNgW4iET/zaCAOOZg6E2MlAw1ByduMIOAHJ6 sqRVeExho3q2UeLKkL27uOczFc5H/pcTUlRMdICUslOlmxx+o+A68JjCDjymGX0H8BKe +CMKFiYZPie1KxD/YGMYsf62D5dkJYqIG9ws4nMsn5+8lLIEY0GIz9JulTyqnxW8a8wE R8H6jScq5QTqBCvHz+yNbzkiHMKdnwbwrbGst8dV6pK5ZDejFEx8TMN3Uea5ioklCO6C yXyrP6Jc8SVEhXtV8RhKUmrjyBEwa+7TzgpRw1+io//vUNnUzmckACT/bpqQLX/eD8o3 LAEw== X-Gm-Message-State: AOJu0Yx1nB6qyfRG7x1lXmWxe4JU/ibjs+VTLVlVBqZ8bNVFGMODLroK NwHkMEMDe1n2/vqAcbiEyI0SE/OS7TjfGA== X-Google-Smtp-Source: AGHT+IG4i/97hJ8aDZ8aV7oljAPTtFLXwe5GU9eipdE578f3Arlwv9CTDaie3sHsTnqpOAseTOaxdg== X-Received: by 2002:a05:6512:3c81:b0:50e:aa96:73ed with SMTP id h1-20020a0565123c8100b0050eaa9673edmr145525lfv.136.1704353054338; Wed, 03 Jan 2024 23:24:14 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.. (net-93-150-255-34.cust.vodafonedsl.it. [93.150.255.34]) by smtp.gmail.com with ESMTPSA id d3-20020a056402000300b00553772c2968sm18530735edu.82.2024.01.03.23.24.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 23:24:13 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Alexandre Torgue , Dario Binacchi , Conor Dooley , Conor Dooley , Krzysztof Kozlowski , Lee Jones , Maxime Coquelin , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v3 1/8] dt-bindings: mfd: stm32f7: Add binding definition for DSI Date: Thu, 4 Jan 2024 08:23:37 +0100 Message-ID: <20240104072407.41290-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240104072407.41290-1-dario.binacchi@amarulasolutions.com> References: <20240104072407.41290-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-20240103_232417_595533_0D08E35F X-CRM114-Status: UNSURE ( 9.71 ) X-CRM114-Notice: Please train this message. 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 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/mfd/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 #define STM32F7_APB2_RESET(bit) (STM32F7_RCC_APB2_##bit + (0x24 * 8)) #define STM32F7_APB2_CLOCK(bit) (STM32F7_RCC_APB2_##bit + 0xA0) From patchwork Thu Jan 4 07:23:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13510838 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 B4776C4706F for ; Thu, 4 Jan 2024 07:24:51 +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=Jf9ABe0Ofnq4rDzyi6IgLgi2jcQ4lHX0QGrj9yMQmE8=; b=TzyoTC4hB/tEyO kqY0/jdggPoAsOSPtNAzkuFPeibkVn/juO2ZQwJlhCnKTqWDumBA6487Y/M7DyqIiGFMqFNxOLAOq o96XKAHE/Ng3B/A47crIdhOoG4dlXoy2loABl2Rs3x7JKt9iHworxkuMi16GDye1wg3TKAJLyi4Iz iM2zilqIx6EIF9lpj5Zankmngec/73YOITP48k65N2SZhQG7Jz09PxqCYX8ZtGpDB2fkygfLEeDU0 YShvtgljjB5cIA1P6BdUrBaaWufUf8FW5BZyYZ0RyqKAeIELAei+PzkNdK7jQqBFS0bXQrTUeQmDL Qg4ye2OFP0hsch4aDBZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rLI5X-00D43X-1N; Thu, 04 Jan 2024 07:24:23 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rLI5S-00D40J-0o for linux-arm-kernel@lists.infradead.org; Thu, 04 Jan 2024 07:24:19 +0000 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-556cd81163fso258894a12.1 for ; Wed, 03 Jan 2024 23:24:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704353055; x=1704957855; 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=mmQnQzOW0HVCglZmRdERbSkiK/7LfpA/GFNr/QR6hMQ=; b=IPn2d8noBbVyHMb3nUx+s4JCB1kfOGcP3VIMNIInUADxEiEkVRaWCkCnJnm0ii88Yx PiQhXA+zDDdE61tBFtDJ9GwH13/WtTMm5wSRF29ecSrEoU57MkU2XgZopf3kq4EX/U8b V9dKmb4n9+c8Hxc2bPKAZ/Wb4NnxwGX7emOF4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704353055; x=1704957855; 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=baidEzHggwRxCNZN1lcHTvw60id8iRzB2nbrb1VXJbhLNjXf45hIq0uyGBhcNZjfRJ kXaczrK+stcg7N+l6wxeEuKw8D42FyYORPb/R81Vb45jsQzHEP3iJBOqGvV8X1dWRhOB 8Mhu4h2nWRx0v6kBRB32WdyQpM2hl9Hq8M42dmBqBaK9GpKycDrIqnfX/6nk169gG9id HLZCeGlNC4Iah08nn3dLtdE4g4IlyvUgYEYGuc82XIA2289AFyOAvwC+x2UO42WDWxuz K4U8cTidvD59n/u+oL6886FLQp2H1HKMpavW9+oDvs8mY81jUXh+xxC0nCIh3cP9rYp1 p8Tw== X-Gm-Message-State: AOJu0Yyasqa486b85m7+g/fY2FLFklJ0tNMag5pM6C8a36Fa3DfYVtVK AuG5uf3u2yWlDvABPetcxVlcy70pMymw+A== X-Google-Smtp-Source: AGHT+IGXvFWA8mDJu1Q7c0DYedSHw+rzfURNkb0c8LR8zcADT4bTICSmcFYro73weF3aE9KSua+6vw== X-Received: by 2002:a50:cd91:0:b0:54c:4837:7d26 with SMTP id p17-20020a50cd91000000b0054c48377d26mr72929edi.101.1704353055677; Wed, 03 Jan 2024 23:24:15 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.. (net-93-150-255-34.cust.vodafonedsl.it. [93.150.255.34]) by smtp.gmail.com with ESMTPSA id d3-20020a056402000300b00553772c2968sm18530735edu.82.2024.01.03.23.24.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 23:24:15 -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 v3 2/8] ARM: dts: stm32: add DSI support on stm32f769 Date: Thu, 4 Jan 2024 08:23:38 +0100 Message-ID: <20240104072407.41290-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240104072407.41290-1-dario.binacchi@amarulasolutions.com> References: <20240104072407.41290-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-20240103_232418_286279_B06824B6 X-CRM114-Status: GOOD ( 14.67 ) 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 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 4 07:23: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: 13510837 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 17A93C47073 for ; Thu, 4 Jan 2024 07:24:52 +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=6UqV+nSgSQvqVWHSp2Ma5e0An0B18TwHVuQwnkXoqJw=; b=Co+yrL4F+MSQmT GRA2etRQg+IwO5fUs04PbntGru8Bnn2Mvo6eMzbt0yxBHf6wSSjgSaZ7SqP9avfNbTWuKcrN3RPeq c2Hs393dEhpw+S4XJawwSP7Ts9yOHOVv2MjE77aM0ygbW14BkIiUsg/Tj58uAPHHwCeRIGTmFcCmt gbsI6dKAqfuQCYIHwskISDOZi2GQcqTvjeLyOcTb50yVN0kZMJ0/eIAX4RqEcBtweYPVG/eI944UW UEonzbPFlKZhRcX/cZk5LQJO5oPIEW8Lwq+3yfsc50U0OyJBKsc5rmphJf8qZfdZNY2i+00gW8rLR yCviVQgPvdubF0h2vrOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rLI5X-00D43y-3B; Thu, 04 Jan 2024 07:24:23 +0000 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rLI5T-00D40h-1g for linux-arm-kernel@lists.infradead.org; Thu, 04 Jan 2024 07:24:21 +0000 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-556eadd5904so225615a12.2 for ; Wed, 03 Jan 2024 23:24:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704353057; x=1704957857; 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=/mPDNXnb7QOonc0RYCjpM23Kv+HuP4dW7ug+KwP2qeg=; b=hP1MGzzcb7hpEhxrZbezCP24EZ9guDsSzW+AvIzcAUrvksCWj+UDjXgYjrUdeON22o qv+zR5UHQ9LJPtesZIYett4Ptwcy46h9Q/CmYjpThElT5qrcyr9249X1kzfRiq2fFMsp 66SOrEd7/xzKLYpTWvh71vi/T4EPGaMwUvKg8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704353057; x=1704957857; 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=oMC5RuCuldP+Yy7G7vViAZAgukrGsdrX6QDvTjhd6d3sz2R8zYb2Nki29jc2Y5JTUT zSym8vLkYDeT6OV88md1JxeTqnFDWsKqVkGU7vVv0DpP8EA7hDAIyUpNUNMSvomPWfJY k3qJNWIAV6eHv1PEr6PgcsGp0IPNc1xqD6a74dczXTLQg7Bx0R8jqZ90xwLxb0D6w7+X boQ0V1CGnZtaP0f1vCcMBEMSDZKJ9BBDm30Y47A+gb7yAIpIsoiFySNKRyifZBdq+/8/ d8YmIVAv5/IKC8XAY/AbEswFQtCe02XPWz6AhTBGSvY++Ez+zdwoG+w0pzOwpcoOoDPD 49Sg== X-Gm-Message-State: AOJu0YyMm3tq8TLGaX1ew5zsKspTppcMOGPJulj6Bx8vNiyUPJc53D7n 4jyQ6wIYLvxo1yXfr0RZCvcyJyPThHzht/Fmbr2pzMji6bw= X-Google-Smtp-Source: AGHT+IGbhhZ5MqRf1nGZNrp4OpJ+DbAWZ+3Z4dyfPxAV2i1YTbF7RzAqNCf2zXHbQ+3z2GAYZ9ZhPA== X-Received: by 2002:aa7:d504:0:b0:553:861a:4963 with SMTP id y4-20020aa7d504000000b00553861a4963mr59063edq.65.1704353057013; Wed, 03 Jan 2024 23:24:17 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.. (net-93-150-255-34.cust.vodafonedsl.it. [93.150.255.34]) by smtp.gmail.com with ESMTPSA id d3-20020a056402000300b00553772c2968sm18530735edu.82.2024.01.03.23.24.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 23:24:16 -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 v3 3/8] ARM: dts: stm32: rename mmc_vcard to vcc-3v3 on stm32f769-disco Date: Thu, 4 Jan 2024 08:23:39 +0100 Message-ID: <20240104072407.41290-4-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240104072407.41290-1-dario.binacchi@amarulasolutions.com> References: <20240104072407.41290-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-20240103_232419_555566_3E1B0081 X-CRM114-Status: GOOD ( 14.28 ) 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 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/st/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 = "main_clk"; }; - mmc_vcard: mmc_vcard { + vcc_3v3: vcc_3v3 { compatible = "regulator-fixed"; - regulator-name = "mmc_vcard"; + regulator-name = "vcc_3v3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; }; @@ -128,7 +128,7 @@ &rtc { &sdio2 { status = "okay"; - vmmc-supply = <&mmc_vcard>; + vmmc-supply = <&vcc_3v3>; cd-gpios = <&gpioi 15 GPIO_ACTIVE_LOW>; broken-cd; pinctrl-names = "default", "opendrain", "sleep"; From patchwork Thu Jan 4 07:23:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13510839 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 EFEF2C47074 for ; Thu, 4 Jan 2024 07:24:53 +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=c3g0SNY1wWLU8M Tw8klvrz72rfWiZ4ULtPlVO7lYzeuKnvLHt+qLfOhNOn/Cka8KpbN10mK7/lnKE3lYzfRMM1AWou/ 2MXCG2EDRo+mN9PWyvghFdm7nA1zjLoSsO6A82L+V9Envqxi/Xv6sMGijPO/RiPGynbbDpdd3x9Cz toSJ842xm1U3LomdxQ/P8bPjcMrGihRkw77Hv0tibnM1U4cWis4/lhOWvnMl0teRXPn6qC53q8bA4 njiiepZqJmPwoyM8tg01YLmbgO9DUlvDPFKC2uBbOxs/vurbMiF7xtu3o1HXBcbcUXyNpWDFBEvTY FcIsafBMg9TxJhzv3z8A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rLI5Y-00D455-2F; Thu, 04 Jan 2024 07:24:24 +0000 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rLI5V-00D41K-06 for linux-arm-kernel@lists.infradead.org; Thu, 04 Jan 2024 07:24:22 +0000 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-55559e26ccfso254600a12.3 for ; Wed, 03 Jan 2024 23:24:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704353058; x=1704957858; 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=D6sb9+O+OxgOf2suxbe17eTS/6wMc2P19iUSUWezOYL2t13r4N0eSkIIdq56/hDsmh GOcC89Pnghzhxk3NKoVomEGoS6tdgsHGJ8FuTqwcKYEh4IfOx+j/WEAv0UfJzRIBP60k eKOU4CIGxveDx+pF2ogjPKhkhEyP+5tXqJkpA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704353058; x=1704957858; 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=PJaV8dhFH8D/gOaQOU15L2t0WuAp+92I+cLXCM2ebGUdomTl8c+J7olwq8JuNCMvXC haDQIVn5ktt0XtGKZlqY4eJ0zqAmI0KtCK4ar8G4vDlZbaVcWxv/+bU7a9t9wB50Guso rxhLw6OJSYBgaGE4lpTy1JPiugehPsPIZ0Tf9DnqFej0Shh5YK0LS0LRyRLOMRrgfZov ZHaTDn3r4l2TWx9ldL/h2eTKRFltH4LKUc6nC6pEKm/+4g5LD5oG1Pv8JdKepM3ne9Mu 7w0Kg0YA4WSo10BA94KEMpGFusP8af0Wo6v94o4Ho0Qc5nTPsr6pXQR/45969zPZdbtq 7bug== X-Gm-Message-State: AOJu0Yzeu1/cPTfxVQcas//mxiE7taGq57MQWR97G2NMpWdwrRrI77iz SWE7D5AMtNRn80ltzRRZJj0r1gP0UMzV+A== X-Google-Smtp-Source: AGHT+IEi1tjyudB+AlxFI3mOIsNaGoyN02iNwVs9Z58wHE1jX4dbX/BxE2D06J04jM41TUZ8iMVV6w== X-Received: by 2002:a50:aa8b:0:b0:551:41c6:695 with SMTP id q11-20020a50aa8b000000b0055141c60695mr70777edc.13.1704353058515; Wed, 03 Jan 2024 23:24:18 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.. (net-93-150-255-34.cust.vodafonedsl.it. [93.150.255.34]) by smtp.gmail.com with ESMTPSA id d3-20020a056402000300b00553772c2968sm18530735edu.82.2024.01.03.23.24.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 23:24:18 -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 v3 4/8] ARM: dts: stm32: add display support on stm32f769-disco Date: Thu, 4 Jan 2024 08:23:40 +0100 Message-ID: <20240104072407.41290-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240104072407.41290-1-dario.binacchi@amarulasolutions.com> References: <20240104072407.41290-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-20240103_232421_071779_DF4DD712 X-CRM114-Status: GOOD ( 12.55 ) 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"; }; From patchwork Thu Jan 4 07:23:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13510840 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 CEEE8C47073 for ; Thu, 4 Jan 2024 07:24:55 +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=02FNQCVPyW/IlaNgqAu/FtlgRgWu+6Lw8IzQ5JyYgYM=; b=DC0gNXzpIpytd3 zKbIwqlNISg6+BGUSAEKv9SKg8nXYa62AnJezs0IxhWln0OaR5KhRRbOcUp7/2INXCeqrzRcMIHBB sio5k1MUWi05nOdZBc7aFF2ZARrUseI/6tqmnh+61h6CeLshZdRLL/IKOPA5Bt4whHeWOvHq2H51O H2HOOPHDM/KdWkv61P2sNQTZgx8799RwiARE4g55y8A/0rwqseUJ1KuwmQElyiCY5UWyvVYmYnVD+ H3NshkelRxr6/rk0Wn3q2WjfX5LFppjm364PdxWnnBpCWrkMyzfijhLH3ZytQVE1pFjl+nWtxy5ez J5e08JwL5xAdPRn0el/g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rLI5c-00D47H-09; Thu, 04 Jan 2024 07:24:28 +0000 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rLI5Y-00D435-1Y for linux-arm-kernel@lists.infradead.org; Thu, 04 Jan 2024 07:24:25 +0000 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-50e7f58c5fbso246482e87.1 for ; Wed, 03 Jan 2024 23:24:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704353061; x=1704957861; 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=tEGmlMiozwdCujUlwuswF2ibPRmO4ymakUkp4ma1zKM=; b=K3ylQn4Jkel356j4yWXpJOR2I5nRShLGUU28+bJMhmLX9zpXpzfegM06m9piJOzxx0 WTMb2UuSFiAapBM1+LzBqELlD+Qk4IOslnk4xNs7vis0jXpWk3ihRIbTTn3Sz2D9qWBD PsOg7tlm7ZultOe/TnF5QjvC4Fy4NGSZXhHoc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704353061; x=1704957861; 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=tEGmlMiozwdCujUlwuswF2ibPRmO4ymakUkp4ma1zKM=; b=A9xHTvDzRiXN2p7nIVrxbLeCVVroLfVmBoo6EFG+jr8C6jGT9aP7YE57l8P0MVo9gp raTXu7KOD01fKfvRsOrvQfg94EHbU6DN/IUYfL8l9emuCWHKdZH3JmVZH5u7K8xGHzTE VwdZ2kztcesc/KPoPh91UgG57+5KMd7qfe/PjrJJqqiYuvSZ7mge7hBoGyR33abPb/L5 2EpkyIUd7EanNSKzL0dPmYfEXGSCeqZdbshSXLYDQ3Kkktk2SIa3H/EE7CcN5Z/CqQrq BA5oYzIxILCkgITfmlie/Rxuh7BDC7XCXickU7XSvsZKN4N807+jiW2mZZvp4XkhnhOJ TiAA== X-Gm-Message-State: AOJu0Yy/egKGZ+s7Gf/EXi0hTxpdEJL3fJCVKDagUF43OEvnPTqPPZEK JXWfxW1WadEczBwTK2P4/wyRyA/YpcmQ5A== X-Google-Smtp-Source: AGHT+IHw4kddbHAnr5IWzfXghTWfA1MumXEMWOqnoBQ0oz77fbQBP1rZNEUM9SeYcBK8H4ieaThBGw== X-Received: by 2002:a2e:a555:0:b0:2cc:dabc:47dd with SMTP id e21-20020a2ea555000000b002ccdabc47ddmr147911ljn.5.1704353061798; Wed, 03 Jan 2024 23:24:21 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.. (net-93-150-255-34.cust.vodafonedsl.it. [93.150.255.34]) by smtp.gmail.com with ESMTPSA id d3-20020a056402000300b00553772c2968sm18530735edu.82.2024.01.03.23.24.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 23:24:21 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Alexandre Torgue , Dario Binacchi , Andre Przywara , Conor Dooley , Enric Balletbo i Serra , Geert Uytterhoeven , Krzysztof Kozlowski , =?utf-8?q?Leonard_?= =?utf-8?q?G=C3=B6hrs?= , Maxime Coquelin , Patrice Chotard , Rob Herring , Sean Nyekjaer , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v3 6/8] ARM: dts: add stm32f769-disco-mb1225-revb03-mb1166-reva09 Date: Thu, 4 Jan 2024 08:23:42 +0100 Message-ID: <20240104072407.41290-7-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240104072407.41290-1-dario.binacchi@amarulasolutions.com> References: <20240104072407.41290-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-20240103_232424_528697_1BBF7EA2 X-CRM114-Status: GOOD ( 16.57 ) 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 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 --- (no changes since v2) Changes in v2: - Change the status of panel_backlight node to "disabled" - Delete backlight property from panel0 node. 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-mb1166-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) += \ 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-reva09.dts b/arch/arm/boot/dts/st/stm32f769-disco-mb1225-revb03-mb1166-reva09.dts 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 = "disabled"; +}; + +&panel0 { + compatible = "frida,frd400b25025", "novatek,nt35510"; + vddi-supply = <&vcc_3v3>; + vdd-supply = <&vcc_3v3>; + /delete-property/backlight; + /delete-property/power-supply; +};