mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-02 08:32:55 +00:00

The ethernet-switch node does not have children with unit addresses, so address/size-cells are not really correct, as reported by dtc W=1 warning: armada-3720-eDPU.dts:26.19-60.4: Warning (avoid_unnecessary_addr_size): /soc/internal-regs@d0000000/mdio@32004/switch@0: unnecessary #address-cells/#size-cells without "ranges" or child "reg" property This probably also fixes dtbs_check warning, but I could not find it, so not sure about that. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
60 lines
1.0 KiB
Plaintext
60 lines
1.0 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
|
|
/dts-v1/;
|
|
|
|
#include "armada-3720-uDPU.dtsi"
|
|
|
|
/ {
|
|
model = "Methode eDPU Board";
|
|
compatible = "methode,edpu", "marvell,armada3720", "marvell,armada3710";
|
|
};
|
|
|
|
ð0 {
|
|
phy-mode = "2500base-x";
|
|
};
|
|
|
|
/*
|
|
* External MV88E6361 switch is only available on v2 of the board.
|
|
* U-Boot will enable the MDIO bus and switch nodes.
|
|
*/
|
|
&mdio {
|
|
status = "disabled";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&smi_pins>;
|
|
|
|
/* Actual device is MV88E6361 */
|
|
switch: switch@0 {
|
|
compatible = "marvell,mv88e6190";
|
|
reg = <0>;
|
|
status = "disabled";
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
port@0 {
|
|
reg = <0>;
|
|
label = "cpu";
|
|
phy-mode = "2500base-x";
|
|
managed = "in-band-status";
|
|
ethernet = <ð0>;
|
|
};
|
|
|
|
port@9 {
|
|
reg = <9>;
|
|
label = "downlink";
|
|
phy-mode = "2500base-x";
|
|
managed = "in-band-status";
|
|
};
|
|
|
|
port@a {
|
|
reg = <10>;
|
|
label = "uplink";
|
|
phy-mode = "2500base-x";
|
|
managed = "in-band-status";
|
|
sfp = <&sfp_eth1>;
|
|
};
|
|
};
|
|
};
|
|
};
|