Message ID | 20230602132859.16442-5-alexandre.torgue@foss.st.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp1031466vqr; Fri, 2 Jun 2023 06:33:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6JZAYeFMtR51N19jwcEJ961laLUGvq7yhTQeXZuLGeyUi+iCaIVYOWOtFR8gOisrFMj+uv X-Received: by 2002:a17:90a:305:b0:255:8802:937a with SMTP id 5-20020a17090a030500b002558802937amr2401061pje.11.1685712781672; Fri, 02 Jun 2023 06:33:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685712781; cv=none; d=google.com; s=arc-20160816; b=LJih09QIt24eRzNsLYq7vVJ4JscTX8MHSVFVKktwEivmVpTf9XlDNKmAEDmbnyxZfz GWTXT2iQZjgnNelWjd4LRf9S4g2ZHInzgeKwRJzRq3hpWgmFzz4dVaBSEam91oWuoK6G lZA+ANWIETQboxp97JxXLRS0RUkfpP80NjWMPiInh2x3VYo/G0DayHxdn5QEx32ksCzD OzidUDRU+ovHDfhwpIXvbxAoSK2/9Ptj8YWRvw4AXHm3qEzNf3wdp8djTldrMpCZDo8c 599dKpYwQI0mEtRhsscGm+Q4BIj4O7WY5eO5oOlV3Lll6iPEneyz2qwaE2jeKGUKCtxl pp6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=PDoE1Z+cF75l+gk9sdlZVUIvH6BbnuzzZQPvr/2NagA=; b=ISlUeOnuaJWfJoqPI/5TlKxzurKg5U5oieFO3Q79qb3E6KQE2CwpQpSpCYbS0186S+ U8Wf/eECud/s1wTLUZ511/ihorsl8/qESO7hn++o3iG8Q8Xusoaxz4H9wPWWivyNksLM p7JqyOtCMwKw0jAqMLQ/m2uodqCsoM8D1CxsIfW3U95Q6WzA7oiTuQA9jheUwQoSdKuP 1Z4G6hskiA/8hVjG8VwY69bwRAAukFmGC83jooY5nwJkXgWayTS6IPiiXmmj50GVPxgn V2Wo0AdgUD2eCO6PbqDQtxYlRbzPQAoyFnQSJFIHYVQM84Ojz9Mi65X+HzcGVGbikU2q xCrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b="w4x+n/mL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gf13-20020a17090ac7cd00b0025355f85165si1059371pjb.139.2023.06.02.06.32.49; Fri, 02 Jun 2023 06:33:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b="w4x+n/mL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236129AbjFBN3Z (ORCPT <rfc822;limurcpp@gmail.com> + 99 others); Fri, 2 Jun 2023 09:29:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236040AbjFBN3X (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 2 Jun 2023 09:29:23 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B7FF1B7; Fri, 2 Jun 2023 06:29:22 -0700 (PDT) Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 352DF1R0010654; Fri, 2 Jun 2023 15:29:08 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=selector1; bh=PDoE1Z+cF75l+gk9sdlZVUIvH6BbnuzzZQPvr/2NagA=; b=w4x+n/mLaUYuvacsDSfd+Jb0F5jzvBPmnTE5W0pOXjhHAH0rKqfdyTJWsGDuRYF297K6 QR+CRiD3TWLPEe2kVeMfvOPysNJeXBkFbZMhVI4teaPkqYOH+fjCbyg/YaZALIf88r1J FtOqSA1lDy99MWQrUmZfN/7AB2aMomlnaBVBjBlKyKCalyk6wquDH1YKgBA49K/y9gX1 zp1DOWz8hD13K8uezWYa+aX05Gf8XPsX5hhwp78GcMe1x99f4VXXfeJV1yRSolfaZiqS NFty+j4MRdOrCNnaqKkO5YGy2gIR/Y3E6W4N4BBFtjFHn7rp8gDYoFjNu92+Ma5LUQ8u bQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3qx3157j6p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 02 Jun 2023 15:29:08 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 8B17910002A; Fri, 2 Jun 2023 15:29:07 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 8339E236927; Fri, 2 Jun 2023 15:29:07 +0200 (CEST) Received: from localhost (10.201.21.93) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Fri, 2 Jun 2023 15:29:07 +0200 From: Alexandre Torgue <alexandre.torgue@foss.st.com> To: <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Linus Walleij <linus.walleij@linaro.org>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Arnd Bergmann <arnd@arndb.de>, Olof Johansson <olof@lixom.net>, <soc@kernel.org> CC: <linux-arm-kernel@lists.infradead.org>, <devicetree@vger.kernel.org>, Alexandre Torgue <alexandre.torgue@foss.st.com>, <linux-stm32@st-md-mailman.stormreply.com>, <linux-kernel@vger.kernel.org>, <linux-gpio@vger.kernel.org> Subject: [PATCH v2 04/10] arm64: introduce STM32 family on Armv8 architecture Date: Fri, 2 Jun 2023 15:28:53 +0200 Message-ID: <20230602132859.16442-5-alexandre.torgue@foss.st.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230602132859.16442-1-alexandre.torgue@foss.st.com> References: <20230602132859.16442-1-alexandre.torgue@foss.st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.21.93] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-06-02_10,2023-06-02_02,2023-05-22_02 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767597965686880088?= X-GMAIL-MSGID: =?utf-8?q?1767597965686880088?= |
Series |
Add STM32MP25 support
|
|
Commit Message
Alexandre TORGUE
June 2, 2023, 1:28 p.m. UTC
Add a dedicated ARCH_STM32 for STM32 SoCs config. First STM32 Armv8 SoC
family is the STM32MP25 which is composed of STM32MP251, STM32MP253,
STM32MP255, STM32MP257 SoCs.
Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com>
Comments
Hi, On Fri, Jun 02, 2023 at 03:28:53PM +0200, Alexandre Torgue wrote: > Add a dedicated ARCH_STM32 for STM32 SoCs config. First STM32 Armv8 SoC > family is the STM32MP25 which is composed of STM32MP251, STM32MP253, > STM32MP255, STM32MP257 SoCs. > > Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com> > This patch (or patch series) results in the following build error when trying to build arm64:allmodconfig. Building arm64:allmodconfig ... failed -------------- Error log: In file included from include/linux/printk.h:564, from include/asm-generic/bug.h:22, from arch/arm64/include/asm/bug.h:26, from include/linux/bug.h:5, from include/linux/fortify-string.h:5, from include/linux/string.h:254, from include/linux/dma-mapping.h:7, from drivers/remoteproc/stm32_rproc.c:9: drivers/remoteproc/stm32_rproc.c: In function 'stm32_rproc_mem_alloc': drivers/remoteproc/stm32_rproc.c:122:22: error: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'size_t' Bisect log attached. Guenter --- # bad: [15e71592dbae49a674429c618a10401d7f992ac3] Add linux-next specific files for 20230621 # good: [45a3e24f65e90a047bef86f927ebdc4c710edaa1] Linux 6.4-rc7 git bisect start 'HEAD' 'v6.4-rc7' # bad: [e867e67cd55ae460c860ffd896c7fc96add2821c] Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git git bisect bad e867e67cd55ae460c860ffd896c7fc96add2821c # bad: [57b289d5b1005a9c39d6d6567e0ef6115bd59cea] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git git bisect bad 57b289d5b1005a9c39d6d6567e0ef6115bd59cea # good: [dc6399fc9ae6d2530fc38fb3ae96bcc8393bd66f] Merge branch 'for-next/perf' of git://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git git bisect good dc6399fc9ae6d2530fc38fb3ae96bcc8393bd66f # good: [5bfea833dd8f972ce3435359f12f61bdbf01b147] Merge tag 'v6.4-next-dts64' of https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux into soc/dt git bisect good 5bfea833dd8f972ce3435359f12f61bdbf01b147 # bad: [6f8f9120fd588b28edb0a9c6b9ae9ca6c261d9f6] Merge branch 'for-linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git git bisect bad 6f8f9120fd588b28edb0a9c6b9ae9ca6c261d9f6 # bad: [fe16e4b5e7fa1badc2fa69d85f7b13926cce8fe2] Merge branch 'at91-next' of git://git.kernel.org/pub/scm/linux/kernel/git/at91/linux.git git bisect bad fe16e4b5e7fa1badc2fa69d85f7b13926cce8fe2 # good: [0e4ad579ef10d4e9eca86eb33fb4cd87de7c05c4] soc: document merges git bisect good 0e4ad579ef10d4e9eca86eb33fb4cd87de7c05c4 # good: [d704f1fe9f4a4ae9c9f1f9fac1e4194c34dd035b] Merge tag 'arm-soc/for-6.5/devicetree-arm64' of https://github.com/Broadcom/stblinux into soc/dt git bisect good d704f1fe9f4a4ae9c9f1f9fac1e4194c34dd035b # bad: [26588df4e5a385e5b7751997d48bdeef042cf736] Merge branch 'soc/newsoc' into for-next git bisect bad 26588df4e5a385e5b7751997d48bdeef042cf736 # good: [6bce45197c25c99612a3c5e0cf041d18aa28fbf3] Merge branch 'soc/dt' into for-next git bisect good 6bce45197c25c99612a3c5e0cf041d18aa28fbf3 # bad: [3b170e1653c05b067ea6ef616ece961b07714f48] arm64: dts: st: introduce stm32mp25 pinctrl files git bisect bad 3b170e1653c05b067ea6ef616ece961b07714f48 # good: [c3053382574a5a829c93fb5ab0bb52d20456e745] dt-bindings: stm32: add st,stm32mp25-syscfg compatible for syscon git bisect good c3053382574a5a829c93fb5ab0bb52d20456e745 # bad: [5d30d03aaf78586c37100006ba271d045f730bb5] arm64: dts: st: introduce stm32mp25 SoCs family git bisect bad 5d30d03aaf78586c37100006ba271d045f730bb5 # bad: [9e4e24414cc6b45bd887d746a59691e295431ddf] arm64: introduce STM32 family on Armv8 architecture git bisect bad 9e4e24414cc6b45bd887d746a59691e295431ddf # first bad commit: [9e4e24414cc6b45bd887d746a59691e295431ddf] arm64: introduce STM32 family on Armv8 architecture
Hi Guenter On 6/22/23 02:57, Guenter Roeck wrote: > Hi, > > On Fri, Jun 02, 2023 at 03:28:53PM +0200, Alexandre Torgue wrote: >> Add a dedicated ARCH_STM32 for STM32 SoCs config. First STM32 Armv8 SoC >> family is the STM32MP25 which is composed of STM32MP251, STM32MP253, >> STM32MP255, STM32MP257 SoCs. >> >> Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com> >> > > This patch (or patch series) results in the following build error when > trying to build arm64:allmodconfig. > > Building arm64:allmodconfig ... failed Should be fixed by this patch: https://lore.kernel.org/linux-arm-kernel/9ebb9a5a-7bc8-da67-529f-5193b9352b23@infradead.org/T/ regards Alex > -------------- > Error log: > In file included from include/linux/printk.h:564, > from include/asm-generic/bug.h:22, > from arch/arm64/include/asm/bug.h:26, > from include/linux/bug.h:5, > from include/linux/fortify-string.h:5, > from include/linux/string.h:254, > from include/linux/dma-mapping.h:7, > from drivers/remoteproc/stm32_rproc.c:9: > drivers/remoteproc/stm32_rproc.c: In function 'stm32_rproc_mem_alloc': > drivers/remoteproc/stm32_rproc.c:122:22: error: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'size_t' > > Bisect log attached. > > Guenter > > --- > # bad: [15e71592dbae49a674429c618a10401d7f992ac3] Add linux-next specific files for 20230621 > # good: [45a3e24f65e90a047bef86f927ebdc4c710edaa1] Linux 6.4-rc7 > git bisect start 'HEAD' 'v6.4-rc7' > # bad: [e867e67cd55ae460c860ffd896c7fc96add2821c] Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git > git bisect bad e867e67cd55ae460c860ffd896c7fc96add2821c > # bad: [57b289d5b1005a9c39d6d6567e0ef6115bd59cea] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git > git bisect bad 57b289d5b1005a9c39d6d6567e0ef6115bd59cea > # good: [dc6399fc9ae6d2530fc38fb3ae96bcc8393bd66f] Merge branch 'for-next/perf' of git://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git > git bisect good dc6399fc9ae6d2530fc38fb3ae96bcc8393bd66f > # good: [5bfea833dd8f972ce3435359f12f61bdbf01b147] Merge tag 'v6.4-next-dts64' of https://git.kernel.org/pub/scm/linux/kernel/git/matthias.bgg/linux into soc/dt > git bisect good 5bfea833dd8f972ce3435359f12f61bdbf01b147 > # bad: [6f8f9120fd588b28edb0a9c6b9ae9ca6c261d9f6] Merge branch 'for-linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git > git bisect bad 6f8f9120fd588b28edb0a9c6b9ae9ca6c261d9f6 > # bad: [fe16e4b5e7fa1badc2fa69d85f7b13926cce8fe2] Merge branch 'at91-next' of git://git.kernel.org/pub/scm/linux/kernel/git/at91/linux.git > git bisect bad fe16e4b5e7fa1badc2fa69d85f7b13926cce8fe2 > # good: [0e4ad579ef10d4e9eca86eb33fb4cd87de7c05c4] soc: document merges > git bisect good 0e4ad579ef10d4e9eca86eb33fb4cd87de7c05c4 > # good: [d704f1fe9f4a4ae9c9f1f9fac1e4194c34dd035b] Merge tag 'arm-soc/for-6.5/devicetree-arm64' of https://github.com/Broadcom/stblinux into soc/dt > git bisect good d704f1fe9f4a4ae9c9f1f9fac1e4194c34dd035b > # bad: [26588df4e5a385e5b7751997d48bdeef042cf736] Merge branch 'soc/newsoc' into for-next > git bisect bad 26588df4e5a385e5b7751997d48bdeef042cf736 > # good: [6bce45197c25c99612a3c5e0cf041d18aa28fbf3] Merge branch 'soc/dt' into for-next > git bisect good 6bce45197c25c99612a3c5e0cf041d18aa28fbf3 > # bad: [3b170e1653c05b067ea6ef616ece961b07714f48] arm64: dts: st: introduce stm32mp25 pinctrl files > git bisect bad 3b170e1653c05b067ea6ef616ece961b07714f48 > # good: [c3053382574a5a829c93fb5ab0bb52d20456e745] dt-bindings: stm32: add st,stm32mp25-syscfg compatible for syscon > git bisect good c3053382574a5a829c93fb5ab0bb52d20456e745 > # bad: [5d30d03aaf78586c37100006ba271d045f730bb5] arm64: dts: st: introduce stm32mp25 SoCs family > git bisect bad 5d30d03aaf78586c37100006ba271d045f730bb5 > # bad: [9e4e24414cc6b45bd887d746a59691e295431ddf] arm64: introduce STM32 family on Armv8 architecture > git bisect bad 9e4e24414cc6b45bd887d746a59691e295431ddf > # first bad commit: [9e4e24414cc6b45bd887d746a59691e295431ddf] arm64: introduce STM32 family on Armv8 architecture
On Thu, Jun 22, 2023, at 09:50, Alexandre TORGUE wrote: > On 6/22/23 02:57, Guenter Roeck wrote: >> >> On Fri, Jun 02, 2023 at 03:28:53PM +0200, Alexandre Torgue wrote: >>> Add a dedicated ARCH_STM32 for STM32 SoCs config. First STM32 Armv8 SoC >>> family is the STM32MP25 which is composed of STM32MP251, STM32MP253, >>> STM32MP255, STM32MP257 SoCs. >>> >>> Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com> >>> >> >> This patch (or patch series) results in the following build error when >> trying to build arm64:allmodconfig. >> >> Building arm64:allmodconfig ... failed > > Should be fixed by this patch: > > https://lore.kernel.org/linux-arm-kernel/9ebb9a5a-7bc8-da67-529f-5193b9352b23@infradead.org/T/ I added that patch to my the soc/newsoc branch now. Arnd
diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 89a0b13b058d..b1818d100d88 100644 --- a/arch/arm64/Kconfig.platforms +++ b/arch/arm64/Kconfig.platforms @@ -277,6 +277,20 @@ config ARCH_INTEL_SOCFPGA Stratix 10 (ex. Altera), Stratix10 Software Virtual Platform, Agilex and eASIC N5X. +config ARCH_STM32 + bool "STMicroelectronics STM32 SoC Family" + select GPIOLIB + select PINCTRL + select PINCTRL_STM32MP257 + select ARM_SMC_MBOX + select ARM_SCMI_PROTOCOL + select COMMON_CLK_SCMI + help + This enables support for ARMv8 based STMicroelectronics + STM32 family, including: + - STM32MP25: + - STM32MP251, STM32MP253, STM32MP255 and STM32MP257. + config ARCH_SYNQUACER bool "Socionext SynQuacer SoC Family" select IRQ_FASTEOI_HIERARCHY_HANDLERS