Author: blogic
Date: 2015-08-17 07:58:57 +0200 (Mon, 17 Aug 2015)
New Revision: 46621

Added:
   trunk/target/linux/ramips/dts/ATP-52B.dts
Removed:
   trunk/target/linux/ramips/dts/ARGUS_ATP52B.dts
Modified:
   trunk/target/linux/ramips/base-files/etc/board.d/02_network
   trunk/target/linux/ramips/base-files/etc/diag.sh
   trunk/target/linux/ramips/base-files/lib/ramips.sh
   trunk/target/linux/ramips/image/Makefile
Log:
ramips: fix Argus ATP-52B board and image names

The following patch:
 * changes board name from "argus-atp52b" to "atp-52b"
 * changes dts filename
 * fixes LED names in dts file and base-files scripts
 * removes manufacturer name from image filename

for Argus ATP-52B device.

Signed-off-by: Piotr Dymacz <[email protected]>

Modified: trunk/target/linux/ramips/base-files/etc/board.d/02_network
===================================================================
--- trunk/target/linux/ramips/base-files/etc/board.d/02_network 2015-08-17 
05:58:44 UTC (rev 46620)
+++ trunk/target/linux/ramips/base-files/etc/board.d/02_network 2015-08-17 
05:58:57 UTC (rev 46621)
@@ -161,7 +161,7 @@
 
        awm002-evb | \
        awm003-evb | \
-       argus-atp52b | \
+       atp-52b | \
        dir-645 | \
        dir-860l-b1 | \
        f5d8235-v1 | \

Modified: trunk/target/linux/ramips/base-files/etc/diag.sh
===================================================================
--- trunk/target/linux/ramips/base-files/etc/diag.sh    2015-08-17 05:58:44 UTC 
(rev 46620)
+++ trunk/target/linux/ramips/base-files/etc/diag.sh    2015-08-17 05:58:57 UTC 
(rev 46621)
@@ -27,8 +27,8 @@
        awapn2403)
                status_led="asiarf:green:wps"
                ;;
-       argus-atp52b)
-               status_led="argus-atp52b:green:run"
+       atp-52b)
+               status_led="atp-52b:green:run"
                ;;
        asl26555)
                status_led="asl26555:green:power"

Modified: trunk/target/linux/ramips/base-files/lib/ramips.sh
===================================================================
--- trunk/target/linux/ramips/base-files/lib/ramips.sh  2015-08-17 05:58:44 UTC 
(rev 46620)
+++ trunk/target/linux/ramips/base-files/lib/ramips.sh  2015-08-17 05:58:57 UTC 
(rev 46621)
@@ -62,7 +62,7 @@
                name="c20i"
                ;;
        *"Argus ATP-52B")
-               name="argus-atp52b"
+               name="atp-52b"
                ;;
        *"AsiaRF AWM002 EVB")
                name="awm002-evb"

Deleted: trunk/target/linux/ramips/dts/ARGUS_ATP52B.dts
===================================================================
--- trunk/target/linux/ramips/dts/ARGUS_ATP52B.dts      2015-08-17 05:58:44 UTC 
(rev 46620)
+++ trunk/target/linux/ramips/dts/ARGUS_ATP52B.dts      2015-08-17 05:58:57 UTC 
(rev 46621)
@@ -1,96 +0,0 @@
-/dts-v1/;
-
-/include/ "rt3050.dtsi"
-
-/ {
-       compatible = "ARGUS_ATP52B", "ralink,rt3052-soc";
-       model = "Argus ATP-52B";
-
-       pinctrl {
-               state_default: pinctrl0 {
-                       gpio {
-                               ralink,group = "i2c", "jtag", "rgmii", "mdio", 
"uartf";
-                               ralink,function = "gpio";
-                       };
-               };
-       };
-
-       cfi@1f000000 {
-               compatible = "cfi-flash";
-               reg = <0x1f000000 0x800000>;
-               bank-width = <2>;
-               device-width = <2>;
-               #address-cells = <1>;
-               #size-cells = <1>;
-
-               partition@0 {
-                       label = "bootloader";
-                       reg = <0x0 0x30000>;
-                       read-only;
-               };
-
-               partition@30000 {
-                       label = "config";
-                       reg = <0x30000 0x10000>;
-               };
-
-               factory: partition@40000 {
-                       label = "factory";
-                       reg = <0x40000 0x10000>;
-               };
-
-               partition@50000 {
-                       label = "firmware";
-                       reg = <0x50000 0x7a0000>;
-               };
-       };
-
-       gpio-leds {
-               compatible = "gpio-leds";
-
-               run {
-                       label = "argus-atp52b:green:run";
-                       gpios = <&gpio0 9 1>;
-               };
-
-               net {
-                       label = "argus-atp52b:amber:net";
-                       gpios = <&gpio0 13 1>;
-               };
-       };
-
-       gpio-keys-polled {
-               compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
-               poll-interval = <20>;
-
-               wps {
-                       label = "wps";
-                       gpios = <&gpio0 0 1>;
-                       linux,code = <0x211>;
-               };
-
-               reset {
-                       label = "reset";
-                       gpios = <&gpio0 10 1>;
-                       linux,code = <0x198>;
-               };
-       };
-
-       ethernet@10100000 {
-               mtd-mac-address = <&factory 0x4>;
-       };
-
-       esw@10110000 {
-               ralink,portmap = <0x3e>;
-       };
-
-       wmac@10180000 {
-               ralink,mtd-eeprom = <&factory 0>;
-       };
-
-       otg@101c0000 {
-               status = "okay";
-       };
-};

