Skip to content

Commit

Permalink
arm64: dts: marvell: replace cpm by cp0, cps by cp1
Browse files Browse the repository at this point in the history
In preparation for the introduction of more than 2 CPs in upcoming
SoCs, it makes sense to move away from the "CP master" (cpm) and "CP
slave" (cps) naming, and use instead cp0/cp1.

This commit is the result of:

 sed 's%cpm%cp0g%' arch/arm64/boot/dts/marvell/*
 sed 's%cps%cp1g%' arch/arm64/boot/dts/marvell/*

So it is a purely mechaninal change.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Suggested-by: Hanna Hawa <hannah@marvell.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
  • Loading branch information
Thomas Petazzoni authored and Gregory CLEMENT committed Jan 5, 2018
1 parent 72a3713 commit 91f1be9
Show file tree
Hide file tree
Showing 7 changed files with 129 additions and 129 deletions.
46 changes: 23 additions & 23 deletions arch/arm64/boot/dts/marvell/armada-7040-db.dts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
reg = <0x0 0x0 0x0 0x80000000>;
};

cpm_reg_usb3_0_vbus: cpm-usb3-0-vbus {
cp0_reg_usb3_0_vbus: cp0-usb3-0-vbus {
compatible = "regulator-fixed";
regulator-name = "usb3h0-vbus";
regulator-min-microvolt = <5000000>;
Expand All @@ -70,7 +70,7 @@
gpio = <&expander0 0 GPIO_ACTIVE_HIGH>;
};

cpm_reg_usb3_1_vbus: cpm-usb3-1-vbus {
cp0_reg_usb3_1_vbus: cp0-usb3-1-vbus {
compatible = "regulator-fixed";
regulator-name = "usb3h1-vbus";
regulator-min-microvolt = <5000000>;
Expand All @@ -79,14 +79,14 @@
gpio = <&expander0 1 GPIO_ACTIVE_HIGH>;
};

cpm_usb3_0_phy: cpm-usb3-0-phy {
cp0_usb3_0_phy: cp0-usb3-0-phy {
compatible = "usb-nop-xceiv";
vcc-supply = <&cpm_reg_usb3_0_vbus>;
vcc-supply = <&cp0_reg_usb3_0_vbus>;
};

cpm_usb3_1_phy: cpm-usb3-1-phy {
cp0_usb3_1_phy: cp0-usb3-1-phy {
compatible = "usb-nop-xceiv";
vcc-supply = <&cpm_reg_usb3_1_vbus>;
vcc-supply = <&cp0_reg_usb3_1_vbus>;
};
};

Expand Down Expand Up @@ -129,11 +129,11 @@
};


&cpm_pcie2 {
&cp0_pcie2 {
status = "okay";
};

&cpm_i2c0 {
&cp0_i2c0 {
status = "okay";
clock-frequency = <100000>;

Expand All @@ -156,7 +156,7 @@
};
};

&cpm_nand {
&cp0_nand {
/*
* SPI on CPM and NAND have common pins on this board. We can
* use only one at a time. To enable the NAND (whihch will
Expand Down Expand Up @@ -186,7 +186,7 @@
};


&cpm_spi1 {
&cp0_spi1 {
status = "okay";

spi-flash@0 {
Expand Down Expand Up @@ -214,17 +214,17 @@
};
};

&cpm_sata0 {
&cp0_sata0 {
status = "okay";
};

&cpm_usb3_0 {
usb-phy = <&cpm_usb3_0_phy>;
&cp0_usb3_0 {
usb-phy = <&cp0_usb3_0_phy>;
status = "okay";
};

&cpm_usb3_1 {
usb-phy = <&cpm_usb3_1_phy>;
&cp0_usb3_1 {
usb-phy = <&cp0_usb3_1_phy>;
status = "okay";
};

Expand All @@ -235,14 +235,14 @@
non-removable;
};

&cpm_sdhci0 {
&cp0_sdhci0 {
status = "okay";
bus-width = <4>;
no-1-8-v;
cd-gpios = <&expander0 12 GPIO_ACTIVE_LOW>;
};

&cpm_mdio {
&cp0_mdio {
status = "okay";

phy0: ethernet-phy@0 {
Expand All @@ -253,28 +253,28 @@
};
};

&cpm_ethernet {
&cp0_ethernet {
status = "okay";
};

&cpm_eth0 {
&cp0_eth0 {
status = "okay";
/* Network PHY */
phy-mode = "10gbase-kr";
/* Generic PHY, providing serdes lanes */
phys = <&cpm_comphy2 0>;
phys = <&cp0_comphy2 0>;
};

&cpm_eth1 {
&cp0_eth1 {
status = "okay";
/* Network PHY */
phy = <&phy0>;
phy-mode = "sgmii";
/* Generic PHY, providing serdes lanes */
phys = <&cpm_comphy0 1>;
phys = <&cp0_comphy0 1>;
};

&cpm_eth2 {
&cp0_eth2 {
status = "okay";
phy = <&phy1>;
phy-mode = "rgmii-id";
Expand Down
18 changes: 9 additions & 9 deletions arch/arm64/boot/dts/marvell/armada-70x0.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@

/ {
aliases {
gpio1 = &cpm_gpio1;
gpio2 = &cpm_gpio2;
spi1 = &cpm_spi0;
spi2 = &cpm_spi1;
gpio1 = &cp0_gpio1;
gpio2 = &cp0_gpio2;
spi1 = &cp0_spi0;
spi2 = &cp0_spi1;
};
};

/*
* Instantiate the CP110
*/
#define CP110_NAME cpm
#define CP110_NAME cp0
#define CP110_BASE f2000000
#define CP110_PCIE_IO_BASE 0xf9000000
#define CP110_PCIE_MEM_BASE 0xf6000000
Expand All @@ -74,16 +74,16 @@
#undef CP110_PCIE1_BASE
#undef CP110_PCIE2_BASE

&cpm_gpio1 {
&cp0_gpio1 {
status = "okay";
};

&cpm_gpio2 {
&cp0_gpio2 {
status = "okay";
};

&cpm_syscon0 {
cpm_pinctrl: pinctrl {
&cp0_syscon0 {
cp0_pinctrl: pinctrl {
compatible = "marvell,armada-7k-pinctrl";

nand_pins: nand-pins {
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/marvell/armada-8020.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,6 @@
* oscillator so this one is let enabled.
*/

&cpm_rtc {
&cp0_rtc {
status = "disabled";
};
Loading

0 comments on commit 91f1be9

Please sign in to comment.