Author: blogic
Date: 2014-07-02 09:42:44 +0200 (Wed, 02 Jul 2014)
New Revision: 41453

Added:
   trunk/target/linux/ramips/dts/NCS601W.dts
   trunk/target/linux/ramips/rt305x/profiles/wansview.mk
Modified:
   trunk/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
   trunk/target/linux/ramips/base-files/etc/uci-defaults/02_network
   trunk/target/linux/ramips/base-files/lib/ramips.sh
   trunk/target/linux/ramips/image/Makefile
Log:
ralink: add Wansview NCS601W IP Camera

Signed-off-by: John Crispin <[email protected]>

Modified: 
trunk/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
===================================================================
--- 
trunk/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom    
    2014-07-01 18:17:55 UTC (rev 41452)
+++ 
trunk/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom    
    2014-07-02 07:42:44 UTC (rev 41453)
@@ -91,6 +91,7 @@
        mpr-a1 | \
        mpr-a2 | \
        pwh2004 | \
+       ncs601w | \
        nbg-419n | \
        nw718 | \
        omni-emb | \

Modified: trunk/target/linux/ramips/base-files/etc/uci-defaults/02_network
===================================================================
--- trunk/target/linux/ramips/base-files/etc/uci-defaults/02_network    
2014-07-01 18:17:55 UTC (rev 41452)
+++ trunk/target/linux/ramips/base-files/etc/uci-defaults/02_network    
2014-07-02 07:42:44 UTC (rev 41453)
@@ -43,6 +43,7 @@
        all5003 | \
        broadway | \
        dcs-930| \
+       ncs601w | \
        wnce2001)
                ucidef_add_switch "switch0" "1" "0"
                ucidef_set_interface_lan "eth0"

Modified: trunk/target/linux/ramips/base-files/lib/ramips.sh
===================================================================
--- trunk/target/linux/ramips/base-files/lib/ramips.sh  2014-07-01 18:17:55 UTC 
(rev 41452)
+++ trunk/target/linux/ramips/base-files/lib/ramips.sh  2014-07-02 07:42:44 UTC 
(rev 41453)
@@ -301,6 +301,9 @@
        *"WRTNODE")
                name="wrtnode"
                ;;
+       *"Wansview NCS601W")
+               name="ncs601w"
+               ;;
        *"Sercomm NA930")
                name="na930"
                ;;

