From patchwork Mon Nov 28 05:48:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chester Lin X-Patchwork-Id: 13057043 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 D5C6AC4321E for ; Mon, 28 Nov 2022 05:50: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: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:In-Reply-To:References: List-Owner; bh=1icMgshJwGzWvMmiYoHt6PQlIOtTcvopYNpdFLP9hao=; b=n5hK4jx4R1B4Q0 Ek578ZkilcfzkxhwLtlR59lcRN21xHnh/2gCTmQO5vbSc4GRtITF5wT1w2YwKfGoeJpHbWiIQhENv 7HvIKwwUb0nubeWSzx5p2bWWrogkB0RmFVR2kkOspkYFroWe31XymmtYeB7WQ2sInitdtttkFmZDl lPy3i0Sf5X9WyQHACevtpBYyYJ4WylUSzaVzyzf4u2nRlP3ZEdnjkr/AdnnRpkXbQ70Rc4ZqVwzp3 Tj5pSQxS4kH2juKOWi9KqMbuZte9TXyXCwSq4gL1nXONsA/qU4bIf6Mxm3H58SyzUBb00j0bVXQsJ I5h0QGstPOnoAM3VR28w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozX0h-00GTLz-Ba; Mon, 28 Nov 2022 05:48:55 +0000 Received: from mail-db5eur02on2060f.outbound.protection.outlook.com ([2a01:111:f400:fe12::60f] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ozX0e-00GTHd-0S for linux-arm-kernel@lists.infradead.org; Mon, 28 Nov 2022 05:48:53 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dy7xOc7iCc6IJdVONQtN//nXa0UpzLfEs/sDYwq7iodwbbd21tehnPaIWBXqB6233J6ZVUrFWKrikfC5IzHA0hO46NhCktMbANgfnfBHsFJ3jObEVuh+CtFbWq1IkpStpfKNFnoSql4ioj3CulNaMQgsVNPunvzbf8b+kdd5HT6tvH6vzocdxnvsyHcWCZxJHebof8Ql3gzh4gbBDDWgFbwINqMH4N7GHaj8WdawX3Cz7+MhRJuzaSkqwTN0KkVtEHQwfG4wQBx5djuMTDj/8F4YKazlkW5XLJEhNYDfOVnxFDRpkxIG/Ql+J3SXW9JcNwrdhSTSwwXwczdMSAWaoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mcqryaXh2osR+0q4xR/lUluYb77/5Wvx8TRRFuAMHSo=; b=M1QeDF8252Bn/OSYsIctEo0n1TCcXbXjLEyAGZo/qL2dCbuPxP+0K12nl5YgQxYdziDaRaPO5nGo11I+N+nPDSTgWS4rkfEfV986hK5oYjKuNNF8ziyUHxxq/jVTpZiUSiIDyKMKqr9Dsf7t7q3DjlmZIEGyGwmKMelCd6yL9jZrvXomOlw5Ys93fxMxIWtDKvjUnVL0OWlnTQHxu/ewaw2LjUsNddsnP0y2xRZVhN+6c36G+Mcq8fe+BEpBnr8xJkCw7po34wFTCT8KSrWwWHMhCXjjxFBvYMqouJ/WQHFngGiLk5WHbjEWGtRb39vdjlW2eyFgquxqAQVEQGyogA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mcqryaXh2osR+0q4xR/lUluYb77/5Wvx8TRRFuAMHSo=; b=L73Jf9tx0wDWZfKwYwO0uxO+fZdvDFZsjgKMfg8KRBLmts2UKehNGvZjC6vYsCPcHhG74WMcQs9tZgxJzp2dX1ASiblCo30NzeEuQ205+bAe43p1kaCIgp/bb32GwQnpA6aHteW9sm6kioLGXYngAizupH7mTBgPkyjvVLq0sqP83Ffw+CzRe7MmzmScCZmQ1G5Xcxrj5G6unRErchwg4Dyx7Mc6g6nghwOox/KR57v7Ii1j41LBHFX88kSSgaz3+0Ukzv/+6rjZ86NaxjE0woKITxXpUnAsJst0Dzw1cdxRYPQqgOXYdQnKpl4uFvSKlV+ZANXcZFlpqE/bXC6/PA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com; Received: from VI1PR0402MB3439.eurprd04.prod.outlook.com (2603:10a6:803:4::13) by AS8PR04MB7829.eurprd04.prod.outlook.com (2603:10a6:20b:2a7::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5857.21; Mon, 28 Nov 2022 05:48:42 +0000 Received: from VI1PR0402MB3439.eurprd04.prod.outlook.com ([fe80::28d6:1b8:94d9:89f5]) by VI1PR0402MB3439.eurprd04.prod.outlook.com ([fe80::28d6:1b8:94d9:89f5%7]) with mapi id 15.20.5857.023; Mon, 28 Nov 2022 05:48:42 +0000 From: Chester Lin To: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Dong Aisheng , Fabio Estevam , Shawn Guo , Jacky Bai Cc: Chester Lin , s32@nxp.com, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Pengutronix Kernel Team , Larisa Grigore , Ghennadi Procopciuc , Andrei Stefanescu , Radu Pirea , =?utf-8?q?Andreas_F=C3=A4rber?= , Matthias Brugger Subject: [PATCH v2 0/2] Add pinctrl support for S32 SoC family Date: Mon, 28 Nov 2022 13:48:18 +0800 Message-Id: <20221128054820.1771-1-clin@suse.com> X-Mailer: git-send-email 2.37.3 X-ClientProxiedBy: TYCP286CA0137.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:31b::15) To VI1PR0402MB3439.eurprd04.prod.outlook.com (2603:10a6:803:4::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR0402MB3439:EE_|AS8PR04MB7829:EE_ X-MS-Office365-Filtering-Correlation-Id: 747d59b6-0280-4bc6-5809-08dad1043478 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: N2kXiEKNfaT3UjEi+fzFulWOTQ3JMYdADet8qXhnDlf+0tWru9qQb5aDTpQx7C+JAjIyI5eCk17Kr+q2U1uOK4zpnNpJ9StAvoJ9Ax/VUOGDfr0zIQs+VXesqMD6Or0xmX4/bq2gctyvbYsHvFDYR27sYq/ASItggShssNAPkvXKLAQjNxSAXOya/Mwwa2CNYtfrlxaUd+thZGx8eqYZq7+ZYWEV1mpbCtqtG6atq8Fta6MOpS5nljUZfSBwbzetFPaag2diU4U0FLHK4kEc0QzcIIkiabo7b09riCG/j9CEjkw0jxj2VjMFvC2WyeCnBJXaSFl0dfHRnfBUP4SqaUCGWw1NA+DBHAjNl6vfZeM++u5i3GeBwJ+PLL25Cp3ma8f2AEckH92vztDCZSXDVWfshgevoMkgFgWnjkNMoh5m3mmxKUDksTS/iQvnjd0sQDdw//GJvfKYCjykUVgpsQL3QOjH5X9PZtFQbDWtnfDGAcR9gRzyjVq/G1SP+cYqdHLly5ROkJRDY08O6cAawEPTTK6ARsH6tHsYIJY2OOhVKffKXvoA1sRgSs86EjfaJ56bjhlcGvveEhVAge19hpps+sOrE9MW6a9ldFy4l10KMppgnCpAjjeb3rGTuBvGoz34NGUOAoEFRrqjAITrqOCcVOgmCZ7xgYzSCxc9p7g= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR0402MB3439.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(39860400002)(396003)(366004)(376002)(136003)(346002)(451199015)(86362001)(36756003)(186003)(316002)(1076003)(54906003)(41300700001)(83380400001)(66556008)(66476007)(66946007)(8676002)(110136005)(107886003)(2616005)(5660300002)(6666004)(6512007)(6506007)(4326008)(478600001)(966005)(6486002)(7416002)(8936002)(38100700002)(2906002)(66899015);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: lwnvMG4n0MTVEzQ9XRDldvEn7Ek+z56nZ1oaZ0hqHF3b1ifkYMMUpCyWoZhxKJnYOcIJxqS9m/tTQBOXq+JDKMl4xdlxFXgICGXnaUzzk0UAa04MaUWepO8z6NZ8KtdEIX3z2MF8/66N4ogBmwz8ORlGmWJQJIabmViCfo/5JAtQgetJNMbqo15zavpp4Ms8XoQ1O+zbV8rsQsjWg+fLiQzXIUD/+SKfr3+vacT8CYF1ptjw5IA0qeY3c+SBIU6KgPmlt+i9XZYpT9NcnnBV35bfixEGfCaCh4V8jp1ORFdAi8WYSIF4V4DcMiUMp399n9X/G/h/PLq5pEe4SzG9HAUUPluj9oOQbfxvC1EHzegEKF0MKl9zzfGLYjm+/0iMS+m6QNgseFt2QZKNgmXfx9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2Mua6EjdrIkV5Q6RJd1VgBVf98hquz7xYp8HC5pGeh1lLKg7LsMzKg1p+bxQH9vnEAqRW3AlFtO1q4a7Pf6n9dQJl4eWJYNJtiVSw0IlZRhdIjcmlyd9BjCoI2kMSV3VqE763gMApseiM4U9uumN1h6TyhmyaWexyOdajzJe2Y93zEMu0cJt7jh X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 747d59b6-0280-4bc6-5809-08dad1043478 X-MS-Exchange-CrossTenant-AuthSource: VI1PR0402MB3439.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2022 05:48:41.9066 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OCWQazlOq5lxJryuF7TYztqjNZElA7WpjjbiTqXc3l/vj4iTtarYZFKywoB5/4xI X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB7829 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221127_214852_090980_25E96852 X-CRM114-Status: GOOD ( 14.00 ) 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 Hello, Here I want to introduce a new patch series, which aims to support IOMUX functions provided by SIUL2 [System Integration Unit Lite2] on S32 SoCs, such as S32G2. This series is originally from NXP's implementation on CodeAurora[1] and it will be required by upstream kernel for supporting a variety of devices on S32 SoCs which need to config PINMUXs, such as PHYs and MAC controllers. Currently, the whole architecture relies on FDTs offered by ATF[3] on CodeAurora to keep the flexibility of handling multiple S32 platforms since now S32 clks can be triggered via the ARM SCMI clock protocol and clk IDs/ settings can vary according to different board designs. To ensure that the driver can work properly, the dt-binding schemas in this patchset are still required as references. Thanks, Chester Changes in v2: - Move the "nxp,pins" ID range information from DT to the driver. - dt-bindings: - Fix schema issues. - Add descriptions for reg entries. - Revise the example. - Refine the compatible name from "nxp,s32g-..." to "nxp,s32g2-...". - Fix the copyright format suggested by NXP. [1] https://source.codeaurora.org/external/autobsps32/linux/tree/drivers/pinctrl/freescale?h=bsp34.0-5.10.120-rt [2] https://source.codeaurora.org/external/autobsps32/arm-trusted-firmware/tag/?h=bsp34.0-2.5 Chester Lin (2): dt-bindings: pinctrl: add schema for NXP S32 SoCs pinctrl: add NXP S32 SoC family support .../pinctrl/nxp,s32cc-siul2-pinctrl.yaml | 125 ++ 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 +++++++++++++ 6 files changed, 1996 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/nxp,s32cc-siul2-pinctrl.yaml 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