Am 18. September 2023 19:52:31 MESZ schrieb Mark Kettenis <mark.kette...@xs4all.nl>: >> From: Frank Wunderlich <li...@fw-web.de> >> Date: Mon, 18 Sep 2023 19:36:24 +0200
Hi Mark, >> --- /dev/null >> +++ b/arch/arm/dts/rk3568-bpi-r2pro-u-boot.dtsi >> @@ -0,0 +1,28 @@ >> +// SPDX-License-Identifier: GPL-2.0+ >> +/* >> + * (C) Copyright 2021 Rockchip Electronics Co., Ltd >> + */ >> + >> +#include "rk356x-u-boot.dtsi" >> + >> +/ { >> + chosen { >> + stdout-path = &uart2; >> + }; >> +}; >> + >> +&uart2 { >> + clock-frequency = <24000000>; >> + bootph-pre-ram; >> + status = "okay"; >> +}; >> + >> +&gmac0 { >> + status = "disabled"; >> +}; >> + >> +/delete-node/ &{/ethernet@fe2a0000/mdio/switch@0}; > >Why are you deleting the switch node? This way an OS that uses the >device tree provided by U-boot will not have a working switch... Is there such an OS? Linux uses own dts. The switch will also not work because the gmac0 is deactivated to fix the timeout in uboot because phy does not answer. I can leave the switch-node, but i do not want the timeout on network access on gmac0. >> +&mdio0 { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + switch@0 { >> + compatible = "mediatek,mt7531"; >> + reg = <0>; >> + >> + ports { >> + #address-cells = <1>; >> + #size-cells = <0>; >> + >> + port@1 { >> + reg = <1>; >> + label = "lan0"; >> + }; >> + >> + port@2 { >> + reg = <2>; >> + label = "lan1"; >> + }; >> + >> + port@3 { >> + reg = <3>; >> + label = "lan2"; >> + }; >> + >> + port@4 { >> + reg = <4>; >> + label = "lan3"; >> + }; >> + >> + port@5 { >> + reg = <5>; >> + label = "cpu"; >> + ethernet = <&gmac0>; >> + phy-mode = "rgmii"; >> + >> + fixed-link { >> + speed = <1000>; >> + full-duplex; >> + pause; >> + }; >> + }; >> + }; >> + }; >> +}; regards Frank