Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp689832rdh; Wed, 14 Feb 2024 08:32:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU6d1cN6sUMuuir3Ln/W7wgTSCqwjafP+7/wK8pOWDZBZ9JBYkYQ01oGEoJ3LI795xSDJRdHPNzhFiB6AeCEal3PdkIDe4uEGvh02e7EQ== X-Google-Smtp-Source: AGHT+IFZZEYYnjCiy0MmCH/dajsCpPeoMDvcejNUNj+Bv/xnSILTmLrB0qFAoHa3uFvI22wnWhP8 X-Received: by 2002:a05:6a20:4024:b0:19c:6b59:b9fc with SMTP id z36-20020a056a20402400b0019c6b59b9fcmr2119539pze.24.1707928379488; Wed, 14 Feb 2024 08:32:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707928379; cv=pass; d=google.com; s=arc-20160816; b=sbRxQDXFUkQ2RmLaWi8PdD9PBEG07H2qss272PCs7l5PWy7iW6CpVsVQea7jSgl77+ UIV9NvYohwRu+yKZxJ6EvzyqFVIzGABiGJUMVW1GViAwIf8VNyYJymSZjcZ3j/jT/UZ+ n96WD2JhUUCirqeYvpP4zTNTdgnnK6XrPcul7+m7YlzvqAMdyPJisYTuCaZZ8ukebR+p +Ln/T/whzzAGT3qG0HwVb5WURzyT2u5raYBGZfkj27c034Xt2uyTHkKKFhyKRXk7sjGD uHMAvfUzNqMfrIKNNSVhTwv8aN9xYEALsazc2tP6xYQOimTysDB2kx/IPeo8MZtwbYWk C8hA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=W+hLpp3Oh6aliFOkGNM1V8H7CBiD2VCJGavAJzYQllM=; fh=FlV8S/dzIw1ByHn04N33DDEKJEkTyOvphjgDA7DM6xE=; b=eeUaUpP6AE/STrEdyugOm/stN1+/LYJuU2SqSQOPcjadfCL/DxYL1nmyrwkDEnBGKr 8mU3zmOXrnCJy3QiVP9o/URR+uwsq48d9XUkqWXtu7XbIIH882g1Y7mY9z0EY0Ur0T+8 NOq8mYDmfzCFrWJwQGMM9nnVEPOgzcHtx3vbqZSMIuSqmyLDZeDs6XGaz89o+kbe/28e 9f0+U1nmkmHRK0Vsv+HJwbr+IxCAV8pdngzxZ9CMJYPWxvQiwD+4+bJpEBObq09hCAfY MmR2uOGw24RHvY+1kVYVdwO3dIU/HyHOM7c1fKI9Iiy29MpAgEocFJleAZM1Ze2GYG5c FyGg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=VoTPslhm; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-65539-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65539-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=2; AJvYcCVFPD0YiaY4r8JAlgG5FTq9lKqXaMoDVQK0bEk0YikYLkncmdJkCDs45RJ/m9/6jc60kjhhHsXIl6ClE0w5C9PB80X3ezCgeBOPzZEE1Q== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id g3-20020a056a000b8300b006e0e658913esi4637483pfj.5.2024.02.14.08.32.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 08:32:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65539-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=VoTPslhm; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-65539-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65539-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8B61328DD46 for ; Wed, 14 Feb 2024 16:31:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6876160DEE; Wed, 14 Feb 2024 16:28:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="VoTPslhm" Received: from mslow1.mail.gandi.net (mslow1.mail.gandi.net [217.70.178.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 75D095D49C; Wed, 14 Feb 2024 16:27:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.178.240 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707928079; cv=none; b=jx72u5Ke/RrT479kH8rpl39bGGmnMUk8vhAfYt0xTxkc8hCJNGvT6X/gb84AY+RRNGKYPQq0Vt0G+C6wMpxaePXptk+f0qL7WaFFsoZhP6f/EtjCbzlDxDa3Z4v2s3hhPGr4YcI3pUtnU0j4h7MKRo7H9m4sUBb4rNQG8NeW5js= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707928079; c=relaxed/simple; bh=vbLBV9LE8zcIhbVI3fmPgLheYia+c1A7rqBxXOQBaHg=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Jvs/1ROqX7LIFyu7UcUPlMmizIcjc4HlrWxZVUGZUMblQZbwer8pJw1Iv3KO2RBEvqFoNxuoUe56UNSRDKFay95sorT1iSoYCpy2ilTwYOAbGnfVd82ykuTM1TMO63PipXV5hepLGx+x7Z+VcShy3FKnRsd4kATWrx0Tpz64BDc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=VoTPslhm; arc=none smtp.client-ip=217.70.178.240 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: from relay3-d.mail.gandi.net (unknown [217.70.183.195]) by mslow1.mail.gandi.net (Postfix) with ESMTP id 02E53C3891; Wed, 14 Feb 2024 16:24:52 +0000 (UTC) Received: by mail.gandi.net (Postfix) with ESMTPSA id 847366000D; Wed, 14 Feb 2024 16:24:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1707927885; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=W+hLpp3Oh6aliFOkGNM1V8H7CBiD2VCJGavAJzYQllM=; b=VoTPslhmWmBZLJbhFH4jMyNyFwa8ugfgQK5Gy6gWKHlOKON+5BlKPwEZZ89m8vLxTg4FLU qxJv/IBu06uQj1pukH3FdH9gucaINTs4Kl90MMPa8VMVVKi5VOvyTQMCch0hVlV8O+Uce4 SXnFe4KdAo5EP/ut5LhPLfvNY8WpUjz6gOa2lMe7kdBW/Zq3eazWYRa6pwCFbNA6J8egkw UdNcWdBwTnoVEUKqhHuEgdn9BmkgP/rkWcoPoEjrXIKO2H2nLNwSlW9Rk5jL1tT4CpDqER /EYfydIqJvd5DPpXJUETTJhYw02XM5vzlhLU3dxcISwFhCpRJl7Dkt8AHtMm4Q== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Date: Wed, 14 Feb 2024 17:23:54 +0100 Subject: [PATCH 01/23] dt-bindings: gpio: nomadik: convert into yaml format Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20240214-mbly-gpio-v1-1-f88c0ccf372b@bootlin.com> References: <20240214-mbly-gpio-v1-0-f88c0ccf372b@bootlin.com> In-Reply-To: <20240214-mbly-gpio-v1-0-f88c0ccf372b@bootlin.com> To: Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Thomas Bogendoerfer Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, Gregory CLEMENT , Vladimir Kondratiev , Thomas Petazzoni , Tawfik Bayouk , =?utf-8?q?Th=C3=A9o_Lebrun?= X-Mailer: b4 0.12.4 X-GND-Sasl: theo.lebrun@bootlin.com Create gpio/st,nomadik-gpio.yaml json-schema dt-bindings file as a direct translation from gpio-nmk.txt. Remove the txt file. Add clocks and gpio-ranges properties which were missing and are being used in Nomadik devicetrees. Signed-off-by: Théo Lebrun --- .../devicetree/bindings/gpio/gpio-nmk.txt | 31 --------- .../devicetree/bindings/gpio/st,nomadik-gpio.yaml | 75 ++++++++++++++++++++++ MAINTAINERS | 1 + 3 files changed, 76 insertions(+), 31 deletions(-) diff --git a/Documentation/devicetree/bindings/gpio/gpio-nmk.txt b/Documentation/devicetree/bindings/gpio/gpio-nmk.txt deleted file mode 100644 index 8315ac7780ef..000000000000 --- a/Documentation/devicetree/bindings/gpio/gpio-nmk.txt +++ /dev/null @@ -1,31 +0,0 @@ -Nomadik GPIO controller - -Required properties: -- compatible : Should be "st,nomadik-gpio". -- reg : Physical base address and length of the controller's registers. -- interrupts : The interrupt outputs from the controller. -- #gpio-cells : Should be two: - The first cell is the pin number. - The second cell is used to specify optional parameters: - - bits[3:0] trigger type and level flags: - 1 = low-to-high edge triggered. - 2 = high-to-low edge triggered. - 4 = active high level-sensitive. - 8 = active low level-sensitive. -- gpio-controller : Marks the device node as a GPIO controller. -- interrupt-controller : Marks the device node as an interrupt controller. -- gpio-bank : Specifies which bank a controller owns. -- st,supports-sleepmode : Specifies whether controller can sleep or not - -Example: - - gpio1: gpio@8012e080 { - compatible = "st,nomadik-gpio"; - reg = <0x8012e080 0x80>; - interrupts = <0 120 0x4>; - #gpio-cells = <2>; - gpio-controller; - interrupt-controller; - st,supports-sleepmode; - gpio-bank = <1>; - }; diff --git a/Documentation/devicetree/bindings/gpio/st,nomadik-gpio.yaml b/Documentation/devicetree/bindings/gpio/st,nomadik-gpio.yaml new file mode 100644 index 000000000000..a999908173d2 --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/st,nomadik-gpio.yaml @@ -0,0 +1,75 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/gpio/st,nomadik-gpio.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Nomadik GPIO controller + +description: + The Nomadik GPIO driver handles Nomadik SoC GPIO blocks. This block has also + been called ST STA2X11. On the Nomadik platform, this driver is intertwined + with pinctrl-nomadik. + +maintainers: + - Linus Walleij + +properties: + $nodename: + pattern: "^gpio@[0-9a-f]+$" + + compatible: + const: st,nomadik-gpio + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + "#gpio-cells": + const: 2 + + gpio-controller: true + + interrupt-controller: true + + "#interrupt-cells": + const: 2 + + gpio-bank: + $ref: /schemas/types.yaml#/definitions/uint32 + + st,supports-sleepmode: + description: Whether the controller can sleep or not. + $ref: /schemas/types.yaml#/definitions/flag + + clocks: + maxItems: 1 + + gpio-ranges: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + - "#gpio-cells" + - gpio-controller + - interrupt-controller + - gpio-bank + +unevaluatedProperties: false + +examples: + - | + gpio1: gpio@8012e080 { + compatible = "st,nomadik-gpio"; + reg = <0x8012e080 0x80>; + interrupts = <0 120 0x4>; + #gpio-cells = <2>; + gpio-controller; + interrupt-controller; + st,supports-sleepmode; + gpio-bank = <1>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 9134384171fe..0cb2c459d1cf 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2465,6 +2465,7 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git F: Documentation/devicetree/bindings/arm/ste-* F: Documentation/devicetree/bindings/arm/ux500.yaml F: Documentation/devicetree/bindings/arm/ux500/ +F: Documentation/devicetree/bindings/gpio/st,nomadik-gpio.yaml F: Documentation/devicetree/bindings/i2c/st,nomadik-i2c.yaml F: arch/arm/boot/dts/st/ste-* F: arch/arm/mach-nomadik/ -- 2.43.1