From patchwork Sun Sep 20 19:58:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 254354 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D639C43465 for ; Sun, 20 Sep 2020 19:59:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C080020874 for ; Sun, 20 Sep 2020 19:59:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600631943; bh=qE/XNWOxN2w9q5YVj7knCuVoes9uF5n3abGxzM2Z+W4=; h=From:To:Cc:Subject:Date:List-ID:From; b=LzEEzURlfJmHNil90ZVWgUiCYITiDx5woK2sVoiSFVl/ffa1Jyz+EFyCMvpqukEYE /HG13FvBIymUCMHZkqf3EHIjfdT5kiFP3RyF/xoWxSPeUW2ebqcwhpG9/OD7hEofr6 vuXAczUt8rV5Bul7Rsvh5sJizR1hMrltxTY1W6VE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726148AbgITT7A (ORCPT ); Sun, 20 Sep 2020 15:59:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:44940 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726126AbgITT67 (ORCPT ); Sun, 20 Sep 2020 15:58:59 -0400 Received: from localhost.localdomain (unknown [194.230.155.191]) (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 A80312085B; Sun, 20 Sep 2020 19:58:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600631939; bh=qE/XNWOxN2w9q5YVj7knCuVoes9uF5n3abGxzM2Z+W4=; h=From:To:Cc:Subject:Date:From; b=Ha8P/imBl3wD1AWwjK3A7QC8+fabyc9+n2hkGToE0oI4/70U+xYAHRInRgDNNntwd KoUZrm+DbHQxl6meWzKWsrDk3rhpYORqNi4UDAUj277nFMatb8Y9TnfmWwVTg7CIqE FLgjjokJ1hHgQwP+bUWXaz0bGE5hTnn51x77HDEY= From: Krzysztof Kozlowski To: Linus Walleij , Bartosz Golaszewski , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Anson Huang , Stefan Agner , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v3 1/4] dt-bindings: gpio: pl061: add gpio-line-names Date: Sun, 20 Sep 2020 21:58:45 +0200 Message-Id: <20200920195848.27075-1-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Describe common "gpio-line-names" property to fix dtbs_check warnings like: arch/arm64/boot/dts/hisilicon/hi3670-hikey970.dt.yaml: gpio@e8a0b000: 'gpio-line-names' does not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring Reviewed-by: Rob Herring Reviewed-by: Rob Herring --- Changes since v2: 1. Common GPIO goes to dt-schema --- Documentation/devicetree/bindings/gpio/pl061-gpio.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/gpio/pl061-gpio.yaml b/Documentation/devicetree/bindings/gpio/pl061-gpio.yaml index 313b17229247..bd35cbf7fa09 100644 --- a/Documentation/devicetree/bindings/gpio/pl061-gpio.yaml +++ b/Documentation/devicetree/bindings/gpio/pl061-gpio.yaml @@ -51,7 +51,10 @@ properties: gpio-controller: true + gpio-line-names: true + gpio-ranges: + minItems: 1 maxItems: 8 required: From patchwork Sun Sep 20 19:58:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 293433 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED09DC43463 for ; Sun, 20 Sep 2020 19:59:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B441D2145D for ; Sun, 20 Sep 2020 19:59:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600631945; bh=3E9DPplRRsaj39SnwfkgVCLSZ0+GxS9TwohsVudFF30=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=ZqBjiEt+goppul7EBD0+t6HYMOTtgwWhjkb2vxxsWlpHDJM4JLiG7Jj3+/RNzeS18 BFunpEAoFLqQqVxX6Y0cb48sNUFRjHtP72stU/DjpkXffeTrOkWIU058Xvdh9AxZut VGDOtFWYAUAkG6s0SLOvqvhhZlWJervldIHvpCP4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726457AbgITT7F (ORCPT ); Sun, 20 Sep 2020 15:59:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:45070 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726126AbgITT7F (ORCPT ); Sun, 20 Sep 2020 15:59:05 -0400 Received: from localhost.localdomain (unknown [194.230.155.191]) (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 CC76F20866; Sun, 20 Sep 2020 19:58:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600631944; bh=3E9DPplRRsaj39SnwfkgVCLSZ0+GxS9TwohsVudFF30=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g7CVOk1loQwhiK7h7yJQ6mMtSqFGLVIdCptU+YpPAOudkyiPyKkk0GIp5kYKVDSRe 0pvYNzprS6E5oLQdFp9Ujpnp9u4fiBvYVWjgxvOY/fMINHMbXQTVBd7CS2BrA+hawg +BAXLHyyD3SHOl90NGgfbENmV6wAXw9dngWbFD9U= From: Krzysztof Kozlowski To: Linus Walleij , Bartosz Golaszewski , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Anson Huang , Stefan Agner , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v3 2/4] dt-bindings: gpio: fsl-imx-gpio: add i.MX ARMv6 and ARMv7 compatibles Date: Sun, 20 Sep 2020 21:58:46 +0200 Message-Id: <20200920195848.27075-2-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200920195848.27075-1-krzk@kernel.org> References: <20200920195848.27075-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Several DTSes with ARMv6 and ARMv7 i.MX SoCs introduce their own compatibles so add them to fix dtbs_check warnings like: arch/arm/boot/dts/imx35-pdk.dt.yaml: gpio@53fa4000: compatible: ['fsl,imx35-gpio', 'fsl,imx31-gpio'] is not valid under any of the given schemas arch/arm/boot/dts/imx51-babbage.dt.yaml: gpio@73f90000: compatible: ['fsl,imx51-gpio', 'fsl,imx35-gpio'] is not valid under any of the given schemas Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- Changes since v2: 1. None, split from previous patchset using common GPIO schema --- .../devicetree/bindings/gpio/fsl-imx-gpio.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml b/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml index de0b9b5f6a70..281cdd34a829 100644 --- a/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml +++ b/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml @@ -18,8 +18,20 @@ properties: - fsl,imx31-gpio - fsl,imx35-gpio - fsl,imx7d-gpio + - items: + - const: fsl,imx35-gpio + - const: fsl,imx31-gpio - items: - enum: + - fsl,imx50-gpio + - fsl,imx51-gpio + - fsl,imx53-gpio + - fsl,imx6q-gpio + - fsl,imx6sl-gpio + - fsl,imx6sll-gpio + - fsl,imx6sx-gpio + - fsl,imx6ul-gpio + - fsl,imx7d-gpio - fsl,imx8mm-gpio - fsl,imx8mn-gpio - fsl,imx8mp-gpio From patchwork Sun Sep 20 19:58:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 254353 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11BB2C43463 for ; Sun, 20 Sep 2020 19:59:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CA41720897 for ; Sun, 20 Sep 2020 19:59:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600631951; bh=3pMtEfO5GpJ2TBTliAI3qinzN3+C9zV6uhHKe4QnrqY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=rRoR6CBIPAluguKhOAxeOuJyeVrcJaskZOmoHIeWJmkc8Hs/CYfjrzwvPMEOI9/oi e4r+tL3dBvH16d+OnYgWNWujsLit76sQawP5PsHUtXiT14G8pQ7JB6WmjtpLXVchBS nfUOkK4LZSLe52i069O1KZw/7JO74P5h6SyPhHxE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726472AbgITT7L (ORCPT ); Sun, 20 Sep 2020 15:59:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:45208 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726126AbgITT7L (ORCPT ); Sun, 20 Sep 2020 15:59:11 -0400 Received: from localhost.localdomain (unknown [194.230.155.191]) (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 9925D2085B; Sun, 20 Sep 2020 19:59:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600631950; bh=3pMtEfO5GpJ2TBTliAI3qinzN3+C9zV6uhHKe4QnrqY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Bjk3ssCZxLnN+qm+lpePR2gSV8JiJdMrQktAW8LrCtUPp8HDOyTEIsPLhA2F2o+yb 7RFBy2AVQarw6Ni5MGjh4n9rmOhsL0QG+2Ih+XoNlz3USILm4fP4iffku4Sikyjw2d dS+lcmr58mWsZ/9CZ8VWgTb+fQT7hOCkGOIemV1M= From: Krzysztof Kozlowski To: Linus Walleij , Bartosz Golaszewski , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Anson Huang , Stefan Agner , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v3 3/4] dt-bindings: gpio: fsl-imx-gpio: add gpio-line-names Date: Sun, 20 Sep 2020 21:58:47 +0200 Message-Id: <20200920195848.27075-3-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200920195848.27075-1-krzk@kernel.org> References: <20200920195848.27075-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org Describe common "gpio-line-names" property to fix dtbs_check warnings like: arch/arm/boot/dts/imx53-m53menlo.dt.yaml: gpio@53f84000: 'gpio-line-names' does not match any of the regexes: '^(hog-[0-9]+|.+-hog(-[0-9]+)?)$', 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- Changes since v2: 1. None, split from previous patchset using common GPIO schema --- Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml b/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml index 281cdd34a829..f57d22d1ebd6 100644 --- a/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml +++ b/Documentation/devicetree/bindings/gpio/fsl-imx-gpio.yaml @@ -62,7 +62,7 @@ properties: const: 2 gpio-controller: true - + gpio-line-names: true gpio-ranges: true power-domains: From patchwork Sun Sep 20 19:58:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 293432 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03785C43463 for ; Sun, 20 Sep 2020 19:59:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B030F20874 for ; Sun, 20 Sep 2020 19:59:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600631957; bh=TcC5o7oGoxPxKy945MH6L8dlc5AwUItnlYwmPDxOllk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=icknOFJRC4ujxHUZ3tPxnDWl9LDr5CdAboxzfhr98bg2+R+PMfoF67ZXK7WHTEEOF SBC0BVJoNdVtOWF0XMYf+j9fwl7iC+1KRBW3NH5fLD7Wmdlw1VJSjH7jo4Emg2d6O/ KLxU6+PL0XphsFlIrSfvwJ5tVSxLo25Ok8ZjKlcg= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726484AbgITT7R (ORCPT ); Sun, 20 Sep 2020 15:59:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:45344 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726126AbgITT7R (ORCPT ); Sun, 20 Sep 2020 15:59:17 -0400 Received: from localhost.localdomain (unknown [194.230.155.191]) (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 C053020866; Sun, 20 Sep 2020 19:59:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600631956; bh=TcC5o7oGoxPxKy945MH6L8dlc5AwUItnlYwmPDxOllk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wyT45BFv4hL1QtbJvmfvVADPzg70pl9gioaWiHvEzSf1uM2hWivFSYNmHFGTAIgfO 2HwsytuIGl94oangcN7+OkHz4JJ2UbiNtD10m9UupjUSOABqLEydyoPKg/xSgFFaVY fMWLc+varUXjHd7iVV4xaCd84LXQdNw0QrWVN2vc= From: Krzysztof Kozlowski To: Linus Walleij , Bartosz Golaszewski , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Anson Huang , Stefan Agner , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v3 4/4] dt-bindings: gpio: gpio-vf610: fix iMX 7ULP compatible matching Date: Sun, 20 Sep 2020 21:58:48 +0200 Message-Id: <20200920195848.27075-4-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200920195848.27075-1-krzk@kernel.org> References: <20200920195848.27075-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org The i.MX 7ULP DTSes use two compatibles so update the binding to fix dtbs_check warnings like: arch/arm/boot/dts/imx7ulp-com.dt.yaml: gpio@40ae0000: compatible: ['fsl,imx7ulp-gpio', 'fsl,vf610-gpio'] is too long arch/arm/boot/dts/imx7ulp-com.dt.yaml: gpio@40ae0000: compatible: Additional items are not allowed ('fsl,vf610-gpio' was unexpected) Signed-off-by: Krzysztof Kozlowski Reviewed-by: Rob Herring --- Changes since v2: 1. None, split from previous patchset using common GPIO schema Changes since v1: 1. New patch --- Documentation/devicetree/bindings/gpio/gpio-vf610.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml b/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml index 6ac5a78ad3da..19738a457a58 100644 --- a/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml +++ b/Documentation/devicetree/bindings/gpio/gpio-vf610.yaml @@ -19,9 +19,11 @@ description: | properties: compatible: - enum: - - fsl,vf610-gpio - - fsl,imx7ulp-gpio + oneOf: + - const: fsl,vf610-gpio + - items: + - const: fsl,imx7ulp-gpio + - const: fsl,vf610-gpio reg: description: The first reg tuple represents the PORT module, the second tuple