[PATCH] Added WIZnet WizFi630A Platform based on Ralink RT5350

Tobias Welz tw at wiznet.eu
Fri Aug 14 20:30:34 EDT 2015


Signed-off-by: Tobias Welz <tw at wiznet.eu>
---
  .../linux/ramips/base-files/etc/board.d/02_network |    6 +
  target/linux/ramips/base-files/etc/diag.sh         |    3 +
  target/linux/ramips/base-files/lib/ramips.sh       |    3 +
  .../ramips/base-files/lib/upgrade/platform.sh      |    1 +
  target/linux/ramips/dts/WIZFI630A.dts              |  304 
++++++++++++++++++++
  target/linux/ramips/image/Makefile                 |    3 +
  target/linux/ramips/rt305x/profiles/wizfi630a.mk   |   18 ++
  7 files changed, 338 insertions(+)
  create mode 100644 target/linux/ramips/dts/WIZFI630A.dts
  create mode 100644 target/linux/ramips/rt305x/profiles/wizfi630a.mk

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 da1854a..c211ab9 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -235,6 +235,7 @@ ramips_setup_interfaces()
          ucidef_add_switch_vlan "switch0" "2" "4 6t"
          ;;

+    wizfi630a | \
      y1s)
          ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
          ucidef_add_switch "switch0" "1" "1"
@@ -297,6 +298,11 @@ ramips_setup_macs()
          wan_mac=$(mtd_get_mac_binary factory 46)
          ;;

+    wizfi630a)
+        lan_mac=$(mtd_get_mac_binary factory 4)
+        wan_mac=$(mtd_get_mac_binary factory 40)
+        ;;
+
      w306r-v20)
          lan_mac=$(cat /sys/class/net/eth0/address)
          wan_mac=$(macaddr_add "$lan_mac" 5)
diff --git a/target/linux/ramips/base-files/etc/diag.sh 
b/target/linux/ramips/base-files/etc/diag.sh
index e63f0df..3ffcc22 100644
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -252,6 +252,9 @@ get_status_led() {
      zte-q7)
          status_led="zte:red:status"
          ;;
+    wizfi630a)
+        status_led="wizfi630a::run"
+        ;;
      mzk-dp150n)
          status_led="mzkdp150n:green:power"
          ;;
diff --git a/target/linux/ramips/base-files/lib/ramips.sh 
b/target/linux/ramips/base-files/lib/ramips.sh
index 7db6d37..474fdb8 100755
--- a/target/linux/ramips/base-files/lib/ramips.sh
+++ b/target/linux/ramips/base-files/lib/ramips.sh
@@ -430,6 +430,9 @@ ramips_board_detect() {
      *"Planex MZK-DP150N")
          name="mzk-dp150n"
          ;;
