Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp825370rwb; Tue, 29 Nov 2022 05:58:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf5naIHWJar1QR/NdGAoASfsmIW5uq5r7tYK9UZzcbbx0Mwmk0Hf+WfLCnvnx9lp4iPHpwLH X-Received: by 2002:a17:90a:ea05:b0:20a:a1a8:3719 with SMTP id w5-20020a17090aea0500b0020aa1a83719mr59871095pjy.225.1669730312663; Tue, 29 Nov 2022 05:58:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669730312; cv=none; d=google.com; s=arc-20160816; b=KFoZRejyNzodcqn82JislFaihqhF4+c1zS16muDpdmdX3RosO6f1/g5/FgEaProQb5 FPwGe/jO46i/sOZ0htLk/sQEMsEa7CPDOZ5gXsUb7M+xWwd430RaRno9Zx+838tt0u6D GdlF5LhXdTg5SeZr7Tvdzdvl4af4y71QSPoMqEbhd36ZvbcTPfjmprf/MbBJH0Law0j6 jtayfRxRlspHGx7P195QJR03IjhH3y+NBZR6k1vf56yHNNZePXErNw2hGv2tuMpUghBU ZRgs+TeF6ZGhYqD7jhiVo5Jbb/xSbV+FfQtmqdgbN2gtnI42B0F6OHm0zabLxIk5nogu DB5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature:dkim-signature; bh=FFsalh8bL4seyyKkE319sRhzziNPYV9UGJT999sCXDo=; b=uSlmiz6nbm1E15NBsbGeloU0NLAqFSAjOmMPDRT5zK/16QajA31ryzhG8ibKSq5MJk n3n2Gq5oVddCfy9z22Of8iTiFaTcTMa1a0hWatgCbFSSQymROWbV6Sy0HH845W1fhkPZ CAKZsP3uYw0sr1rJtDCEqTwahJC/r614+KafRSdH5OWDL3VmIYPhkXun8nlVbr89poZ4 gsWVtZYeWVVETC5qBwfjqgtthw1aQBAX9FdxZ7lfX/M6sTCo8d8xcouE+lUzIOB0fNG4 6WKz7srS1DEYDg6NLPvUxz2NyML+pgqD9HnbAzBPm7awNXQo7fdQrxyV/mTNJs/BVQxi SFsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=m9WbLzPV; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j23-20020a635517000000b00476f87434easi14553775pgb.711.2022.11.29.05.58.22; Tue, 29 Nov 2022 05:58:32 -0800 (PST) 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=@suse.de header.s=susede2_rsa header.b=m9WbLzPV; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233627AbiK2Nkm (ORCPT + 84 others); Tue, 29 Nov 2022 08:40:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbiK2Nkh (ORCPT ); Tue, 29 Nov 2022 08:40:37 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABF2B5ADDD; Tue, 29 Nov 2022 05:40:36 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id BF45521BDB; Tue, 29 Nov 2022 13:40:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1669729234; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FFsalh8bL4seyyKkE319sRhzziNPYV9UGJT999sCXDo=; b=m9WbLzPVNWEkBg6MGv11dvKu7IToHgZmiCDgZkWECgG0NB/Owh8Q9BgC1zcvM/JmMGkbTb jd569w58ZKyKPrcZzZwB1Li9s51hGEFvPUyOwTqmh9HHzvsRLa5CstbFKWmDSAQxPQqLbj TpmF/9TAknfbBDV5rCzVrzgLluCTKv8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1669729234; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FFsalh8bL4seyyKkE319sRhzziNPYV9UGJT999sCXDo=; b=RTQVPYO1oq66qprUyOmWT/IRpN3Axbu+HHCH9tolKTPwz6c4HXabaecB4DLAlb+jqH94oA iAJO1eYntazK8bAQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 8CFBB13AF6; Tue, 29 Nov 2022 13:40:34 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id eWoTItILhmOsNgAAMHmgww (envelope-from ); Tue, 29 Nov 2022 13:40:34 +0000 Message-ID: <3276c36e-7dfe-ce2d-14d3-20dab732bd76@suse.de> Date: Tue, 29 Nov 2022 14:40:34 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [PATCH v2 2/2] pinctrl: add NXP S32 SoC family support Content-Language: en-US To: Chester Lin , Dong Aisheng , Fabio Estevam , Shawn Guo , Jacky Bai , Pengutronix Kernel Team Cc: s32@nxp.com, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Linus Walleij , Larisa Grigore , Ghennadi Procopciuc , Andrei Stefanescu , Radu Pirea , Matthias Brugger , Matthew Nunez , Phu Luu An , Stefan-Gabriel Mirea References: <20221128054820.1771-1-clin@suse.com> <20221128054820.1771-3-clin@suse.com> From: =?UTF-8?Q?Andreas_F=c3=a4rber?= In-Reply-To: <20221128054820.1771-3-clin@suse.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chester, Am 28.11.22 um 06:48 schrieb Chester Lin: > Add the pinctrl driver for NXP S32 SoC family. This driver is mainly based > on NXP's downstream implementation on CodeAurora[1]. > > [1] https://source.codeaurora.org/external/autobsps32/linux/tree/drivers/pinctrl/freescale?h=bsp34.0-5.10.120-rt > > Signed-off-by: Matthew Nunez > Signed-off-by: Phu Luu An > Signed-off-by: Stefan-Gabriel Mirea > Signed-off-by: Larisa Grigore > Signed-off-by: Ghennadi Procopciuc > Signed-off-by: Andrei Stefanescu > Signed-off-by: Radu Pirea > Signed-off-by: Chester Lin > --- > > Changes in v2: > - Create a s32_pin_range matrix in the driver for replacing the "nxp,pins" > property in DT. > - Refine the compatible name to "nxp,s32g2-siul2-pinctrl". Thanks. > - Fix the copyright requested by NXP. > - Remove a few recipients from the Cc list since these email addresses are no > longer available. > > drivers/pinctrl/freescale/Kconfig | 16 + > drivers/pinctrl/freescale/Makefile | 2 + > drivers/pinctrl/freescale/pinctrl-s32.h | 77 ++ > drivers/pinctrl/freescale/pinctrl-s32cc.c | 1003 +++++++++++++++++++++ > drivers/pinctrl/freescale/pinctrl-s32g.c | 773 ++++++++++++++++ > 5 files changed, 1871 insertions(+) > create mode 100644 drivers/pinctrl/freescale/pinctrl-s32.h > create mode 100644 drivers/pinctrl/freescale/pinctrl-s32cc.c > create mode 100644 drivers/pinctrl/freescale/pinctrl-s32g.c > > diff --git a/drivers/pinctrl/freescale/Kconfig b/drivers/pinctrl/freescale/Kconfig > index 7a32f77792d9..fdd8f5492830 100644 > --- a/drivers/pinctrl/freescale/Kconfig > +++ b/drivers/pinctrl/freescale/Kconfig > @@ -217,3 +217,19 @@ config PINCTRL_IMXRT1170 > select PINCTRL_IMX > help > Say Y here to enable the imxrt1170 pinctrl driver > + > +config PINCTRL_S32CC > + bool "NXP S32 Common Chassis pinctrl driver core" > + depends on ARCH_S32 && OF > + select GENERIC_PINCTRL_GROUPS > + select GENERIC_PINMUX_FUNCTIONS > + select GENERIC_PINCONF > + help > + Say Y here to enable the NXP S32CC pinctrl driver core Does this driver core make any sense without a specific driver? I.e., could this just be a menu-invisible internal option if S32G is the one the user needs to select anyway? The alternative would be to leave it and have S32G depend on it, creating a submenu structure, but that would then still allow to build the driver core without any users. > + > +config PINCTRL_S32G > + depends on ARCH_S32 && OF > + bool "NXP S32G pinctrl driver" > + select PINCTRL_S32CC > + help > + Say Y here to enable the pinctrl driver for NXP 32G family SoCs s/32G/S32G/ > diff --git a/drivers/pinctrl/freescale/Makefile b/drivers/pinctrl/freescale/Makefile > index 647dff060477..ceb0f61c6215 100644 > --- a/drivers/pinctrl/freescale/Makefile > +++ b/drivers/pinctrl/freescale/Makefile > @@ -33,3 +33,5 @@ obj-$(CONFIG_PINCTRL_IMX25) += pinctrl-imx25.o > obj-$(CONFIG_PINCTRL_IMX28) += pinctrl-imx28.o > obj-$(CONFIG_PINCTRL_IMXRT1050) += pinctrl-imxrt1050.o > obj-$(CONFIG_PINCTRL_IMXRT1170) += pinctrl-imxrt1170.o > +obj-$(CONFIG_PINCTRL_S32CC) += pinctrl-s32cc.o > +obj-$(CONFIG_PINCTRL_S32G) += pinctrl-s32g.o [snip] Regards, Andreas -- SUSE Software Solutions Germany GmbH Frankenstraße 146, 90461 Nürnberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nürnberg)