From patchwork Thu Sep 17 16:50:39 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11782909 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 4D40092C for ; Thu, 17 Sep 2020 16:50:47 +0000 (UTC) Received: by mail.kernel.org (Postfix) id 46AB520838; Thu, 17 Sep 2020 16:50:47 +0000 (UTC) Delivered-To: soc@kernel.org Received: from kozik-lap.mshome.net (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 109BD206CA; Thu, 17 Sep 2020 16:50:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600361447; bh=igFUk5VW/fWWq1VCMNu8RyBtiQh9S9fijBG2rzW1VPg=; h=From:List-Id:To:Cc:Subject:Date:From; b=fQ+ozi8FyXjxXEfZlagDcCxo7gVy4mY7+XwFhASjy8dmRsaxLCokPbcdPXRldoEyC W9NBnT8aONZ2V0SG7HzwCkFu6dWk4mBVMgbsLl6stD+iCv5Vhddait4b1uBVvJz/6N /ZXyfv172kqZXD3GDfBO4Cs/WR6pO3IvQ3bPc4X4= From: Krzysztof Kozlowski List-Id: To: Khuong Dinh , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, arm@kernel.org, soc@kernel.org, Arnd Bergmann , Olof Johansson Cc: linux-arm-kernel@lists.infradead.org, Krzysztof Kozlowski Subject: [PATCH 1/2] arm64: dts: apm: drop unused reg-io-width from DW APB GPIO controller Date: Thu, 17 Sep 2020 18:50:39 +0200 Message-Id: <20200917165040.22908-1-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 The Synopsys DesignWare APB GPIO controller driver does not parse reg-io-width and dtschema does not allow it so drop it to fix dtschema warnings like: arch/arm64/boot/dts/apm/apm-mustang.dt.yaml: gpio@1c024000: 'reg-io-width' does not match any of the regexes: '^gpio-(port|controller)@[0-9a-f]+$', 'pinctrl-[0-9]+' Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. New patch --- arch/arm64/boot/dts/apm/apm-shadowcat.dtsi | 1 - arch/arm64/boot/dts/apm/apm-storm.dtsi | 1 - 2 files changed, 2 deletions(-) diff --git a/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi b/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi index 3feb1881bbc2..2da5b8a0cd35 100644 --- a/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi +++ b/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi @@ -709,7 +709,6 @@ dwgpio: gpio@1c024000 { compatible = "snps,dw-apb-gpio"; reg = <0x0 0x1c024000 0x0 0x1000>; - reg-io-width = <4>; #address-cells = <1>; #size-cells = <0>; diff --git a/arch/arm64/boot/dts/apm/apm-storm.dtsi b/arch/arm64/boot/dts/apm/apm-storm.dtsi index 8c802d87e751..560b2a6f2082 100644 --- a/arch/arm64/boot/dts/apm/apm-storm.dtsi +++ b/arch/arm64/boot/dts/apm/apm-storm.dtsi @@ -825,7 +825,6 @@ dwgpio: gpio@1c024000 { compatible = "snps,dw-apb-gpio"; reg = <0x0 0x1c024000 0x0 0x1000>; - reg-io-width = <4>; #address-cells = <1>; #size-cells = <0>; From patchwork Thu Sep 17 16:50:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11782911 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 399EB92C for ; Thu, 17 Sep 2020 16:50:50 +0000 (UTC) Received: by mail.kernel.org (Postfix) id 33424206E6; Thu, 17 Sep 2020 16:50:50 +0000 (UTC) Delivered-To: soc@kernel.org Received: from kozik-lap.mshome.net (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 A73AF20708; Thu, 17 Sep 2020 16:50:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600361450; bh=vUYwcPqRB+iFbeTmiFP5sphZ74nnxL+pyoKVuuYwemI=; h=From:List-Id:To:Cc:Subject:Date:In-Reply-To:References:From; b=q1dqcpuriRbsUlDy1aFKkrmNZvWwGUnvtbbbBklFAYQTrOmf7a6PRts3166YsKoq1 wUF3tru7NgBERSL8ogu8jeHPKKn+Ly0W6Ymo+zhXKc7T2CENlpK8LWzVYqDrJ2XzhZ FJJfdlaUI4oC+hzjJjRw7lfCeOQGbgnhTTaSQc+A= From: Krzysztof Kozlowski List-Id: To: Khuong Dinh , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, arm@kernel.org, soc@kernel.org, Arnd Bergmann , Olof Johansson Cc: linux-arm-kernel@lists.infradead.org, Krzysztof Kozlowski Subject: [PATCH 2/2] arm64: dts: apm: add required gpio-cells to DW APB GPIO controller port Date: Thu, 17 Sep 2020 18:50:40 +0200 Message-Id: <20200917165040.22908-2-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200917165040.22908-1-krzk@kernel.org> References: <20200917165040.22908-1-krzk@kernel.org> The Synopsys DesignWare APB GPIO controller port must have gpio-cells property, as pointed by dtschema: arch/arm64/boot/dts/apm/apm-mustang.dt.yaml: gpio@1c024000: gpio-controller@0: '#gpio-cells' is a required property Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. New patch --- arch/arm64/boot/dts/apm/apm-shadowcat.dtsi | 1 + arch/arm64/boot/dts/apm/apm-storm.dtsi | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi b/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi index 2da5b8a0cd35..a83c82c50e29 100644 --- a/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi +++ b/arch/arm64/boot/dts/apm/apm-shadowcat.dtsi @@ -715,6 +715,7 @@ porta: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; gpio-controller; + #gpio-cells = <2>; snps,nr-gpios = <32>; reg = <0>; }; diff --git a/arch/arm64/boot/dts/apm/apm-storm.dtsi b/arch/arm64/boot/dts/apm/apm-storm.dtsi index 560b2a6f2082..0f37e77f5459 100644 --- a/arch/arm64/boot/dts/apm/apm-storm.dtsi +++ b/arch/arm64/boot/dts/apm/apm-storm.dtsi @@ -831,6 +831,7 @@ porta: gpio-controller@0 { compatible = "snps,dw-apb-gpio-port"; gpio-controller; + #gpio-cells = <2>; snps,nr-gpios = <32>; reg = <0>; };