diff options
| author | Chuanhong Guo <gch981213@gmail.com> | 2018-08-21 19:39:16 +0800 |
|---|---|---|
| committer | John Crispin <john@phrozen.org> | 2018-08-28 11:26:53 +0200 |
| commit | 028daa99743b87d33759529d40835cb51dced5cc (patch) | |
| tree | 96c9894858af9d1296e7d5f630f61c99d0c67369 /target/linux/ath79/dts | |
| parent | 9300eda00fa91fda22cea56677db5dfa2371ddcb (diff) | |
| download | upstream-028daa99743b87d33759529d40835cb51dced5cc.tar.gz upstream-028daa99743b87d33759529d40835cb51dced5cc.tar.bz2 upstream-028daa99743b87d33759529d40835cb51dced5cc.zip | |
ath79: ag71xx: apply interface mode to MII0/1_CTRL on ar71xx/ar913x
We currently don't have any code configuring interface mode in ath79,
meaning that we relies on bootloader to set the correct interface mode.
This patch added code to set interface correctly so that everything works
even if bootloader configures it wrong.(e.g. on WNDR3800 u-boot set
the second GMAC mode to RMII but it should be RGMII.)
Introduced "qca,mac-idx" for the difference in MII_CTRL register value.
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux/ath79/dts')
| -rw-r--r-- | target/linux/ath79/dts/ar7100.dtsi | 2 | ||||
| -rw-r--r-- | target/linux/ath79/dts/ar9132.dtsi | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/ath79/dts/ar7100.dtsi b/target/linux/ath79/dts/ar7100.dtsi index 8994a7d688d..6402657841f 100644 --- a/target/linux/ath79/dts/ar7100.dtsi +++ b/target/linux/ath79/dts/ar7100.dtsi @@ -182,6 +182,7 @@ resets = <&rst 9>; reset-names = "mac"; + qca,mac-idx = <0>; }; &mdio1 { @@ -201,4 +202,5 @@ resets = <&rst 13>; reset-names = "mac"; + qca,mac-idx = <1>; }; diff --git a/target/linux/ath79/dts/ar9132.dtsi b/target/linux/ath79/dts/ar9132.dtsi index 9d8ddcf9ba1..22649942798 100644 --- a/target/linux/ath79/dts/ar9132.dtsi +++ b/target/linux/ath79/dts/ar9132.dtsi @@ -193,4 +193,5 @@ pll-handle = <&pll>; resets = <&rst 9>; reset-names = "mac"; + qca,mac-idx = <0>; }; |
