X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=target%2Flinux%2Fath79%2Fdts%2Far7161_netgear_wndr3700.dtsi;h=b1c4d87bcb9a4aaf94e4f54e0b744032945119bc;hb=34b10b468e0999f1739931ae8faf7e8e1002c2e8;hp=f3751d588d66cc9077ea6d2a8660e8c22a9c24d4;hpb=b58df9919ef827e4d591e8b1990f0d306f7bdb5f;p=oweals%2Fopenwrt.git diff --git a/target/linux/ath79/dts/ar7161_netgear_wndr3700.dtsi b/target/linux/ath79/dts/ar7161_netgear_wndr3700.dtsi index f3751d588d..b1c4d87bcb 100644 --- a/target/linux/ath79/dts/ar7161_netgear_wndr3700.dtsi +++ b/target/linux/ath79/dts/ar7161_netgear_wndr3700.dtsi @@ -8,7 +8,10 @@ / { aliases { - led-status = &power_green; + led-boot = &power_orange; + led-failsafe = &power_orange; + led-running = &power_green; + led-upgrade = &power_orange; }; chosen { @@ -39,35 +42,45 @@ wps { label = "netgear:orange:wps"; gpios = <&gpio 0 GPIO_ACTIVE_LOW>; - default-state = "off"; }; power_green: power_green { label = "netgear:green:power"; gpios = <&gpio 2 GPIO_ACTIVE_LOW>; - default-state = "off"; }; - power_orange { + power_orange: power_orange { label = "netgear:orange:power"; gpios = <&gpio 1 GPIO_ACTIVE_LOW>; - default-state = "off"; + default-state = "on"; }; wps_green { label = "netgear:green:wps"; gpios = <&gpio 4 GPIO_ACTIVE_LOW>; - default-state = "off"; }; wan_green { label = "netgear:green:wan"; gpios = <&gpio 6 GPIO_ACTIVE_LOW>; - default-state = "off"; }; }; - gpio-keys-polled { + ath9k-leds { + compatible = "gpio-leds"; + wlan2g { + label = "netgear:green:wlan2g"; + gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy0tpt"; + }; + wlan5g { + label = "netgear:blue:wlan5g"; + gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>; + linux,default-trigger = "phy1tpt"; + }; + }; + + keys { compatible = "gpio-keys-polled"; poll-interval = <100>; @@ -138,6 +151,24 @@ &pcie0 { status = "okay"; + + ath9k0: wifi@0,11 { + compatible = "pci168c,0029"; + reg = <0x8800 0 0 0 0x10000>; + mtd-mac-address = <&art 0x0>; + qca,no-eeprom; + #gpio-cells = <2>; + gpio-controller; + }; + + ath9k1: wifi@0,12 { + compatible = "pci168c,0029"; + reg = <0x9000 0 0 0 0x10000>; + mtd-mac-address = <&art 0xc>; + qca,no-eeprom; + #gpio-cells = <2>; + gpio-controller; + }; }; &uart {