diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network index 75cccae..e87014f 100755 --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -48,6 +48,7 @@ ramips_setup_interfaces() ht-tm02|\ microwrt|\ ncs601w|\ + tp-c516w|\ w150m|\ wnce2001|\ zte-q7) diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index d242235..3261cef 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -259,6 +259,9 @@ ramips_board_detect() { *"NCS601W") name="ncs601w" ;; + *"TP-C516W") + name="tp-c516w" + ;; *"NW718") name="nw718" ;; diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index c24d220..ffff29f 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -193,6 +193,7 @@ BuildFirmware/Default4M/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$( # $(4) = uImage header name field ralink_default_fw_size_8M=8060928 BuildFirmware/Default8M/squashfs=$(call BuildFirmware/OF,$(1),$(2),$(3),$(ralink_default_fw_size_8M),$(4)) +BuildFirmware/Default8M/jffs2=$(call BuildFirmware/OF,$(1),$(2),$(3),$(ralink_default_fw_size_8M),$(4)) BuildFirmware/Default8M/initramfs=$(call BuildFirmware/OF/initramfs,$(1),$(2),$(3),$(4)) BuildFirmware/Tplink/squashfs=$(call BuildFirmware/OF/tplink,$(1),$(2),$(3),$(4)) BuildFirmware/Tplink/initramfs=$(call BuildFirmware/OF/tplink/initramfs,$(1),$(2),$(3),$(4)) @@ -569,6 +570,8 @@ Image/Build/Profile/MZKW300NH2=$(call BuildFirmware/Edimax/$(1),$(1),mzk-w300nh2 Image/Build/Profile/NCS601W=$(call BuildFirmware/Default8M/$(1),$(1),ncs601W,NCS601W) +Image/Build/Profile/TP-C516W=$(call BuildFirmware/Default8M/$(1),$(1),tp-c516w,TP-C516W) + nw718_mtd_size=3801088 Image/Build/Profile/NW718=$(call BuildFirmware/CustomFlashFactory/$(1),$(1),nw718m,NW718,$(nw718_mtd_size),ARA1B4NCRNW718;1,factory) diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 2f6c624..059aae2 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -15,6 +15,8 @@ platform_check_image() { case "$board" in 3g150b|\ + ncs601w|\ + tp-c516w|\ 3g300m|\ 3g-6200n|\ 3g-6200nl|\ diff --git a/target/linux/ramips/dts/rt5350.dtsi b/target/linux/ramips/dts/rt5350.dtsi index 5282e5b..208a962 100644 --- a/target/linux/ramips/dts/rt5350.dtsi +++ b/target/linux/ramips/dts/rt5350.dtsi @@ -119,6 +119,9 @@ compatible = "ralink,rt5350-gpio", "ralink,rt2880-gpio"; reg = <0x660 0x24>; + resets = <&rstctrl 13>; + reset-names = "pio"; + interrupt-parent = <&intc>; interrupts = <6>; @@ -131,7 +134,7 @@ 10 14 18 1c 20 24 ]; - status = "disabled"; + /*status = "disabled";*/ }; i2c@900 { @@ -165,6 +168,7 @@ status = "disabled"; }; + uartlite@c00 { compatible = "ralink,rt5350-uart", "ralink,rt2880-uart", "ns16550a"; @@ -189,6 +193,16 @@ interrupt-parent = <&cpuintc>; interrupts = <7>; }; + + + /* phydummy { + compatible = "ralink,phydummy"; + + pinctrl-names = "default"; + pinctrl-0 = <&led_pins>; + + }; */ + }; pinctrl { @@ -214,13 +228,6 @@ }; }; - phy_led_pins: phy_led { - phy_led { - ralink,group = "led"; - ralink,function = "led"; - }; - }; - uartlite_pins: uartlite { uart { ralink,group = "uartlite"; @@ -241,6 +248,13 @@ ralink,function = "spi_cs1"; }; }; + + led_pins: phy_led { + phy_led { + ralink,group = "led"; + ralink,function = "led"; + }; + }; }; rstctrl: rstctrl { diff --git a/target/linux/ramips/image/Makefile b/target/linux/ramips/image/Makefile index ffff29f..2400261 100644 --- a/target/linux/ramips/image/Makefile +++ b/target/linux/ramips/image/Makefile @@ -745,6 +745,7 @@ define Image/Build/Profile/Default $(call Image/Build/Profile/MZKW300NH2,$(1)) $(call Image/Build/Profile/NBG-419N,$(1)) $(call Image/Build/Profile/NCS601W,$(1)) + $(call Image/Build/Profile/TP-C516W,$(1)) $(call Image/Build/Profile/NW718,$(1)) $(call Image/Build/Profile/MINIEMBWIFI,$(1)) $(call Image/Build/Profile/MINIEMBPLUG,$(1))