Copied: trunk/target/linux/ramips/dts/ATP-52B.dts (from rev 46620, 
trunk/target/linux/ramips/dts/ARGUS_ATP52B.dts)
===================================================================
--- trunk/target/linux/ramips/dts/ATP-52B.dts                           (rev 0)
+++ trunk/target/linux/ramips/dts/ATP-52B.dts   2015-08-17 05:58:57 UTC (rev 
46621)
@@ -0,0 +1,96 @@
+/dts-v1/;
+
+/include/ "rt3050.dtsi"
+
+/ {
+       compatible = "ATP-52B", "ralink,rt3052-soc";
+       model = "Argus ATP-52B";
+
+       pinctrl {
+               state_default: pinctrl0 {
+                       gpio {
+                               ralink,group = "i2c", "jtag", "rgmii", "mdio", 
"uartf";
+                               ralink,function = "gpio";
+                       };
+               };
+       };
+
+       cfi@1f000000 {
+               compatible = "cfi-flash";
+               reg = <0x1f000000 0x800000>;
+               bank-width = <2>;
+               device-width = <2>;
+               #address-cells = <1>;
+               #size-cells = <1>;
+
+               partition@0 {
+                       label = "bootloader";
+                       reg = <0x0 0x30000>;
+                       read-only;
+               };
+
+               partition@30000 {
+                       label = "config";
+                       reg = <0x30000 0x10000>;
+               };
+
+               factory: partition@40000 {
+                       label = "factory";
+                       reg = <0x40000 0x10000>;
+               };
+
+               partition@50000 {
+                       label = "firmware";
+                       reg = <0x50000 0x7a0000>;
+               };
+       };
+
+       gpio-leds {
+               compatible = "gpio-leds";
+
+               run {
+                       label = "atp-52b:green:run";
+                       gpios = <&gpio0 9 1>;
+               };
+
+               net {
+                       label = "atp-52b:amber:net";
+                       gpios = <&gpio0 13 1>;
+               };
+       };
+
+       gpio-keys-polled {
+               compatible = "gpio-keys-polled";
+               #address-cells = <1>;
+               #size-cells = <0>;
+               poll-interval = <20>;
+
+               wps {
+                       label = "wps";
+                       gpios = <&gpio0 0 1>;
+                       linux,code = <0x211>;
+               };
+
+               reset {
+                       label = "reset";
+                       gpios = <&gpio0 10 1>;
+                       linux,code = <0x198>;
+               };
+       };
+
+       ethernet@10100000 {
+               mtd-mac-address = <&factory 0x4>;
+       };
+
+       esw@10110000 {
+               ralink,portmap = <0x3e>;
+       };
+
+       wmac@10180000 {
+               ralink,mtd-eeprom = <&factory 0>;
+       };
+
+       otg@101c0000 {
+               status = "okay";
+       };
+};

Modified: trunk/target/linux/ramips/image/Makefile
===================================================================
--- trunk/target/linux/ramips/image/Makefile    2015-08-17 05:58:44 UTC (rev 
46620)
+++ trunk/target/linux/ramips/image/Makefile    2015-08-17 05:58:57 UTC (rev 
46621)
@@ -442,7 +442,7 @@
 Image/Build/Profile/ALL5003=$(call 
BuildFirmware/CustomFlash/$(1),$(1),all5003,ALL5003,$(allnet_all5002_mtd_size))
 
 argus_atp52b_mtd_size=7995392
-Image/Build/Profile/ARGUS_ATP52B=$(call 
BuildFirmware/CustomFlash/$(1),$(1),argus_atp52b,ARGUS_ATP52B,$(argus_atp52b_mtd_size))
+Image/Build/Profile/ATP-52B=$(call 
BuildFirmware/CustomFlash/$(1),$(1),atp-52b,ATP-52B,$(argus_atp52b_mtd_size))
 
 asl26555_8mb_mtd_size=7929856
 asl26555_16mb_mtd_size=16252928
@@ -699,8 +699,8 @@
        $(call Image/Build/Profile/ALL0256N,$(1))
        $(call Image/Build/Profile/ALL5002,$(1))
        $(call Image/Build/Profile/ALL5003,$(1))
-       $(call Image/Build/Profile/ARGUS_ATP52B,$(1))
        $(call Image/Build/Profile/ASL26555,$(1))
+       $(call Image/Build/Profile/ATP-52B,$(1))
        $(call Image/Build/Profile/AWM002EVB,$(1))
        $(call Image/Build/Profile/AWAPN2403,$(1))
        $(call Image/Build/Profile/BC2,$(1))
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to