From patchwork Sun Aug 23 16:15:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11731683 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D8005913 for ; Sun, 23 Aug 2020 16:16:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B75302177B for ; Sun, 23 Aug 2020 16:16:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598199385; bh=piseENgaR2QSPn9XfpxUjGFJvzdbXTHX56nDAe1ZDaQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=E4MV5jiul2SUWrOOtdknz1UGynHtKU9QhKXxVlKFROVnCWZemCtfbP3O/AcxyBqrq LT35m6fDbZ+fezDfYSC5m3rflxaXtkf0Cr6IoBateGGohwMaNsGMy20OuBS1oe+fm7 8+NwVF7XB+4Z0niipi7LPbb6bJv+Tf9nWwBlJf8Q= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727116AbgHWQQH (ORCPT ); Sun, 23 Aug 2020 12:16:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:43946 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725996AbgHWQQH (ORCPT ); Sun, 23 Aug 2020 12:16:07 -0400 Received: from kozik-lap.proceq-device.com (unknown [194.230.155.216]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1827E2078A; Sun, 23 Aug 2020 16:16:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598199366; bh=piseENgaR2QSPn9XfpxUjGFJvzdbXTHX56nDAe1ZDaQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UGCxuLS1OZqpLzWh1cnW+UvCxjPrHBWtvFVqNnaBVe091iKQl5aMftHrIECPrjE+Y 8/twxs9zLuAfF88znM8CwPr2V8vnYa4eRcx+lC+Qu74cJ7o/Tg5L4H74lojKyxVes0 Kd/f2ltpiewZpSWZ6+UoRgD3yT5w8DUQqToaBx3k= From: Krzysztof Kozlowski To: Rob Herring , Linus Walleij , Bartosz Golaszewski , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, linux-mtd@lists.infradead.org, linux-pwm@vger.kernel.org, linux-serial@vger.kernel.org, linux-pm@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Thierry Reding , Anson Huang , Krzysztof Kozlowski Subject: [PATCH 02/22] dt-bindings: gpio: fsl-imx-gpio: Add gpio-ranges property Date: Sun, 23 Aug 2020 18:15:30 +0200 Message-Id: <20200823161550.3981-2-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200823161550.3981-1-krzk@kernel.org> References: <20200823161550.3981-1-krzk@kernel.org> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org The GPIO controller node can have gpio-ranges property. This fixes dtbs_check warnings like: arch/arm64/boot/dts/freescale/imx8mm-evk.dt.yaml: gpio@30200000: 'gpio-ranges' does not match any of the regexes: 'pinctrl-[0-9]+' From schema: Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/gpio/fsl-imx-gpio.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml b/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml index 454db20c2d1a..1fac69573bb9 100644 --- a/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml +++ b/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml @@ -51,6 +51,9 @@ properties: gpio-controller: true + gpio-ranges: + maxItems: 1 + required: - compatible - reg @@ -62,6 +65,18 @@ required: additionalProperties: false +allOf: + - if: + properties: + compatible: + contains: + const: fsl,imx8mp-gpio + then: + properties: + gpio-ranges: + minItems: 1 + maxItems: 2 + examples: - | gpio0: gpio@73f84000 {