Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[gmac] added patchset from 4.14 (some rejects must be fixed)
- Loading branch information
Showing
20 changed files
with
525 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- arch/arm/boot/dts/mt7623.dtsi | ||
+++ arch/arm/boot/dts/mt7623.dtsi | ||
@@ -1221,6 +1221,7 @@ | ||
"syscon"; | ||
reg = <0 0x1b000000 0 0x1000>; | ||
#clock-cells = <1>; | ||
+ #reset-cells = <1>; | ||
}; | ||
|
||
eth: ethernet@1b100000 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
--- arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | ||
+++ arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts | ||
@@ -96,17 +100,21 @@ | ||
default-state = "off"; | ||
}; | ||
}; | ||
- | ||
+/* | ||
memory@80000000 { | ||
reg = <0 0x80000000 0 0x40000000>; | ||
}; | ||
- | ||
+*/ | ||
vdd_fixed_vgpu_reg: fixedregulator@0 { | ||
compatible = "regulator-fixed"; | ||
regulator-name = "vdd_fixed_vgpu"; | ||
regulator-min-microvolt = <1150000>; | ||
regulator-max-microvolt = <1150000>; | ||
}; | ||
+ | ||
+ mt7530: switch@0 { | ||
+ compatible = "mediatek,mt7530"; | ||
+ }; | ||
}; | ||
|
||
&cir { | ||
@@ -134,20 +142,35 @@ | ||
}; | ||
}; | ||
|
||
+ gmac1: mac@1 { | ||
+ compatible = "mediatek,eth-mac"; | ||
+ reg = <1>; | ||
+ phy-mode = "trgmii"; | ||
+ | ||
+ fixed-link { | ||
+ speed = <1000>; | ||
+ full-duplex; | ||
+ pause; | ||
+ }; | ||
+ }; | ||
+ | ||
mdio: mdio-bus { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
- | ||
- switch@0 { | ||
+ }; | ||
+}; | ||
+ &mt7530 { | ||
compatible = "mediatek,mt7530"; | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
- reg = <0>; | ||
+ //reg = <0>; | ||
pinctrl-names = "default"; | ||
reset-gpios = <&pio 33 0>; | ||
core-supply = <&mt6323_vpa_reg>; | ||
io-supply = <&mt6323_vemc3v3_reg>; | ||
|
||
+ dsa,mii-bus = <&mdio>; | ||
+ | ||
ports { | ||
#address-cells = <1>; | ||
#size-cells = <0>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- drivers/net/dsa/mt7530.c | ||
+++ drivers/net/dsa/mt7530.c | ||
@@ -694,8 +702,12 @@ mt7530_cpu_port_enable(struct mt7530_priv *priv, | ||
/* CPU port gets connected to all user ports of | ||
* the switch | ||
*/ | ||
+ for (i = 0; i < MT7530_NUM_PORTS; i++) | ||
+ if ((priv->ds->enabled_port_mask & BIT(i)) && | ||
+ (dsa_port_upstream_port(priv->ds, i) == port)) | ||
+ port_mask |= BIT(i); | ||
mt7530_write(priv, MT7530_PCR_P(port), | ||
- PCR_MATRIX(priv->ds->enabled_port_mask)); | ||
+ PCR_MATRIX(port_mask)); | ||
|
||
return 0; | ||
} | ||
@@ -919,15 +934,7 @@ mt7530_port_fdb_dump(struct dsa_switch *ds, int port, | ||
static enum dsa_tag_protocol | ||
mtk_get_tag_protocol(struct dsa_switch *ds) | ||
{ | ||
- struct mt7530_priv *priv = ds->priv; | ||
- | ||
- if (!dsa_is_cpu_port(ds, MT7530_CPU_PORT)) { | ||
- dev_warn(priv->dev, | ||
- "port not matched with tagging CPU port\n"); | ||
- return DSA_TAG_PROTO_NONE; | ||
- } else { | ||
- return DSA_TAG_PROTO_MTK; | ||
- } | ||
+ return DSA_TAG_PROTO_MTK; | ||
} | ||
|
||
static int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.