From patchwork Thu Jul 14 11:55:12 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: 12917751 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 147F3C43334 for ; Thu, 14 Jul 2022 11:57:40 +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: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:In-Reply-To:References: List-Owner; bh=seoRPmII4/MlYl8s1n2ADTaHn+l+WOeS6sJfKHEVQRM=; b=cPGJk+gZ3kmnk7 Fmvp+7Omxp/te+vQhJuedPVUSYmXq4hDVG0mWv8e6s6DqpMWH44Sq4MkbDo+smEngFDbfYZ63Trma PTp07yaD3BIA+ALLXK/LDbOMt9Hh2WWDOcYOZ9sDtDG+HC8UlvhtudlbbXgCV/UlZ2aeaucOIViHC zKry9jTrku9i7TAgu6Ih+iI2p0DLdlTtYBu9vD0Q4NhkcmXlLUvdrm2P3xs7qETbmkZMoq4wy7rgS VmziD/+tlVC9kH8pbxPO4C0320NUQ4ISjNxyFud59xDVu7mlbCqXpcLRf4j0DjwE1gluIBRMeL+9D GRdpamA9RRig38LPsDsQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBxSY-00DyWM-Bf; Thu, 14 Jul 2022 11:56:46 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBxS9-00DyIB-43 for linux-arm-kernel@lists.infradead.org; Thu, 14 Jul 2022 11:56:22 +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 AABFACE2693; Thu, 14 Jul 2022 11:56:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E36B3C34114; Thu, 14 Jul 2022 11:56:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657799772; bh=kMHYnrEnWCDRZLx3w2/b7o5Qlq/C+lrcPobY/5NWAME=; h=From:To:Cc:Subject:Date:From; b=GjRXKN9g5LMFI0DX13xliVDcHGudOPZvUDepRt2Uw1pAe75XfnDZ/vKod5jO6OtnF v+Uz/mIgbF0zCjRqEj0f85s4hNAiyPeQ63L5zPiGBHCCDjTBvnBXJICkXQ0fNjJWeG /YQjkuJ+Q812pCWUiG2XfnJ6C8EHKo0B1pmjUR95WJezFk3fj14fpuvlQ92fJCtRoE g9Eur6CDSq9HolDsx90so4jZ+VwZgjFegxZ1hD6AD6KY9lXfAkG8xoxEj6B+Dfkrhr wXT/vyFoN57IZBLXUYafzSChpyOF8o1tDWlro15PgE25EjpljtzOc4yxDf7GFV7qHl Gp8D1R5iayPCg== Received: by pali.im (Postfix) id E7DF01295; Thu, 14 Jul 2022 13:56:08 +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 1/4] gpio: mvebu: Fix check for pwm support on non-A8K platforms Date: Thu, 14 Jul 2022 13:55:12 +0200 Message-Id: <20220714115515.5748-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220714_045621_421019_63587EA0 X-CRM114-Status: GOOD ( 14.37 ) 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 --- drivers/gpio/gpio-mvebu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpio/gpio-mvebu.c b/drivers/gpio/gpio-mvebu.c index 2db19cd640a4..70a22b68c034 100644 --- a/drivers/gpio/gpio-mvebu.c +++ b/drivers/gpio/gpio-mvebu.c @@ -793,8 +793,7 @@ 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) { /* * There are only two sets of PWM configuration registers for * all the GPIO lines on those SoCs which this driver reserves From patchwork Thu Jul 14 11:55:13 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: 12917748 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 17E92C433EF for ; Thu, 14 Jul 2022 11:57:23 +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=KXM/KsvzRnzezm 3ves9M/8cpbmG6MUcRhzkJ0u185H6WVTJy493tt7Sx8/SoCZLhI2yAyvpt2DbXdQyFfMPZcYO+r1B nIEnYRQhzpkA2T08XWwV8mcvVbDQ7VJeceDk82xIBMTqsD0RCUVmMEGIUHG55FJlPZyiLz4sARb5l j8ZAu67Z3/3ElyNiwGToX2mNXtas/9c0cUeBmxQaCXNazHFO7z37EdwjBE/hxSzJMolc8ax/28QXJ U8vDWQP4GGTfLgnzCImcfEKmiGFoEjj/5Dz8voGFpehNs1vk3zosJujON4tHusvxxhaS8sSzPaRHd 8/BWAs0JtuhlTr0IPbaQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBxS5-00DyH8-0B; Thu, 14 Jul 2022 11:56:17 +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 1oBxS1-00DyEd-5x for linux-arm-kernel@lists.infradead.org; Thu, 14 Jul 2022 11:56:14 +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 BA31C61DBA; Thu, 14 Jul 2022 11:56:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF3A1C34115; Thu, 14 Jul 2022 11:56:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657799772; bh=kbzF1kLHKSnjmvKzE1B04rfZDRLuGvWeaRxAyzu0zY0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uioFVVvM4CuB8Cfy1Wnkf0bsSPSHmBvnbY490+p6SfkOQX6vhrUtS24R5msgi5usq cA3Xc1SA0NIvYeMeKdeXm0fZzsqjQUhSB5lh/0ZBrrknNeWEy+luAprEs+7k8P4FXC VEIdpUj1dX0hZ1/OYjjXwxoQ5wYAdMqv/uHCQCJWvNQiG3q2mA4TdMDKtpkiCsXbXA 0CEE/mj7VbAn3XIDOdamhnWbM/aoAathcKyKQAWDboc28+B+khvq+yCBlrE3drLLD9 VsF1WEzRCilGtsV8TLPoWiCrKtFetAVMx2AMyNXgrZmXgLbl9t93TqInfFIoSW4oTM t+StI/FtsJN/g== Received: by pali.im (Postfix) id 5249C12EF; Thu, 14 Jul 2022 13:56:09 +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 2/4] doc: gpio-mvebu: Add information about Armada 38x and Armada 39x Date: Thu, 14 Jul 2022 13:55:13 +0200 Message-Id: <20220714115515.5748-2-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_045613_282286_62F38F99 X-CRM114-Status: GOOD ( 14.02 ) 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 --- 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 11:55:14 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: 12917749 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 8E3A9C433EF for ; Thu, 14 Jul 2022 11:57:27 +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=mD5U6N5ClY46Ly SI5+O0/ZSnlROiNTQhovpj5MH5xJny4daZsJFOgwa2u4e52s9jrBVBAJezyP0Sw2oFs1C4BeGAl/z XiRWxeeqlJXtFZA44uPUJOeApUGW/EqVxKYwVYgIJG9VmtUSQBl7O7pQEIhfgvCoEivb6Z7/RdXnr Oep9punoZjenzzsGpc0lr7GRyb/TTl3GJsdlmpiBWCAW/+2H2by/dvXRzreBm/Tu8J6LnrzAgjvwi R//IyoSL2cVosEsqvg8F6E/gMmRB0PMlcYAi7MCFnmXklvL5VspNlYk5eV8ADZvVfABVmhQ6MJu94 OcL8hLX/m+DtFsDoFTgw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBxSF-00DyN3-FO; Thu, 14 Jul 2022 11:56:27 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBxS2-00DyF1-56 for linux-arm-kernel@lists.infradead.org; Thu, 14 Jul 2022 11:56:15 +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 4817F61DE1; Thu, 14 Jul 2022 11:56:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D68AC385A5; Thu, 14 Jul 2022 11:56:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657799772; bh=KG4givLWyqqySRMF0vaCp1vCFRAlBgr68900m9VDOgE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QHkzOIqDiBSLfUkFX5faUUwZ8Yz2gHyLz0Rookz6nOnp5J8RRnFVoTip5osmTm+jz VeXFKoKFXPExhhh7KhWzFQZGE9U1gyxIvK5ssEdWnmz9lUPhpU1uiNzyziE37kaV9F WvLYh6cmXbY3frAiZ0bvwqM/82EKQFn7AHQ9IEMm5vYwbwsjS8PVmulQhJbB++JdTq 8ZfbXYA42/3pmIPo8MyXdC8+uO3SD7v0tc/z3XvIirMj1mR7g7iKOkXlt+T1xSsuj6 6cqC8pfHOYeB59REVVpMLKOjJUq9v/OLVXw/oBX+C9pC2ZSUxYVScb0o8MjHpTkztQ PHyYkeCSncuTw== Received: by pali.im (Postfix) id CDAA113D3; Thu, 14 Jul 2022 13:56:09 +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 3/4] ARM: dts: armada-38x: Fix compatible string for gpios Date: Thu, 14 Jul 2022 13:55:14 +0200 Message-Id: <20220714115515.5748-3-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_045614_252900_6EC130D1 X-CRM114-Status: GOOD ( 14.89 ) 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") --- 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 11:55:15 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: 12917750 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 2A2B6C43334 for ; Thu, 14 Jul 2022 11:57:31 +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=xVxw+yBt9MnwfL RIlOftact1ITu6wOyx72lPVqZ20FUMB/MYXqc8+b6IfKl0nMVNKXjWjdmu5j+WkbpWOfHGNT82BQr l1ZwxZA9F/BDJqto56rZf345feFvPjc3zAue1rwlUp29/xvG/KYeMrIUsRJVeai1YHsnKF20K/a/5 QaVEkax1kZTG7OeIMVmGCUwvSdSOqg3dIcV6zmL4eRNoE5YL6ryKV+IIeh1FoQFVf1ljvN92diiTR +kXED+84hUgiqPPXW3jJ44ZZ+/sbduBEByfhvQk2mWoLoNMwZDIrD8x/m7aiVR7QbEpv2jIkmeXzP Cd67R32tpoFT1MBtKNNw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oBxSP-00DyRv-5j; Thu, 14 Jul 2022 11:56:37 +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 1oBxS2-00DyF2-94 for linux-arm-kernel@lists.infradead.org; Thu, 14 Jul 2022 11:56:15 +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 DC1E761DCC; Thu, 14 Jul 2022 11:56:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02956C34115; Thu, 14 Jul 2022 11:56:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657799773; bh=bHCnfGkhpaHt2kUmFet5jXNnahSMUqgBM2cXP2rBui0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sT2i1eP7kxIpRDjAxJm4nPZ/AP32JPS/GSOCIjD/VZPe2jkNSuWRL3xCPM3bSyL1L Ym8lM7wOVVRi9O3wzTCjetYsCvoAdkjenmSbzGWr7OjM2g3wADTYJroWfMWbrHOgOA SLY2squ7k+ubQgscECGndgO656+oSzwWXGyZcAxspjpcRCUQP9heDLQ29AJpmrkrNz flScWBFR2qjSzXbo0gWVhUHN+O7p0y6JyCP0qB59PBi5qCOR2KvweYHdMc/CYE653S smR4CWYQuyMIkz5dI4gq2dvdM0/EShuIzfKUU02Xce9x25DWG9QMaeOYpyFAB2r4kU TayMRXlXYuOxg== Received: by pali.im (Postfix) id 3F244277A; Thu, 14 Jul 2022 13:56:10 +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 4/4] ARM: dts: armada-39x: Fix compatible string for gpios Date: Thu, 14 Jul 2022 13:55:15 +0200 Message-Id: <20220714115515.5748-4-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_045614_376120_3A124148 X-CRM114-Status: GOOD ( 14.29 ) 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;