From mboxrd@z Thu Jan 1 00:00:00 1970 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 B6128ED7B95 for ; Tue, 14 Apr 2026 09:39:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:CC:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject: 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=ca/gS5EFSqIkEuuCFdN1rfTydCSe2yUALOW5hpPv+40=; b=vZ0YvFGtn4gvo7 LodeI+xZjQIS0qnPN6ZEzPOWXjrBLD3FoIWpuoreYN7uPr9eC7z2tUrvL4m69FjNAyfItycQuC197 qSdyvzUzf99C18MZ0yT5k3brU2uHUMrEHLe696sC006gOn690Vzc217Ee90mzuQ6j2rHLRTJUw9uQ UMw34uiCWies0DQZPbyFVSr/I3NGbze5yCMBBHYZVs/sZ44ywI8HSnut2o5zhGyTXpV/J186ZoWle nG5Phvt+IrvB/CA+65PpicgkroDOfUiB7KoZ2LxZnf2Mh3IfsdTud6mhm5J+S+eTglxUN5LOtHI7L max0Nmwe63n65ov4YvRw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1wCaF1-0000000H4SP-3eYU; Tue, 14 Apr 2026 09:39:31 +0000 Received: from mail.aspeedtech.com ([211.20.114.72] helo=TWMBX01.aspeed.com) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1wCaEy-0000000H4R5-1r2E for linux-arm-kernel@lists.infradead.org; Tue, 14 Apr 2026 09:39:30 +0000 Received: from TWMBX01.aspeed.com (192.168.0.62) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Tue, 14 Apr 2026 17:39:15 +0800 Received: from [127.0.1.1] (192.168.10.13) by TWMBX01.aspeed.com (192.168.0.62) with Microsoft SMTP Server id 15.2.1748.10 via Frontend Transport; Tue, 14 Apr 2026 17:39:15 +0800 From: Billy Tsai Subject: [PATCH v6 0/3] pinctrl: aspeed: Add AST2700 SoC0 support Date: Tue, 14 Apr 2026 17:38:58 +0800 Message-ID: <20260414-upstream_pinctrl-v6-0-709f2127da33@aspeedtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIADML3mkC/23OSwrCMBSF4a1IxkZu2qRNHLkPEUnbG3uhL5JYF OneTR2IqMN/cD7OgwX0hIHtNw/mcaZA45Ci2G5Y3drhgpya1CyDTIlMKH6dQvRo+/NEQx19x7U TRjUOrCkVS7PJo6PbizyeUjs/9jy2afOGwIAUkEsQO60zXXLBK+q6+zkGSwcbJsQmYt3u6rFfy ZZCHP39dXKWK7wyBeRQ/P6ZJQduG4naVrqS2nyD66lZfSi5+KOopGhjpFPGubwof5RlWZ5yuje EPgEAAA== X-Change-ID: 20251215-upstream_pinctrl-8f195df0a975 To: Lee Jones , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , "Joel Stanley" , Andrew Jeffery , "Linus Walleij" , Billy Tsai , "Bartosz Golaszewski" , Ryan Chen CC: Andrew Jeffery , , , , , , , X-Mailer: b4 0.14.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1776159555; l=4874; i=billy_tsai@aspeedtech.com; s=20251118; h=from:subject:message-id; bh=UOLw5exKOpVOBldP6p6peilv1dAml0PpkZs0ua6wM+k=; b=jWCynplM4sCZ7CfML0zv/laGow7NfRxcsfDxRsu0rnY+QSaBwMkbXQLtHudi0aqRGweARYxm3 KURhZRhLl5EAg28sI1SpENoSAtfm0a2wy7yTFAQ564gdv/8qqMYfg8q X-Developer-Key: i=billy_tsai@aspeedtech.com; a=ed25519; pk=/A8qvgZ6CPfnwKgT6/+k+nvXOkN477MshEGJvVdzeeQ= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260414_023928_490522_07F84BE1 X-CRM114-Status: GOOD ( 14.47 ) 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 AST2700 is composed of two interconnected SoC instances, each providing its own pin control hardware. This series introduces bindings describing the AST2700 pinctrl architecture and adds pinctrl driver support for the SoC0 instance. The bindings document the AST2700 dual-SoC design and follow common pinctrl conventions, while the SoC0 driver implementation builds upon the existing ASPEED pinctrl infrastructure. --- Changes in v6: - Restrict AST2700 SoC0 pinctrl pin configuration properties (`drive-strength` and `bias-*`) to `pins`-based state nodes in the binding schema. - Move `memory-region` and `memory-region-names` in the AST2x00 SCU binding to top-level descriptions, and keep the conditional schema only to disallow them for non-AST2700 SCU0 compatibles. - Add bias pull-up, pull-down, and disable support for AST2700 SoC0 GPIO18A/GPIO18B pins in the pinctrl driver. - Fix the USB2 Port B XH/XHP mux selector definitions to use the correct `PORTB_U2_XH_DESC` setting. - Link to v5: https://lore.kernel.org/r/20260331-upstream_pinctrl-v5-0-8994f59ff367@aspeedtech.com Changes in v5: - Complete the AST2700 SCU0 binding and disallow child nodes that are not relevant for the hardware (p2a-control and smp-memram). - Add examples for both the AST2700 SCU0 binding and the pinctrl binding, ensuring they are valid against the schema. - Rework the pinctrl binding example to be self-contained and independent of the SCU binding. - Reorder the binding patches so the pinctrl binding is introduced before the SCU binding update, allowing the SCU example to be added cleanly. - Adjust the binding accordingly to restrict drive-strength to the supported values. - Update the drive-strength table to match hardware-defined values. - Link to v4: https://lore.kernel.org/r/20260306-upstream_pinctrl-v4-0-ad4e8ab8b489@aspeedtech.com Changes in v4: - Rename series title to "pinctrl: aspeed: Add AST2700 SoC0 support" to make it specific to SoC0. - Remove unnecessary SCU example from bindings. - Fix Makefile newline to avoid patch warning. - Make pinctrl data structures const and align with existing Aspeed drivers. - Sort the arrays and enums alphabetically. - Minor cleanups for consistency, no functional changes. - Link to v3: https://lore.kernel.org/r/20260120-upstream_pinctrl-v3-0-868fbf8413b5@aspeedtech.com Changes in v3: dt-bindings: pinctrl: aspeed: AST2700 pinctrl improvements - Improved binding descriptions for SoC0 and SoC1 to better explain the AST2700 dual-SoC architecture with independent pin control blocks - Switched from additionalProperties to patternProperties using the '-state$' suffix to restrict child node naming - Removed per-binding examples based on review feedback - Added additionalProperties: false at the top level for stricter schema validation - Dropped the aspeed,ast2700-soc1-pinctrl binding, as the SoC1 pinctrl registers follow a regular layout and can be described using an existing generic pinctrl binding - Updated the function and group enum lists to match the definitions used by the AST2700 pinctrl driver dt-bindings: mfd: aspeed: Add AST2700 SCU example with pinctrl - Added a complete AST2700 SCU0 example demonstrating pinctrl integration - Example covers both pin function/group configuration and pin drive-strength settings - Updated child node naming to use the '-state' suffix, following common pinctrl conventions pinctrl: aspeed: AST2700 SoC0 driver improvements - Refactored pin and signal declarations to use common ASPEED pinmux macros (SIG_EXPR_LIST_DECL_SEMG, SIG_EXPR_LIST_DECL_SESG, PIN_DECL_*) - Added SCU010 register definition for hardware strap control - Reworked code structure to better align with existing ASPEED pinctrl drivers - Link to v2: https://lore.kernel.org/r/20250904103401.88287-1-billy_tsai@aspeedtech.com Changes in v2: - Update pinctrl aspeed binding files. - Update the commit message for pinctrl binding patch. - Link to v1: https://lore.kernel.org/r/20250829073030.2749482-1-billy_tsai@aspeedtech.com --- Billy Tsai (3): dt-bindings: pinctrl: Add aspeed,ast2700-soc0-pinctrl dt-bindings: mfd: aspeed,ast2x00-scu: Describe AST2700 SCU0 pinctrl: aspeed: Add AST2700 SoC0 support .../bindings/mfd/aspeed,ast2x00-scu.yaml | 112 +++ .../pinctrl/aspeed,ast2700-soc0-pinctrl.yaml | 170 +++++ drivers/pinctrl/aspeed/Kconfig | 9 + drivers/pinctrl/aspeed/Makefile | 1 + drivers/pinctrl/aspeed/pinctrl-aspeed-g7-soc0.c | 749 +++++++++++++++++++++ 5 files changed, 1041 insertions(+) --- base-commit: af4e9ef3d78420feb8fe58cd9a1ab80c501b3c08 change-id: 20251215-upstream_pinctrl-8f195df0a975 Best regards, -- Billy Tsai