From patchwork Thu Mar 27 11:27:04 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nikolaos Pasaloukos X-Patchwork-Id: 14031070 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 E6BCDC3600E for ; Thu, 27 Mar 2025 11:29:40 +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:MIME-Version: Content-Transfer-Encoding:Content-ID:Content-Type:In-Reply-To:References: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=SnBK5n9qKk/7KSlktWAI3Tj/znrldYWlNcUlWHYml3U=; b=ph95jW0Hy1jJpNMXIasMcGM81k ja5ovz3e0rpZE7GwIZSkAcMnnHlVaklGkxAxZsd6Taoaocd60ewyAjS8+WQUPwmii/fIXjgXDrVXs OUK5booHGiBYSyKZkJn9lo3rXKE1odBTsGFHH3QfodLmCkgDWxT0sW1K4CJAfhYE1W8xzAIhz6+sV O1WJyMmJAh8PnYCVdgG8CzuzaUvuasTNqhcKzX8XXI+sQ/5tdDllJNPNICbgZZ/34lrIY2pWpvZVA freHAu+28/ZhbGiyW0cnwujNBEpHQcPY3U4Jq7hBbQKTC6lQAzVk8CEGtT39KSQPPWxFEhOXTXc3J FYaea5kw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.1 #2 (Red Hat Linux)) id 1txlQP-0000000ApEN-2SIJ; Thu, 27 Mar 2025 11:29:29 +0000 Received: from mx08-0063e101.pphosted.com ([185.183.31.155]) by bombadil.infradead.org with esmtps (Exim 4.98.1 #2 (Red Hat Linux)) id 1txlOg-0000000Ap8H-0N76 for linux-arm-kernel@lists.infradead.org; Thu, 27 Mar 2025 11:27:43 +0000 Received: from pps.filterd (m0247494.ppops.net [127.0.0.1]) by mx08-0063e101.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 52RBQgQE001632; Thu, 27 Mar 2025 11:27:25 GMT Received: from ma0pr01cu009.outbound.protection.outlook.com (mail-southindiaazlp17010006.outbound.protection.outlook.com [40.93.131.6]) by mx08-0063e101.pphosted.com (PPS) with ESMTPS id 45kwsh0ty9-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Mar 2025 11:27:25 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Q22KNFmkMynCvzUdVRQBd5xT0FBLvv/IBEsKIDBfZkgkq4Q3FsPEn6Rsh+LOAT77LD/SvESX8iUmRhrQOkVmMIMn3OTj5H36tzxy5MrbQb53agP3kfkCqo0oPr9QwLrOUhIjyluanRHFFmKjK/90TsISRmntZJGdqiKtnTGB/DzBjbY4QvUool5VMOTymDcO+Wk73B+/uoT7lmoIAArE6KfMQYiZQei+EXlDIybmgy7UDnYL+6JME/6lHsxabNHgHFs3dGB3EpjI9AYF4yXt0leKgCB6CVCfEGEYMrN6KYHzUoC9424rLSs4Q7jBdFEFZ+gk7ogcUsiAVw6yeK/uMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=SnBK5n9qKk/7KSlktWAI3Tj/znrldYWlNcUlWHYml3U=; b=nzQf7z8bnKkQSjOvMgbTeNHHJnrmghR5i+nijGTUnJf90SXx1VjqZwh9xSxIt5nT6lp09xo2Ew5tzo+KyG7sRE6n1BkwCdacQw+1KFHO8DRxIg4mzR85ZSC9kQZEScYNvdK2BeJEEuUYb+sk+uoGEoGPwbo+Mab0DIR751hgdeqimiPVHVE8MhXo+S7TvCwYRarqRhTu5Wwb1VOr+cGKVz1dpEXXz9rzx7Ahn5FEiea0QP73h93s7aOjmLW+XaSlIturnII6zDF22cmNyqPpBswHX1r5sePjod5vBvp7bhYqCf3d3U/vuIXlPYKTpkXNfiK7qp33vtT5wuW/QwHC/w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=blaize.com; dmarc=pass action=none header.from=blaize.com; dkim=pass header.d=blaize.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=BLAIZE.COM; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SnBK5n9qKk/7KSlktWAI3Tj/znrldYWlNcUlWHYml3U=; b=dMXTv7eVoUm4xdjGTi25IjRXIHHVVtWA7JoMVXZgSvaxqPQWPtpcv5URbRyiphtr4cw9ZFy7/KRPTCo2ofPnjxNucRZQ6lp9DEjLFQE0ajNozodMLd60stED6bX7glOIS1OSqUSuSZvl1ip6upL8ueq0sabISSDNRC7Sgifj2UQ= Received: from MA0PR01MB10184.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a01:12a::5) by MAZPR01MB8910.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a01:cd::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8534.44; Thu, 27 Mar 2025 11:27:04 +0000 Received: from MA0PR01MB10184.INDPRD01.PROD.OUTLOOK.COM ([fe80::309a:12cf:74a4:5655]) by MA0PR01MB10184.INDPRD01.PROD.OUTLOOK.COM ([fe80::309a:12cf:74a4:5655%4]) with mapi id 15.20.8583.026; Thu, 27 Mar 2025 11:27:04 +0000 From: Nikolaos Pasaloukos To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , James Cowgill , Matt Redfearn , Neil Jones , Linus Walleij , Bartosz Golaszewski , Matt Redfearn , Catalin Marinas , Will Deacon CC: "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-gpio@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Nikolaos Pasaloukos Subject: [PATCH v2 1/3] dt-bindings: Document Blaize BLZP1600 GPIO driver Thread-Topic: [PATCH v2 1/3] dt-bindings: Document Blaize BLZP1600 GPIO driver Thread-Index: AQHbnwsq87fV8UldSEm/ELp3lwU1VQ== Date: Thu, 27 Mar 2025 11:27:04 +0000 Message-ID: <20250327-kernel-upstreaming-add_gpio_support-v2-1-bbe51f8d66da@blaize.com> References: <20250327-kernel-upstreaming-add_gpio_support-v2-0-bbe51f8d66da@blaize.com> In-Reply-To: <20250327-kernel-upstreaming-add_gpio_support-v2-0-bbe51f8d66da@blaize.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MA0PR01MB10184:EE_|MAZPR01MB8910:EE_ x-ms-office365-filtering-correlation-id: 18922e31-4eef-4b42-7054-08dd6d224cf6 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|366016|1800799024|7416014|376014|38070700018|921020; x-microsoft-antispam-message-info: =?utf-8?q?UIXkRKiOkzxNInMpqJdAU6ycB9z42xZ?= =?utf-8?q?IfLlR2vDxF9LhLZs9edir7DOML2+uG4Tg4ujdeaR8f9xk+BtR1AUj20L1cWV1qZsh?= =?utf-8?q?rl3LR6VB/8nKT1uN5qO2imBvhvoI2cbW28zV1O9eCzlGuApouPNQds0yq0iGotxUv?= =?utf-8?q?TUxqZicmY0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SiY358W9XGoJITlVrt9TSVP2Eczggn0SV00qhUd?= =?utf-8?q?7PJFASui/+OkZUtY+b01fWTQ4vL96Rsmf/7vQeHftPimB1PAuOB6d8uHgqqn6x9Fr?= =?utf-8?q?OEhvZy6iKpHLIF65aH3tT2qU33KJqbiL7uTqyQxwHA9V71GOprp112ne66BJMhDgd?= =?utf-8?q?YQvlOJal8gn+itBgKYfIU/iTj4i22ofxed4mgd1hPJtnqDAgdi3alQj951q8eleDb?= =?utf-8?q?ZMl4bdwbDLJxLNFDOCXilKNbIPtb6jsVagxagJ9FCXnHelJ93hDZ7JAHv/v6QsgVJ?= =?utf-8?q?qnQEb68p230ARq9Lwm6ytYNGa6Jv009TnQ=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MA0PR01MB10184.INDPRD01.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(366016)(1800799024)(7416014)(376014)(38070700018)(921020);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?KeryzfA6BIqJXXT1jHifxXPeY2M0?= =?utf-8?q?KASRMYYtufzyGATe7CFnuc5+x+kM2YY1xFJCHd5i2vjkaBAaqOrS4NfvIIfsSWDZ0?= =?utf-8?q?gBH1XmEc6593z3Ct5XEuNI1zzBHr9Z2DMtuHFJJsqG5Nti4p4PMoyHC0oPkRZ8bx5?= =?utf-8?q?G1qBC8Cw0OWOojKfYhmGsDQLSyC32ao2iVlTo11oru7kSM9IB30KZywB/RkYuja4F?= =?utf-8?q?l1DmNa3RE3QEueeGo6qkvN6JI4+FCpLXhFJihLu2lp++7JPEFyk/ZvnsFK1lV/IlF?= =?utf-8?q?AxE3Vuy2pnO6fg00zlnSnS7BzObeM9gt7hhwK8k13FEnUAeuxXN2OvfxGWhPFH+Wt?= =?utf-8?q?oKCSP3PKh815AgmUEHFt/tMZhOc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Va3xB3NmlRUSOp3xJ+1HuK/qqaFeS5Uf2?= =?utf-8?q?HhPj/9qj5yAat/bw+AMxsM1reTcAyEmaETULSyZNV0XWSytZs1iDc4KNegWBefp3+?= =?utf-8?q?9B0Kauv27H225P26RJN9rr6KezFlHEefFPM3clhVaUv+Fz07G2t3RYt3P/3czbNw9?= =?utf-8?q?x2k9HIgnBKjnq8EeKcEF1zYZvRiixqfHymlHy4jOoTMmddicXqa8ZUiM/1bUbkq5H?= =?utf-8?q?W2XMTNCNIVMKmuAFIHmHXyr2Is9bKIW5NHcbUwa5Btn1oGX+26TRN8x/2DZtCp2uk?= =?utf-8?q?PB7tmmIIN9oq8E2GB36aSqvG73VRuidSpw=3D=3D?= Content-ID: MIME-Version: 1.0 X-OriginatorOrg: blaize.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MA0PR01MB10184.INDPRD01.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 18922e31-4eef-4b42-7054-08dd6d224cf6 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Mar 2025 11:27:04.3812 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 9d1c3c89-8615-4064-88a7-bb1a8537c779 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 5EcG834oEIN6vqYBXi7WBY/Q76MgCsWgB81sOtIDqx/V0yMqJ/f8yFPI8o4EZBZMTHnFS2qttPMbS63scvII3MEYkSCmK9gK9Rm8dypZsSw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MAZPR01MB8910 X-Authority-Analysis: v=2.4 cv=RpjFLDmK c=1 sm=1 tr=0 ts=67e5361d cx=c_pps a=TXs1g+7sIME2BPo3OSn30g==:117 a=lCpzRmAYbLLaTzLvsPZ7Mbvzbb8=:19 a=wKuvFiaSGQ0qltdbU6+NXLB8nM8=:19 a=Ol13hO9ccFRV9qXi2t6ftBPywas=:19 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=Vs1iUdzkB0EA:10 a=H5OGdu5hBBwA:10 a=-5LYVjoNHPMA:10 a=gEfo2CItAAAA:8 a=SrsycIMJAAAA:8 a=TTxV7h_1yqWNZ0CMU5MA:9 a=QEXdDO2ut3YA:10 a=sptkURWiP4Gy88Gu7hUp:22 a=zapPnUM7SFj2ezx6rUw-:22 X-Proofpoint-ORIG-GUID: deprWkD7PhyZvTQQAZKwhZ-NtS3wm5iu X-Proofpoint-GUID: deprWkD7PhyZvTQQAZKwhZ-NtS3wm5iu X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1095,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-03-27_01,2025-03-26_02,2024-11-22_01 X-Proofpoint-Spam-Reason: orgsafe X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250327_042742_433582_DDAA54A2 X-CRM114-Status: GOOD ( 15.41 ) 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 This is a custom silicon GPIO driver provided by VeriSilicon Microelectronics. It has 32 input/output ports which can be configured as edge or level triggered interrupts. It also provides a de-bounce feature. This controller is used on the Blaize BLZP1600 SoC. Signed-off-by: Nikolaos Pasaloukos Reviewed-by: Conor Dooley --- .../bindings/gpio/blaize,blzp1600-gpio.yaml | 77 ++++++++++++++++++++++ 1 file changed, 77 insertions(+) diff --git a/Documentation/devicetree/bindings/gpio/blaize,blzp1600-gpio.yaml b/Documentation/devicetree/bindings/gpio/blaize,blzp1600-gpio.yaml new file mode 100644 index 0000000000000000000000000000000000000000..8b7842331a22b7b9fbfa42b9c711da99227de2e4 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/blaize,blzp1600-gpio.yaml @@ -0,0 +1,77 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/blaize,blzp1600-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Blaize BLZP1600 GPIO controller + +description: + Blaize BLZP1600 GPIO controller is a design of VeriSilicon APB GPIO v0.2 + IP block. It has 32 ports each of which are intended to be represented + as child noeds with the generic GPIO-controller properties as described + in this binding's file. + +maintainers: + - Nikolaos Pasaloukos + - James Cowgill + - Matt Redfearn + - Neil Jones + +properties: + $nodename: + pattern: "^gpio@[0-9a-f]+$" + + compatible: + enum: + - blaize,blzp1600-gpio + + reg: + maxItems: 1 + + gpio-controller: true + + '#gpio-cells': + const: 2 + + ngpios: + default: 32 + minimum: 1 + maximum: 32 + + interrupts: + maxItems: 1 + + gpio-line-names: true + + interrupt-controller: true + + '#interrupt-cells': + const: 2 + +required: + - compatible + - reg + - gpio-controller + - '#gpio-cells' + +dependencies: + interrupt-controller: [ interrupts ] + +additionalProperties: false + +examples: + - | + #include + + gpio: gpio@4c0000 { + compatible = "blaize,blzp1600-gpio"; + reg = <0x004c0000 0x1000>; + gpio-controller; + #gpio-cells = <2>; + ngpios = <32>; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = ; + }; +...