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 887CBC79F9F for ; Thu, 10 Sep 2026 10:05:00 +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:References:In-Reply-To: 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: List-Owner; bh=0ufu9AzhKj4yeP0SspgXFkiueyWh/TVov6b4oiJkZ7A=; b=KH2HSjMyUOcuxy NRYKtIeYQhpHfXNKjzPxgq0OyKKHqxPhWn3/F98BOpbWhT7QOy8U3/zZd+XLF3Htj9vyeyZwgStzm yD+4vX56MNHIkW02YlnNnMU3nI1wRb8PD52uQa4Brz1D7auxFDpggJm5umEfMlpve38mXCY1/9FNO 3gz7tMK34gyjdsh8K8Dd5DQN7drCZ+TrfudU/BSqtPyd5ATPv/4exs11IPCikJcRt51W7D9NSv5jN FPSLBsJfXYxm9gv+z3uCo3dJBhM+fKWs2COpnzvqWQgSC/fCYb60gEk7JFcOc6gZLHJnE1/Lo8y0X l5zsbvS/Lg4r2SN0eB+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x4beF-0000000DyCo-10y9; Thu, 10 Sep 2026 10:04:51 +0000 Received: from mail-sh0chn02on2128.outbound.protection.partner.outlook.cn ([139.219.146.128] helo=CHN02-SH0-obe.outbound.protection.partner.outlook.cn) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x4be9-0000000Dy3J-35VX for linux-riscv@lists.infradead.org; Thu, 10 Sep 2026 10:04:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VmhRssj65AXyO2LzrFpNhNW63BJJa3boyO93nmSQFRDWNybJlGbI1yUhrR8P2f4U9+K9gh9fmDpkUfhd4kuoRwlOYAGBmEMJ5qN7eKvA6W2iHsQLfGODXjr34PQ1xPKTOsgUvYzpX1AcuL8L7lhrOGM8LK4ILv/5VsNcdUiPWV/GE8/MjtaA7aJQWXoeSC06Gf1yPlFcH+yO2l4xARu6ydqdujshRq4kyHZo1nnm9Ppusp6DJI+sVB841Bo4Ve9bNGSE/IRaYeNFW0+6Sb1AWDz8UVh4EcUSAkx0mB2Vl4/qPXMLb5BYSu946ox1kk7f+cjIIB5vj/GUjKA4/7j+Mg== 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=DrZ71xWltjKDDUpPmo0hfNI3YhejW4iSmty0oVA0ufY=; b=Y17RpteRK4PH4UeB1gQwb5SVB60PfKpy01N21adHJu0nPTFJXAo0gJDAxA4zZ1BBZz8369o/FChWxWg9XwCR5usz0Iz8UrtouEjqrVDjh28+3Goh1LyshpZg8Fbmb0cJC6wgS0D5RDvQgb/xnmdqZ2JA+oPMb3WhVYBvRrcIL4tNALegATEg7eVNVapDCGZ/A2j07vAKVHK+5asFwYMa4tNKB75Hz4Shm4MGsFYWxItlvRc8dBRYcrpeqGcD6VhDHHB6jCNABOEnl4LAvUFpLgHRiJK6WpwfrMTG+Ev+eYhgGK27Pi6svgdJmwvhd8r+9lEGV1kK1IFNxn/FztD30w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; Received: from ZQ4PR01MB1202.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:17::6) by ZQ4PR01MB1170.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:17::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.339.18; Thu, 10 Sep 2026 10:04:29 +0000 Received: from ZQ4PR01MB1202.CHNPR01.prod.partner.outlook.cn ([fe80::e7d4:256c:b066:850d]) by ZQ4PR01MB1202.CHNPR01.prod.partner.outlook.cn ([fe80::e7d4:256c:b066:850d%4]) with mapi id 15.21.0339.017; Thu, 10 Sep 2026 10:04:29 +0000 From: Changhuang Liang To: Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Paul Walmsley , Albert Ou , Palmer Dabbelt , Alexandre Ghiti , Philipp Zabel , Bartosz Golaszewski Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, Lianfeng Ouyang , Changhuang Liang Subject: [PATCH v8 19/22] dt-bindings: pinctrl: Add starfive,jhb100-per3-pinctrl Date: Thu, 10 Sep 2026 03:03:54 -0700 Message-Id: <20260910100357.130134-20-changhuang.liang@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20260910100357.130134-1-changhuang.liang@starfivetech.com> References: <20260910100357.130134-1-changhuang.liang@starfivetech.com> X-ClientProxiedBy: ZQ0PR01CA0035.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:2::21) To ZQ4PR01MB1202.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:17::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: ZQ4PR01MB1202:EE_|ZQ4PR01MB1170:EE_ X-MS-Office365-Filtering-Correlation-Id: 7761236a-6fc5-4d15-b888-08df0f22e769 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|23010399003|7416014|1800799024|376014|52116014|6133799003|3023799007|10067099003|18002099003|22082099003|56012099006|38350700014|921020; X-Microsoft-Antispam-Message-Info: nDFaOH+hjuCRROUVM1UM9VlV5Ifb5i6yxhGI12kvfjrcSQj2ucg3+GgqM9rCcys+rF92gSvtovS6BC9ctmF+Ggf5vJZPOsBU/EDiyRrOOH2ixNdUqzCady5+kUb2jSr5rQRBlTeG1yKb1pkrxhyuyFqacMMNRIZYKu/hzEaVsqZEa0IYggYFs1uIy1KB9r9E+b9iOdJUgj7adzOFxDbWtfllSVL09VzL3be7zD0a8WQxPdSsymp4VdxKwYntjLrMbGf5YsYHykqS/iMWumbcUazMZgtwnszSdSRWDsX5iPwQLDsuiJOmZXwKBvnAX9UHC3wR127UoZKlMOv1wKCqNWb74fCSgAbaTw1zYJy0dNIabQHX7PvnH5qzWTTLdqffDzUM8YXewUl9rKQ52neFP7mC9N6OyqQnesI8LcxFtuKgJzU6ecsl+D+/wjQjzpaWD9jOhRQHs5eGtQxSWXN8kOoGYpei7JZYflPJHI9YtkO7ayIzuCTeVj5B4FC+xJpKvc57BmMx/I4Fvaos8nvPKPwROfhaaJYta72etkrJi6nCmOd/i0RBUSXgnBbtaEYf8BuG8a4ScoLogAUx5cOJ9Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ZQ4PR01MB1202.CHNPR01.prod.partner.outlook.cn;PTR:;CAT:NONE;SFS:(13230040)(366016)(23010399003)(7416014)(1800799024)(376014)(52116014)(6133799003)(3023799007)(10067099003)(18002099003)(22082099003)(56012099006)(38350700014)(921020);DIR:OUT;SFP:1102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?4M0zxIUhW6j3z0jdIp8K9K5P7YyqombP1UaXwqaLxSD051o5d9CNX88XVEtX?= =?us-ascii?Q?T3nSZAnDVBlgOYqpdcmxaI2p837r7hmnJOFHrlgk5o7jq9K1gKj0?= X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7761236a-6fc5-4d15-b888-08df0f22e769 X-MS-Exchange-CrossTenant-AuthSource: ZQ4PR01MB1202.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2026 10:04:29.6549 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /yw3bEKQhVRnBoRKxFJzvBLaqZo1o29abEFmozmOF8CW/lH12J9K1RuBWb5KL53grgK9tU1x9iRZZUAyTvj+CIuYvHW45dt5KNKZ0qpjLp33gBJg8qcXZ381/CTGewWG X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZQ4PR01MB1170 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260910_030445_835175_503D620B X-CRM114-Status: GOOD ( 16.76 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Add pinctrl bindings for StarFive JHB100 SoC Peripheral-3(per3) pinctrl controller. Signed-off-by: Changhuang Liang --- .../pinctrl/starfive,jhb100-per3-pinctrl.yaml | 166 ++++++++++++++++++ 1 file changed, 166 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/starfive,jhb100-per3-pinctrl.yaml diff --git a/Documentation/devicetree/bindings/pinctrl/starfive,jhb100-per3-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/starfive,jhb100-per3-pinctrl.yaml new file mode 100644 index 000000000000..92093315ef15 --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/starfive,jhb100-per3-pinctrl.yaml @@ -0,0 +1,166 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/starfive,jhb100-per3-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive JHB100 Peripheral-3 Pin Controller + +description: | + Pinctrl bindings for JHB100 RISC-V SoC from StarFive Technology Ltd. + + The JHB100 SoC has 13 pinctrl domains - sys0, sys0h, sys1, sys2, per0, per1, + per2, per2pok, per3, adc0, adc1, emmc, and vga. + This document provides an overview of the "per3" pinctrl domain. + + The "per3" domain has a pin controller which provides + - function selection for GPIO pads. + - GPIO interrupt handling. + + In the Peripheral-3 Pin Controller, there are 11 multi-function GPIO_PADs. + Each of them can be multiplexed to several peripherals through function + selection. Each iopad has a maximum of up to 2 functions - 0 and 1. + Function 0 is the default function which is generally the GPIO function. + Function 1 is the alternate function or peripheral signal that can be + routed to an iopad. The function selection can be carried out by writing + the function number to the iopad function select register. + + Each iopad is configurable with parameters such as input-enable, internal + pull-up/pull-down bias, drive strength, schmitt trigger, slew rate, input + debounce nanoseconds, power source. + +maintainers: + - Changhuang Liang + +properties: + compatible: + items: + - const: starfive,jhb100-per3-pinctrl + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + resets: + maxItems: 1 + + interrupts: + maxItems: 1 + + interrupt-controller: true + + '#interrupt-cells': + const: 2 + + gpio-controller: true + + '#gpio-cells': + const: 2 + + gpio-ranges: true + + gpio-line-names: true + +patternProperties: + '-grp$': + type: object + additionalProperties: false + patternProperties: + '-pins$': + type: object + description: | + A pinctrl node should contain at least one subnode representing the + pinctrl groups available in the domain. Each subnode will list the + pins it needs, and how they should be configured, with regard to + function selection, bias, input enable/disable, input schmitt + trigger enable/disable, slew-rate, input debounce nanoseconds, + power-source and drive-strength. + allOf: + - $ref: /schemas/pinctrl/pincfg-node.yaml + - $ref: /schemas/pinctrl/pinmux-node.yaml + additionalProperties: false + + properties: + pins: + description: + The list of IOs that properties in the pincfg node apply to. + + function: + description: + A string containing the name of the function to mux for these + pins. + enum: [ gmac_mdio, gmac_rmii, gpio ] + + bias-disable: true + + bias-pull-down: + type: boolean + + bias-pull-up: + type: boolean + + drive-strength: + enum: [ 2, 4, 8, 12 ] + + drive-strength-microamp: + enum: [ 2000, 4000, 8000, 12000 ] + + input-debounce-ns: + minimum: 0 + maximum: 10485680 + description: + Debounce time in nanoseconds. The hardware counts in 80 ns + stages with a 17-bit counter, so the maximum is 10485680 ns. + + input-disable: true + + input-enable: true + + input-schmitt-enable: true + + input-schmitt-disable: true + + power-source: + enum: [ 1800, 2500, 3300 ] + description: I/O voltage in millivolt. + + slew-rate: + enum: [ 0, 1 ] + default: 0 + description: | + 0: slow + 1: fast + +required: + - compatible + - reg + - resets + - interrupts + - interrupt-controller + - '#interrupt-cells' + - gpio-controller + - '#gpio-cells' + - gpio-ranges + +additionalProperties: false + +examples: + - | + soc { + #address-cells = <2>; + #size-cells = <2>; + + pinctrl_per3: pinctrl@11c42000 { + compatible = "starfive,jhb100-per3-pinctrl"; + reg = <0x0 0x11c42000 0x0 0x1000>; + resets = <&per3crg 6>; + interrupts = <64>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl_per3 0 0 11>; + }; + }; -- 2.25.1 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv