Message ID | 20230504033726.93-2-ychuang570808@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp39438vqo; Wed, 3 May 2023 21:06:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7kBKhmodsbFfhCts1zCKXQYQ6uRq+BD3rm8Sw7I7KSqeAmiM9ip2oxrBwnfBYKi27366zd X-Received: by 2002:a17:902:a989:b0:1a2:afdd:8476 with SMTP id bh9-20020a170902a98900b001a2afdd8476mr2027299plb.2.1683173173341; Wed, 03 May 2023 21:06:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683173173; cv=none; d=google.com; s=arc-20160816; b=OOiqyLYNLTRkSi/4MvMeObnjZsIBqQ6VY3riUj8yYGvM08DqG5PAvaP010XB54Zkp9 G0aPlSjbwyr9gkSmt0v7mNISNO7KMRTATGbgbsCb7UdJSrCQZ6lymg0SWSUGqL+aZhXu jcmqbhkgNYam8qs8oczRUZO+rTMSOT67TLW5p4Unkhx9JK3kGL+5E7QJVjrmzmxlJMY5 dMtvydqtLxEkfeugV49IaCxFpZykQkNuPO7tC6pWAD5fuKugjB0QBinxPEaSSKU/bWV2 B2OQvQycFBWkL1GS2rZxUJlZQqi9lvqbVyu9e62VnlRENmvWVypLvOHkSDe+7R61ZvmI Gj8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Ed17VsKqIYY1EHY3aBloZZET84zjPJ3dZSJioIcN9l0=; b=Le9Z3z9sEbpdoWVubI3cWAYphh/0FIIcSSo2oVS0FDnOIS/6LPqG6cG5MQOr68HYAO TP86Rx4/6gAMxvfEGfZZsXVXjh527RmgFTDFAeThqphKQVVMWzk+TYATfmXALzYCySr8 Br9TMH/gAwF92qh8UGZBD6T6VmN3ne61V5Z+uB7H54QgzJrUQNm2teWtn5nPgqA/3QPF mPqROhNj9E7gYdtMAcmOATr34T2jWOi98uhSdhtovJjOxLs+iu4xW3MGjkUK7/YqROjm trdDXURV907DDH1NnkJwl+d35sixNcWiK7IgTICIn9oTTJ2Km8dwWXCr12sgoSsnP7jE oEbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=BouU2EJg; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z7-20020a170903018700b001a996ae1bcfsi22502156plg.76.2023.05.03.21.05.59; Wed, 03 May 2023 21:06:13 -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=@gmail.com header.s=20221208 header.b=BouU2EJg; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229686AbjEDDhp (ORCPT <rfc822;lhua1029@gmail.com> + 99 others); Wed, 3 May 2023 23:37:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229720AbjEDDhh (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 3 May 2023 23:37:37 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C46F2198A; Wed, 3 May 2023 20:37:36 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-24de9c66559so49545a91.0; Wed, 03 May 2023 20:37:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683171456; x=1685763456; 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=Ed17VsKqIYY1EHY3aBloZZET84zjPJ3dZSJioIcN9l0=; b=BouU2EJgGelDQw8riSruyKADA1q4XAF76S+xK6/V3U23CPNZ1tp0mJp6coGpB4dUvQ P7SnFgFoYWDLh+14xjFm0WUxfA0ZB00kvHJh8WH4y68cBcXWkxitKorJfrrkDXWYGeFG fGoRP1HpNsYtjcBxpndQYAq9YMK8Wq1r67oPsClLFCdP1j4hVNqIj6ZRrplDy7ju/za2 Ec8KIcnpvaV1nJ+mWUDKuaHuMhpmN89IOLLXlwsbs0AdrE/Rq8herNU2TexrXURMUt8n V9dMuNBdBPNictE4fr+vw/Ko/L9Dqj7sjQ1dmKNDFL/9BjXIrFgGramvW4/9oVstzo0v oBXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683171456; x=1685763456; 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=Ed17VsKqIYY1EHY3aBloZZET84zjPJ3dZSJioIcN9l0=; b=XP3KXS5NF0Oqhh8/Qtx6WRA/7g2tfrQwc6jCZpoisFKLv7/ZrbLR/E0X4iIf+qbDrs aQCSroov9bZEkgwlbV873eDhcCxZyGlj5DVDV6wsgNN3nJaFFToOFmOp1xy1IBI89wjw SvT4iRQzjfeWwyyTLeEr//Ba7CgUJM6fUd21KM//MeLoozI6Y+eYOxLowQjJHKTxJmhQ ICgYbPjL/iiOXnYb9qZ5TaNKMr/0RFahII5O2gA2dfkovf3Hvnh+27VwesaF3302qTrh uVrWPd2sUI57YCCxheRwvnPbA8XovqCR56kuvO7h//KWqUBFxGIYa4OArIu+ycbclFDK rHXQ== X-Gm-Message-State: AC+VfDw9GHk2Xzul5rn1g7yTz728UvTVT0ulpOrvBEYnZ6I6d7k5v/zS 7evdj23/pCXCojQVWlU2hp4= X-Received: by 2002:a17:903:230e:b0:19d:778:ff5 with SMTP id d14-20020a170903230e00b0019d07780ff5mr2662950plh.15.1683171456228; Wed, 03 May 2023 20:37:36 -0700 (PDT) Received: from a28aa0606c51.. (60-250-192-107.hinet-ip.hinet.net. [60.250.192.107]) by smtp.gmail.com with ESMTPSA id jj3-20020a170903048300b001ab849b46d3sm468761plb.178.2023.05.03.20.37.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 May 2023 20:37:35 -0700 (PDT) From: Jacky Huang <ychuang570808@gmail.com> To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, lee@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, p.zabel@pengutronix.de, gregkh@linuxfoundation.org, jirislaby@kernel.org, tmaimon77@gmail.com, catalin.marinas@arm.com, will@kernel.org Cc: devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, arnd@arndb.de, schung@nuvoton.com, mjchen@nuvoton.com, Jacky Huang <ychuang3@nuvoton.com> Subject: [PATCH v9 01/10] arm64: Kconfig.platforms: Add config for Nuvoton MA35 platform Date: Thu, 4 May 2023 03:37:17 +0000 Message-Id: <20230504033726.93-2-ychuang570808@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230504033726.93-1-ychuang570808@gmail.com> References: <20230504033726.93-1-ychuang570808@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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?1764934993539909911?= X-GMAIL-MSGID: =?utf-8?q?1764934993539909911?= |
Series |
Introduce Nuvoton ma35d1 SoC
|
|
Commit Message
Jacky Huang
May 4, 2023, 3:37 a.m. UTC
From: Jacky Huang <ychuang3@nuvoton.com> Add ARCH_NUVOTON configuration option for Nuvoton MA35 family SoCs. Signed-off-by: Jacky Huang <ychuang3@nuvoton.com> --- arch/arm64/Kconfig.platforms | 9 +++++++++ 1 file changed, 9 insertions(+)
Comments
On 04/05/2023 05:37, Jacky Huang wrote: > From: Jacky Huang <ychuang3@nuvoton.com> > > Add ARCH_NUVOTON configuration option for Nuvoton MA35 family SoCs. > > Signed-off-by: Jacky Huang <ychuang3@nuvoton.com> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
On 04/05/2023 05:37, Jacky Huang wrote: > From: Jacky Huang <ychuang3@nuvoton.com> > > Add ARCH_NUVOTON configuration option for Nuvoton MA35 family SoCs. > > Signed-off-by: Jacky Huang <ychuang3@nuvoton.com> > --- > arch/arm64/Kconfig.platforms | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms > index 89a0b13b058d..c1f277c05569 100644 > --- a/arch/arm64/Kconfig.platforms > +++ b/arch/arm64/Kconfig.platforms > @@ -236,6 +236,15 @@ config ARCH_NPCM > General support for NPCM8xx BMC (Arbel). > Nuvoton NPCM8xx BMC based on the Cortex A35. > > +config ARCH_NUVOTON Either this should be ARCH_MA35 or you should integrate it with NPCM. ARCH_NUVOTON means all Nuvoton platforms. Best regards, Krzysztof
On Thu, May 4, 2023, at 08:32, Krzysztof Kozlowski wrote: > On 04/05/2023 05:37, Jacky Huang wrote: >> From: Jacky Huang <ychuang3@nuvoton.com> >> >> Add ARCH_NUVOTON configuration option for Nuvoton MA35 family SoCs. >> >> Signed-off-by: Jacky Huang <ychuang3@nuvoton.com> >> --- >> arch/arm64/Kconfig.platforms | 9 +++++++++ >> 1 file changed, 9 insertions(+) >> >> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms >> index 89a0b13b058d..c1f277c05569 100644 >> --- a/arch/arm64/Kconfig.platforms >> +++ b/arch/arm64/Kconfig.platforms >> @@ -236,6 +236,15 @@ config ARCH_NPCM >> General support for NPCM8xx BMC (Arbel). >> Nuvoton NPCM8xx BMC based on the Cortex A35. >> >> +config ARCH_NUVOTON > > Either this should be ARCH_MA35 or you should integrate it with NPCM. > ARCH_NUVOTON means all Nuvoton platforms. I'd go with two separate Kconfig options here (ARCH_MA35 and ARCH_NPCM) for arm64, but keep the shared arch/arm64/boot/dts/nuvoton directory, I think that fits most closely what we do on other targets, and there is apparently very little sharing of IP blocks between npcm and ma35, if any. Arnd
On 2023/5/4 下午 03:49, Arnd Bergmann wrote: > On Thu, May 4, 2023, at 08:32, Krzysztof Kozlowski wrote: >> On 04/05/2023 05:37, Jacky Huang wrote: >>> From: Jacky Huang <ychuang3@nuvoton.com> >>> >>> Add ARCH_NUVOTON configuration option for Nuvoton MA35 family SoCs. >>> >>> Signed-off-by: Jacky Huang <ychuang3@nuvoton.com> >>> --- >>> arch/arm64/Kconfig.platforms | 9 +++++++++ >>> 1 file changed, 9 insertions(+) >>> >>> diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms >>> index 89a0b13b058d..c1f277c05569 100644 >>> --- a/arch/arm64/Kconfig.platforms >>> +++ b/arch/arm64/Kconfig.platforms >>> @@ -236,6 +236,15 @@ config ARCH_NPCM >>> General support for NPCM8xx BMC (Arbel). >>> Nuvoton NPCM8xx BMC based on the Cortex A35. >>> >>> +config ARCH_NUVOTON >> Either this should be ARCH_MA35 or you should integrate it with NPCM. >> ARCH_NUVOTON means all Nuvoton platforms. > I'd go with two separate Kconfig options here (ARCH_MA35 and ARCH_NPCM) > for arm64, but keep the shared arch/arm64/boot/dts/nuvoton directory, > I think that fits most closely what we do on other targets, and there > is apparently very little sharing of IP blocks between npcm and ma35, > if any. > > Arnd Dear Arnd and Krzysztof, Thank you for your suggestion, it really helped me. We are also considering whether to use ARCH_MA35. As NPCM and MA35 are designed for different application areas, it is unlikely that they would be used simultaneously. Therefore, it would be more reasonable to separate them into ARCH_NPCM and ARCH_MA35. In the next version, v10, we will change all instances of ARCH_NUVOTON in this patchset to ARCH_MA35 and keep shared directory changed. Best Regards, Jacky Huang
diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 89a0b13b058d..c1f277c05569 100644 --- a/arch/arm64/Kconfig.platforms +++ b/arch/arm64/Kconfig.platforms @@ -236,6 +236,15 @@ config ARCH_NPCM General support for NPCM8xx BMC (Arbel). Nuvoton NPCM8xx BMC based on the Cortex A35. +config ARCH_NUVOTON + bool "Nuvoton MA35 Platforms" + select GPIOLIB + select PINCTRL + select RESET_CONTROLLER + help + This enables support for the ARMv8 based Nuvoton SoCs such + as MA35D1. + config ARCH_QCOM bool "Qualcomm Platforms" select GPIOLIB