diff options
author | Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us> | 2018-08-06 10:52:28 -0700 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-08-13 08:37:19 +0200 |
commit | 1d3ea7874df420ab8d3acbddf5ec9251bf79ed9b (patch) | |
tree | 5c3e276dc3dcb7872ace31c5fc8405f991c87c52 /target/linux/ramips/dts/BR-6478AC-V2.dts | |
parent | 5543d63fc84e64be83afaa4241369a07797f041b (diff) | |
download | upstream-1d3ea7874df420ab8d3acbddf5ec9251bf79ed9b.tar.gz upstream-1d3ea7874df420ab8d3acbddf5ec9251bf79ed9b.tar.bz2 upstream-1d3ea7874df420ab8d3acbddf5ec9251bf79ed9b.zip |
ramips: fix BR-6478ACv2 support
The wholesale changes introduced in commit f9b8328 missed this DTS file
because it hadn't been merged yet. This patch brings it in line to match
the other mt7620a devices' DTS files.
Additionally, the Internet LED is now labeled correctly and set to unused
by default, since the WAN interface is not known in every configuration.
Using sysupgrade between images before and after this commit will require
the -F flag.
Tested-by: Rohan Murch <rohan.murch@gmail.com>
Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
[drop internet led default setting]
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/dts/BR-6478AC-V2.dts')
-rw-r--r-- | target/linux/ramips/dts/BR-6478AC-V2.dts | 92 |
1 files changed, 44 insertions, 48 deletions
diff --git a/target/linux/ramips/dts/BR-6478AC-V2.dts b/target/linux/ramips/dts/BR-6478AC-V2.dts index d0da5efdcd..b38be1e2c2 100644 --- a/target/linux/ramips/dts/BR-6478AC-V2.dts +++ b/target/linux/ramips/dts/BR-6478AC-V2.dts @@ -32,8 +32,6 @@ gpio-keys-polled { compatible = "gpio-keys-polled"; - #address-cells = <1>; - #size-cells = <0>; poll-interval = <20>; reset_wps { @@ -50,8 +48,8 @@ label = "br-6478ac-v2:white:power"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; - wan { - label = "br-6478ac-v2:blue:wan"; + internet { + label = "br-6478ac-v2:blue:internet"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; wlan { @@ -71,7 +69,7 @@ usb-power { gpio-export,name="usb-power"; gpio-export,output=<1>; - gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; /* pin45 */ + gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; }; }; }; @@ -81,45 +79,47 @@ status = "okay"; }; - &spi0 { status = "okay"; - m25p80@0 { - #address-cells = <1>; - #size-cells = <1>; + flash@0 { compatible = "jedec,spi-nor"; reg = <0 0>; - linux,modalias = "m25p80", "mx25l6405d"; spi-max-frequency = <10000000>; - partition@0 { - label = "u-boot"; - reg = <0x0 0x30000>; - read-only; - }; - - partition@30000 { - label = "u-boot-env"; - reg = <0x30000 0x10000>; - read-only; - }; - - factory: partition@40000 { - label = "factory"; - reg = <0x40000 0x10000>; - read-only; - }; - - partition@50000 { - label = "cimage"; - reg = <0x50000 0x20000>; - read-only; - }; - - partition@70000 { - label = "firmware"; - reg = <0x00070000 0x00790000>; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x0 0x30000>; + read-only; + }; + + partition@30000 { + label = "u-boot-env"; + reg = <0x30000 0x10000>; + read-only; + }; + + factory: partition@40000 { + label = "factory"; + reg = <0x40000 0x10000>; + read-only; + }; + + partition@50000 { + label = "cimage"; + reg = <0x50000 0x20000>; + read-only; + }; + + partition@70000 { + label = "firmware"; + reg = <0x00070000 0x00790000>; + }; }; }; }; @@ -127,8 +127,7 @@ &pinctrl { state_default: pinctrl0 { gpio { - ralink,group = "i2c", "uartf", "wdt", "pa", - "ephy", "nd_sd", "wled"; + ralink,group = "i2c", "uartf", "nd_sd"; ralink,function = "gpio"; }; }; @@ -186,23 +185,20 @@ mediatek,port4 = "gmac"; }; - &wmac { ralink,mtd-eeprom = <&factory 0>; }; &pcie { status = "okay"; +}; - pcie-bridge { - mt76@0,0 { - reg = <0x0000 0 0 0 0>; - device_type = "pci"; - mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,2ghz = <0>; - }; +&pcie0 { + wifi@0,0 { + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x8000>; + mediatek,2ghz = <0>; }; - }; &ehci { |