From patchwork Wed Dec 21 07:32:30 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chester Lin X-Patchwork-Id: 13078489 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 87C6EC4332F for ; Wed, 21 Dec 2022 07:34:14 +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=gtJvyVr4ISoAxGslFIoS2SqmHKzNfbxz82E9cFWh2JA=; b=Cto8Hbd3S0HPul WKpKL/X7bUq6JKACIIN5p9we6qWz5qlE2vjbIp08h6LChlRV2JTKzeox4LaivoQ6VLOKaAmOPdhLg F3mKbUfduLwdwa8LtZFqQVlb6EUIxh9lWjaUFG11TLM6De8ApnykJi/XD8TMo60E9z5x2vIgzeGy8 /y+K6z/8oPnhlqE1Nzb/CrX7/viGJCBa1O6f7Hy2CnB9hMsLGKZGBNRw4BEd8VbsXZza3Z9/E2Cpw 82TE+POUVqBO0Eye95POitsuCsOLgFVTvyQEcLZOYSmPpIwLQ/vG/gq1mseWM7LJxJwyPipRIIaav V1hJgCgLItzeVHOyP2vw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p7tb0-00BXIC-UZ; Wed, 21 Dec 2022 07:32:59 +0000 Received: from mail-db3eur04on2054.outbound.protection.outlook.com ([40.107.6.54] helo=EUR04-DB3-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p7tax-00BXEl-47 for linux-arm-kernel@lists.infradead.org; Wed, 21 Dec 2022 07:32:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=l8DijXH1ITfkfDN7gsimSpVZzLv2QDdTYix5Wvb/fISf0RETriHUhNpbAnBvn4AQF2KM5cLCHDsFSBiUWS/JCYkMbx1SaIDkByYknLGX2/uaSbNTnpN+qvK/5QS1jh3d1Crpc9DXOv7tf4TLOJztYDm5svAgVO4+VRbUZrS8AeUSv//DGGoNFIHAkWlxIzzAL1pCq8SV0nxdobsuJgYjY6l8VpQ230JbKXuvmZ6TVb6oFoxPDCUXwfRzrs0URa5sUxfBxaFjRkfHFFBnFmOpDZl9lMgMQzK05sLCdVKdowNoVzZ9mPFDoXQwsyEy8Gyo7QYzT2Z4Hh6+HvaXB0P+UA== 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=ZupERb9kGlftVhBB1DAPJc1cBskYrBt/iLqK1wJ8+Ps=; b=fjnM2ve8prLVVIoNRqp+YmVWbTalaDUTjwsLNNn8FbCJ3G2vckVVoSxaeg5ykdMBWjOI201AS4zREXhsZ9OGuZ9LcakjzImZnqpJSjFls1RD7m7vwaeMNgk5dRX4TsPjPgG4Er1IaUnefhMdUsFkOn4ryo4Z2+znyKaqhEgWOaU9KVaDFxT5tfVk4hZ7rdbeo4RSuihd1T2IRXTVuth4cD7RUxY/JiMb2iRJxznBn/3gJ5q2M5vXeODWTc1H+loEbZ45jC6OyXP7hajV4d4ZSRuy531PPbj81XQ4ookF619b3JxRNj3mgMiwLZNqk7JZgeb4waTnDp17Cd932tOseA== 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=ZupERb9kGlftVhBB1DAPJc1cBskYrBt/iLqK1wJ8+Ps=; b=HyFawUy/ltAJfsGo/xwzcxj1FAoEdy2wcXBBdrst4y6Ssvc8MJcC9+vxSDNAciQ8qSDjuI4hOxMp/Vl3BEoer7YQRcBk6ajZE1YwK++giRqCuqE1caTiYEDwGIrQX1dQsgGPcAeuKpAemQKp3J7/xwDHV4HtvaUjiG1rcpykQRzcuNMV0ZHtYUYENwrT24dpL7yehA+KMn5aGsgd1TLVvRbVyaGLfObrz5dxafdt+6Sh+0VJyQa0ERSRZvZ24xEwScUAEq91oDgkT9LUgX+xBZj4J/x6V9V5LkPzqqWZxWMkcfg5aJjmPrkOyQ9XLL4QFXGYyXD28X04iLN7r/HNnQ== 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 DU2PR04MB8917.eurprd04.prod.outlook.com (2603:10a6:10:2e0::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.16; Wed, 21 Dec 2022 07:32:48 +0000 Received: from VI1PR0402MB3439.eurprd04.prod.outlook.com ([fe80::9028:2d9e:dbd:b5c]) by VI1PR0402MB3439.eurprd04.prod.outlook.com ([fe80::9028:2d9e:dbd:b5c%7]) with mapi id 15.20.5924.016; Wed, 21 Dec 2022 07:32:48 +0000 From: Chester Lin To: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Dong Aisheng , Fabio Estevam , Shawn Guo , Jacky Bai , =?utf-8?q?An?= =?utf-8?q?dreas_F=C3=A4rber?= 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 , Matthias Brugger Subject: [PATCH v3 0/2] Add pinctrl support for S32 SoC family Date: Wed, 21 Dec 2022 15:32:30 +0800 Message-Id: <20221221073232.21888-1-clin@suse.com> X-Mailer: git-send-email 2.37.3 X-ClientProxiedBy: TYCPR01CA0160.jpnprd01.prod.outlook.com (2603:1096:400:2b1::13) To VI1PR0402MB3439.eurprd04.prod.outlook.com (2603:10a6:803:4::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR0402MB3439:EE_|DU2PR04MB8917:EE_ X-MS-Office365-Filtering-Correlation-Id: 11a19deb-e6f3-4161-4370-08dae3258f24 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 06EWLnzAz3EUEsZQB/WD+UQw3zvIhV9LjMlNVjkL4hnmG0Qljd4RmH8P5Z2Xl5E7tkC/GEkaIS7vljWMclvQOpIM+r4HlM8vNa6a6k7vAoTvjhUlPzLPqV776mDKu4hA8zmCTJ6UeKVsOWwebeg+5qJuPmb4rC3NOoI4pnLHMOW+xr8y7HmCBsc+V41DSgTd6CaxraduxhdG7tJds27iHbrEriqEHmp/zbD3KsvBwcokM9mH4h1k672hDU2Asj9vEnCf49JqoiEtRFz2msYYCSUfNf3BehVdTTwgjO0/LvB5OEpEeIt6HmattqJn8FrvK5+VOVKYeh5+gqVpFyDPZHHYoWZdWt+bGACTXitGphZW32sQ5/Hojm3THpC+BUxvv8OPYBh5PcTaJasKDkS4FQrKeGGQXB0m1PVl+0zzyWLbgm5MTrR9irXI3ZHt5ewbF3SdD87vwPgVZXME0nbhWvJ5n6UuUo/iVPHyzCxVfkDYBVQSGkrBuzlm7O20jVO7mYrBtLogMtyE+qY8ZEVJ+HMTCGiqxKdFLMJYMltpu1Cfjw/A3kdqTPXxOIMg9zjC1kP5VpjUS4d/7flUiJ5QvODk2x4iwxKeDFdBd2Lbk8buzR+9gBBa0oqV8Xf0lUH/gso7IKmWYjYJUXWNV6po4Vb6CI39RrGgf4OYgnnsZU4= 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)(396003)(346002)(376002)(39860400002)(366004)(136003)(451199015)(38100700002)(36756003)(6666004)(86362001)(316002)(6512007)(54906003)(478600001)(6486002)(26005)(107886003)(966005)(5660300002)(6506007)(110136005)(8676002)(8936002)(7416002)(186003)(2906002)(66556008)(66946007)(1076003)(41300700001)(66476007)(4326008)(2616005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 7VM4Xq9OETheHm5JHjKor1QXxrUVI9JCxeP2IstE0ItlUy0iaidmImLf1+4W2gZe4jPep4uW8P6HUovqO9Vmmrzm7DXA5MlXjIjdkjFVcp3qb2D56tCcBBMosXU+EvIERKw3r5i3y7KeVJ5mG+nrLRpw5vkYP8//AAhm6sDRgPjZ4rd4MDHCeRl1G0k5ynsVDuacfgYg2CC6llagzO17j/HnRrQCk2EBKNxaxC+9jvtjkyz5kLWzmhe4kwRgkOP5Wd7RpIZnXT8QwzKxpLdZBynUWqKUZg6NgC7ZTw/IhJW1/1AWRBpSbMoViq/YfkcS+gItwRlVDIdxQej6zBYd9nBZly6/ShR+QqI86xpibOc58F3/0fE4+o+74K8dVDh4pDRZc0Ba0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fLPZToCnIjSnr1xdgYVWUxAUda6xL3AzbSg5mZ7pVtmFcot2Lq55fkwYxUgJXhk7cOVr40PCx4jwd6ag/s0IOyxeeYPADFFGON0a+iN7WJy2M= X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 11a19deb-e6f3-4161-4370-08dae3258f24 X-MS-Exchange-CrossTenant-AuthSource: VI1PR0402MB3439.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Dec 2022 07:32:48.2253 (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: lnC1vf+BG4Wl7zoFIkwdppDZZWhlTtbRU9TCkvkAE8lXMTh89yPJ9YZDwbetKUO6 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR04MB8917 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221220_233255_231295_7276DC30 X-CRM114-Status: GOOD ( 15.16 ) 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. Thanks, Chester Changes in v3: - dt-bindings: - Remove the minItems from reg because there's no optional item for s32g2. - List supported properties of pinmux-node and pincfg-node and add more descriptions. - Adjust the location of "required:". - Fix descriptions and wordings. - Rename the yaml file to nxp,s32g2-siul2-pinctrl.yaml. - Rename pinctrl-s32g.c to pinctrl-s32g2.c - Adjust Kconfig options [menu-invisible] and names [S32G -> S32G2]. - Add .suppress_bind_attrs - Drop the .remove callback and replace the module_platform_driver() call with builtin_platform_driver() 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 Chester Lin (2): dt-bindings: pinctrl: add schema for NXP S32 SoCs pinctrl: add NXP S32 SoC family support .../pinctrl/nxp,s32g2-siul2-pinctrl.yaml | 129 +++ drivers/pinctrl/freescale/Kconfig | 14 + drivers/pinctrl/freescale/Makefile | 2 + drivers/pinctrl/freescale/pinctrl-s32.h | 76 ++ drivers/pinctrl/freescale/pinctrl-s32cc.c | 983 ++++++++++++++++++ drivers/pinctrl/freescale/pinctrl-s32g2.c | 773 ++++++++++++++ 6 files changed, 1977 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/nxp,s32g2-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-s32g2.c