diff options
author | Jeff Kletsky <git-commits@allycomm.com> | 2019-03-06 20:44:33 -0800 |
---|---|---|
committer | Christian Lamparter <chunkeey@gmail.com> | 2019-03-13 16:25:34 +0100 |
commit | fefa34def84561688e6af2feeec2dbb390ba4486 (patch) | |
tree | 01fa0995ce976d61e4db88bd7acd598c1063e379 /target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi | |
parent | 7dfe357a3d763d6c62ae6fb9620a013356396572 (diff) | |
download | upstream-fefa34def84561688e6af2feeec2dbb390ba4486.tar.gz upstream-fefa34def84561688e6af2feeec2dbb390ba4486.tar.bz2 upstream-fefa34def84561688e6af2feeec2dbb390ba4486.zip |
ath79: Add GL.iNet AR-300M-Lite
AR300M-Lite is single-Ethernet variant of the AR300M series
Its eth0 would otherwise be assigned to the WAN interface
making it unreachable firstboot or failsafe.
Installation instructions from OEM (OpenWrt variant):
* Install sysupgrade.bin using OEM's "Advanced" GUI (LuCI),
* Do not preserve settings
* Access rebooted device via Ethernet at OpenWrt default address
Add previously missing LED defaults for all three variants;
-nand, -nor, -lite to the definitions in 01_leds
Non-lite variants thanks to Andreas Ziegler
https://patchwork.ozlabs.org/patch/1049396/
Runtime-tested: GL.iNet AR300M-Lite
Signed-off-by: Jeff Kletsky <git-commits@allycomm.com>
Diffstat (limited to 'target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi')
-rw-r--r-- | target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi | 57 |
1 files changed, 49 insertions, 8 deletions
diff --git a/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi index 55002b44e3..ceb2bfa0ff 100644 --- a/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi +++ b/target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi @@ -41,20 +41,22 @@ leds { compatible = "gpio-leds"; - wlan { - label = "gl-ar300m:green:wlan"; - gpios = <&gpio 14 GPIO_ACTIVE_LOW>; - linux,default-trigger = "phy0tpt"; + // Colors from non-Lite versions + + led_status: status { + label = "gl-ar300m:green:status"; + gpios = <&gpio 12 GPIO_ACTIVE_LOW>; }; - lan { + led_lan: lan { label = "gl-ar300m:green:lan"; gpios = <&gpio 13 GPIO_ACTIVE_LOW>; }; - led_status: status { - label = "gl-ar300m:red:status"; - gpios = <&gpio 12 GPIO_ACTIVE_LOW>; + led_wlan: wlan { + label = "gl-ar300m:red:wlan"; + gpios = <&gpio 14 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; }; }; }; @@ -63,6 +65,45 @@ status = "okay"; }; +&spi { + status = "okay"; + num-cs = <0>; + + flash@0 { + compatible = "winbond,w25q128", "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <25000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x000000 0x040000>; + read-only; + }; + + partition@1 { + label = "u-boot-env"; + reg = <0x040000 0x010000>; + }; + + partition@2 { + compatible = "denx,uimage"; + label = "firmware"; + reg = <0x050000 0xfa0000>; + }; + + art: partition@3 { + label = "art"; + reg = <0xff0000 0x010000>; + }; + }; + }; +}; + &uart { status = "okay"; }; |