From patchwork Mon Jan 8 20: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: 13513945 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 DA308C4707C for ; Mon, 8 Jan 2024 20:16:59 +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=HRLz/3nJ8mW+EZ q0ChhBLm/O1plQ/UV5Sye/o4mILy9X9Ys5OL/Ob/eR1KD8eHzA5zUuJmB2/z6JqYqBOWudvOeNF33 uNFDqI6Epzrv7oXJo1Y5u8JHtUfMdsoE/fYUIP5VEg75p05Z1la2VAKSJfOiJbsz0GswRKby25rME OXV2pv2yKaJimdM1Yufb7D2ZshAB5yI+Dqs8D8zajc/F00ANqLKqWn3mYslS5F6qc9IVSrJkBlfFu PNnz1jhmQ5Yrb+8247Q2/b5pqL5TP/yxVqUslmL4jWEX4jLexO3QuAJujFw4V5pY1+hGRCR/CMrHT 8G3+Mfg8YhXpcTKDYsdw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rMw2w-0068OX-2A; Mon, 08 Jan 2024 20:16:30 +0000 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rMw2r-0068M7-2R for linux-arm-kernel@lists.infradead.org; Mon, 08 Jan 2024 20:16:26 +0000 Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-50e9e5c97e1so2445602e87.0 for ; Mon, 08 Jan 2024 12:16:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704744983; x=1705349783; 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=qWCZ8n6g+SRWp/LHOspS2fLsmKhopKhZrlJy5Eu7v0N5lp+nf2tG2jduUAkIIr2VjR fB9ldBRbDxC8hI0AxH0NP0L2kPe9q6BH8Ip2C8ZiYmQlZa9j5K6K7qRCQTAC0XFRIoUl iibXviyOscCI6ag5dZd0nf45iSMMYOa2b0GNw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704744983; x=1705349783; 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=vMbxd+4jQ+ubHM6PQS0WMonsCDO1jcf3aRkmYEZfNvjhgksQ6IFbPDnjCi0/LmqyRh 8o/wB+oWkH5pCHP3LNyNiZegCMn6lxy4P7j+4IcKnnTwxoAXOyZy3qFFwaKLBHJ9QuIH f/JYrLhJC80gCAKPzSarGVxQe3JyckUzsbTWzCUA0ayGO5DotHQo9YsbFP9VmRm2rNf0 AwLAcsh+ZhF/nMWg0eBivKt+PB3JPqEQMXdcizXeUM/si35hk0PG29JsSgNC8dLlRwf3 nSN2ausXO05mTk1D4ppTqs7OXavsnWIn3eyGH4dxV6nzCzwdBFPotP3qRZAHdWlZYuJg Z+qA== X-Gm-Message-State: AOJu0Yw9cxQrV1rogqaSNfuUgiBwFPCGCx0U7v4xdedcED/WkLRoCUSK TdEQrSiv243UnVfH8T2Ue67O5xgKXmJ7MA== X-Google-Smtp-Source: AGHT+IG+bnMS+c8tiYQ5DRcgpg4/in0j4YpErDzhA91O3wWg4FpcIE3GXCuL7kfF9HOWzE4sOP3CtA== X-Received: by 2002:a05:6512:3f01:b0:50e:73b8:e8b5 with SMTP id y1-20020a0565123f0100b0050e73b8e8b5mr1890614lfa.74.1704744983333; Mon, 08 Jan 2024 12:16:23 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-87-2-38-81.retail.telecomitalia.it. [87.2.38.81]) by smtp.gmail.com with ESMTPSA id by26-20020a0564021b1a00b00555fd008741sm173699edb.95.2024.01.08.12.16.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 12:16:22 -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 v5 1/8] dt-bindings: mfd: stm32f7: Add binding definition for DSI Date: Mon, 8 Jan 2024 21:15:46 +0100 Message-ID: <20240108201618.2798649-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240108201618.2798649-1-dario.binacchi@amarulasolutions.com> References: <20240108201618.2798649-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-20240108_121625_793733_7E0DF000 X-CRM114-Status: UNSURE ( 9.40 ) 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 Mon Jan 8 20: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: 13513941 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 1381DC3DA6E for ; Mon, 8 Jan 2024 20:16:56 +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=q0cEX+lVFGyZ9G q5nzXIiujSTR3fuLXtadc+0uFpoZTdi4wKYi5tBQ8CY6L/Pksfh/iBLbHPPsO4oGCnHhyGJT5RSP/ Yhe4/lLg0bxk/Ili7Vtu9vbld/8vbMbsR4itsOcx4/lsCrYJJP4R3gfv/+cP1sDlwV5thsEvwZqbe xDu+8aSfYSeRor4BinalP22Xufd/Wv4IjAKraDN0DxahB/yJo0TEfpWS9N2LF8Qp/rIY3TEUxbbXB Mf7Bfirkncv7FLhC/Zr/pEBGnAwj48nipCfE5R4rJXG5JUUuteajL/h3vgGsIq8Hhm/vQ3zk5cyoZ h6L9mILo72WDZMpHu5OA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rMw2x-0068Op-0h; Mon, 08 Jan 2024 20:16:31 +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 1rMw2r-0068MM-38 for linux-arm-kernel@lists.infradead.org; Mon, 08 Jan 2024 20:16:27 +0000 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-5534dcfdd61so3969770a12.0 for ; Mon, 08 Jan 2024 12:16:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704744984; x=1705349784; 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=DpVczP/vsjsFMlPCes2ONqiFkvkedVzR0hpbutiOOYjTJvQceFFzU3pIHozOBVzz6E z7zVuVoxnwyuMDOVa89ia88TpsUfOyxTNc7d+cMK4/xpt8RB5/+hFgFF28huLGWJ680a gQ9cY0GCBzkFeiMM78k/xnfXJYkz5kArUbjhw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704744984; x=1705349784; 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=kAQQapdD8JWIntTqNlid/E71KaXiLy6pexp+ZOzWfZzn9U3BBF82doyHKq2nWsuamt d/SwSPR8RQoNptcIFeH3jeMHfsMnVS8SXGS4DTEqlKf2UEV2Dsb0URQU+D/JODPLo4nY dX1ZQL5v4uOW1JGKF0D0ngPV7T5Ds+8fCk7RohhBNTrZerXogeGfDWFIryZzaHbCrA/Z aPuofhzKavkHgkyA/CVD5bwNX3vKKiMZHA1LpVU0Un3C0HEgytgm8qnuqmqSfQLZdcAA 9s0cr1A9a0sgEjC22g+l0yN0XNXLDqLd5f1YOL2pPHAB4KijUPBGdbjDsKi6I8jidr6l ksaw== X-Gm-Message-State: AOJu0YyC40QJ2nUxRPJxvrSCWfzcNUQzGGELbee0DvtH59+ji2aXL0fr PJG6TRnMGxG/MKnStO7/pWE/RRP8R7F56w== X-Google-Smtp-Source: AGHT+IGkQ1MYwYhPQpHmfUvm48FJCD16KRlfqQTmXiok9BCXVdNdaFNjBMf2+daPgMlNsn+/b/5DcA== X-Received: by 2002:aa7:c6d2:0:b0:557:14da:db43 with SMTP id b18-20020aa7c6d2000000b0055714dadb43mr302217eds.6.1704744984573; Mon, 08 Jan 2024 12:16:24 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-87-2-38-81.retail.telecomitalia.it. [87.2.38.81]) by smtp.gmail.com with ESMTPSA id by26-20020a0564021b1a00b00555fd008741sm173699edb.95.2024.01.08.12.16.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 12:16:24 -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 v5 2/8] ARM: dts: stm32: add DSI support on stm32f769 Date: Mon, 8 Jan 2024 21:15:47 +0100 Message-ID: <20240108201618.2798649-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240108201618.2798649-1-dario.binacchi@amarulasolutions.com> References: <20240108201618.2798649-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-20240108_121626_004682_AE3044AA X-CRM114-Status: GOOD ( 14.52 ) 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 8 20:15:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13513944 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 04EBCC47073 for ; Mon, 8 Jan 2024 20:16:59 +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=GZ/mjqZVbanAW4 6kQIGjqQ0IMR86IdUX6z//TYY6N2UpQk4zH1RxP5Fr10A9vVnDJ7bGVJYrw4MlBWU5eQ/UMPHV4c1 E0nUzG+g67x/lshTbhgWVhOeWwMQ3uSmRJ5qBmFdSQYHdcggz+5nX7SLMdban4trRoNe2cogLPxXy GbkI9LzAzwPh4lGcXWZbhHrvejcIfJvrRmMVNU82S1PSMVaM+S48ZlXKXmjWFnEIELGcbtfeWMJGV pMdlcKHAZK5bX0wOGEVReE2/5QjP//TaxVMj9Oyfmzw1ueoqB9cmckrix4fAVm9y8e9a1mOEX1Sg6 BULdnSdY9nYvJkCR0h2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rMw2x-0068P9-2c; Mon, 08 Jan 2024 20:16:31 +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 1rMw2t-0068Mt-2s for linux-arm-kernel@lists.infradead.org; Mon, 08 Jan 2024 20:16:29 +0000 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5537dd673e5so1898787a12.0 for ; Mon, 08 Jan 2024 12:16:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704744986; x=1705349786; 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=pcz2GylvQx8AmE6EOJgFt76tqnfDqF54T+QNiFmZU6Os9l+owlOUC+jghKzJRk/Mx6 tM1PoE4uoaiCkji05hFeHklWcYRQz4yP3c5Oql7aIagyAoMq+N4bd4Y2AXmT5zJ4/xGj NmXwZf+25gBjtLtqLmwHybRBtTff7KzpTQNo0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704744986; x=1705349786; 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=nTpNuGBSB37DBqr7eC/FW62kNTFvVICsvKE81ZkOVHa87OO8DpQtJwqTmsnpiaI80M oXPsfuEhHNGB2qmRpezC0M6QtpS0ETF0ura/h7VTLKjWxA/c2Q2HEZij3gis7+fqCDTf GF57gA0Re5tcw9turpdsJetuNYYfuZbsXMSvL381fabhrvlFbF27yP4bhGCNOffeXrsD nvRB9QbBCZrtrRRgRdOGGUL5BngC5fFYbwhwkjfF9LyBYyEKy+S5eZijICYNzAItjGpW mcvtVu6depa9sYj22i59gn/EXDkFGaOtYR2KFSgZJEJoCgWD/UnD2/EY+O2jRuN88W8X KB9A== X-Gm-Message-State: AOJu0YyTKxEMe3QA8cwmwzrteKcdx/+ett5w/WZSHpTzixJ5mrEuJab8 FWfukGgPTd/bEJgkSvY/lwro9tPcmIuG9w== X-Google-Smtp-Source: AGHT+IHaaI1NSukORL4e4ZmL8fcZPEpDIgOEx1JCxKvw+wV6NYJajXGzcYKLAKRo8vBhmJzZt/w4Hg== X-Received: by 2002:a50:d481:0:b0:553:faf6:4c8d with SMTP id s1-20020a50d481000000b00553faf64c8dmr2556328edi.35.1704744985694; Mon, 08 Jan 2024 12:16:25 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-87-2-38-81.retail.telecomitalia.it. [87.2.38.81]) by smtp.gmail.com with ESMTPSA id by26-20020a0564021b1a00b00555fd008741sm173699edb.95.2024.01.08.12.16.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 12:16:25 -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 v5 3/8] ARM: dts: stm32: rename mmc_vcard to vcc-3v3 on stm32f769-disco Date: Mon, 8 Jan 2024 21:15:48 +0100 Message-ID: <20240108201618.2798649-4-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240108201618.2798649-1-dario.binacchi@amarulasolutions.com> References: <20240108201618.2798649-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-20240108_121627_929847_AA8EF3E6 X-CRM114-Status: GOOD ( 14.04 ) 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 8 20: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: 13513946 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 98446C3DA6E for ; Mon, 8 Jan 2024 20:17: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=PRtM0HdtdxgzHazkKIlfNnbQIV9GoDKfPbY93kVE3Fc=; b=K+pz42iwSVnR3g nS6mWseC8d3QHdlEyfPX28T7jz0aGVYMy+XGsO0Ib6B9iCryKX7PYJrafNr1jGtxIq/ro0DwR+Qc6 +U+0xnf3IIcf1aJ4zyn7K2nDIQ6/k2ZicI1xwOujRJYOUL5T5Y10+KR+2scZV7VLnXvhnnhBEh7mf RCvsMjGRPHqxVlRRugzdC3JjN/4PDOZ+3PgkKBHAkRDPXKrPSCmsj84lcBapP/Oa/kzD3+HGXuCWe SP+MSBWMKF1TyjU0yL7j1u/Xa2PbzKyU45SuSCkrahDEag/wLLqKJ/qXHkMCs7hv5oWjgVXFfhvQu vU8pK3FhqtjVE4LjFLNA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rMw31-0068R6-0R; Mon, 08 Jan 2024 20:16:35 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rMw2u-0068N1-3B for linux-arm-kernel@lists.infradead.org; Mon, 08 Jan 2024 20:16:30 +0000 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5534dcfdd61so3969845a12.0 for ; Mon, 08 Jan 2024 12:16:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704744987; x=1705349787; 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=RZgA0gtE6c9FwHAi6hy+uKg7FnoXaqmZXXgL+sjAO32IHXjspYYExVa0bCZUoKlXXd c6aBaOSKwNDBQq41L7VIP9wazdmTB6gJhYRhxY7w+OdPMYr+HjOWQ+ZClys8DJK+YPEx QuoXwYkFJd8rS4vZTADojK0lybJEyDn4z3VXI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704744987; x=1705349787; 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=FFZAy8TR37k2bLYbNSpQCohTfAsPRmB2KKqPfQmdA0W2C/eNO2gyLMC6tBFdtvAqbR BMRpdxYD9q3enp1uZfb2WV14BQvD3TQZyZ5jXsai9vBXbP3DcwB/7uH4tbKBw40VGMEc n5kJmDccJIfdsrlROLWC3on6MsBPTdjAGi6VnTsd3hWW99m9VmWskQrE4F/xl8OhU6QS bCJZZRZpxKFCtc691GeaiwKPE/c43KS4T0Mph5wvl5+RO4jScZjLyjDBIqRNbxLpNOvf RY75jXQEk2qnhRuJ6XQdOWM9meg2+4EuovvN/rkQ81vIeqdp5gwItnUC+QH6KQaJbYEv p1Zg== X-Gm-Message-State: AOJu0Yx+sj5kvmVtQaW2n23g5mJNvMShNnAN+1h2QMIrBklFrExW9U3v leBUHMpav5F8BwUz7u6gXWgmbKvwOjtKzw== X-Google-Smtp-Source: AGHT+IH571bHgLenmr1+KWUBb4GbCe9fNk/ox6ov48UEPndOfewqWXbJLWttw2GX2aE8VnQZLowacw== X-Received: by 2002:a05:6402:7c2:b0:557:7501:4242 with SMTP id u2-20020a05640207c200b0055775014242mr288476edy.12.1704744986947; Mon, 08 Jan 2024 12:16:26 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-87-2-38-81.retail.telecomitalia.it. [87.2.38.81]) by smtp.gmail.com with ESMTPSA id by26-20020a0564021b1a00b00555fd008741sm173699edb.95.2024.01.08.12.16.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 12:16:26 -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 v5 4/8] ARM: dts: stm32: add display support on stm32f769-disco Date: Mon, 8 Jan 2024 21:15:49 +0100 Message-ID: <20240108201618.2798649-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240108201618.2798649-1-dario.binacchi@amarulasolutions.com> References: <20240108201618.2798649-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-20240108_121629_022978_AAB664E2 X-CRM114-Status: GOOD ( 12.40 ) 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 8 20:15:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 13513943 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 400E2C47079 for ; Mon, 8 Jan 2024 20:16:59 +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=cn6Km0owVDx8hY Xm8BPQVZqpIm0CSVmB3bkxSx+mdfQe6ErLylWLs844g2XuYx9kKg+3iQqCAvAhde9CSOWKyYBNqRi RaO4mD9OMhEiqIl7BA+4dJuCNcRT1wxBK7XKSxJKXWikEayCHultHVpXeIf4gOmZtByVZS0AJtkLI BrjtcgHYZQRSqWzOQ8cXqFd6mhKRo3wE63e0TA7FAlmhFJLlnLYKr7WGRFmLNAIjoqDbAjmT7c1Wr gDDhQ369aGDYjWlagxvy/NgSzkwVvfHTodEFlrtiNPHH+zQMvmpqWlwr1WmmQZPUO4Okgy8RuXxxN ktnXdziO4BclWFwccsGg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rMw31-0068RM-2F; Mon, 08 Jan 2024 20:16:35 +0000 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rMw2y-0068OW-2T for linux-arm-kernel@lists.infradead.org; Mon, 08 Jan 2024 20:16:34 +0000 Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-50e9e5c97e1so2445753e87.0 for ; Mon, 08 Jan 2024 12:16:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1704744990; x=1705349790; 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=FzdxMpkEjCgNxKw/YcZyBSgPz5nPEeZFzz0nfods9diBAI28edqGacHLL2LHLZD/pk /6nhUheFAHhVE7+HM7s8FP56jPHv3O44V8lRVzngkwAxd5Zt/IETdBUQFf95ynKUgdpp s+vyele/1hhZVuW0+FDo4IBXQlxZZEgmeO+3U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704744990; x=1705349790; 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=Zs9lwr5QWrZwtCB3nM/hQiIMuUwPCpliibZZxg0GsE11zVvn2uACEtMDfsw8mVQgjW dH3NiJws2cyeF3EGOuDGz49myoNzWvMvHmtWRz2L7E0duPjsrcarkmnG+F0MpwMbPOC3 XScWO9K6EX2C+uMwCtwSk1nSuWh8ngM71yjNpRopsJijjJfpXeK7cEFEaCCJKG7ME7ok nl/+9kvoPBY2Z9HgOu2PDcflU4INTXTxZxfJUImjRcg2pGPpsaXJny/GLPGuPzANiNH6 zIntpKDd839zXFiI7opvz9yYukteIsvilt+g3h28IEzcJkUfjleG/KS81YRed3aLQhVs BwTw== X-Gm-Message-State: AOJu0YynqH7qz3dEJvlEoNu3FM5f3pQkWWgiDP8Wiy0I85E4irkAyRn9 As9NLYQcRKQ3jTIKvy+N+g7KX1NmrHpBYg== X-Google-Smtp-Source: AGHT+IGUAZ/MQUcd94fksdYS1966HkP13g0jTc0aXi84yDipWsw07G7eealpviiBZga8chmfm/iZDA== X-Received: by 2002:ac2:5627:0:b0:50e:3c2a:fd5e with SMTP id b7-20020ac25627000000b0050e3c2afd5emr1595830lff.134.1704744989954; Mon, 08 Jan 2024 12:16:29 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-87-2-38-81.retail.telecomitalia.it. [87.2.38.81]) by smtp.gmail.com with ESMTPSA id by26-20020a0564021b1a00b00555fd008741sm173699edb.95.2024.01.08.12.16.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jan 2024 12:16:29 -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?= , Maxime Coquelin , Peter Rosin , Rob Herring , Sean Nyekjaer , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH v5 6/8] ARM: dts: add stm32f769-disco-mb1225-revb03-mb1166-reva09 Date: Mon, 8 Jan 2024 21:15:51 +0100 Message-ID: <20240108201618.2798649-7-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240108201618.2798649-1-dario.binacchi@amarulasolutions.com> References: <20240108201618.2798649-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-20240108_121632_821247_E3603145 X-CRM114-Status: GOOD ( 16.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 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; +};