+     *"WIZnet WizFi630A")
+                name="wizfi630a"
+                ;;
      *)
          name="generic"
          ;;
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh 
b/target/linux/ramips/base-files/lib/upgrade/platform.sh
index 8221997..bdc6be9 100755
--- a/target/linux/ramips/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh
@@ -105,6 +105,7 @@ platform_check_image() {
      whr-300hp2 |\
      whr-600d |\
      whr-1166d |\
+    wizfi630a |\
      wsr-600 |\
      wl-330n | \
      wl-330n3g | \
diff --git a/target/linux/ramips/dts/WIZFI630A.dts 
b/target/linux/ramips/dts/WIZFI630A.dts
new file mode 100644
index 0000000..b3f655d
--- /dev/null
+++ b/target/linux/ramips/dts/WIZFI630A.dts
@@ -0,0 +1,304 @@
+/dts-v1/;
+
+/include/ "rt5350.dtsi"
+
+/ {
+    compatible = "wizfi630a", "ralink,rt5350-soc";
+    model = "WIZnet WizFi630A";
+
+        chosen {
+                bootargs = "console=ttyS1,115200";
+        };
+
+    palmbus at 10000000 {
+        gpio1: gpio at 660 {
+                        status = "okay";
+                };
+
+        spi at b00 {
+            status = "okay";
+
+            m25p80 at 0 {
+                #address-cells = <1>;
+                #size-cells = <1>;
+                compatible = "w25q128";
+                reg = <0>;
+                linux,modalias = "m25p80", "w25q128";
+                spi-max-frequency = <10000000>;
+
+                partition at 0 {
+                    label = "uboot";
+                    reg = <0x0 0x30000>;
+                    read-only;
+                };
+
+                partition at 30000 {
+                    label = "uboot-env";
+                    reg = <0x30000 0x10000>;
+                    read-only;
+                };
+
+                factory: partition at 40000 {
+                    label = "factory";
+                    reg = <0x40000 0x10000>;
+                    read-only;
+                };
+
+                partition at 50000 {
+                    label = "firmware";
+                    reg = <0x50000 0xfb0000>;
+                };
+            };
+        };
+
+                uart at 500 {
+                        compatible = "ralink,mt7620a-uart", 
"ralink,rt2880-uart", "ns16550a";
+                        reg = <0x500 0x100>;
+
+                        resets = <&rstctrl 12>;
+                        reset-names = "uart";
+
+                        interrupt-parent = <&intc>;
+                        interrupts = <5>;
+
+                        reg-shift = <2>;
+
+                        status = "okay";
+                };
+
+
+                uartlite at c00 {
+                        compatible = "ralink,mt7620a-uart", 
"ralink,rt2880-uart", "ns16550a";
+                        reg = <0xc00 0x100>;
+
+                        resets = <&rstctrl 19>;
+                        reset-names = "uartl";
+
+                        interrupt-parent = <&intc>;
+                        interrupts = <12>;
+
+                        reg-shift = <2>;
+
+                        pinctrl-names = "default";
+                        pinctrl-0 = <&uartlite_pins>;
+                };
+    };
+
+    pinctrl {
+        state_default: pinctrl0 {
+            gpio {
+                ralink,group = "i2c", "jtag" ;
+                ralink,function = "gpio";
+            };
+        };
+
+                uartf_gpio_pins: uartf_gpio {
+                        uartf_gpio {
+                                ralink,group = "uartf";
+                                //ralink,function = "gpio uartf";
+                                ralink,function = "uartf";
+                        };
+                };
+
+                uartlite_pins: uartlite {
+                        uart {
+                                ralink,group = "uartlite";
+                                ralink,function = "uartlite";
+                        };
+                };
+    };
+
+    ethernet at 10100000 {
+        mtd-mac-address = <&factory 0x4>;
+    };
+
+    esw at 10110000 {
+                ralink,portmap = <0x17>;
+        };
+
+    wmac at 10180000 {
+        ralink,mtd-eeprom = <&factory 0>;
+    };
+
+    ehci at 101c0000 {
+        status = "okay";
+    };
+
+    ohci at 101c1000 {
+        status = "okay";
+    };
+
+
+    gpio-export {
+        compatible = "gpio-export";
+        #size-cells = <0>;
+/*
+        gpio22 {
+            // WAN
+            gpio-export,name = "gpio22";
+            gpio-export,direction_may_change = <1>;
+            gpios = <&gpio1 0 0>; // path lfd dir
+        };
+        gpio23 {
+            // LAN1
+            gpio-export,name = "gpio23";
+            gpio-export,direction_may_change = <1>;
+            gpios = <&gpio1 1 0>;
+        };
+        gpio24 {
+            // LAN2
+            gpio-export,name = "gpio24";
+            gpio-export,direction_may_change = <1>;
+            gpios = <&gpio1 2 0>;
+        };
+
+                // UARTF - UART1
+                gpio7 {
+                        // UARTF_RTS_N - HW Pin 6
+                        gpio-export,name = "gpio7";
+                        gpio-export,direction_may_change = <1>;
+                        gpios = <&gpio0 7 0>;
+                };
+                gpio8 {
+                        // UARTF_TXD - HW Pin 10
+                        gpio-export,name = "gpio8";
+                        gpio-export,direction_may_change = <1>;
+                        gpios = <&gpio0 8 0>;
+                };
+                gpio9 {
+                        // UARTF_CTS_N - HW Pin 5
+                        gpio-export,name = "gpio9";
+                        gpio-export,direction_may_change = <1>;
+                        gpios = <&gpio0 9 0>;
+                };
+                gpio10 {
+                        // UARTF_RXD - HW Pin 9
+                        gpio-export,name = "gpio10";
+                        gpio-export,direction_may_change = <1>;
+                        gpios = <&gpio0 10 0>;
+                };
+                gpio11 {
+                        // UARTF_DTR_N - HW Pin 8
+                        gpio-export,name = "gpio11";
+                        gpio-export,direction_may_change = <1>;
+                        gpios = <&gpio0 11 0>;
+                };
+                gpio12 {
+                        // UARTF_DCD_N - HW Pin 12
+                        gpio-export,name = "gpio12";
+                        gpio-export,direction_may_change = <1>;
+                        gpios = <&gpio0 12 0>;
+                };
+                gpio13 {
+                        // UARTF_DSR_N - HW Pin 11
+                        gpio-export,name = "gpio13";
+                        gpio-export,direction_may_change = <1>;
+                        gpios = <&gpio0 13 0>;
+                };
+                gpio14 {
+                        // UARTF_RIN - HW Pin 7
+                        gpio-export,name = "gpio14";
+                        gpio-export,direction_may_change = <1>;
+                        gpios = <&gpio0 14 0>;
+                };
+
+        // UARTLITE - UART2
+                gpio15 {
+                        // UART2_TXD  - HW Pin 20
+                        gpio-export,name = "gpio15";
+                        gpio-export,direction_may_change = <1>;
+                        gpios = <&gpio0 15 0>;
+                };
+                gpio16 {
+                        // UART2_RXD  - HW Pin 18
+                        gpio-export,name = "gpio16";
+                        gpio-export,direction_may_change = <1>;
+                        gpios = <&gpio0 16 0>;
+                };
+
+*/
+/*
+        // If you want to use this comment out the corrosponding 
gpio-keys-polled
+        gpio0 {
+            // wps btn
+            gpio-export,name = "gpio0";
+            gpio-export,direction_may_change = <1>;
+            gpios = <&gpio0 0 1>;
+        };
+*/
+
+        gpio19 {
+            // SCM1
+            gpio-export,name = "gpio19";
+            gpio-export,direction_may_change = <1>;
+            gpios = <&gpio0 19 1>;
+        };
+        gpio2 {
+            // SCM2
+            gpio-export,name = "gpio2";
+            gpio-export,direction_may_change = <1>;
+            gpios = <&gpio0 2 1>;
+        };
+
+    };
+
+
+
+
+
+    gpio-leds {
+        compatible = "gpio-leds";
+        run {
+            label = "wizfi630a::run";
+            gpios = <&gpio0 1 1>;
+        };
+        uart1 {
+            label = "wizfi630a::uart1";
+            gpios = <&gpio0 18 1>;
+        };
+        uart2 {
+            label = "wizfi630a::uart2";
+            gpios = <&gpio0 21 1>;
+        };
+        wps {
+            label = "wizfi630a::wps";
+            gpios = <&gpio0 20 1>;
+        };
+    };
+
+
+        gpio-keys-polled {
+                compatible = "gpio-keys-polled";
+                #address-cells = <1>;
+                #size-cells = <0>;
+                poll-interval = <20>;
+                reset {
+                        label = "reset";
+                        gpios = <&gpio0 17 1>;
+                        linux,code = <0x198>;
+                };
+
+                wps {
+                        label = "wps";
+                        gpios = <&gpio0 0 1>;
+                        linux,code = <0x211>;
+                };
+/*
+        // If you want to use this comment out the corrosponding export
+                scm1 {
+                        label = "SCM1";
+                        gpios = <&gpio0 19 1>;
+                        linux,code = <0x100>;
+                };
+
+                scm2 {
+                        label = "SCM2";
+                        gpios = <&gpio0 2 1>;
+                        linux,code = <0x101>;
+                };
+*/
+
+        };
+
+
+};
diff --git a/target/linux/ramips/image/Makefile 
b/target/linux/ramips/image/Makefile
index 409ff26..fbc6775 100644
--- a/target/linux/ramips/image/Makefile
+++ b/target/linux/ramips/image/Makefile
@@ -673,6 +673,8 @@ Image/Build/Profile/WNCE2001=$(call 
BuildFirmware/WNCE2001/$(1),$(1),wnce2001,WN

  Image/Build/Profile/WR512-3GN=$(call 
BuildFirmware/DefaultDualSize/$(1),$(1),wr512-3ng,WR512-3GN)

+Image/Build/Profile/WIZFI630A=$(call 
BuildFirmware/Default16M/$(1),$(1),wizfi630a,WIZFI630A)
+
  Image/Build/Profile/WT1520=$(call 
BuildFirmware/PorayDualSize/$(1),$(1),wt1520,WT1520)

  Image/Build/Profile/UR-326N4G=$(call 
BuildFirmware/Default4M/$(1),$(1),ur-326n4g,UR-326N4G)
@@ -761,6 +763,7 @@ define Image/Build/Profile/Default
      $(call Image/Build/Profile/W306R_V20,$(1))
      $(call Image/Build/Profile/W502U,$(1))
      $(call Image/Build/Profile/WCR150GN,$(1))
+    $(call Image/Build/Profile/WIZFI630A,$(1))
      $(call Image/Build/Profile/WHRG300N,$(1))
      $(call Image/Build/Profile/WIZARD8800,$(1))
      $(call Image/Build/Profile/WL_330N,$(1))
diff --git a/target/linux/ramips/rt305x/profiles/wizfi630a.mk 
b/target/linux/ramips/rt305x/profiles/wizfi630a.mk
new file mode 100644
index 0000000..22136b9
--- /dev/null
+++ b/target/linux/ramips/rt305x/profiles/wizfi630a.mk
@@ -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/WIZFI630A
+    NAME:=WIZnet WizFi630A
+    PACKAGES:=\
+        kmod-usb-core kmod-usb-ohci kmod-usb2
+endef
+
+define Profile/WIZFI630A/Description
+    Package set for WIZnet WizFi630A board
+endef
+
+$(eval $(call Profile,WIZFI630A))
-- 
1.7.10.4


--------------000200080801050901010603
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <link href="chrome://translator/skin/floatingPanel.css"
      type="text/css" rel="stylesheet">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello OpenWrt Developers,<br>
    <br>
    I added the WIZnet WizFi630A Platform to the trunk. The board is
    based on Ralink RT5350 in MiniPci Express Form Factor.<br>
    <br>
    Kind regards <br>
    Tobias Welz<br>
    <br>
    <br>
    <br>
    <small><font face="Courier New, Courier, monospace">From
        bd69bb513e36abda43e86f0eb64caf004260e415 Mon Sep 17 00:00:00
        2001<br>
        From: Tobias Welz <a class="moz-txt-link-rfc2396E"
          href="mailto:tw at wiznet.eu"><tw at wiznet.eu></a><br>
        Date: Sat, 15 Aug 2015 02:30:34 +0200<br>
        Subject: [PATCH] Added WIZnet WizFi630A Platform based on Ralink
        RT5350<br>
        <br>
        <br>
        Signed-off-by: Tobias Welz <a class="moz-txt-link-rfc2396E"
          href="mailto:tw at wiznet.eu"><tw at wiznet.eu></a><br>
        ---<br>
         .../linux/ramips/base-files/etc/board.d/02_network |    6 +<br>
         target/linux/ramips/base-files/etc/diag.sh         |    3 +<br>
         target/linux/ramips/base-files/lib/ramips.sh       |    3 +<br>
         .../ramips/base-files/lib/upgrade/platform.sh      |    1 +<br>
         target/linux/ramips/dts/WIZFI630A.dts              |  304
        ++++++++++++++++++++<br>
         target/linux/ramips/image/Makefile                 |    3 +<br>
         target/linux/ramips/rt305x/profiles/wizfi630a.mk   |   18 ++<br>
         7 files changed, 338 insertions(+)<br>
         create mode 100644 target/linux/ramips/dts/WIZFI630A.dts<br>
         create mode 100644
        target/linux/ramips/rt305x/profiles/wizfi630a.mk<br>
        <br>
        diff --git
        a/target/linux/ramips/base-files/etc/board.d/02_network
        b/target/linux/ramips/base-files/etc/board.d/02_network<br>
        index da1854a..c211ab9 100755<br>
        --- a/target/linux/ramips/base-files/etc/board.d/02_network<br>
        +++ b/target/linux/ramips/base-files/etc/board.d/02_network<br>
        @@ -235,6 +235,7 @@ ramips_setup_interfaces()<br>
                 ucidef_add_switch_vlan "switch0" "2" "4 6t"<br>
                 ;;<br>
         <br>
        +    wizfi630a | \<br>
             y1s)<br>
                 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"<br>
                 ucidef_add_switch "switch0" "1" "1"<br>
        @@ -297,6 +298,11 @@ ramips_setup_macs()<br>
                 wan_mac=$(mtd_get_mac_binary factory 46)<br>
                 ;;<br>
         <br>
        +    wizfi630a)<br>
        +        lan_mac=$(mtd_get_mac_binary factory 4)<br>
        +        wan_mac=$(mtd_get_mac_binary factory 40)<br>
        +        ;;<br>
        +<br>
             w306r-v20)<br>
                 lan_mac=$(cat /sys/class/net/eth0/address)<br>
                 wan_mac=$(macaddr_add "$lan_mac" 5)<br>
        diff --git a/target/linux/ramips/base-files/etc/diag.sh
        b/target/linux/ramips/base-files/etc/diag.sh<br>
        index e63f0df..3ffcc22 100644<br>
        --- a/target/linux/ramips/base-files/etc/diag.sh<br>
        +++ b/target/linux/ramips/base-files/etc/diag.sh<br>
        @@ -252,6 +252,9 @@ get_status_led() {<br>
             zte-q7)<br>
                 status_led="zte:red:status"<br>
                 ;;<br>
        +    wizfi630a)<br>
        +        status_led="wizfi630a::run"<br>
        +        ;;<br>
             mzk-dp150n)<br>
                 status_led="mzkdp150n:green:power"<br>
                 ;;<br>
        diff --git a/target/linux/ramips/base-files/lib/ramips.sh
        b/target/linux/ramips/base-files/lib/ramips.sh<br>
        index 7db6d37..474fdb8 100755<br>
        --- a/target/linux/ramips/base-files/lib/ramips.sh<br>
        +++ b/target/linux/ramips/base-files/lib/ramips.sh<br>
        @@ -430,6 +430,9 @@ ramips_board_detect() {<br>
             *"Planex MZK-DP150N")<br>
                 name="mzk-dp150n"<br>
                 ;;<br>
        +     *"WIZnet WizFi630A")<br>
        +                name="wizfi630a"<br>
        +                ;;<br>
             *)<br>
                 name="generic"<br>
                 ;;<br>
        diff --git
        a/target/linux/ramips/base-files/lib/upgrade/platform.sh
        b/target/linux/ramips/base-files/lib/upgrade/platform.sh<br>
        index 8221997..bdc6be9 100755<br>
        --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh<br>
        +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh<br>
        @@ -105,6 +105,7 @@ platform_check_image() {<br>
             whr-300hp2 |\<br>
             whr-600d |\<br>
             whr-1166d |\<br>
        +    wizfi630a |\<br>
             wsr-600 |\<br>
             wl-330n | \<br>
             wl-330n3g | \<br>
        diff --git a/target/linux/ramips/dts/WIZFI630A.dts
        b/target/linux/ramips/dts/WIZFI630A.dts<br>
        new file mode 100644<br>
        index 0000000..b3f655d<br>
        --- /dev/null<br>
        +++ b/target/linux/ramips/dts/WIZFI630A.dts<br>
        @@ -0,0 +1,304 @@<br>
        +/dts-v1/;<br>
        +<br>
        +/include/ "rt5350.dtsi"<br>
        +<br>
        +/ {<br>
        +    compatible = "wizfi630a", "ralink,rt5350-soc";<br>
        +    model = "WIZnet WizFi630A";<br>
        +<br>
        +        chosen {<br>
        +                bootargs = "console=ttyS1,115200";<br>
        +        };<br>
        +<br>
        +    palmbus at 10000000 {<br>
        +        gpio1: gpio at 660 {<br>
        +                        status = "okay";<br>
        +                };<br>
        +<br>
        +        spi at b00 {<br>
        +            status = "okay";<br>
        +<br>
        +            m25p80 at 0 {<br>
        +                #address-cells = <1>;<br>
        +                #size-cells = <1>;<br>
        +                compatible = "w25q128";<br>
        +                reg = <0>;<br>
        +                linux,modalias = "m25p80", "w25q128";<br>
        +                spi-max-frequency = <10000000>;<br>
        +<br>
        +                partition at 0 {<br>
        +                    label = "uboot";<br>
        +                    reg = <0x0 0x30000>;<br>
        +                    read-only;<br>
        +                };<br>
        +<br>
        +                partition at 30000 {<br>
        +                    label = "uboot-env";<br>
        +                    reg = <0x30000 0x10000>;<br>
        +                    read-only;<br>
        +                };<br>
        +<br>
        +                factory: partition at 40000 {<br>
        +                    label = "factory";<br>
        +                    reg = <0x40000 0x10000>;<br>
        +                    read-only;<br>
        +                };<br>
        +<br>
        +                partition at 50000 {<br>
        +                    label = "firmware";<br>
        +                    reg = <0x50000 0xfb0000>;<br>
        +                };<br>
        +            };<br>
        +        };<br>
        +<br>
        +                uart at 500 {<br>
        +                        compatible = "ralink,mt7620a-uart",
        "ralink,rt2880-uart", "ns16550a";<br>
        +                        reg = <0x500 0x100>;<br>
        +<br>
        +                        resets = <&rstctrl 12>;<br>
        +                        reset-names = "uart";<br>
        +<br>
        +                        interrupt-parent = <&intc>;<br>
        +                        interrupts = <5>;<br>
        +<br>
        +                        reg-shift = <2>;<br>
        +<br>
        +                        status = "okay";<br>
        +                };<br>
        +<br>
        +<br>
        +                uartlite at c00 {<br>
        +                        compatible = "ralink,mt7620a-uart",
        "ralink,rt2880-uart", "ns16550a";<br>
        +                        reg = <0xc00 0x100>;<br>
        +<br>
        +                        resets = <&rstctrl 19>;<br>
        +                        reset-names = "uartl";<br>
        +<br>
        +                        interrupt-parent = <&intc>;<br>
        +                        interrupts = <12>;<br>
        +<br>
        +                        reg-shift = <2>;<br>
        +<br>
        +                        pinctrl-names = "default";<br>
        +                        pinctrl-0 = <&uartlite_pins>;<br>
        +                };<br>
        +    };<br>
        +<br>
        +    pinctrl {<br>
        +        state_default: pinctrl0 {<br>
        +            gpio {<br>
        +                ralink,group = "i2c", "jtag" ;<br>
        +                ralink,function = "gpio";<br>
        +            };<br>
        +        };<br>
        +<br>
        +                uartf_gpio_pins: uartf_gpio {<br>
        +                        uartf_gpio {<br>
        +                                ralink,group = "uartf";<br>
        +                                //ralink,function = "gpio
        uartf";<br>
        +                                ralink,function = "uartf";<br>
        +                        };<br>
        +                };<br>
        +<br>
        +                uartlite_pins: uartlite {<br>
        +                        uart {<br>
        +                                ralink,group = "uartlite";<br>
        +                                ralink,function = "uartlite";<br>
        +                        };<br>
        +                };<br>
        +    };<br>
        +<br>
        +    ethernet at 10100000 {<br>
        +        mtd-mac-address = <&factory 0x4>;<br>
        +    };<br>
        +<br>
        +    esw at 10110000 {<br>
        +                ralink,portmap = <0x17>;<br>
        +        };<br>
        +<br>
        +    wmac at 10180000 {<br>
        +        ralink,mtd-eeprom = <&factory 0>;<br>
        +    };<br>
        +<br>
        +    ehci at 101c0000 {<br>
        +        status = "okay";<br>
        +    };<br>
        +<br>
        +    ohci at 101c1000 {<br>
        +        status = "okay";<br>
        +    };<br>
        +<br>
        +<br>
        +    gpio-export {<br>
        +        compatible = "gpio-export";<br>
        +        #size-cells = <0>;<br>
        +/*<br>
        +        gpio22 {<br>
        +            // WAN <br>
        +            gpio-export,name = "gpio22";<br>
        +            gpio-export,direction_may_change = <1>;<br>
        +            gpios = <&gpio1 0 0>; // path lfd dir<br>
        +        };<br>
        +        gpio23 {<br>
        +            // LAN1 <br>
        +            gpio-export,name = "gpio23";<br>
        +            gpio-export,direction_may_change = <1>;<br>
        +            gpios = <&gpio1 1 0>;<br>
        +        };<br>
        +        gpio24 {<br>
        +            // LAN2 <br>
        +            gpio-export,name = "gpio24";<br>
        +            gpio-export,direction_may_change = <1>;<br>
        +            gpios = <&gpio1 2 0>;<br>
        +        };<br>
        +<br>
        +                // UARTF - UART1 <br>
        +                gpio7 {<br>
        +                        // UARTF_RTS_N - HW Pin 6<br>
        +                        gpio-export,name = "gpio7";<br>
        +                        gpio-export,direction_may_change =
        <1>;<br>
        +                        gpios = <&gpio0 7 0>;<br>
        +                };<br>
        +                gpio8 {<br>
        +                        // UARTF_TXD - HW Pin 10 <br>
        +                        gpio-export,name = "gpio8";<br>
        +                        gpio-export,direction_may_change =
        <1>;<br>
        +                        gpios = <&gpio0 8 0>;<br>
        +                };<br>
        +                gpio9 {<br>
        +                        // UARTF_CTS_N - HW Pin 5<br>
        +                        gpio-export,name = "gpio9";<br>
        +                        gpio-export,direction_may_change =
        <1>;<br>
        +                        gpios = <&gpio0 9 0>;<br>
        +                };<br>
        +                gpio10 {<br>
        +                        // UARTF_RXD - HW Pin 9<br>
        +                        gpio-export,name = "gpio10";<br>
        +                        gpio-export,direction_may_change =
        <1>;<br>
        +                        gpios = <&gpio0 10 0>;<br>
        +                };<br>
        +                gpio11 {<br>
        +                        // UARTF_DTR_N - HW Pin 8<br>
        +                        gpio-export,name = "gpio11";<br>
        +                        gpio-export,direction_may_change =
        <1>;<br>
        +                        gpios = <&gpio0 11 0>;<br>
        +                };<br>
        +                gpio12 {<br>
        +                        // UARTF_DCD_N - HW Pin 12 <br>
        +                        gpio-export,name = "gpio12";<br>
        +                        gpio-export,direction_may_change =
        <1>;<br>
        +                        gpios = <&gpio0 12 0>;<br>
        +                };<br>
        +                gpio13 {<br>
        +                        // UARTF_DSR_N - HW Pin 11<br>
        +                        gpio-export,name = "gpio13";<br>
        +                        gpio-export,direction_may_change =
        <1>;<br>
        +                        gpios = <&gpio0 13 0>;<br>
        +                };<br>
        +                gpio14 {<br>
        +                        // UARTF_RIN - HW Pin 7 <br>
        +                        gpio-export,name = "gpio14";<br>
        +                        gpio-export,direction_may_change =
        <1>;<br>
        +                        gpios = <&gpio0 14 0>;<br>
        +                };<br>
        +<br>
        +        // UARTLITE - UART2 <br>
        +                gpio15 {<br>
        +                        // UART2_TXD  - HW Pin 20 <br>
        +                        gpio-export,name = "gpio15";<br>
        +                        gpio-export,direction_may_change =
        <1>;<br>
        +                        gpios = <&gpio0 15 0>;<br>
        +                };<br>
        +                gpio16 {<br>
        +                        // UART2_RXD  - HW Pin 18 <br>
        +                        gpio-export,name = "gpio16";<br>
        +                        gpio-export,direction_may_change =
        <1>;<br>
        +                        gpios = <&gpio0 16 0>;<br>
        +                };<br>
        +<br>
        +*/<br>
        +/*<br>
        +        // If you want to use this comment out the
        corrosponding gpio-keys-polled<br>
        +        gpio0 {<br>
        +            // wps btn<br>
        +            gpio-export,name = "gpio0";<br>
        +            gpio-export,direction_may_change = <1>;<br>
        +            gpios = <&gpio0 0 1>;<br>
        +        };<br>
        +*/<br>
        +<br>
        +        gpio19 {<br>
        +            // SCM1<br>
        +            gpio-export,name = "gpio19";<br>
        +            gpio-export,direction_may_change = <1>;<br>
        +            gpios = <&gpio0 19 1>;<br>
        +        };<br>
        +        gpio2 {<br>
        +            // SCM2<br>
        +            gpio-export,name = "gpio2";<br>
        +            gpio-export,direction_may_change = <1>;<br>
        +            gpios = <&gpio0 2 1>;<br>
        +        };<br>
        +<br>
        +    };<br>
        +<br>
        +<br>
        +<br>
        +<br>
        +<br>
        +    gpio-leds {<br>
        +        compatible = "gpio-leds";<br>
        +        run {<br>
        +            label = "wizfi630a::run";<br>
        +            gpios = <&gpio0 1 1>;<br>
        +        };<br>
        +        uart1 {<br>
        +            label = "wizfi630a::uart1";<br>
        +            gpios = <&gpio0 18 1>;<br>
        +        };<br>
        +        uart2 {<br>
        +            label = "wizfi630a::uart2";<br>
        +            gpios = <&gpio0 21 1>;<br>
        +        };<br>
        +        wps {<br>
        +            label = "wizfi630a::wps";<br>
        +            gpios = <&gpio0 20 1>;<br>
        +        };<br>
        +    };<br>
        +<br>
        +<br>
        +        gpio-keys-polled {<br>
        +                compatible = "gpio-keys-polled";<br>
        +                #address-cells = <1>;<br>
        +                #size-cells = <0>;<br>
        +                poll-interval = <20>;<br>
        +                reset {<br>
        +                        label = "reset";<br>
        +                        gpios = <&gpio0 17 1>;<br>
        +                        linux,code = <0x198>;<br>
        +                };<br>
        +<br>
        +                wps {<br>
        +                        label = "wps";<br>
        +                        gpios = <&gpio0 0 1>;<br>
        +                        linux,code = <0x211>;<br>
        +                };<br>
        +/*<br>
        +        // If you want to use this comment out the
        corrosponding export<br>
        +                scm1 {<br>
        +                        label = "SCM1";<br>
        +                        gpios = <&gpio0 19 1>;<br>
        +                        linux,code = <0x100>;<br>
        +                };<br>
        +<br>
        +                scm2 {<br>
        +                        label = "SCM2";<br>
        +                        gpios = <&gpio0 2 1>;<br>
        +                        linux,code = <0x101>;<br>
        +                };<br>
        +*/<br>
        +<br>
        +        };<br>
        +<br>
        +<br>
        +};<br>
        diff --git a/target/linux/ramips/image/Makefile
        b/target/linux/ramips/image/Makefile<br>
        index 409ff26..fbc6775 100644<br>
        --- a/target/linux/ramips/image/Makefile<br>
        +++ b/target/linux/ramips/image/Makefile<br>
        @@ -673,6 +673,8 @@ Image/Build/Profile/WNCE2001=$(call
        BuildFirmware/WNCE2001/$(1),$(1),wnce2001,WN<br>
         <br>
         Image/Build/Profile/WR512-3GN=$(call
        BuildFirmware/DefaultDualSize/$(1),$(1),wr512-3ng,WR512-3GN)<br>
         <br>
        +Image/Build/Profile/WIZFI630A=$(call
        BuildFirmware/Default16M/$(1),$(1),wizfi630a,WIZFI630A)<br>
        +<br>
         Image/Build/Profile/WT1520=$(call
        BuildFirmware/PorayDualSize/$(1),$(1),wt1520,WT1520)<br>
         <br>
         Image/Build/Profile/UR-326N4G=$(call
        BuildFirmware/Default4M/$(1),$(1),ur-326n4g,UR-326N4G)<br>
        @@ -761,6 +763,7 @@ define Image/Build/Profile/Default<br>
             $(call Image/Build/Profile/W306R_V20,$(1))<br>
             $(call Image/Build/Profile/W502U,$(1))<br>
             $(call Image/Build/Profile/WCR150GN,$(1))<br>
        +    $(call Image/Build/Profile/WIZFI630A,$(1))<br>
             $(call Image/Build/Profile/WHRG300N,$(1))<br>
             $(call Image/Build/Profile/WIZARD8800,$(1))<br>
             $(call Image/Build/Profile/WL_330N,$(1))<br>
        diff --git a/target/linux/ramips/rt305x/profiles/wizfi630a.mk
        b/target/linux/ramips/rt305x/profiles/wizfi630a.mk<br>
        new file mode 100644<br>
        index 0000000..22136b9<br>
        --- /dev/null<br>
        +++ b/target/linux/ramips/rt305x/profiles/wizfi630a.mk<br>
        @@ -0,0 +1,18 @@<br>
        +#<br>
        +# Copyright (C) 2014 OpenWrt.org<br>
        +#<br>
        +# This is free software, licensed under the GNU General Public
        License v2.<br>
        +# See /LICENSE for more information.<br>
        +#<br>
        +<br>
        +define Profile/WIZFI630A<br>
        +    NAME:=WIZnet WizFi630A<br>
        +    PACKAGES:=\<br>
        +        kmod-usb-core kmod-usb-ohci kmod-usb2 <br>
        +endef<br>
        +<br>
        +define Profile/WIZFI630A/Description<br>
        +    Package set for WIZnet WizFi630A board<br>
        +endef<br>
        +<br>
        +$(eval $(call Profile,WIZFI630A))<br>
        -- <br>
        1.7.10.4</font></small><br>
    <br>
    <div style="bottom: auto; left: 2px; right: auto; top: 204px;
      display: none;" class="translator-theme-default"
      id="translator-floating-panel"> </div>
  </body>
</html>

--------------000200080801050901010603--

--===============8119253233902668224==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

--===============8119253233902668224==--



More information about the openwrt-devel mailing list