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 7627BC88E47 for ; Thu, 10 Sep 2026 10:05:18 +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=FaXvqmgt4hwzgduJYcOXBp2BMsSpefDPZoDx54g2xo8=; b=AMGbR7sXZ+0Dse IM0diM3f1YlttEWFPw/FvpPiUign7g7OU3FFoDfrdLAF8aQ+DHIAjov3FPj91ne5NXE90NS3A379n /0LxNQT0WiJ1vg29XW7Og4QbLeJqZEjMcxrkAnwUpBCtF9UWiplLDBcb6DkA/1+yi5TYZ7Y222Lz8 SkesdNWDthIuyjtWXnjIsd9jIsQJEdEwpOExblcPjii163B9Se8Tc3hAC/9BL6l+ps1AQ0PghBQRJ MYrBrycXclTtBWnfo0/iSj7oRu02aJdlzp/A4fbd4MLctO544ZiJi2l2WLes1+H5B/BeY/F2TfIwV LkF2CFGWOFtEMG8tojsg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1x4beV-0000000DyhQ-3Aqa; Thu, 10 Sep 2026 10:05:07 +0000 Received: from mail-sh0chn02on2115.outbound.protection.partner.outlook.cn ([139.219.146.115] helo=CHN02-SH0-obe.outbound.protection.partner.outlook.cn) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1x4beT-0000000DyYy-1xdY for linux-riscv@lists.infradead.org; Thu, 10 Sep 2026 10:05:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LOFKsIe0dbeqv6afqnSDBaDK469H/GS3+NUG8R2W1DAvGz/LdJ7k32qJQEjw1Nnc3SrnnMu6zAvL5LnQEeO68CliNYl9RcHB0zNDF29C2/WA2cNK28z/F1vz5m+IHp8vLRjp1shAQPq6oaF1A1iBRh1r41CSt6vsIpWHxNJ/tK6wcbWDkYgL8jCK7pQQLkQNBg4yQmrw+Jsj5lSURXHOYWYMdMP2pUFnd2YiC6Qp9yssE2z+bjVbl22Nv+42tyRDb9t/6adKSHxFiPZtJ8WTsSyA8pZEdTcWynkp3s2szswRHsWTBsKnHzj3uAriAClPBxtYg0Rb85DbJKC54bFoaQ== 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=U62ePPU7WG0aW7GVIWIBCjfXYlhuqkS/0HZI6FzIfMo=; b=BBllNc/EvdT3fGXgTFIW7/Q0mVON/JJvXXQzkTJGUc5WoitBhD0ORxpyNEVMb/LxD0T4amLmJQ/BVpDT/ir++AxC/cHX9FR2vh3MN7pE8AmhK3TeeyemsKIz4vHvHVaHwqQ2368nro+zeoE71x3H0Vqe+MnG3yWByhTO9vZmLMM7TGbvUF9IcYu8Fd0o5mWN8OhZPXb52Hroz1TEjya9KjqeljBSIWwGa/ukWugbKQu/cjSnaEoLEMyyPTkPmwwGDlhEOASTo8e3bQ9RkrYreKzNXE1kxNsOBDsMge+kqT0+890wrKS/DRxCyAao6cHM3SIRVnJPpxP306dD2o3Fvw== 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:27 +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:27 +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 17/22] dt-bindings: pinctrl: Add starfive,jhb100-per2pok-pinctrl Date: Thu, 10 Sep 2026 03:03:52 -0700 Message-Id: <20260910100357.130134-18-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: 7863aa42-7ccc-46a8-fa41-08df0f22e629 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: Mrl6k/ObduJ/aSFRCVGAEX6E6Jbm/bJc1Pa39Ac4y1Q4kk5V5LziIMSXFSYYMDpPrwVU4KzmZI8zDYfHWoJpgzIOcNEmICGIYGaAfAEwT6x/INNvJAy3xGWkhqXO8CpsSHLWOAKf4JWTnrldyY9znVYX2JJkAgaORHo6RLgVWjROD14cWe/DqkFNKC5z+/iukz2LyTeHmgpCZg4IU8caUDPTmTYm3PAk1yT7QPi97m9yfSBgeISJReCRcsvNve8wZS670JDLqSnGR0uBjT2IKbjvUlMeFpu6Vf9dgHlOj5QBToAlaNAaYW1Ho1U1MTDTAZ/gIjo3ogPGbLJPaPW29vN5Mqs/gClHBcTkstuZRKqJK9yqdDoMpGQVyGIV77MYCkmwFlTmYytgmO8n/zeR8+6zMZsMmKcMfNTrz44p+NAvkPtNG3fCABlyhyE6U4LPookSBEdg61YUG1fpm6ocFiUOaEgSnpesDhv2FCAXc7V5ju37FGRj58JxU6Vp8Pwfqvf+NgYqaIfZwrHG5QN9NSDZgGss+TaXqcHLBzTdIPKnQZeGe4PmCm+30R+pbbUgAweTS2tQ2Hqr83D/WikhmQ== 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:O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?65alMeMPzu6hKaZV/qKl45nrMZ+Bc9EIx8F3E8U+rNtOgm/6293rErKxyB5v?= =?us-ascii?Q?jt6Xd3++lbvrO+1KP6aD2mi+TUN9pwGCpyLYPp6kq+6MbP9C9AFk?= X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7863aa42-7ccc-46a8-fa41-08df0f22e629 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:27.5737 (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: DYiQsMyAaLSh+IZ+thdyE6qtIShtHqsJmobQIdpfP1NOnJho85TSqc33JE8NQpRBoLzFC1K2g4KCL9JhvLZjlwrWN/3HFe/TvsY2cxcQkku0D/1XG3DFBoHHyY/eLnTO X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZQ4PR01MB1170 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260910_030505_515343_7C653DF3 X-CRM114-Status: GOOD ( 16.13 ) 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-2 Power OK (per2pok) pinctrl controller. Signed-off-by: Changhuang Liang --- .../starfive,jhb100-per2pok-pinctrl.yaml | 162 ++++++++++++++++++ 1 file changed, 162 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/starfive,jhb100-per2pok-pinctrl.yaml diff --git a/Documentation/devicetree/bindings/pinctrl/starfive,jhb100-per2pok-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/starfive,jhb100-per2pok-pinctrl.yaml new file mode 100644 index 000000000000..28a4d7f30cc9 --- /dev/null +++ b/Documentation/devicetree/bindings/pinctrl/starfive,jhb100-per2pok-pinctrl.yaml @@ -0,0 +1,162 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/pinctrl/starfive,jhb100-per2pok-pinctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive JHB100 Peripheral-2 Power OK 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 "per2pok" pinctrl domain. + + The "per2pok" domain has a pin controller which provides + - function selection for GPIO pads. + - GPIO interrupt handling. + + In the Peripheral-2 Power OK Pin Controller, there are 18 multi-function + GPIO_PADs. Each can be multiplexed to several peripherals through function + selection. Each iopad has a maximum of up to 4 functions - 0, 1, 2, and 3. + Function 0 is the default function or generally the GPIO function. + Function 1, 2, and 3 are alternate functions or peripheral signals 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. + +maintainers: + - Changhuang Liang + +properties: + compatible: + items: + - const: starfive,jhb100-per2pok-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 + 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: [ can, gpio, host0_port80, host1_port80, passthru, pwm ] + + 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 + + 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_per2pok: pinctrl@11bc2400 { + compatible = "starfive,jhb100-per2pok-pinctrl"; + reg = <0x0 0x11bc2400 0x0 0x400>; + resets = <&per2crg 1>; + interrupts = <63>; + interrupt-controller; + #interrupt-cells = <2>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl_per2pok 0 0 18>; + }; + }; -- 2.25.1 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv