From patchwork Mon Jan 1 16:15:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13508651 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 8A21FC4706F for ; Mon, 1 Jan 2024 16:16:49 +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=9ZKI1mMWUtgHPpngB7EoSpGML/bVq9i/4YSXsXK3oTE=; b=L9v138ROCFJ3gu /xbqdba06upG4CqFJo1feIyr9p7NherJhqmKWVhvsf4qjRZ9WsfX63uIJa4nvg2RoFEqPyLU1WvU2 rDuxaTNS5pioKAY2shrhaxrwLTSo4I+A0SAFM7QJkp84HAjg2Eb873iPSqS3ocGUzWYfRtIgVr3cc ascELEwUOClwdpihTf4qF1McoJSIeNREqUBd9VllQ7XLg9GRfS1xYGkkXYvN1qbW5ZwpUXUjf/CJg Px7kYEGTjAeTkVrIIky4WRw9TQ5QXGNJqeSDt8hODcjj+7GaLFtybJJa4BG11gNqdv5BzEaSi0/Jq P+iX5/aKzw11596GbnNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rKKxa-006UH1-1C; Mon, 01 Jan 2024 16:16:14 +0000 Received: from mail-ej1-x635.google.com ([2a00:1450:4864:20::635]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rKKxX-006UFS-0q for linux-arm-kernel@lists.infradead.org; Mon, 01 Jan 2024 16:16:12 +0000 Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a2768b78a9eso548713666b.0 for ; Mon, 01 Jan 2024 08:16:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704125769; x=1704730569; 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=YyS2KeYOl/WGbPcbzpxJ7ikencveX5QceRVMiCrFg1s=; b=EuQwbPuSGAzGtIi/9/2IqvpzmSDRFbQfPv254WC38CqLGVuFUKYqN3tNEHO+kPxlZe rTcTSSF32Y8j1tHU2p4EKpBm5Z+rWVATKbgf1Is1ikQboy8ucczwOPoRG+qSFHP6H+Z1 7l2RavYZs3mcfWVBZfEvVVK+5PKCrxC4ZL6UY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704125769; x=1704730569; 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=YyS2KeYOl/WGbPcbzpxJ7ikencveX5QceRVMiCrFg1s=; b=EiB0wyw5i/cUxxjug2NnSE0RiBNaTDohDsAIQ4Ntvklx1ADzrOLZVVI6tIMhMArvmj 8KL7iOYLTa6ux3p8Q+qdcCM6BuZAEWVRS/7XjleMg2hNp+8ohbP/P8j1t4q+1zXFirsr JSznV+7+dvY5eVSvpCgViAXgKpyEJphob9CY2KcrHfJ+x/pOMSTBSq9n5vtIgZIdkd1g greaTeSH08mXYj5K2GCZiF9xzshCVbR9sveanm84TNMqzdPq9JV5Nwp5keEEYh9BOjch HPEOGb6NFRIT3qj8B6IEZgEI/BJ02I75ntgLKNmVFAcw3tefXEIyhGEjkhigRgRYqJVl lSRA== X-Gm-Message-State: AOJu0YxmoI9kZoaMY6uwOfXemNPuQLUxc6njGikAM58V8S0h+4qn8Sl1 XFyf+XJBzr4KLgkJjBzPYXqBt6DempMAAA== X-Google-Smtp-Source: AGHT+IGOZyuwSgxZuo92l15nHbn+chqMjAocBeDlr3/i+QUnPeNN4cNOy6nmgJlZB2iHT6AHgnsrLg== X-Received: by 2002:a17:907:c9a1:b0:a23:3653:832a with SMTP id uj33-20020a170907c9a100b00a233653832amr12536261ejc.17.1704125769083; Mon, 01 Jan 2024 08:16:09 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-82-48-44-179.retail.telecomitalia.it. [82.48.44.179]) by smtp.gmail.com with ESMTPSA id ep16-20020a1709069b5000b00a27d5e9b3ebsm1897857ejc.105.2024.01.01.08.16.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jan 2024 08:16:08 -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 v2 1/8] dt-bindings: mfd: stm32f7: Add binding definition for DSI Date: Mon, 1 Jan 2024 17:15:44 +0100 Message-ID: <20240101161601.2232247-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240101161601.2232247-1-dario.binacchi@amarulasolutions.com> References: <20240101161601.2232247-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-20240101_081611_298274_02B80761 X-CRM114-Status: GOOD ( 10.02 ) 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 --- 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 Mon Jan 1 16:15:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13508649 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 969E9C4707C for ; Mon, 1 Jan 2024 16:16:44 +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=kzw7vFDb4jGmN4 TNo5q0mb+Zf0gS/nH9IHkgY6WALgX+picngMdrohAT6zebsUduKa/4wpdcuDIkcDsquDl6PMrtgdO 3bmJHPAFTnbN7vcp3PXv1l27utiG04+WLo0JQ0p3JCtNO1PNw1i8urgLDBCJeITSdhsYPcDVc1zr0 ITeMsFNRxeWJRnpPTQyObFFctPzvFiazyO61nQeSLdPbCcSt71YTPlM3tIj3yT0dr8q8aVYrBit8H zy6orli6Q3nnAnO5s+utiBUENAWGgalRBwdqSh0ibZTBDR4lgZ9hOvAK8H28zZGn3xrhBC+sCWvIM OYJwNRoUp2tlTjQrgUEg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rKKxa-006UH8-2w; Mon, 01 Jan 2024 16:16:14 +0000 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rKKxY-006UFh-00 for linux-arm-kernel@lists.infradead.org; Mon, 01 Jan 2024 16:16:13 +0000 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a26f73732c5so546117166b.3 for ; Mon, 01 Jan 2024 08:16:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704125770; x=1704730570; 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=kDKEq06U0G6aUpf6BeEejUX/3JEyt7FQ2JxxGI4ykd5PBemVLCnSp190h+79Xukfyo 16lXTdmdPU9C1nGsyiQ0qpYFQex4Mc7QGVb99n+eZDnubzJlXK9OtGbCY6tHPwBQSsCd mMQ+As8NmKN61yigJ8ArLJYh3TArMtT6gmxAQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704125770; x=1704730570; 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=ZA316X+jsu1o8jK5u9PJMsjj3lZ4oUpitGOcZ5tMW++TwH/7lPHMScsUlUpcCIxPFC 8YQEug0STnYlsvrwrBZ9ii24tpaeOiB9Wm225f/ind+fiY0zeQFDJXNdUPRNL2h8NQOk z0Ztmu9zxQcqiYTr1VHdxvhsjlkd7j8DwA5DXk1l5oYTHDyFqbNtEiREq4QXyfCoy2fj +29jsK+ENA9Di+n2Bd4d82aa/3DDerJ1tp1ei0VOTIGNw9WOmG2eh8KNfVQBqjEqTs3w hHydJuzfg9JfJmktBdwdUMJa0DPGn8b0Z8t7MOwqUK4O2Qu8HeGBqCYxGQDADVwHA9me sWxA== X-Gm-Message-State: AOJu0YzKdDF/5GLZVzXtmaPdlyBXRmFtyW3FQqKMARxkkUVBqCdAWClT pKwJSiqGIMakkXBOcsxL5cR7C6XkMR7bwQ== X-Google-Smtp-Source: AGHT+IFdF2Y+nTGHLUaguJWX+3aGLaOjSRJsTPkiCfXpzOtTfYoIOWEGnxwxuVAhhORfllxdkJ7K4A== X-Received: by 2002:a17:907:6e90:b0:a23:482:ee74 with SMTP id sh16-20020a1709076e9000b00a230482ee74mr9370722ejc.28.1704125770180; Mon, 01 Jan 2024 08:16:10 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-82-48-44-179.retail.telecomitalia.it. [82.48.44.179]) by smtp.gmail.com with ESMTPSA id ep16-20020a1709069b5000b00a27d5e9b3ebsm1897857ejc.105.2024.01.01.08.16.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jan 2024 08:16:09 -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 v2 2/8] ARM: dts: stm32: add DSI support on stm32f769 Date: Mon, 1 Jan 2024 17:15:45 +0100 Message-ID: <20240101161601.2232247-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240101161601.2232247-1-dario.binacchi@amarulasolutions.com> References: <20240101161601.2232247-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-20240101_081612_039780_2167A82F X-CRM114-Status: GOOD ( 15.22 ) 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 Mon Jan 1 16:15:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13508648 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 8D347C47079 for ; Mon, 1 Jan 2024 16:16:43 +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=eXMnnft1b5o/7D eRj1JJ9tL9jiDyEZAis7uKsQlub1IqWlx4/6O4LbiYANyIm/uSlc5HvkA19v1mLkkI40aVGWzbOcu n1Dz/kOS0fCsdT6tGkGQAtzIcXBnxkk4aFHKEN4pJCroyFg9b/iMQ9ufZ6BfS7k91iQuQ9sUCK1dM OVhXJdubWshVsRRc1D5WO1fEg3fIW0KMSfAdDpLmyylTpm3upwzyKGdjxnaR/LmObDu/hLUMbtumd uiRbNrVewRupcBab4RvXEgrhP7SZQgVPxCYVds6F9Mi60S5JcnBHoVIkOEx2oDdTEy72JPSGgKl/w XmQ17cYBuIVETk4zvwEg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rKKxb-006UHK-1P; Mon, 01 Jan 2024 16:16:15 +0000 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rKKxY-006UFv-2s for linux-arm-kernel@lists.infradead.org; Mon, 01 Jan 2024 16:16:14 +0000 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-40d60ad5f0bso47095425e9.0 for ; Mon, 01 Jan 2024 08:16:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704125771; x=1704730571; 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=dPypWhrOcHANxul3gxkgIouB3Vj22WK6OJ57t4rHnU3DtECMh7B3kDFR9A1P0fHhL1 p9vEuy8OrdfZ7zodHm2Cf1+VGA6ciaNVGdSXOIJa2sAP79/iezSt8JD6ZbMvXIwNy6KZ s4cUpzQIAFpLS+PYBF5JtuDFj36OMpIoxFcBI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704125771; x=1704730571; 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=BQZvoyh3sHnpWQLgscdwQ/cHbEid5fvJelCyd45+Ynh0gnD2NDkYEVv69fyHb/PTMa YvyUvuSHRzfs4oL8dirMZk2wejyX4o94718OYp2/OwV46sXCDNJUbnX5I80HS5wWdrP/ mJ7qCOm5fjMu9QLx3OIx6HVO3ocC/HmILZkCerBRnkGQJFsENqHUfr1m2eyAkrm1rChm 4DsXsbEaSg5pZSgQ8/CXmQ4PNDQwA0Hjn/ZHyE63r1mcUnmTohiaxgQkumbBze+6WkP9 akqyUnlyRiLCv5405dvlGhPceQI1mX9lcalKZf64mJSRLsVFAVokixZejJovdj1mTiRl gMCQ== X-Gm-Message-State: AOJu0Yy5mYbKTmoh2dYrWD8a7b56hpUr49RjX1kK9ik2TZiu6cws1FDq omXOCzhzKRtpJr+DaGAmJ2H/7Eov9jekog== X-Google-Smtp-Source: AGHT+IHSl15tLxHpi+RcLJUqhRUzwJaEGI0rE3xh/JUkXzKq/LKEw48Va5v6dhV2hR+u+VqwAjeyVQ== X-Received: by 2002:a05:600c:3494:b0:40d:8a2a:220b with SMTP id a20-20020a05600c349400b0040d8a2a220bmr575593wmq.171.1704125771193; Mon, 01 Jan 2024 08:16:11 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-82-48-44-179.retail.telecomitalia.it. [82.48.44.179]) by smtp.gmail.com with ESMTPSA id ep16-20020a1709069b5000b00a27d5e9b3ebsm1897857ejc.105.2024.01.01.08.16.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jan 2024 08:16:10 -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 v2 3/8] ARM: dts: stm32: rename mmc_vcard to vcc-3v3 on stm32f769-disco Date: Mon, 1 Jan 2024 17:15:46 +0100 Message-ID: <20240101161601.2232247-4-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240101161601.2232247-1-dario.binacchi@amarulasolutions.com> References: <20240101161601.2232247-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-20240101_081612_926304_7433E41D X-CRM114-Status: GOOD ( 14.74 ) 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 Mon Jan 1 16:15:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13508647 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 F3999C47073 for ; Mon, 1 Jan 2024 16:16:42 +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=VzjRbxuCZiuNmv PkbBZw31NLiqo4PGJWTK21skw07rw1V4ofANR3jMrNgbVJ0h9BW2Olq3ovJga9N9Zt5jPAgmDPHl/ CKNpZwj+qBZPOnSz976xdgNt8cqWwKC7XPcjUogucD6IXkE8SQ36nvosRFYQe/QiRZGD5U0uUulFD Ex9uTmCGxlac9f2pKf8uvdKKrk4dYVYYchxVgQ1C27T0HTtzyfYB4ObdercBAtyDLkzPaMjVKL/+2 3U6sjaJhhrsj0d2M/9ocQlFduGIRbim75VmMkhc86HWvjZ//UJG9eDNmBR4Hcz+rZ/1QDZW5vXGYN PiidIETvPv7tqW4GGXDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rKKxe-006UIJ-07; Mon, 01 Jan 2024 16:16:18 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rKKxZ-006UGI-2q for linux-arm-kernel@lists.infradead.org; Mon, 01 Jan 2024 16:16:15 +0000 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-55642663ac4so733963a12.1 for ; Mon, 01 Jan 2024 08:16:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704125772; x=1704730572; 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=c6MVjjQqzaU4BSZ73Tj0sQEunfDJB8ybxmpWAYQUGA6B6iIX3JaKb/QzTpkoicBYDO DAkAX1KH0mPxT5ChLOXDzxViC/skZtY6e4K4rKREEx+rUL9n43tFRC5vlG45Kk5Soy7a 3fPgLVxfnObBTuG9rj2Gfplh9fJeL0SHX911M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704125772; x=1704730572; 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=fJbNx9lm8HjlBkF8Z8xXc9Fa1MFEvMM5hgYmZzzC6lWS/297BkzOVEqJJ1iLPOp/LL /CJE8SGv9b2+5LMN334oWdxg1F+s+Gb3BopHV4dL3dJMwD8KmJ1Qpfy9sxrMPWLZIb93 KD5iEOntlQQ3BKcnf4jl5jy03TWjp/N3IxC50Hck5D5lANCkUZBucUJvOaXDwBu+yS4a NlDSZIi5I1zTvwZ2jZKqUfOZ4FGxhLdkA2WN5kSTe1sDaL1vAM+1LjDhY2zDjD/z2T4Y /6xBYU4Aip5RbUManifK+IzyAfaje719sJeUaMQm9dSFARtEftEzSg7KlYNpLiJERlSP dhMg== X-Gm-Message-State: AOJu0YzZ+26aieiUVoNAJDZnls9xtBoS71GUXiDr1pOyLiTgM5TRpzeU uF2lxBaUFBjhBsXiP7eaP2dTnn3pnDkrAQ== X-Google-Smtp-Source: AGHT+IEMIdfKPv7AANgzmLHeFMXWyp4ZTojZGgPoeZui8eKAfzSNM3rMNXIJoZ1KdYBJ3jBUxiw1oQ== X-Received: by 2002:a17:906:4090:b0:a27:fdc1:593f with SMTP id u16-20020a170906409000b00a27fdc1593fmr790479ejj.67.1704125772195; Mon, 01 Jan 2024 08:16:12 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-82-48-44-179.retail.telecomitalia.it. [82.48.44.179]) by smtp.gmail.com with ESMTPSA id ep16-20020a1709069b5000b00a27d5e9b3ebsm1897857ejc.105.2024.01.01.08.16.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jan 2024 08:16:11 -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 v2 4/8] ARM: dts: stm32: add display support on stm32f769-disco Date: Mon, 1 Jan 2024 17:15:47 +0100 Message-ID: <20240101161601.2232247-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240101161601.2232247-1-dario.binacchi@amarulasolutions.com> References: <20240101161601.2232247-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-20240101_081613_917045_5A766BE6 X-CRM114-Status: GOOD ( 13.10 ) 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 Mon Jan 1 16:15:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13508650 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 E4994C47073 for ; Mon, 1 Jan 2024 16:16:45 +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=5czeK4uJ/+4XQJdcEF+yrXyQ7vWOAr/cCnFGkg7XCNs=; b=pBD6Uda1TS2yfx l5HLDR4lXiM7W3F3oVnTnVE2VOwIbYvJBeJBVbEs0xRQsYU3d1aW1eVogjC/Xymo0lWUZwz2lHKf8 eOWJJn89E4zxjiOSjEH00B1kL4/K9XDd48kbfdXwt97kP7R6DNKuE3EKUd1E9m8iscW/XScpO5H3s YPt4qpNf9/PCC5ZmzXlPBewwgWQFKhLc8x9zodJ16M3kb9EwYwLfbVQ5az3pqLa5jVR3xN8eVJipQ voLNBJ6/4KKEkKMVCau520oLbzgyjzOUqL51r7p0GZUk10ov4syb0SW01OJMLekdRe9fT/R07XCyG vc127RkoQjYV6tMUCc3g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rKKxf-006UIn-0l; Mon, 01 Jan 2024 16:16:19 +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 1rKKxc-006UHC-1Y for linux-arm-kernel@lists.infradead.org; Mon, 01 Jan 2024 16:16:17 +0000 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-55676f1faa9so229715a12.0 for ; Mon, 01 Jan 2024 08:16:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704125774; x=1704730574; 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=gKarHTcTd/SOLcJ/jUKhVwYIwJ9sftrWCAJJN9sfLME=; b=D6U22nQrrY9GSe9GeTtpfxR0mUQRN1BLhRoX3woNMNUattIRyMcqvonhKaA703upI7 /91dYHbuJXDxjXC71iFiaioXo4Eo6xx4nddTRf1OOwhgG3u3/UBYAPtaqJQSNZkTAbFo cEefC4Xlp9w4yMmFh0ZpjeF8crvDDaz9gJEIg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704125774; x=1704730574; 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=gKarHTcTd/SOLcJ/jUKhVwYIwJ9sftrWCAJJN9sfLME=; b=aZo7dbJEc/fiMlTFnZN6huXJrcvET23P3u3SvcO20vsVv6F2S9T9rMXbmZ4UJYHJod gH+lAopgNv4qtJKn/CvNqULKwIxB0TgnoZqfpVkGKqFoeEHPYDrKmSOdIe6FuY1/DLLo Y+8SyUL7ot3TGasvC+nnFilwPiRe+fWCTXjh2UW8MaUcFFLWmUqPKUuvQUyh8ze8a4a9 1IdMWIswJCiDc6JEtyMBo5AG3uIyZT/iJDb0xkc7jRS/HmKAEczsav4lPoJSKrK6sQrG mkZFzuKNfm+JahegmZFRmgmflrJjeSmE3GZvYeTSr13CrW64uTetyU12WMlaNpFT7f5h Ue+Q== X-Gm-Message-State: AOJu0YyYr1dpB0lLNSV+bVn+B55hjWXB4vUhPUcaU0YG2RwyEHJYaU4r MJLV/V7HZt+ct+PfY8pyIIaXWtExmkBgSg== X-Google-Smtp-Source: AGHT+IF3KLyf/gsZvmJ5w9YLaxU7gVC5k3gI0fV4IPIatLF/3MGhfP8WpYWFm9twcl32cSPZVjzzLA== X-Received: by 2002:a17:906:48:b0:a19:562d:5a20 with SMTP id 8-20020a170906004800b00a19562d5a20mr7580197ejg.28.1704125774750; Mon, 01 Jan 2024 08:16:14 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-82-48-44-179.retail.telecomitalia.it. [82.48.44.179]) by smtp.gmail.com with ESMTPSA id ep16-20020a1709069b5000b00a27d5e9b3ebsm1897857ejc.105.2024.01.01.08.16.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Jan 2024 08:16:14 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: linux-amarula@amarulasolutions.com, Alexandre Torgue , Dario Binacchi , Andre Przywara , Conor Dooley , Jisheng Zhang , Krzysztof Kozlowski , =?utf-8?q?Leonard_?= =?utf-8?q?G=C3=B6hrs?= , Maxime Coquelin , 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 v2 6/8] ARM: dts: add stm32f769-disco-mb1225-revb03-mb1166-reva09 Date: Mon, 1 Jan 2024 17:15:49 +0100 Message-ID: <20240101161601.2232247-7-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240101161601.2232247-1-dario.binacchi@amarulasolutions.com> References: <20240101161601.2232247-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-20240101_081616_519091_06066B89 X-CRM114-Status: GOOD ( 16.94 ) 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 --- 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; +};