From mboxrd@z Thu Jan 1 00:00:00 1970 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 98969CE79AC for ; Wed, 20 Sep 2023 09:44:55 +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:References :In-Reply-To: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=hzPqL+HnAFbU8mJFOYzKJ8azoJsWerTZfv9WsaxUDck=; b=BL6WLM6W3dmXAL dIuff+QNb64LGWKc2at8ShdzjJuzgjZ6lc1y+IxMbDrTZiiU66+Peji5JEYeNcxSkiJnHSKGXpmr3 6T7i4Uk88ReZH+0cWIkqTn87GBq4wcMZnpR62/JQZJAu80Od8ftFwYX9GIKDX3ELlU/wtAS9fuFWD tkF4AkW6TtZroNSdkq3ar/QkDicecgFuVSIKvN8FQruBaHayJwDC+rbyZ1ViCEtVv/Qckb/qZ6pyA zt9h8k09snYdMm05Kqc3a6X8057pYlkqIn99Q62ilYoNnjKqD479IcFT+wmLPKdg7AtdF1GG+4OnN duq/7Pp53kzR0vaY1EUA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qitl4-002UoU-2e; Wed, 20 Sep 2023 09:44:34 +0000 Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qitl1-002Una-1l for linux-arm-kernel@lists.infradead.org; Wed, 20 Sep 2023 09:44:33 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 3C6ACE000C; Wed, 20 Sep 2023 09:44:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1695203068; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mdWg2f8wyEvUu7ifWeuk1HFBX98KChKX8fGBNUIqCu4=; b=F9NjGoMtssmaFYzJ0wzkgbyYWBqsvJ6sruWsTO+OI3V8pukhLtYp7jwk31q4mp45mBBUFp 6bCAS/lwSSGJUwn/vXKh4KfM3hxjY4ebhoH0ob273bfC8ZuDu1SRRQ6tSZ+lG08NLRY4KM 3HYzKF5euzJFP6esLyFgcfMpLqtR/OEgKRzV5Pm1QYp57EqjTITN2P0WW/k9mZHEfFJ8ZW 2t5LqZkG5fFKkHntRyYyMPHsMV6dnWU9Y5Soa358gAG6HTglacxZHSEAYuNuMbbH8b+14M 7XkyDij6jPMwJJLYcbAqB+6j0eb3qYH+quEE2EYStX4Q9XxOG3OZPlzHyWdNjg== From: Gregory CLEMENT To: Chris Packham , andrew@lunn.ch, sebastian.hesselbarth@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, kostap@marvell.com Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Packham Subject: Re: [PATCH] ARM64: dts: marvell: cn9310: Use appropriate label for spi1 pins In-Reply-To: <20230820225126.561304-1-chris.packham@alliedtelesis.co.nz> References: <20230820225126.561304-1-chris.packham@alliedtelesis.co.nz> Date: Wed, 20 Sep 2023 11:44:26 +0200 Message-ID: <87h6npfabp.fsf@BL-laptop> MIME-Version: 1.0 X-GND-Sasl: gregory.clement@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230920_024431_876390_DC29A4A7 X-CRM114-Status: GOOD ( 18.49 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Chris Packham writes: > Both the CN9130-CRB and CN9130-DB use the SPI1 interface but had the > pinctrl node labelled as "cp0_spi0_pins". Use the label "cp0_spi1_pins" > and update the node name to "cp0-spi-pins-1" to avoid confusion with the > pinctrl options for SPI0. > > Fixes: 4c43a41e5b8c ("arm64: dts: cn913x: add device trees for topology B boards") > Fixes: 5c0ee54723f3 ("arm64: dts: add support for Marvell cn9130-crb platform") > Signed-off-by: Chris Packham > --- > > Notes: > We noticed this while tracking down a U-Boot bug on one of our > platforms. This mislabeling had been copied and we ended up using the > label when configuring SPI0 which had the nasty side effect of > reconfiguring the NAND/DEV pins into SPI1 mode when SPI0 was probed. > > It probably went unnoticed because none of the CN9130 platforms > supported in upstream U-Boot use NAND. > Applied on mvebu/dt64 Thanks, Gregory > arch/arm64/boot/dts/marvell/cn9130-crb.dtsi | 4 ++-- > arch/arm64/boot/dts/marvell/cn9130-db.dtsi | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/arch/arm64/boot/dts/marvell/cn9130-crb.dtsi b/arch/arm64/boot/dts/marvell/cn9130-crb.dtsi > index 32cfb3e2efc3..47d45ff3d6f5 100644 > --- a/arch/arm64/boot/dts/marvell/cn9130-crb.dtsi > +++ b/arch/arm64/boot/dts/marvell/cn9130-crb.dtsi > @@ -120,7 +120,7 @@ cp0_sdhci_pins: cp0-sdhi-pins-0 { > "mpp59", "mpp60", "mpp61"; > marvell,function = "sdio"; > }; > - cp0_spi0_pins: cp0-spi-pins-0 { > + cp0_spi1_pins: cp0-spi-pins-1 { > marvell,pins = "mpp13", "mpp14", "mpp15", "mpp16"; > marvell,function = "spi1"; > }; > @@ -170,7 +170,7 @@ &cp0_sdhci0 { > > &cp0_spi1 { > pinctrl-names = "default"; > - pinctrl-0 = <&cp0_spi0_pins>; > + pinctrl-0 = <&cp0_spi1_pins>; > reg = <0x700680 0x50>, /* control */ > <0x2000000 0x1000000>; /* CS0 */ > status = "okay"; > diff --git a/arch/arm64/boot/dts/marvell/cn9130-db.dtsi b/arch/arm64/boot/dts/marvell/cn9130-db.dtsi > index c7de1ea0d470..6eb6a175de38 100644 > --- a/arch/arm64/boot/dts/marvell/cn9130-db.dtsi > +++ b/arch/arm64/boot/dts/marvell/cn9130-db.dtsi > @@ -307,7 +307,7 @@ &cp0_sdhci0 { > &cp0_spi1 { > status = "disabled"; > pinctrl-names = "default"; > - pinctrl-0 = <&cp0_spi0_pins>; > + pinctrl-0 = <&cp0_spi1_pins>; > reg = <0x700680 0x50>; > > flash@0 { > @@ -371,7 +371,7 @@ cp0_sdhci_pins: cp0-sdhi-pins-0 { > "mpp59", "mpp60", "mpp61"; > marvell,function = "sdio"; > }; > - cp0_spi0_pins: cp0-spi-pins-0 { > + cp0_spi1_pins: cp0-spi-pins-1 { > marvell,pins = "mpp13", "mpp14", "mpp15", "mpp16"; > marvell,function = "spi1"; > }; > -- > 2.41.0 > -- Gregory Clement, Bootlin Embedded Linux and Kernel engineering http://bootlin.com _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel