Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1419077rdb; Wed, 20 Sep 2023 08:36:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGpyd3l9YcczfSQ7K319B2f1AkYliZnNg18CpahqrgD5SkbiPt15I2uPo+Cc2uhyCfHw5m4 X-Received: by 2002:a05:6a00:a06:b0:690:d2de:14cc with SMTP id p6-20020a056a000a0600b00690d2de14ccmr3315712pfh.33.1695224180647; Wed, 20 Sep 2023 08:36:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695224180; cv=none; d=google.com; s=arc-20160816; b=dInNbaVKz+FzZx7/j4PBZsZRst4lVaEK6kSZK5PZnYQc4fk9eP44tQrDvp33KJpac/ OtRQj14fvw9JHI2KnoW0vo+ZdmG5jyLlsIz0V4CDOeKqtw/VSaq43X1OwQnfAkMHiEPm TPBrY8GNsecAov190w1/DpYuzmKRiccah0mw3KKCiG9zEdTI9sBcpzhMVExtJTlJvC87 aMp5xQDyRGUTOxaCX5Pnae8tBLb8JGqawJfHFQ2GbCFbVRGqi35gVOdXI2xtIz2CJIoQ fGCM+ooKgvcX5SM00IYT4B8ZAKdaxQjX0wZRr/qc1OoRva90yG25w7vWcoLj2Tx0Gacs qpfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=mdWg2f8wyEvUu7ifWeuk1HFBX98KChKX8fGBNUIqCu4=; fh=YuJ0BMUdmxgTVPhf6RDO4JSpX9dCRcWtUYJM4xLQpOY=; b=nB+RuMXvi3j9DKIrRL1BWYIvsLkRoKYzZt1k3HTnHje0ZPhg2xfZdCmQ0LqmXiRAFx CytOKJVRXMDtdPVbZ+7j1xvbRpkK6v7JGkm/qp86iy6xtpL0/0YnhOQoarotSAclI2GQ SbJhJqLzXR/dBQjbH4PopL4CgnjaX8AQBgkwJQCkFuN/VPtdC1zqqqlGlXDN5jfUEO6b otPJb9ZV7r6xleXQ8PYEP5bN/3ep7nhi1AlFNZ0SinPiJHfR1AZPqwwk7zWfLeq+SynO 5d5eKXEq3+SbPJN+AnZXWWU+snIEjSPbwdY3ttXPmcGbcsUmsfwPkYC2TU6vX55Y/XbB TgZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=F9NjGoMt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id g17-20020a056a001a1100b006901c3079c7si12180662pfv.268.2023.09.20.08.36.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 08:36:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=F9NjGoMt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id B23AC82589A7; Wed, 20 Sep 2023 02:44:44 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234129AbjITJog (ORCPT + 99 others); Wed, 20 Sep 2023 05:44:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233968AbjITJof (ORCPT ); Wed, 20 Sep 2023 05:44:35 -0400 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::224]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A6409E; Wed, 20 Sep 2023 02:44:29 -0700 (PDT) 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 Content-Type: text/plain X-GND-Sasl: gregory.clement@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 20 Sep 2023 02:44:44 -0700 (PDT) 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