Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1514459imw; Sat, 16 Jul 2022 08:15:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vqx9C4Kd90ETDyRiM61uKFFJLD95nF/MRSiOmEzApLXW0eFP551UmLNE/KcYBek7Kn1ivb X-Received: by 2002:a63:293:0:b0:412:4f02:950f with SMTP id 141-20020a630293000000b004124f02950fmr16692397pgc.187.1657984523878; Sat, 16 Jul 2022 08:15:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657984523; cv=none; d=google.com; s=arc-20160816; b=szlGNuxClKLcSpKzzZnubqyv1h6Yhv5GgQua5GY76/aqajDfCoMBMG+JbiGCT/JZXj Uc9IELf7c5b5WoZoCawCbVkfA5kETxCRwum3ZbhAdQ2g3pK68pgn9Ym7WnTJneFPYhRk aDTn59GuL1jAGrYYvfvgwUY8uUL4vUb8ij/aM9vpD7v3+pdiQRwHNMqFgI6ZF8LqSyLf R0FT9HNPTh9L8V9DBdUu8vfpDI0xx/r/8pebCtOliei5CoDDy/65q8ZiSuNTsr6J7aSk Pmwxt3XaEkjx2RLj+xxLRTLhoIksMRz6uMIm08SK9rNR0cNzPfheLjwaDw0dXS12VoEk UUcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=EpyUnzdsShmvd2z5g1MOUfBQ9owXKuPl30VD1IWz3Fk=; b=Ns46ruLT1zUuvgarUcL41dr2BWAKwYS2sff9tY8GD8sKueBqNnfXsz+uCbgYigWC3i cin+e9ehqlMfmlQNhPS60nykQ9bTBkMGomRjjBOCr++aykfOdLJEMa4zTKux0Pk4G+ra ZEG38lbPQNzFsTy+VhkalPqE4glu84zMCbUkKQYFgSchKWsuhCLcfDB9kVqzBQVyKYBh HGkCeA2Djpy7zeFyry67Sd0ZqocL4++SBM4KUcHpqwRZBRu6EC5OlzIFEWRroNaJJsZm 6XIaNgZC3HoVLj1vF46y2jeLHsEZoaEJxBfu3bsZIPh22RRt/3lWmnAD6FyHv/I4yMGx WPMQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l63-20020a638842000000b003fdcf4695c8si9341385pgd.400.2022.07.16.08.15.02; Sat, 16 Jul 2022 08:15:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231160AbiGPPIL (ORCPT + 99 others); Sat, 16 Jul 2022 11:08:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbiGPPIK (ORCPT ); Sat, 16 Jul 2022 11:08:10 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A7801B7B3 for ; Sat, 16 Jul 2022 08:08:09 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oCjOe-0004aH-Ee; Sat, 16 Jul 2022 17:07:56 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1oCjOc-001L74-Od; Sat, 16 Jul 2022 17:07:54 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1oCjOc-005ZED-4N; Sat, 16 Jul 2022 17:07:54 +0200 Date: Sat, 16 Jul 2022 17:07:51 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Pali =?utf-8?B?Um9ow6Fy?= Cc: Thierry Reding , Lee Jones , Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Marek =?utf-8?B?QmVow7pu?= , 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: Re: [PATCH v2 3/4] ARM: dts: armada-38x: Fix compatible string for gpios Message-ID: <20220716150751.6yaknmo3qwusyy5h@pengutronix.de> References: <20220714115515.5748-1-pali@kernel.org> <20220714183328.4137-1-pali@kernel.org> <20220714183328.4137-3-pali@kernel.org> <20220716144028.rzwcn4wl5uyxepjd@pengutronix.de> <20220716145019.nps3oh4a22fsuzup@pali> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="mbmakiw7qwh6ws4a" Content-Disposition: inline In-Reply-To: <20220716145019.nps3oh4a22fsuzup@pali> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --mbmakiw7qwh6ws4a Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jul 16, 2022 at 04:50:19PM +0200, Pali Roh=E1r wrote: > On Saturday 16 July 2022 16:40:28 Uwe Kleine-K=F6nig wrote: > > On Thu, Jul 14, 2022 at 08:33:27PM +0200, Pali Roh=E1r wrote: > > > 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. > > >=20 > > > So change compatible string for Armada 38x from "marvell,armada-370-g= pio" > > > which indicates pre-XP variant to "marvell,armadaxp-gpio" which indic= ates > > > XP variant or new. > > >=20 > > > Driver gpio-mvebu.c which handles both pre-XP and XP variants already > > > provides support for per CPU interrupts on XP and newer variants. > > >=20 > > > Signed-off-by: Pali Roh=E1r > > > 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(-) > > >=20 > > > diff --git a/arch/arm/boot/dts/armada-38x.dtsi b/arch/arm/boot/dts/ar= mada-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 @@ > > > }; > > > =20 > > > gpio0: gpio@18100 { > > > - compatible =3D "marvell,armada-370-gpio", > > > + compatible =3D "marvell,armadaxp-gpio", > > > "marvell,orion-gpio"; > >=20 > > If you can treat the XP variant as 370 and everything that is supposed > > to work on 370 works then, then maybe the right incarnation is: > >=20 > > compatible =3D "marvell,armadaxp-gpio", "marvell,armada-370-gpio", "ma= rvell,orion-gpio"; > >=20 > > ? >=20 > For pre-XP variants is "marvell,orion-gpio" enough and for XP + post-XP > is needed "marvell,armadaxp-gpio" (with possible "marvell,orion-gpio" > for backward compatibility). >=20 > So I do not see reason why to add "marvell,armada-370-gpio" nor what > value it brings. If you boot an older kernel (i.e. one that doesn't support marvell,armadaxp-gpio, but does support marvell,armada-370-gpio), it will work better as there are relevant differences between marvell,orion-gpio and marvell,armada-370-gpio. For example some registers seem to have a different offset ... Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --mbmakiw7qwh6ws4a Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmLS1EMACgkQwfwUeK3K 7AkxzQf+JnWj+P369JeEqvihi0Qj5V7qPoBnMdsxxJcFW/lDUKlNfHlvbYTaiKPP 65Wkco8ncalzS1rFIfTXD9Kg4oc7CUft8x4OvgFug7GMkPnvdzYMzC1ey1rJBvUJ 8dPt8BcscOAaE3NegqnDwVw44Yg7/qHFaFpxkmvPGCFAY1g/c6cZGJd6CDOrT0Q6 czIEy2FpqhdcDJZ8yMHjqp5dImcZn277LMIY5dqziupIBVKFIh0YuV7MdksXu/XP rjqP/FSKB71ZOX/lPTyzKa69FyV5P/+2f15LptLxLoM3qLbpfI+tXTd21uEZgw3f IerhFelatP+M9dKpMSMFaMk8N/cQcg== =UqHw -----END PGP SIGNATURE----- --mbmakiw7qwh6ws4a--