Skip to content

Commit 23b336e

Browse files
committed
Merge tag 'mvebu-dt64-6.7-1' of git://git.kernel.org/pub/scm/linux/kernel/git/gclement/mvebu into soc/dt
mvebu dt64 for 6.7 (part 1) Declare switch on eDPU (Armada 3720 based) Use proper suffix -gpios for SFP GPIO properties on uDPU (Armada 3720 based) Use appropriate label for spi1 pins on cn9310 boards * tag 'mvebu-dt64-6.7-1' of git://git.kernel.org/pub/scm/linux/kernel/git/gclement/mvebu: arm64: dts: marvell: eDPU: add support for version with external switch arm64: dts: marvell: uDPU: rename the SFP GPIO properties ARM64: dts: marvell: cn9310: Use appropriate label for spi1 pins Link: https://lore.kernel.org/r/8734y6aaqb.fsf@BL-laptop Signed-off-by: Arnd Bergmann <[email protected]>
2 parents 2707977 + 660b8b2 commit 23b336e

File tree

4 files changed

+55
-8
lines changed

4 files changed

+55
-8
lines changed

arch/arm64/boot/dts/marvell/armada-3720-eDPU.dts

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,50 @@
1212
&eth0 {
1313
phy-mode = "2500base-x";
1414
};
15+
16+
/*
17+
* External MV88E6361 switch is only available on v2 of the board.
18+
* U-Boot will enable the MDIO bus and switch nodes.
19+
*/
20+
&mdio {
21+
status = "disabled";
22+
pinctrl-names = "default";
23+
pinctrl-0 = <&smi_pins>;
24+
25+
/* Actual device is MV88E6361 */
26+
switch: switch@0 {
27+
compatible = "marvell,mv88e6190";
28+
#address-cells = <1>;
29+
#size-cells = <0>;
30+
reg = <0>;
31+
status = "disabled";
32+
33+
ports {
34+
#address-cells = <1>;
35+
#size-cells = <0>;
36+
37+
port@0 {
38+
reg = <0>;
39+
label = "cpu";
40+
phy-mode = "2500base-x";
41+
managed = "in-band-status";
42+
ethernet = <&eth0>;
43+
};
44+
45+
port@9 {
46+
reg = <9>;
47+
label = "downlink";
48+
phy-mode = "2500base-x";
49+
managed = "in-band-status";
50+
};
51+
52+
port@a {
53+
reg = <10>;
54+
label = "uplink";
55+
phy-mode = "2500base-x";
56+
managed = "in-band-status";
57+
sfp = <&sfp_eth1>;
58+
};
59+
};
60+
};
61+
};

arch/arm64/boot/dts/marvell/armada-3720-uDPU.dtsi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@
6161
sfp_eth1: sfp-eth1 {
6262
compatible = "sff,sfp";
6363
i2c-bus = <&i2c1>;
64-
los-gpio = <&gpiosb 7 GPIO_ACTIVE_HIGH>;
65-
mod-def0-gpio = <&gpiosb 8 GPIO_ACTIVE_LOW>;
66-
tx-disable-gpio = <&gpiosb 9 GPIO_ACTIVE_HIGH>;
67-
tx-fault-gpio = <&gpiosb 10 GPIO_ACTIVE_HIGH>;
64+
los-gpios = <&gpiosb 7 GPIO_ACTIVE_HIGH>;
65+
mod-def0-gpios = <&gpiosb 8 GPIO_ACTIVE_LOW>;
66+
tx-disable-gpios = <&gpiosb 9 GPIO_ACTIVE_HIGH>;
67+
tx-fault-gpios = <&gpiosb 10 GPIO_ACTIVE_HIGH>;
6868
maximum-power-milliwatt = <3000>;
6969
};
7070
};

arch/arm64/boot/dts/marvell/cn9130-crb.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
"mpp59", "mpp60", "mpp61";
121121
marvell,function = "sdio";
122122
};
123-
cp0_spi0_pins: cp0-spi-pins-0 {
123+
cp0_spi1_pins: cp0-spi-pins-1 {
124124
marvell,pins = "mpp13", "mpp14", "mpp15", "mpp16";
125125
marvell,function = "spi1";
126126
};
@@ -170,7 +170,7 @@
170170

171171
&cp0_spi1 {
172172
pinctrl-names = "default";
173-
pinctrl-0 = <&cp0_spi0_pins>;
173+
pinctrl-0 = <&cp0_spi1_pins>;
174174
reg = <0x700680 0x50>, /* control */
175175
<0x2000000 0x1000000>; /* CS0 */
176176
status = "okay";

arch/arm64/boot/dts/marvell/cn9130-db.dtsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
&cp0_spi1 {
308308
status = "disabled";
309309
pinctrl-names = "default";
310-
pinctrl-0 = <&cp0_spi0_pins>;
310+
pinctrl-0 = <&cp0_spi1_pins>;
311311
reg = <0x700680 0x50>;
312312

313313
flash@0 {
@@ -371,7 +371,7 @@
371371
"mpp59", "mpp60", "mpp61";
372372
marvell,function = "sdio";
373373
};
374-
cp0_spi0_pins: cp0-spi-pins-0 {
374+
cp0_spi1_pins: cp0-spi-pins-1 {
375375
marvell,pins = "mpp13", "mpp14", "mpp15", "mpp16";
376376
marvell,function = "spi1";
377377
};

0 commit comments

Comments
 (0)