From patchwork Sun Aug 23 16:15:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11731679 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 E1A9D14F6 for ; Sun, 23 Aug 2020 16:16:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C915720838 for ; Sun, 23 Aug 2020 16:16:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598199384; bh=6J700F/7E7GczejTvE7NhKf03HRHUXkORzTnGCkrd1M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=aMokJEtJftWqZXFLEJFEbbvGoO0BPviR9ctq3t90KpjraT9RA9jOZt0DGXVFwQxo1 6Ot9+MWPbWJL6//S+c1nIjMeOIocE044qQyiX/A01v1CrNSwTX/wVLn2WuveQplEyO PZhM804yLm2YhLG8ou7y+U81DfJbtnsL3eF2ilAs= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727851AbgHWQQM (ORCPT ); Sun, 23 Aug 2020 12:16:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:44232 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727836AbgHWQQL (ORCPT ); Sun, 23 Aug 2020 12:16:11 -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 E03EC2075B; Sun, 23 Aug 2020 16:16:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598199371; bh=6J700F/7E7GczejTvE7NhKf03HRHUXkORzTnGCkrd1M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PtY+ifsPFqIus6SJ3OIoI3SDwmshNJwHOTBhdCETqkc8CGBXDcJYRmPEz8BiEY0uH x8mVhJ+N8yuCtmU3Xwk0B10VGKg/HpAq+KS+Bk0ouJeyWri1Cx+LEFbpXHd+ar56YP UlS7AshzC9TAjFTagptiA9kh9qZCTx6874G6ZkFU= 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 03/22] dt-bindings: gpio: fsl-imx-gpio: Add parsing of hogs Date: Sun, 23 Aug 2020 18:15:31 +0200 Message-Id: <20200823161550.3981-3-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 Allow parsing GPIO controller children nodes with GPIO hogs to fix warning: arch/arm64/boot/dts/freescale/imx8mq-evk.dt.yaml: gpio@30240000: 'wl-reg-on' 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 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml b/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml index 1fac69573bb9..337b99343dce 100644 --- a/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml +++ b/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml @@ -54,6 +54,23 @@ properties: gpio-ranges: maxItems: 1 +patternProperties: + "^(hog-[0-9]+|.+-hog(-[0-9]+)?)$": + type: object + properties: + gpio-hog: true + gpios: true + input: true + output-high: true + output-low: true + line-name: true + + required: + - gpio-hog + - gpios + + additionalProperties: false + required: - compatible - reg