mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-11 07:22:54 +00:00
ipq40xx: convert GL-AP1300 to DSA
Convert GL-AP1300 to DSA and enable it. While working on it rename the GL-AP1300 leds from green to white. Tested-by: Rob White <rob@blue-wave.net> Tested-by: Robert Sommer <frauhottelmann@gmail.com> Signed-off-by: Nick Hainke <vincent@systemli.org>
This commit is contained in:
parent
90ad13c763
commit
0f269554e4
@ -53,7 +53,7 @@ engenius,ens620ext)
|
|||||||
ucidef_set_led_netdev "lan2" "LAN2" "green:lan2" "eth1"
|
ucidef_set_led_netdev "lan2" "LAN2" "green:lan2" "eth1"
|
||||||
;;
|
;;
|
||||||
glinet,gl-ap1300)
|
glinet,gl-ap1300)
|
||||||
ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
|
ucidef_set_led_netdev "wan" "WAN" "white:wan" "wan"
|
||||||
;;
|
;;
|
||||||
glinet,gl-b1300 |\
|
glinet,gl-b1300 |\
|
||||||
mikrotik,lhgg-60ad)
|
mikrotik,lhgg-60ad)
|
||||||
|
@ -32,6 +32,7 @@ ipq40xx_setup_interfaces()
|
|||||||
asus,map-ac2200|\
|
asus,map-ac2200|\
|
||||||
cilab,meshpoint-one|\
|
cilab,meshpoint-one|\
|
||||||
edgecore,ecw5211|\
|
edgecore,ecw5211|\
|
||||||
|
glinet,gl-ap1300|\
|
||||||
glinet,gl-b2200|\
|
glinet,gl-b2200|\
|
||||||
google,wifi|\
|
google,wifi|\
|
||||||
linksys,whw03v2|\
|
linksys,whw03v2|\
|
||||||
|
@ -14,7 +14,6 @@
|
|||||||
led-failsafe = &led_power;
|
led-failsafe = &led_power;
|
||||||
led-running = &led_power;
|
led-running = &led_power;
|
||||||
led-upgrade = &led_power;
|
led-upgrade = &led_power;
|
||||||
label-mac-device = &gmac0;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
memory {
|
memory {
|
||||||
@ -92,13 +91,13 @@
|
|||||||
compatible = "gpio-leds";
|
compatible = "gpio-leds";
|
||||||
|
|
||||||
led_power: power {
|
led_power: power {
|
||||||
label = "green:power";
|
label = "white:power";
|
||||||
gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
|
gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
|
||||||
default-state = "on";
|
default-state = "on";
|
||||||
};
|
};
|
||||||
|
|
||||||
wan {
|
wan {
|
||||||
label = "green:wan";
|
label = "white:wan";
|
||||||
gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
|
gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@ -180,6 +179,14 @@
|
|||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
|
|
||||||
|
macaddr_art_0: mac-address@0 {
|
||||||
|
reg = <0x0 0x6>;
|
||||||
|
};
|
||||||
|
|
||||||
|
macaddr_art_6: mac-address@6 {
|
||||||
|
reg = <0x6 0x6>;
|
||||||
|
};
|
||||||
|
|
||||||
precal_art_1000: precal@1000 {
|
precal_art_1000: precal@1000 {
|
||||||
reg = <0x1000 0x2f20>;
|
reg = <0x1000 0x2f20>;
|
||||||
};
|
};
|
||||||
@ -256,6 +263,30 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&gmac {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&switch {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&swport4 {
|
||||||
|
status = "okay";
|
||||||
|
label = "lan";
|
||||||
|
|
||||||
|
nvmem-cells = <&macaddr_art_0>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
|
};
|
||||||
|
|
||||||
|
&swport5 {
|
||||||
|
status = "okay";
|
||||||
|
label = "wan";
|
||||||
|
|
||||||
|
nvmem-cells = <&macaddr_art_6>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
|
};
|
||||||
|
|
||||||
&wifi0 {
|
&wifi0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
nvmem-cell-names = "pre-calibration";
|
nvmem-cell-names = "pre-calibration";
|
||||||
|
@ -590,8 +590,7 @@ define Device/glinet_gl-ap1300
|
|||||||
KERNEL_INSTALL := 1
|
KERNEL_INSTALL := 1
|
||||||
DEVICE_PACKAGES := ipq-wifi-glinet_gl-ap1300 kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
|
DEVICE_PACKAGES := ipq-wifi-glinet_gl-ap1300 kmod-usb-net-qmi-wwan kmod-usb-serial-option uqmi
|
||||||
endef
|
endef
|
||||||
# Missing DSA Setup
|
TARGET_DEVICES += glinet_gl-ap1300
|
||||||
#TARGET_DEVICES += glinet_gl-ap1300
|
|
||||||
|
|
||||||
define Device/glinet_gl-b1300
|
define Device/glinet_gl-b1300
|
||||||
$(call Device/FitzImage)
|
$(call Device/FitzImage)
|
||||||
|
Loading…
Reference in New Issue
Block a user