ARM64: dts: marvell: cn9310: Use appropriate label for spi1 pins
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Sun, 20 Aug 2023 22:51:25 +0000 (10:51 +1200)
committerGregory CLEMENT <gregory.clement@bootlin.com>
Wed, 20 Sep 2023 09:43:59 +0000 (11:43 +0200)
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 <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
arch/arm64/boot/dts/marvell/cn9130-crb.dtsi
arch/arm64/boot/dts/marvell/cn9130-db.dtsi

index 32cfb3e2efc3a4a23127db2beec92af91551d6b3..47d45ff3d6f578eeb0c3aaa62126f9c3b3af1b33 100644 (file)
                                       "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";
                };
 
 &cp0_spi1 {
        pinctrl-names = "default";
-       pinctrl-0 = <&cp0_spi0_pins>;
+       pinctrl-0 = <&cp0_spi1_pins>;
        reg = <0x700680 0x50>,          /* control */
              <0x2000000 0x1000000>;    /* CS0 */
        status = "okay";
index c7de1ea0d470a9370aeef50d03653e16f16b031f..6eb6a175de38d550633f75d05093f1486d4ac20f 100644 (file)
 &cp0_spi1 {
        status = "disabled";
        pinctrl-names = "default";
-       pinctrl-0 = <&cp0_spi0_pins>;
+       pinctrl-0 = <&cp0_spi1_pins>;
        reg = <0x700680 0x50>;
 
        flash@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";
                };