Added: trunk/target/linux/ramips/dts/NCS601W.dts
===================================================================
--- trunk/target/linux/ramips/dts/NCS601W.dts                           (rev 0)
+++ trunk/target/linux/ramips/dts/NCS601W.dts   2014-07-02 07:42:44 UTC (rev 
41453)
@@ -0,0 +1,110 @@
+/dts-v1/;
+
+/include/ "rt5350.dtsi"
+
+/ {
+       compatible = "NCS601W", "ralink,rt5350-soc";
+       model = "Wansview NCS601W";
+
+       palmbus@10000000 {
+               spi@b00 {
+                       status = "okay";
+                       m25p80@0 {
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+                               compatible = "s25fl064k";
+                               reg = <0 0>;
+                               linux,modalias = "m25p80", "s25fl064k";
+                               spi-max-frequency = <10000000>;
+
+                               partition@0 {
+                                       label = "u-boot";
+                                       reg = <0x0 0x30000>;
+                                       read-only;
+                               };
+
+                               partition@30000 {
+                                       label = "u-boot-env";
+                                       reg = <0x30000 0x10000>;
+                                       read-only;
+                               };
+
+                               factory: partition@40000 {
+                                       label = "factory";
+                                       reg = <0x40000 0x10000>;
+                                       read-only;
+                               };
+
+                               partition@50000 {
+                                       label = "firmware";
+                                       reg = <0x50000 0x7b0000>;
+                               };
+                       };
+               };
+       };
+
+       pinctrl {
+               state_default: pinctrl0 {
+                       gpio {
+                               ralink,group = "i2c", "jtag", "rgmii", "mdio", 
"uartf";
+                               ralink,function = "gpio";
+                       };
+               };
+       };
+
+       ethernet@10100000 {
+               mtd-mac-address = <&factory 0x4>;
+       };
+
+       esw@10110000 {
+               ralink,portmap = <0x2f>;
+       };
+
+       ehci@101c0000 {
+               status = "okay";
+       };
+
+       ohci@101c1000 {
+               status = "okay";
+       };
+
+/*     gpio-leds {
+               compatible = "gpio-leds";
+               system {
+                       label = "mpr-a1:blue:system";
+                       gpios = <&gpio0 20 1>;
+               };
+               power {
+                       label = "mpr-a1:red:power";
+                       gpios = <&gpio0 17 1>;
+               };
+       };
+
+       gpio-keys-polled {
+               compatible = "gpio-keys-polled";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               poll-interval = <20>;
+               wps {
+                       label = "reset";
+                       gpios = <&gpio0 0 1>;
+                       linux,code = <0x198>;
+               };
+       };
+
+       gpio_export {
+               compatible = "gpio-export";
+               #size-cells = <0>;
+
+               usb {
+                       gpio-export,name = "usb";
+                       gpio-export,output = <1>;
+                       gpios = <&gpio0 7 0>;
+               };
+               root_hub {
+                       gpio-export,name = "root_hub";
+                       gpio-export,output = <1>;
+                       gpios = <&gpio0 12 0>;
+               };
+       }; */
+};

Modified: trunk/target/linux/ramips/image/Makefile
===================================================================
--- trunk/target/linux/ramips/image/Makefile    2014-07-01 18:17:55 UTC (rev 
41452)
+++ trunk/target/linux/ramips/image/Makefile    2014-07-02 07:42:44 UTC (rev 
41453)
@@ -449,6 +449,8 @@
 
 Image/Build/Profile/MZKW300NH2=$(call 
BuildFirmware/Edimax/$(1),$(1),mzk-w300nh2,MZK-W300NH2,$(mzkw300nh2_mtd_size),CSYS,RN52,0x50000,0xc0000)
 
+Image/Build/Profile/NCS601W=$(call 
BuildFirmware/Default8M/$(1),$(1),ncs601W,NCS601W)
+
 nw718_mtd_size=3801088
 Image/Build/Profile/NW718=$(call 
BuildFirmware/CustomFlashFactory/$(1),$(1),nw718m,NW718,$(nw718_mtd_size),ARA1B4NCRNW718;1,factory)
 
@@ -596,6 +598,7 @@
        $(call Image/Build/Profile/MPRA2,$(1))
        $(call Image/Build/Profile/MZKW300NH2,$(1))
        $(call Image/Build/Profile/NBG-419N,$(1))
+       $(call Image/Build/Profile/NCS601W,$(1))
        $(call Image/Build/Profile/NW718,$(1))
        $(call Image/Build/Profile/OMNI-EMB,$(1))
        $(call Image/Build/Profile/PSR-680W,$(1))

Added: trunk/target/linux/ramips/rt305x/profiles/wansview.mk
===================================================================
--- trunk/target/linux/ramips/rt305x/profiles/wansview.mk                       
        (rev 0)
+++ trunk/target/linux/ramips/rt305x/profiles/wansview.mk       2014-07-02 
07:42:44 UTC (rev 41453)
@@ -0,0 +1,18 @@
+#
+# Copyright (C) 2014 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/NCS601W
+       NAME:=Wansview NCS601W
+        PACKAGES:=kmod-video-core kmod-video-uvc \
+               kmod-usb-core kmod-usb-ohci
+endef
+
+define Profile/NCS601W/Description
+       Package set for Wansview NCS601W board
+endef
+
+$(eval $(call Profile,NCS601W))
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to