From patchwork Thu Jul 14 18:33:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 12918403 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 26F3DC43334 for ; Thu, 14 Jul 2022 18:36:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=GANXSQfOzcA3k+raHK/qZB1cvf3VfMvGF9G3LvpKFb0=; b=HxW/CMHbQvHvrz rNFQ9qH458cqpHdwOEGBtRlctQs6nI1zvpT/YH/k7rrfd74m6YGhLfkhNH184CeysSOmiYX+tGHkC Nj8QLa7e3LSLO7dRbc7VuIqpcmM8DmedtZJdLwbRh2KZpA+9qt6+0W2f6dulQMUJPAIXniPAFZcbv Fo0o7lQ9nHsEStGgCtcvAIzs52MaVbomKN842FgvwMjbyM2Sdssmv04ofL/9hgA1sfDLahdtBiD5D dNt86PiHzQ7bPfTSXvMU6wUejYxKterUtt+VpoyQ1kcpYI9+9Zrs1pOYuvfnDrZvkKkyJJujd0bLc FSei/x0JxWWh+0LJpB8g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oC3fI-00HDA5-VU; Thu, 14 Jul 2022 18:34:21 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oC3eq-00HCq6-8o for linux-arm-kernel@lists.infradead.org; Thu, 14 Jul 2022 18:33:55 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id BA341CE2B15; Thu, 14 Jul 2022 18:33:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B1EFC34114; Thu, 14 Jul 2022 18:33:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657823627; bh=uYJqubEioTmV1YTvZ/Dq1JpUQFHEuaX4No8uowtwz4U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iCuhAmcmtvA9NNwhysrRYtWPIC3q7sRKn1GqGl1jVy6Uacb6MLCcZ/akrntoT2MRN R/KADwJ5BQqoY4Ry6pE63OW+hSSeUUHGYwbCqQouobhH3KXQIc8b30tbG2My95JAyR yh0EMxN8W5Jvi8HCZ2L2HTq0QTC9ZCviSUEj+n0Ix5/caQO2B1GXP9Ue3h5zSbgJYJ AUN2yZnY2EINbzZwafDaoESx3qcZ1/tPrK3dZ8KySJsyOieIzVqvt9WN+BlsxpyYgI QAuIvIpejZgfHcqPmcBOr6fB54P1xLpClemDSZGR0KjzXGL/mR/4Lim0ffAmKPS7qP 1qvabzRWyPu6A== Received: by pali.im (Postfix) id C1D6B1295; Thu, 14 Jul 2022 20:33:43 +0200 (CEST) From: =?utf-8?q?Pali_Roh=C3=A1r?= To: Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6n?= =?utf-8?q?ig?= , Lee Jones , Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , =?utf-8?q?Marek_Be?= =?utf-8?q?h=C3=BAn?= Cc: linux-pwm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 1/4] gpio: mvebu: Fix check for pwm support on non-A8K platforms Date: Thu, 14 Jul 2022 20:33:25 +0200 Message-Id: <20220714183328.4137-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220714115515.5748-1-pali@kernel.org> References: <20220714115515.5748-1-pali@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220714_113352_558011_39F2EC06 X-CRM114-Status: GOOD ( 17.40 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org pwm support incompatible with Armada 80x0/70x0 API is not only in Armada 370, but also in Armada XP, 38x and 39x. So basically every non-A8K platform. Fix check for pwm support appropriately. Fixes: 85b7d8abfec7 ("gpio: mvebu: add pwm support for Armada 8K/7K") Signed-off-by: Pali Rohár --- Changes in v2: * reverse the if/else order per Baruch request --- drivers/gpio/gpio-mvebu.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/drivers/gpio/gpio-mvebu.c b/drivers/gpio/gpio-mvebu.c index 2db19cd640a4..de1e7a1a76f2 100644 --- a/drivers/gpio/gpio-mvebu.c +++ b/drivers/gpio/gpio-mvebu.c @@ -793,8 +793,12 @@ static int mvebu_pwm_probe(struct platform_device *pdev, u32 offset; u32 set; - if (of_device_is_compatible(mvchip->chip.of_node, - "marvell,armada-370-gpio")) { + if (mvchip->soc_variant == MVEBU_GPIO_SOC_VARIANT_A8K) { + int ret = of_property_read_u32(dev->of_node, + "marvell,pwm-offset", &offset); + if (ret < 0) + return 0; + } else { /* * There are only two sets of PWM configuration registers for * all the GPIO lines on those SoCs which this driver reserves @@ -804,13 +808,6 @@ static int mvebu_pwm_probe(struct platform_device *pdev, if (!platform_get_resource_byname(pdev, IORESOURCE_MEM, "pwm")) return 0; offset = 0; - } else if (mvchip->soc_variant == MVEBU_GPIO_SOC_VARIANT_A8K) { - int ret = of_property_read_u32(dev->of_node, - "marvell,pwm-offset", &offset); - if (ret < 0) - return 0; - } else { - return 0; } if (IS_ERR(mvchip->clk)) From patchwork Thu Jul 14 18:33:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 12918402 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0F10EC43334 for ; Thu, 14 Jul 2022 18:35:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=IG6viSEXN4G/EsdpYQfSI/3W4nB6RywaUbua0EHLyoE=; b=cxqy75FefoGd4P Bz4yTelT20YjJWA5PaSpi1f5fjHK6+9x2I+zXkJf1KamVQT3BA/ktVZzRtgM7QTfTg3eQ3bjmVXPJ 7pqUchMpVJtLBj+Nukm3EbPBq2LmoXVfrLbON6GXuMnzas07IaL+ux6gV/HlmKBw0poU60dhF93Qk 1iGGbhQEAl4fDMb+FPuN5MC6fIzjk52lmzDL1pKoWrUI3DfICoPxNj2C7w09yTuBIMrv955GIT5BC f4p6czRFs5ExiUx5H8glP2H5YfWeiPfs7infFOxSEJAYmGEaGoGAc2ySu54v+Peb4lF1W5ORQuzN8 krPk5ZlHNVrSGHQdol2g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oC3f8-00HD3W-Ox; Thu, 14 Jul 2022 18:34:10 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oC3eq-00HCpp-As for linux-arm-kernel@lists.infradead.org; Thu, 14 Jul 2022 18:33:53 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E46DBB82873; Thu, 14 Jul 2022 18:33:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C914C34115; Thu, 14 Jul 2022 18:33:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657823627; bh=kbzF1kLHKSnjmvKzE1B04rfZDRLuGvWeaRxAyzu0zY0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OpbNPvNi1N8hCpC5GgBGYTvTPU6Lm3WkfK6pLW89aAdWMThYEDKINZDZpGdsPgIFE wiULGwDDM7UJQcstEWgI5y1LM6Vs8GaflDBkKNR904KqvsLqBKe3VRHlxnikcrChcu 0AHzDduDj3i5Kd4q68a4g/2Ix1FUT9I1Ngp5TJCMXZ3zQzQjUu9aQL7Z+ZnpsTaCrR U3HwsKmxdftw29NbenXlSt3YkXbzXPBfypNp6t4vQnCM9I87FYLcBBgWVpKxKt7VhX 7fTAwefWcK9+UC6PC9DdFrStWOlKnmnDBXXM6uUMIZmsGaq+AP9/lfHnLD52G1EYNc +LA8UtwBbsz9A== Received: by pali.im (Postfix) id BEF6812EF; Thu, 14 Jul 2022 20:33:44 +0200 (CEST) From: =?utf-8?q?Pali_Roh=C3=A1r?= To: Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6n?= =?utf-8?q?ig?= , Lee Jones , Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , =?utf-8?q?Marek_Be?= =?utf-8?q?h=C3=BAn?= Cc: linux-pwm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 2/4] doc: gpio-mvebu: Add information about Armada 38x and Armada 39x Date: Thu, 14 Jul 2022 20:33:26 +0200 Message-Id: <20220714183328.4137-2-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220714183328.4137-1-pali@kernel.org> References: <20220714115515.5748-1-pali@kernel.org> <20220714183328.4137-1-pali@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220714_113352_534144_71D9C41D X-CRM114-Status: GOOD ( 13.99 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Armada 38x and Armada 39x should use compatible string "marvel,armadaxp-gpio". Signed-off-by: Pali Rohár Acked-by: Rob Herring --- Documentation/devicetree/bindings/gpio/gpio-mvebu.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/gpio/gpio-mvebu.txt b/Documentation/devicetree/bindings/gpio/gpio-mvebu.txt index 0fc6700ed800..3bc8f5caf328 100644 --- a/Documentation/devicetree/bindings/gpio/gpio-mvebu.txt +++ b/Documentation/devicetree/bindings/gpio/gpio-mvebu.txt @@ -10,7 +10,7 @@ Required properties: should be used for the Discovery MV78200. "marvel,armadaxp-gpio" should be used for all Armada XP SoCs - (MV78230, MV78260, MV78460). + (MV78230, MV78260, MV78460), Armada 38x and Armada 39x. "marvell,armada-8k-gpio" should be used for the Armada 7K and 8K SoCs (either from AP or CP), see From patchwork Thu Jul 14 18:33:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 12918404 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2C32EC433EF for ; Thu, 14 Jul 2022 18:36:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wiYR655e9d9b44tjRiENBoqaWuERaScWTYKIfUDGy20=; b=S90ADlXTINofOJ QglrzQMbI8FEU1QoHn0HmaqFJvEQgX29oQNqsZinmxoa6jQAYjZAA08y7/dbYchHCfgxw4iUD12Q4 h8SncWJVEIV9ZJUuYepNCU7ysDVh90dZ1ZpTq+EcCSC0xfxYHOAthRhAI7xqaLcUjhQvQfVFVRL2I k8zAcvOLnInAxslM412Msca/Y2Y/yBsO53YDh8nIgpvTCcGAEHFb+QbwWFDZ8eynas7dtenjWnLN6 PUx8BPlpqMdZarrl7OnvCHoVJu8A5HruzZ6THextYAKiujH0em/TZDRE5PjwWU0eYEVT6NcQbMD1E 2qbXvyxNwNTJnnC0gZ+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oC3fS-00HDFc-N9; Thu, 14 Jul 2022 18:34:30 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oC3er-00HCrn-1M for linux-arm-kernel@lists.infradead.org; Thu, 14 Jul 2022 18:33:55 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 483F5CE2B05; Thu, 14 Jul 2022 18:33:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 616EFC341CA; Thu, 14 Jul 2022 18:33:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657823628; bh=KG4givLWyqqySRMF0vaCp1vCFRAlBgr68900m9VDOgE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YKmsaa5v5//3cn5rDfJlmr6xJ4t8wH6p6XD98GCIy9plGknnyKdS3NOqOELDUlWbf v+HWymv6c+yzaWuZYUgsaSmuVOyZkpPLIcU/jroEbpQ+leKu2kcmi1V2k1x8qkGsO4 Z2J3N39yn8qdFVKZuC7Jb9UD3og1NM4+4DizCqtQvOAm3hMXjpFOwON/vMuaKgs9l9 OoEMY8BmPszPjZ7M8psCm0AKDvAHf1cxPhgrgUWKynkb75/XtBp83WkTZj/oX/J/Tw VE1aEURRTewWm96EF96jg2AWzeCVIwoF3wAj8H9obUGfWuJ/ZZ2oUBF0//uW+72tHd BLxr0Bun6JkwA== Received: by pali.im (Postfix) id B0C7313D3; Thu, 14 Jul 2022 20:33:45 +0200 (CEST) From: =?utf-8?q?Pali_Roh=C3=A1r?= To: Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6n?= =?utf-8?q?ig?= , Lee Jones , Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , =?utf-8?q?Marek_Be?= =?utf-8?q?h=C3=BAn?= Cc: linux-pwm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 3/4] ARM: dts: armada-38x: Fix compatible string for gpios Date: Thu, 14 Jul 2022 20:33:27 +0200 Message-Id: <20220714183328.4137-3-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220714183328.4137-1-pali@kernel.org> References: <20220714115515.5748-1-pali@kernel.org> <20220714183328.4137-1-pali@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220714_113353_278425_622A5DF0 X-CRM114-Status: GOOD ( 14.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Armada 38x supports per CPU interrupts for gpios, like Armada XP. Pre-XP variants like Armada 370 do not support per CPU interrupts for gpios. So change compatible string for Armada 38x from "marvell,armada-370-gpio" which indicates pre-XP variant to "marvell,armadaxp-gpio" which indicates XP variant or new. Driver gpio-mvebu.c which handles both pre-XP and XP variants already provides support for per CPU interrupts on XP and newer variants. Signed-off-by: Pali Rohár Fixes: 7cb2acb3fbae ("ARM: dts: mvebu: Add PWM properties for armada-38x") Acked-by: Uwe Kleine-König --- arch/arm/boot/dts/armada-38x.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/armada-38x.dtsi b/arch/arm/boot/dts/armada-38x.dtsi index df3c8d1d8f64..9343de6947b3 100644 --- a/arch/arm/boot/dts/armada-38x.dtsi +++ b/arch/arm/boot/dts/armada-38x.dtsi @@ -292,7 +292,7 @@ }; gpio0: gpio@18100 { - compatible = "marvell,armada-370-gpio", + compatible = "marvell,armadaxp-gpio", "marvell,orion-gpio"; reg = <0x18100 0x40>, <0x181c0 0x08>; reg-names = "gpio", "pwm"; @@ -310,7 +310,7 @@ }; gpio1: gpio@18140 { - compatible = "marvell,armada-370-gpio", + compatible = "marvell,armadaxp-gpio", "marvell,orion-gpio"; reg = <0x18140 0x40>, <0x181c8 0x08>; reg-names = "gpio", "pwm"; From patchwork Thu Jul 14 18:33:28 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 12918401 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4BAC7C43334 for ; Thu, 14 Jul 2022 18:35:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=t/nT8Re/O5cuxU5kmtg0iUJewTufPPpNbXarvX3VuqU=; b=bb5hiohFxGzga1 eFe1lEfrOWIYETztPSt9lY8ZQ2CZBgkhBvb511fadAIxKqVSDuCCDSh+m3ScmeJj+EdDcPjRUO+9s o8/sZ8fWWI0i4RuepWY/j/ULGo9Gj7uTxPk7VpCmJPHccd+qXyB2EboKwRKvnE2bKDL7d4RWOhNoi E5xf1TAz0f+uHGooSVVd/LnvX9zM/DQ5v8RN7u2p5dNFsTkf5UDkMdrtLDtGYKUdmxIbQ2R4vcc/Y pDusCVodyS28LhYGxsYkGKZCAHYdUNUqW1D4ySynv8bvvtL5Wu4h++XWunaZjiV3AIbHpds2Hpet2 sa7WsOB9FoT77BC7WFow==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oC3ey-00HCy2-UH; Thu, 14 Jul 2022 18:34:01 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oC3eq-00HCqc-AZ for linux-arm-kernel@lists.infradead.org; Thu, 14 Jul 2022 18:33:53 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 074C36219D; Thu, 14 Jul 2022 18:33:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F11EC34114; Thu, 14 Jul 2022 18:33:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657823629; bh=bHCnfGkhpaHt2kUmFet5jXNnahSMUqgBM2cXP2rBui0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bZd0G25prIji2WDZJmJlw3IwGC+82ufpan0eYMMxgadiOkf/SPXupvckuyP2PdRT3 rdlqcmCvpQN2Pj0CeTQLJ4v/2ntGHKdfgRAkAimuzt9IJaIBVnc6+PmBFpLmCNlqrh LEqIM9sr4TkUPgFzHTKZCL8IF1wWwzuW4mHnj3/H3eWtDjKyvWdjo76bwEUqG1z8+I Rho9hfyg8vagdie1yhw6ldFpE2Jv4ATrCpujEwNQ6sa6ErtwlxpigOdjmYYMpoRm5x XpKPLY/ipudlE+oV15ZBbK7+qqI8LVmgndIhJdcrPWHgdd8FyM4ADmcRPb42xAd2Q2 bUJVq8LTihxHA== Received: by pali.im (Postfix) id AE7DC277A; Thu, 14 Jul 2022 20:33:46 +0200 (CEST) From: =?utf-8?q?Pali_Roh=C3=A1r?= To: Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6n?= =?utf-8?q?ig?= , Lee Jones , Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , =?utf-8?q?Marek_Be?= =?utf-8?q?h=C3=BAn?= Cc: linux-pwm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 4/4] ARM: dts: armada-39x: Fix compatible string for gpios Date: Thu, 14 Jul 2022 20:33:28 +0200 Message-Id: <20220714183328.4137-4-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220714183328.4137-1-pali@kernel.org> References: <20220714115515.5748-1-pali@kernel.org> <20220714183328.4137-1-pali@kernel.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220714_113352_413651_DD72FFF2 X-CRM114-Status: GOOD ( 14.00 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Armada 39x supports per CPU interrupts for gpios, like Armada XP. So add compatible string "marvell,armadaxp-gpio" for Armada 39x GPIO nodes. Driver gpio-mvebu.c which handles both pre-XP and XP variants already provides support for per CPU interrupts on XP and newer variants. Signed-off-by: Pali Rohár Fixes: d81a914fc630 ("ARM: dts: mvebu: armada-39x: add missing nodes describing GPIO's") --- arch/arm/boot/dts/armada-39x.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/armada-39x.dtsi b/arch/arm/boot/dts/armada-39x.dtsi index e0b7c2099831..ef3a3859802c 100644 --- a/arch/arm/boot/dts/armada-39x.dtsi +++ b/arch/arm/boot/dts/armada-39x.dtsi @@ -213,7 +213,7 @@ }; gpio0: gpio@18100 { - compatible = "marvell,orion-gpio"; + compatible = "marvell,armadaxp-gpio", "marvell,orion-gpio"; reg = <0x18100 0x40>; ngpios = <32>; gpio-controller; @@ -227,7 +227,7 @@ }; gpio1: gpio@18140 { - compatible = "marvell,orion-gpio"; + compatible = "marvell,armadaxp-gpio", "marvell,orion-gpio"; reg = <0x18140 0x40>; ngpios = <28>; gpio-controller;