From patchwork Fri Dec 29 13:51:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13506529 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 2C8DCC46CD3 for ; Fri, 29 Dec 2023 13:52:57 +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=kN9AErW6ZVHH9clvzxHFMkvty1SREQ7WjobCmkEfjrk=; b=p5ImqiIUedNkvx R+j432DiH9TvoaiK/FHbrKresPIsGqbQLKOxOcr1DCa3FBNj3KZobCRPmxvGZsiyv/pPSX0NWzMjt y+h2HdwmzkTDKwzHPj4PvmUVLZFuShPJNyT0yvhqmL/96N25SFy1ugbNRkpMKMnLw0IPXKGwG/EGR L34OSU+GV1Yf+MJpfKvSbP0W7hhdiLLCDqfTczH/2a+S41ltZEskeSRe7AgxVn2TDM/DVIH0P5pBK 7YMmyJtevT99bM3pYFh+O/J8yMnNo07NquKugVlUYNJW0T0OR+3fxYAKCdKQ4+gP1JK4G4OW1vC/E kjjQXExj4baD3YWBcXpg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rJDHm-000zS2-2p; Fri, 29 Dec 2023 13:52:26 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rJDHi-000zQW-0i for linux-arm-kernel@lists.infradead.org; Fri, 29 Dec 2023 13:52:23 +0000 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-5553f251e3cso2103067a12.2 for ; Fri, 29 Dec 2023 05:52:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1703857940; x=1704462740; 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=dANREROD+IgEOoBD9HuNETn+rArj87c15/xEZ3DaVGI=; b=HLguegmhx0fxDhNe92iAGNSefryPZORiE0jDh54F/noSLZZa/hbFn1i71rjneAoTj8 xCt0LkziuW6sGnzoupEqQfrpcMLRYhi3Vqux33Kpp28eo6Sz1DFLPFJGTDIuIUdf4nh0 G3pNCmuXFB6Kq1K3DhMJC1IOjb/WaFisxf0Mo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703857940; x=1704462740; 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=dANREROD+IgEOoBD9HuNETn+rArj87c15/xEZ3DaVGI=; b=GZXGiR8g/VNgGBv3I7Lygv668lpYPvzeWwKJ6SqIzxwccB6naUVSl1eV+SPSQVHAOt iZSXBvBcO9Ar70X/SYK6C5DEd8GFfdH7trsK56KeBEdx5lNUHsihoukgKfYwJ2rXP/wq qA57mxaGAnLmBPFZ1lnNYpVqodEGI/Kh4+4coY8zWuK/tV5LG2BeuWOXhiS+m49PohPv vE/GpVkSxNXDmZKu2EuDL6FzwQFoHt1e6xoV8YPJpLQTMrclzJ7MGiMUUGYKxpES3nUy X+VHpVqPvB5JTM3svYX9NDLFgsO90YnX4+hsdnBC6dJK/+hIBNt5+gf06J8D3zy/WNWu eAWA== X-Gm-Message-State: AOJu0YwgUTXNKjzDGpTjRoNNQwGUrl93dwaqQWYbVMxzkgkGhYhXctuV DZybhm4SGJfSUSqblf2zEQ5bFMPNbw2cDA== X-Google-Smtp-Source: AGHT+IHyVOWOBfNDlo4mol1vW1dAUbg8qeIE2UPa9VsA43TGgnuDO8rSloKG/nmcBd59a5nddE3kxA== X-Received: by 2002:a50:b404:0:b0:554:9bef:a1e9 with SMTP id b4-20020a50b404000000b005549befa1e9mr5407202edh.22.1703857940388; Fri, 29 Dec 2023 05:52:20 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-49-57-70.retail.telecomitalia.it. [79.49.57.70]) by smtp.gmail.com with ESMTPSA id i16-20020aa7c710000000b00553b243b1a8sm11019160edq.92.2023.12.29.05.52.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 05:52:20 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Alexandre Torgue , Dario Binacchi , 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 1/8] dt-bindings: mfd: stm32f7: Add binding definition for DSI Date: Fri, 29 Dec 2023 14:51:16 +0100 Message-ID: <20231229135154.675946-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231229135154.675946-1-dario.binacchi@amarulasolutions.com> References: <20231229135154.675946-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-20231229_055222_255843_8AB7F657 X-CRM114-Status: UNSURE ( 9.07 ) 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 --- 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 Fri Dec 29 13:51:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13506531 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 E0C44C46CD3 for ; Fri, 29 Dec 2023 13:53:05 +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=hZyoi89rqxbhjOKGJd9NCmOssuI6kL3U06x+5Rl6htc=; b=1xuqYWVrkPhNDI 5u02PJznahgV/moKC1HG2VDfhLyKubnJyhkPLdnIh4yuy/baXBq4IMF3E4wWz/xy6LJ5ULFwRSzRJ FgrBtRcE1+YzILt0O8bdNT/GeZ3elF976CdyKcbJ5kTM6ta6B2ywrM2UG+VFN3UPEWz1ykuAKaZ18 G1eqljlQMKkwfAeopA01HyHc1hbtizyw8OBOekwX2jaqDGdqMGQcYI68YvkQh93tMz6MINtcRfu3y VoRF/owb38qBDXq6VqcoIEExWmW1/9WGxrqtn98uvBz4zHZpjA0eaJak2BsjDr0kShOUD3d/f/qgR K/z8gLFS6cV2jQNJSS8w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rJDI0-000zZO-2t; Fri, 29 Dec 2023 13:52:40 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rJDHj-000zQk-2e for linux-arm-kernel@lists.infradead.org; Fri, 29 Dec 2023 13:52:25 +0000 Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-555e52fefdeso62072a12.3 for ; Fri, 29 Dec 2023 05:52:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1703857941; x=1704462741; 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=Fm4SMpBWyIuCnxOoIcwbmnLaagYfOE7lx8vpRJXcsrs=; b=fBXbSZxsabnbAvldczcCia1DAmmclouRNeHv6iBBSD0/c/a2dmlbgijHu7Cza0ZJlO E1awYrL/lkY8eADZpo0n9EMWhe5YpkBBZWY9mjT14bvORuVDF3HvJIqUJ2lGVribrKbX 3xpMLQUzJptwBvhYQBeZ20udynkll9Q87jLRs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703857941; x=1704462741; 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=Fm4SMpBWyIuCnxOoIcwbmnLaagYfOE7lx8vpRJXcsrs=; b=tYjOA60PHI54PED6JhXL0jc6YftcDH9AMEFnC73Hqrt2nUjGFLSkCCepygwV4SfSro eI9kw5HkXt7JOmphw9Jx95DBhSCpQJwI7IQzDkC2/u3/qm2bGE6UOegxD07H/tDNv4Mn JwQclhd5r4en9w/WxdLIfMCBoCabw03yWJlXA8XDnUz8lULzuBRjQwNRQITmjDeMZn10 +XbfzOlYXSASPlDvt6xJUU9jwiJR26ZWmX9OtEN+92k+mMQ4r9IBQ8bBSf3IhmryQe9k C+9BiIaCwO81LWMBk3m2tM4/HhUgKayV4yu6mEZyqcCDGTPEyufit+X5oeo/lo2OIMQA 1qEg== X-Gm-Message-State: AOJu0YyrKSpNsWGls4BT3rRTWlgMsTeo2ddqG28KQAbo2flqzbaZ2fOn x6quGNhenM80vfqudQYRo5RLiUnJvru2uA== X-Google-Smtp-Source: AGHT+IH8tQ2PxRJuCxjDJpcQd+9IgU90NXBL+k8pDgz9gTMDYVTdTri9Wy4GyD3WctlqM/sYzFDvxw== X-Received: by 2002:a50:951e:0:b0:553:6a5b:c61f with SMTP id u30-20020a50951e000000b005536a5bc61fmr7239728eda.0.1703857941534; Fri, 29 Dec 2023 05:52:21 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-49-57-70.retail.telecomitalia.it. [79.49.57.70]) by smtp.gmail.com with ESMTPSA id i16-20020aa7c710000000b00553b243b1a8sm11019160edq.92.2023.12.29.05.52.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 05:52:21 -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 2/8] ARM: dts: stm32: add DSI support on stm32f769 Date: Fri, 29 Dec 2023 14:51:17 +0100 Message-ID: <20231229135154.675946-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231229135154.675946-1-dario.binacchi@amarulasolutions.com> References: <20231229135154.675946-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-20231229_055223_858883_6438FCCC X-CRM114-Status: GOOD ( 14.34 ) 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 --- 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 Fri Dec 29 13:51:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13506534 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 09186C46CD4 for ; Fri, 29 Dec 2023 13:53:12 +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=+UbLXDcxto63K+pVKs0LkSj/lDs+bfFHRm5OQyE6uuY=; b=s9b4s4hBPun50D BAOoRRvjMgK6RXtWE/BNmsIABzYAET+dNf5Rly3dGmS3pmymO+vdeGKwdHnp2TOS71n37WbsFTeiJ xxhyOC7XKBTj01heEMZPPv+7Ex+iqiQvYYjtf1ZjwkSCGlKY/9Hrb+4/rFoqtWTbl9gGRb7jfRw95 2qP34uO9O5PtA+ijS66hW1VIs33f/4YKPSa+7TVG03jlakJuzWaLYXOI+6MMLY36pFKj4hgtcyKUA xOanWa1W3n5qycVMQrp+/1u0QsqDuWVWJpREPIehXuZPL8iIMlcQPVzxcQYkul409wDwfCqxMWxNz EeV0N7VrDzdglvacg1eQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rJDI1-000zZt-1r; Fri, 29 Dec 2023 13:52:41 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rJDHk-000zQy-1J for linux-arm-kernel@lists.infradead.org; Fri, 29 Dec 2023 13:52:25 +0000 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-5559bb6b29dso1415331a12.2 for ; Fri, 29 Dec 2023 05:52:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1703857942; x=1704462742; 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=e3yxjZOhlVwQSVQZtiupnCrzdwjrfUb/s2Kg9VCWikE=; b=JY4y7D7yF6wkVyR8r1Yy8iFQJO+EqKfRf/EKqT4IeaSxZEwJn8Brznx7UlIWTwUEYh 3bbXfjfYo89crXTzK8bsMlZTzGF6ch534Ql3RduKUxtd4CqJRqzReXliqqz0dh1ulG+M bQQri0JopL5Ps3/TMUJ1nwHR8uXljWD670rmE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703857942; x=1704462742; 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=e3yxjZOhlVwQSVQZtiupnCrzdwjrfUb/s2Kg9VCWikE=; b=UInPXHkT8UIgb0/lwfCkepRWBHN1aP1NCz4GXBKEThUkVffzJHoOAsv0vwvzUju2KA MKli2dXDj4fOx+JoVjw6jsv/bnyeo1u68D05DSHyCWPCpRJOoqWQKtIV58bd4ex8waN0 EPovVUkvABFiJJeVh81vB93VdPitUOEMLaZUeD2dcCt3u4am6DAAn2dyDAwEu2zW31G6 c8mCHqWVwIZ1myc7geHgd8JkYEwc0cbnSFtGarHqcw8XrstbTWx8r0uXnG1p890Cp122 vTvlrydd4gFKZDssZKlQH32+MDiUlqLVM50wU/kD0EXzjNzXZK05Cx1BiXILyV1YVxmP jJBg== X-Gm-Message-State: AOJu0YxF/MEuxF25xbfvEjWEji5UhaCCa4CZBnYuBGhcg6WbFqJ9Lfe2 +EdEc7vQS7371XScD0pX99djzioaCAnzaQxt5OBlS6irXGI= X-Google-Smtp-Source: AGHT+IHRgqRnjhOkX+w9MAhyQ0DVwta1ng+YsGn8+8NteDB8vVnsNWx0NfIMbbWqBpifCAsLemAC0A== X-Received: by 2002:a50:8e13:0:b0:54c:4837:9a99 with SMTP id 19-20020a508e13000000b0054c48379a99mr8369965edw.64.1703857942639; Fri, 29 Dec 2023 05:52:22 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-49-57-70.retail.telecomitalia.it. [79.49.57.70]) by smtp.gmail.com with ESMTPSA id i16-20020aa7c710000000b00553b243b1a8sm11019160edq.92.2023.12.29.05.52.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 05:52:22 -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 3/8] ARM: dts: stm32: rename mmc_vcard to vcc-3v3 on stm32f769-disco Date: Fri, 29 Dec 2023 14:51:18 +0100 Message-ID: <20231229135154.675946-4-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231229135154.675946-1-dario.binacchi@amarulasolutions.com> References: <20231229135154.675946-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-20231229_055224_439959_5AF8A0DF X-CRM114-Status: GOOD ( 14.09 ) 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 --- 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 Fri Dec 29 13:51:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13506533 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 C65E1C4706F for ; Fri, 29 Dec 2023 13:53:10 +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=CjMseaOipmMoB7O82dTbvFDCAAmFiw10a1MgGPCS2t0=; b=1Otqrrk+I+c/cc s2WSaHbhBIj4oIaoC4l5T4wAuYQSeiaKbxiXvlLbfkhdLpJysACxHQi47YdDuWKLjhSE7Jxg34VGD Ld3T1ZYUUeVPsCZWgGNeV5ax1EnLh6RYhmHXQB/iXD1OxpbH9c0iD7+H5bm31WPnDwe5+dmqTt7Lz 8BeXKHQLqB/lJB+NDRIgVqR2GyU+BK7tN8aNwot1NzrffhpFKKQcVkN9ME4RkgFHuor88CSeavS2A hT5a9j1etqNMspicGCd2/jgCwfcxGaiGq1NFNkzUld0ml8VT4NyqdCcXSpoxLHweggY7mzVGgja+u dLqphPzju4xB9Vr8FaIw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rJDI2-000zaJ-0h; Fri, 29 Dec 2023 13:52:42 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rJDHo-000zRZ-0m for linux-arm-kernel@lists.infradead.org; Fri, 29 Dec 2023 13:52:29 +0000 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-50e67f70f34so5808989e87.0 for ; Fri, 29 Dec 2023 05:52:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1703857944; x=1704462744; 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=Gga6jIGQV6Uokv7TaAQoZWe7KKBaoCfGdy4Mk3xFQ7I=; b=dugTJVQD14j8U0/kf8rGuVflWt/+1t/wN9mhTFuplcydNQctbfBziqGoR3SrbEenA2 kSjMOGpkPZUO8tyPjCa/V/GptO+97L2PBbNXxQLs46VUtCVRJnXl5bdQmDhiF3MPgoI5 9MArwWAT5JjqrvXxbH3oLmCVoJh71ES6m7EQs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703857944; x=1704462744; 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=Gga6jIGQV6Uokv7TaAQoZWe7KKBaoCfGdy4Mk3xFQ7I=; b=P5R/zBt2xZqwKwVZj6M75gJ/iRYOuoBhZLCsi8zu9xy8WbrX1A2mgG8Gr/m+PbzRW9 HBOSHmf18uaYhMg1cFbH/snzBNpAlQKnlhVJr7muPLkJGXc98s06lTZ1vj0tS940mXTM lCml0H3GMz8FWQ/x7Ax7/XphEWiDYDd6975Rd9zIwqtAUvUjpIC7cc11/bBtBQ2dXZ/+ 5FNCC5TReNF2ZpB/EiD6D/SXiHcGqheYB9e0ntM5wgeXim38ZL+xCdsbjMewgOmAHthL PL3twnlY8hWf3Ze90pzVy/t6IHduAsktULbYSZZnzb1CQh1y3S2+jPlJUTAsywSEKXu1 MyBw== X-Gm-Message-State: AOJu0YyEk9+wpX3r/k0r3Qn49xG4KpeP+TG+gXHKcqtgfeVIVsR/7Dlu ss9cZI+u27PqCMIQz7xy4aZ4AEZnXzAbVg== X-Google-Smtp-Source: AGHT+IHNAEoW0q0mjbjPSGB46KYuu5mIa90Db/GV3FTHiOapSVcv/6o3ENSX54ym79nKR8N+QMFyiA== X-Received: by 2002:ac2:5e6a:0:b0:50e:935a:b682 with SMTP id a10-20020ac25e6a000000b0050e935ab682mr221610lfr.45.1703857943769; Fri, 29 Dec 2023 05:52:23 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-49-57-70.retail.telecomitalia.it. [79.49.57.70]) by smtp.gmail.com with ESMTPSA id i16-20020aa7c710000000b00553b243b1a8sm11019160edq.92.2023.12.29.05.52.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 05:52:23 -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 4/8] ARM: dts: stm32: add display support on stm32f769-disco Date: Fri, 29 Dec 2023 14:51:19 +0100 Message-ID: <20231229135154.675946-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231229135154.675946-1-dario.binacchi@amarulasolutions.com> References: <20231229135154.675946-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-20231229_055228_275464_EF56463D X-CRM114-Status: GOOD ( 12.25 ) 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 --- 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 Fri Dec 29 13:51:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13506532 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 62064C46CD3 for ; Fri, 29 Dec 2023 13:53:10 +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=5FPFhnGmc6ydG1rnSAuF8zHFiZu+I4JCIFzeZ6YDPtQ=; b=3s4uspEbKwpW7A YygP9tH9X7DbvVWmQ1rhjRB/ahBNbaIIl4gSGdunidviv6gwotmGXgZjm5iaHRcVpTtBG0tiCFGeB oWCO07fJX9+o4wZ7HOpeSbjpMwhpcIibyThGeeqdWAQoZ1YepajtwfbXbFmhs11JuWXrXUhYnB5R0 3KPnnJZsT5SjuWAAPBKrK1vhbWMeDa8J/O0zG433PfqmEoxYe7VmPuZzfFs/BY9JMovF26spE8AyJ dRJh2pcwM9jTwMR0dMed1nGaJCCt6Ae37P46fAc7vbGQ9BtuxtQwCSaLGajbJSQIjf9O+06TUlCK3 TJsYYcSzWH06hu2ojhEQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rJDI2-000zar-2n; Fri, 29 Dec 2023 13:52:42 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rJDHo-000zS4-0u for linux-arm-kernel@lists.infradead.org; Fri, 29 Dec 2023 13:52:29 +0000 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5555f9061b9so2746448a12.0 for ; Fri, 29 Dec 2023 05:52:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1703857946; x=1704462746; 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=G2Gi1EmHukIt0jQJzaSt07+yXVEQJCsMbb8bSZVal5c=; b=Ds6uicD23Ve8SQJrCkc4X6BnNHBxBvbDgcDGFt0H3JnIrc7yQ41lhx8U+61Z0lUYUb k4tPNOJ/4Cxh6BePLFvxgrSloPBnUkvZ6CUzjHj+wl8CFWXlvbScfltrCpJGVMlWF+wR BlSHxHhmHjX+BdPa65Sanfg0qkdifRDL+nQlI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703857946; x=1704462746; 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=G2Gi1EmHukIt0jQJzaSt07+yXVEQJCsMbb8bSZVal5c=; b=rvZEOyoVXwxCG+X3pc1pOdrnAe8npix4pAetL1AKP9OLcYv3r1Vvd60ZxMn+wjGsCs YyQh716RYzOBL7kQG0Ykh2wn8EXmnXHmykGwMvKchlZLD3em03kfXS5rTqIE5wLNd2RI tvMwr/tZ1qimJw0kZTJapM9iKXASrCvs8zuOk1eVZyPUhdSAFi8gKyL6rZFVC4JGYzO/ V4LpiHe34N06cVYPYH+mMa5eIFxeD2hPIU4gisvPwLf5t7mftoMfEzNgjjoGR/67ZuAd xAl9fq6xQSFIwNH74kQZGFfgz66WOAQr+jJb9vlVbf39sPHB117tY1gE+7kosyxMSFTo CntA== X-Gm-Message-State: AOJu0Yz7fSdZ8yqSNigKiIjKH0pEdWggV2rmvPpaHhHkrRXJyETEFHNY cDQZl8MMPw2GQhRU4cmBzyhS/mzfTnO2FA== X-Google-Smtp-Source: AGHT+IEctE0vxDNjGsPYtDGoNP/VOIJMMYfD87twpZ/CDwjvjob6YX2X37wqTrnYlHKSKBRUuJ7xkA== X-Received: by 2002:a50:9313:0:b0:54b:25e8:c00b with SMTP id m19-20020a509313000000b0054b25e8c00bmr7540199eda.6.1703857946523; Fri, 29 Dec 2023 05:52:26 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-49-57-70.retail.telecomitalia.it. [79.49.57.70]) by smtp.gmail.com with ESMTPSA id i16-20020aa7c710000000b00553b243b1a8sm11019160edq.92.2023.12.29.05.52.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Dec 2023 05:52:26 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Alexandre Torgue , Dario Binacchi , Andre Przywara , Conor Dooley , Krzysztof Kozlowski , =?utf-8?q?Leonard_?= =?utf-8?q?G=C3=B6hrs?= , Linus Walleij , Maxime Coquelin , Olivier Moysan , Rob Herring , Sean Nyekjaer , Tony Lindgren , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH 6/8] ARM: dts: add stm32f769-disco-mb1225-revb03-mb1166-reva09 Date: Fri, 29 Dec 2023 14:51:21 +0100 Message-ID: <20231229135154.675946-7-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231229135154.675946-1-dario.binacchi@amarulasolutions.com> References: <20231229135154.675946-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-20231229_055228_321449_C89A4346 X-CRM114-Status: GOOD ( 15.96 ) 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 --- arch/arm/boot/dts/st/Makefile | 1 + .../stm32f769-disco-mb1225-revb03-mb1166-reva09.dts | 13 +++++++++++++ 2 files changed, 14 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..ff7ff32371d0 --- /dev/null +++ b/arch/arm/boot/dts/st/stm32f769-disco-mb1225-revb03-mb1166-reva09.dts @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2023 Dario Binacchi + */ + +#include "stm32f769-disco.dts" + +&panel0 { + compatible = "frida,frd400b25025", "novatek,nt35510"; + vddi-supply = <&vcc_3v3>; + vdd-supply = <&vcc_3v3>; + /delete-property/power-supply; +};