diff options
author | Lucian Cristian <lucian.cristian@gmail.com> | 2018-06-23 10:52:10 +0300 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-06-28 20:31:03 +0200 |
commit | 25070f71062e57c08e27b921868178b09274602a (patch) | |
tree | 94cab3d667351f98f42291e9cb05b0759f32648c /target/linux/ath79/dts | |
parent | 7dd3d7e1d3845160c2ef51e6148b452e666bd6f5 (diff) | |
download | upstream-25070f71062e57c08e27b921868178b09274602a.tar.gz upstream-25070f71062e57c08e27b921868178b09274602a.tar.bz2 upstream-25070f71062e57c08e27b921868178b09274602a.zip |
ath79: small wr1043nd-v4 fixes
- fix sysupgrade check
- move usb to v4 dts because v5 doesn't have it
- make wan mac address behave like ar71xx target
- add orange wan led support, it can be userspace activated like:
on:
echo default-on > /sys/class/leds/tp-link\:orange\:wan/trigger
off:
echo none > /sys/class/leds/tp-link\:orange\:wan/trigger
Signed-off-by: Lucian Cristian <lucian.cristian@gmail.com>
Diffstat (limited to 'target/linux/ath79/dts')
-rw-r--r-- | target/linux/ath79/dts/qca9563_tl-wr1043n.dtsi | 29 | ||||
-rw-r--r-- | target/linux/ath79/dts/qca9563_tl-wr1043nd-v4.dts | 23 |
2 files changed, 30 insertions, 22 deletions
diff --git a/target/linux/ath79/dts/qca9563_tl-wr1043n.dtsi b/target/linux/ath79/dts/qca9563_tl-wr1043n.dtsi index 10bdfdf702..3134eb9483 100644 --- a/target/linux/ath79/dts/qca9563_tl-wr1043n.dtsi +++ b/target/linux/ath79/dts/qca9563_tl-wr1043n.dtsi @@ -15,7 +15,7 @@ led-status = &system; }; - leds { + gpio_leds: leds { compatible = "gpio-leds"; system: system { @@ -24,14 +24,6 @@ linux,default-trigger = "heartbeat"; }; - usb { - label = "tp-link:green:usb"; - gpios = <&gpio 7 GPIO_ACTIVE_LOW>; - default-state = "off"; - trigger-sources = <&hub_port0>; - linux,default-trigger = "usbport"; - }; - wifi_green { label = "tp-link:green:wlan"; gpios = <&gpio 19 GPIO_ACTIVE_LOW>; @@ -51,6 +43,12 @@ default-state = "off"; }; + wan_fail { + label = "tp-link:orange:wan"; + gpios = <&gpio 16 GPIO_ACTIVE_LOW>; + default-state = "off"; + }; + lan1 { label = "tp-link:green:lan1"; gpios = <&gpio 9 GPIO_ACTIVE_LOW>; @@ -116,19 +114,6 @@ status = "okay"; }; -&usb_phy0 { - status = "okay"; -}; - -&usb0 { - status = "okay"; - - hub_port0: port@1 { - reg = <1>; - #trigger-source-cells = <0>; - }; -}; - &spi { status = "okay"; num-cs = <1>; diff --git a/target/linux/ath79/dts/qca9563_tl-wr1043nd-v4.dts b/target/linux/ath79/dts/qca9563_tl-wr1043nd-v4.dts index e187de7a23..bc0f356000 100644 --- a/target/linux/ath79/dts/qca9563_tl-wr1043nd-v4.dts +++ b/target/linux/ath79/dts/qca9563_tl-wr1043nd-v4.dts @@ -10,3 +10,26 @@ compatible = "tplink,tl-wr1043nd-v4", "qca,qca9563"; model = "TP-Link TL-WR1043ND Version 4"; }; + +&gpio_leds { + usb { + label = "tp-link:green:usb"; + gpios = <&gpio 7 GPIO_ACTIVE_LOW>; + default-state = "off"; + trigger-sources = <&hub_port0>; + linux,default-trigger = "usbport"; + }; +}; + +&usb_phy0 { + status = "okay"; +}; + +&usb0 { + status = "okay"; + + hub_port0: port@1 { + reg = <1>; + #trigger-source-cells = <0>; + }; +}; |