提交 e2a393c6 编写于 作者: T Thomas Petazzoni 提交者: Gregory CLEMENT

arm64: dts: marvell: use aliases for SPI busses on Armada 7K/8K

We are currently using the cell-index DT property to assign SPI bus
numbers. This property is specific to the spi-orion driver, and
requires each SPI controller to have a unique ID defined in the Device
Tree.

As we are about to merge armada-cp110-master.dtsi and
armada-cp110-slave.dtsi into a single file, those cell-index
properties that differ between the master CP110 and the slave CP110
are a difference that would have to be handled.

In order to avoid this, we switch to using the "aliases" DT node to
assign a unique number to each SPI controller. This is more generic,
and directly handled by the SPI core.
Signed-off-by: NThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: NGregory CLEMENT <gregory.clement@free-electrons.com>
上级 af9ad5bc
...@@ -50,6 +50,8 @@ ...@@ -50,6 +50,8 @@
aliases { aliases {
gpio1 = &cpm_gpio1; gpio1 = &cpm_gpio1;
gpio2 = &cpm_gpio2; gpio2 = &cpm_gpio2;
spi1 = &cpm_spi0;
spi2 = &cpm_spi1;
}; };
}; };
......
...@@ -51,6 +51,10 @@ ...@@ -51,6 +51,10 @@
aliases { aliases {
gpio1 = &cps_gpio1; gpio1 = &cps_gpio1;
gpio2 = &cpm_gpio2; gpio2 = &cpm_gpio2;
spi1 = &cpm_spi0;
spi2 = &cpm_spi1;
spi3 = &cps_spi0;
spi4 = &cps_spi1;
}; };
}; };
......
...@@ -58,6 +58,7 @@ ...@@ -58,6 +58,7 @@
serial0 = &uart0; serial0 = &uart0;
serial1 = &uart1; serial1 = &uart1;
gpio0 = &ap_gpio; gpio0 = &ap_gpio;
spi0 = &spi0;
}; };
psci { psci {
...@@ -203,7 +204,6 @@ ...@@ -203,7 +204,6 @@
reg = <0x510600 0x50>; reg = <0x510600 0x50>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
cell-index = <0>;
interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&ap_clk 3>; clocks = <&ap_clk 3>;
status = "disabled"; status = "disabled";
......
...@@ -283,7 +283,6 @@ ...@@ -283,7 +283,6 @@
reg = <0x700600 0x50>; reg = <0x700600 0x50>;
#address-cells = <0x1>; #address-cells = <0x1>;
#size-cells = <0x0>; #size-cells = <0x0>;
cell-index = <1>;
clocks = <&cpm_clk 1 21>; clocks = <&cpm_clk 1 21>;
status = "disabled"; status = "disabled";
}; };
...@@ -293,7 +292,6 @@ ...@@ -293,7 +292,6 @@
reg = <0x700680 0x50>; reg = <0x700680 0x50>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
cell-index = <2>;
clocks = <&cpm_clk 1 21>; clocks = <&cpm_clk 1 21>;
status = "disabled"; status = "disabled";
}; };
......
...@@ -284,7 +284,6 @@ ...@@ -284,7 +284,6 @@
reg = <0x700600 0x50>; reg = <0x700600 0x50>;
#address-cells = <0x1>; #address-cells = <0x1>;
#size-cells = <0x0>; #size-cells = <0x0>;
cell-index = <3>;
clocks = <&cps_clk 1 21>; clocks = <&cps_clk 1 21>;
status = "disabled"; status = "disabled";
}; };
...@@ -294,7 +293,6 @@ ...@@ -294,7 +293,6 @@
reg = <0x700680 0x50>; reg = <0x700680 0x50>;
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
cell-index = <4>;
clocks = <&cps_clk 1 21>; clocks = <&cps_clk 1 21>;
status = "disabled"; status = "disabled";
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册