diff options
author | John Crispin <john@phrozen.org> | 2017-04-21 09:40:01 +0200 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2017-04-24 11:11:52 +0200 |
commit | f3bae0fa4b2e2e3eea64102eb40cd0dffb59f9d3 (patch) | |
tree | 011e058645afb2aee6fa0b934fa2f2f3b8d67ac7 /target/linux/mediatek/files/arch/arm/boot/dts/mt7623-NAND.dts | |
parent | 956e31b1e447a3a3d5cc4c17cda089ccb49b0f29 (diff) | |
download | upstream-f3bae0fa4b2e2e3eea64102eb40cd0dffb59f9d3.tar.gz upstream-f3bae0fa4b2e2e3eea64102eb40cd0dffb59f9d3.tar.bz2 upstream-f3bae0fa4b2e2e3eea64102eb40cd0dffb59f9d3.zip |
mediatek: fix support for gmac1 using external PHY
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/mediatek/files/arch/arm/boot/dts/mt7623-NAND.dts')
-rw-r--r-- | target/linux/mediatek/files/arch/arm/boot/dts/mt7623-NAND.dts | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/target/linux/mediatek/files/arch/arm/boot/dts/mt7623-NAND.dts b/target/linux/mediatek/files/arch/arm/boot/dts/mt7623-NAND.dts index d90e0fbcb5..072ebe764d 100644 --- a/target/linux/mediatek/files/arch/arm/boot/dts/mt7623-NAND.dts +++ b/target/linux/mediatek/files/arch/arm/boot/dts/mt7623-NAND.dts @@ -454,6 +454,14 @@ &gmac1 { mac-address = [00 11 22 33 44 56]; status = "okay"; + + phy-mode = "trgmii"; + + fixed-link { + speed = <1000>; + full-duplex; + pause; + }; }; &gmac2 { @@ -490,29 +498,45 @@ port@0 { reg = <0>; label = "lan0"; + cpu = <&cpu_port0>; }; port@1 { reg = <1>; label = "lan1"; + cpu = <&cpu_port0>; }; port@2 { reg = <2>; label = "lan2"; + cpu = <&cpu_port0>; }; port@3 { reg = <3>; label = "lan3"; + cpu = <&cpu_port0>; }; port@4 { reg = <4>; label = "wan"; + cpu = <&cpu_port1>; }; - port@6 { + cpu_port1: port@5 { + reg = <5>; + label = "cpu"; + ethernet = <&gmac2>; + phy-mode = "trgmii"; + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + + cpu_port0: port@6 { reg = <6>; label = "cpu"; ethernet = <&gmac1>; @@ -526,7 +550,6 @@ }; }; - &pwm { pinctrl-names = "default"; pinctrl-0 = <&pwm_pins>; |