<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:΢ÈíÑźÚ
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi£¬<br>Thanks very much for your comments and taking time to check the name. Regarding the 'OY-0001', it's for business reason to use 'OY-0001' but not 'OYE-0001'. The 'old' name in the website also will be updated afterward.<br><br>Regards,<br>Weijian<br><br><div>> Subject: Re: [OpenWrt-Devel] [PATCH] ramips: adding support for OY-0001 Wireless Router<br>> From: karlp@tweak.net.au<br>> To: younfan33@hotmail.com<br>> CC: openwrt-devel@lists.openwrt.org<br>> Date: Fri, 10 Jul 2015 11:27:55 +0000<br>> <br>> -----BEGIN PGP SIGNED MESSAGE-----<br>> Hash: SHA1<br>> <br>> Isn't this normally called the "OYE-0001" ? not "OY-0001" ?  The website<br>> and all literature I've seen uses the "OYE-0001" name...<br>> <br>> Regardless, in many places, you have not followed the existing<br>> alphabetical order.<br>> <br>> LiWeijian <younfan33@hotmail.com> wrote:<br>> > From: Tom Deng <2579131212@qq.com><br>> > <br>> > Adding support for OY-0001 Wireless Router.<br>> > OY-0001 is a wireless router made by oyewifi.com. Below is the details:<br>> > MT7620A, 128MB DDR2, 16MB FLASH, SD Slot, USB 2.0, 4 x LAN + 1 x WAN.<br>> > Signed-off-by: Tom Deng <2579131212@qq.com><br>> > ---<br>> > diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds<br>> > b/target/linux/ramips/base-files/etc/board.d/01_leds<br>> > index 545bd70..fe3a79d 100755<br>> > --- a/target/linux/ramips/base-files/etc/board.d/01_leds<br>> > +++ b/target/linux/ramips/base-files/etc/board.d/01_leds<br>> > @@ -238,6 +238,10 @@ case $board in<br>> >             set_wifi_led "zbtlink:blue:air"<br>> >            set_usb_led "zbtlink:blue:usb"<br>> >             ;;<br>> > + oy-0001)<br>> > +           ucidef_set_led_default "power" "power" "oy:green:power" "1"<br>> > +                set_wifi_led "oy:green:wifi"<br>> > +             ;;<br>> >   wr8305rt)<br>> >            ucidef_set_led_default "power" "power" "wr8305rt:sys" "1"<br>> >            set_usb_led "wr8305rt:usb"<br>> > diff --git a/target/linux/ramips/base-files/etc/board.d/02_network<br>> > b/target/linux/ramips/base-files/etc/board.d/02_network<br>> > index bc1fc01..9fb3535 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>> > @@ -139,6 +139,7 @@ ramips_setup_interfaces()<br>> >        mzk-750dhp | \<br>> >       whr-300hp2 | \<br>> >       whr-600d | \<br>> > +       oy-0001 | \<br>> >          wsr-600 | \<br>> >          wsr-1166 | \<br>> >         wt1520 | \<br>> > @@ -283,6 +284,11 @@ ramips_setup_macs()<br>> >               wan_mac=$(mtd_get_mac_binary devdata 7)<br>> >              ;;<br>> >  <br>> > +    oy-0001)<br>> > +           lan_mac=$(mtd_get_mac_binary factory 40)<br>> > +           wan_mac=$(mtd_get_mac_binary factory 46)<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/lib/ramips.sh<br>> > b/target/linux/ramips/base-files/lib/ramips.sh<br>> > index d2a1856..3d40ab9 100755<br>> > --- a/target/linux/ramips/base-files/lib/ramips.sh<br>> > +++ b/target/linux/ramips/base-files/lib/ramips.sh<br>> > @@ -400,6 +400,9 @@ ramips_board_detect() {<br>> >     *"Zbtlink ZBT-WA05")<br>> >               name="zbt-wa05"<br>> >            ;;<br>> > + *"OY-0001")<br>> > +              name="oy-0001"<br>> > +           ;;<br>> >   *"ZBT WR8305RT")<br>> >           name="wr8305rt"<br>> >            ;;<br>> > diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh<br>> > b/target/linux/ramips/base-files/lib/upgrade/platform.sh<br>> > index cedd62b..8f45a84 100755<br>> > --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh<br>> > +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh<br>> > @@ -116,6 +116,7 @@ platform_check_image() {<br>> >       wr6202 |\<br>> >    wr8305rt |\<br>> >          wrtnode |\<br>> > + oy-0001 |\<br>> >   wt1520 |\<br>> >    wt3020 |\<br>> >    x5 |\<br>> > diff --git a/target/linux/ramips/dts/OY-0001.dts<br>> > b/target/linux/ramips/dts/OY-0001.dts<br>> > new file mode 100644<br>> > index 0000000..48b7099<br>> > --- /dev/null<br>> > +++ b/target/linux/ramips/dts/OY-0001.dts<br>> > @@ -0,0 +1,123 @@<br>> > +/dts-v1/;<br>> > +<br>> > +/include/ "mt7620a.dtsi"<br>> > +<br>> > +/ {<br>> > +     compatible = "ralink,mt7620a-soc";<br>> > +       model = "OY-0001";<br>> > +<br>> > +        chosen {<br>> > +                bootargs = "console=ttyS0,115200";<br>> > +        };<br>> > +<br>> > +        palmbus@10000000 {<br>> > +         gpio2: gpio@660 {<br>> > +                  status = "okay";<br>> > +         };<br>> > +<br>> > +            gpio3: gpio@688 {<br>> > +                  status = "okay";<br>> > +         };<br>> > +<br>> > +            spi@b00 {<br>> > +                  status = "okay";<br>> > +<br>> > +                    m25p80@0 {<br>> > +                         #address-cells = <1>;<br>> > +                                #size-cells = <1>;<br>> > +                           compatible = "w25q128";<br>> > +                          reg = <0 0>;<br>> > +                         linux,modalias = "m25p80", "w25q128";<br>> > +                          spi-max-frequency = <10000000>;<br>> > +<br>> > +                         partition@0 {<br>> > +                                      label = "u-boot";<br>> > +                                        reg = <0x0 0x30000>;<br>> > +                                 read-only;<br>> > +                         };<br>> > +<br>> > +                            partition@30000 {<br>> > +                                  label = "u-boot-env";<br>> > +                                    reg = <0x30000 0x10000>;<br>> > +                                     read-only;<br>> > +                         };<br>> > +<br>> > +                            factory: partition@40000 {<br>> > +                                 label = "factory";<br>> > +                                       reg = <0x40000 0x10000>;<br>> > +                                     read-only;<br>> > +                         };<br>> > +<br>> > +                            partition@50000 {<br>> > +                                  label = "firmware";<br>> > +                                      reg = <0x50000 0xfb0000>;<br>> > +                            };<br>> > +<br>> > +                    };<br>> > +         };<br>> > + };<br>> > +<br>> > +    pinctrl {<br>> > +          state_default: pinctrl0 {<br>> > +                  gpio {<br>> > +                             ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";<br>> > +                            ralink,function = "gpio";<br>> > +                        };<br>> > +         };<br>> > + };<br>> > +<br>> > +    ethernet@10100000 {<br>> > +                pinctrl-names = "default";<br>> > +               pinctrl-0 = <&ephy_pins>;<br>> > +<br>> > +           ralink,port-map = "llllw";<br>> > +       };<br>> > +<br>> > +    gsw@10110000 {<br>> > +             ralink,port4 = "ephy";<br>> > +   };<br>> > +<br>> > +    wmac@10180000 {<br>> > +            ralink,mtd-eeprom = <&factory 0>;<br>> > +        };<br>> > +<br>> > +    gpio-leds {<br>> > +                compatible = "gpio-leds";<br>> > +                powerled {<br>> > +                 label = "oy:green:power";<br>> > +                        gpios = <&gpio0 9 1>;<br>> > +            };<br>> > +         wifiled {<br>> > +                  label = "oy:green:wifi";<br>> > +                 gpios = <&gpio3 0 1>;<br>> > +            };<br>> > + };<br>> > +<br>> > +    sdhci@10130000 {<br>> > +           status = "okay";<br>> > + };<br>> > +<br>> > +    ehci@101c0000 {<br>> > +            status = "okay";<br>> > + };<br>> > +<br>> > +    ohci@101c1000 {<br>> > +            status = "okay";<br>> > + };<br>> > +<br>> > +    pcie@10140000 {<br>> > +            status = "okay";<br>> > + };<br>> > +<br>> > +    gpio-keys-polled {<br>> > +         compatible = "gpio-keys-polled";<br>> > +         #address-cells = <1>;<br>> > +                #size-cells = <0>;<br>> > +           poll-interval = <20>;<br>> > +                s1 {<br>> > +                       label = "reset";<br>> > +                 gpios = <&gpio0 1 1>;<br>> > +                    linux,code = <0x198>;<br>> > +                };<br>> > + };<br>> > +};<br>> > diff --git a/target/linux/ramips/image/Makefile<br>> > b/target/linux/ramips/image/Makefile<br>> > index 0c28216..2fe5fdd 100644<br>> > --- a/target/linux/ramips/image/Makefile<br>> > +++ b/target/linux/ramips/image/Makefile<br>> > @@ -866,6 +866,7 @@ Image/Build/Profile/DIR-810L=$(call BuildFirmware/CustomFlash/$(1),$(1),dir-810l<br>> >  na930_mtd_size=20971520<br>> >  Image/Build/Profile/NA930=$(call BuildFirmware/CustomFlash/$(1),$(1),na930,NA930,$(na930_mtd_size))<br>> >  Image/Build/Profile/MZK-750DHP=$(call BuildFirmware/Default8M/$(1),$(1),mzk-750dhp,MZK-750DHP)<br>> > +Image/Build/Profile/OY-0001=$(call BuildFirmware/Default16M/$(1),$(1),oy-0001,OY-0001)<br>> >  Image/Build/Profile/Y1=$(call BuildFirmware/Default16M/$(1),$(1),Lenovo-y1,Y1)<br>> >  Image/Build/Profile/Y1S=$(call BuildFirmware/Default16M/$(1),$(1),Lenovo-y1s,Y1S)<br>> >  Image/Build/Profile/MLW221=$(call BuildFirmware/Default16M/$(1),$(1),mlw221,MLW221)<br>> > @@ -899,6 +900,7 @@ define Image/Build/Profile/Default<br>> >   $(call Image/Build/Profile/WHR1166D,$(1))<br>> >    $(call Image/Build/Profile/MZK-750DHP,$(1))<br>> >          $(call Image/Build/Profile/NA930,$(1))<br>> > +     $(call Image/Build/Profile/OY-0001,$(1))<br>> >     $(call Image/Build/Profile/Y1,$(1))<br>> >          $(call Image/Build/Profile/Y1S,$(1))<br>> >         $(call Image/Build/Profile/MLW221,$(1))<br>> > _______________________________________________<br>> > openwrt-devel mailing list<br>> > openwrt-devel@lists.openwrt.org<br>> > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel<br>> <br>> - -- <br>> Sent using Mailpile, Free Software from www.mailpile.is<br>> <br>> -----BEGIN PGP SIGNATURE-----<br>> Version: GnuPG v1.4.11 (GNU/Linux)<br>> <br>> iQIcBAEBAgAGBQJVn6w8AAoJEBmotQ/U1cr2IxwQAJcAJAAU3Xxq13eDCZ7+DaV/<br>> OTV1SusODWC++4eJ4HxaDFJ6r4RKVo/0B5f8i70HLz+I2r4dWM60E8J7shWoaSsv<br>> K+aV/pUj50klZuzAXpekDitezYSRi2m7l40IcMrF29x+PZYzr6bdeiJOp+BkTrKh<br>> oo7NN9QykgMwmZy+LoKdgoGtwgIWa1oxZHY1ppI2CCIbGiis+eeusyqp6kPvLUee<br>> y4dzGTFk3oend3LP1DGpW8MmOXFVaCksQIs3RhTGgc2IUQ0dpIpbDYVA3MnaRq95<br>> s824pG++vE0iCnWrpK9ij518GFvRvhn4kTaE6Xy0T/LmgDKq4DGpCZ3en0dVYzeJ<br>> Ln/FyIwvuALFkPEr2WqWXEAvPIPyuUxViOXpL5XRhGQ1Grnhzl0vwMRzKXq6VBus<br>> QvWVzREupNygD+3iHcJ93zOJFSF+AuvlU5JRS+88Lg8URmX8gEC+R7hulO8Cs2Uc<br>> 0TXg1tYmoUS3AJFZWUebQIlvX66gXHYZs+jTMM1zHRSrZ0Xn6DVUFEQ3oxcuhl2k<br>> 12/sGJusstgMyT30HLPLUHBb7fuw7T7f3149uyi4c8L5WYuzo+fNcbSFckBcP4Cw<br>> jTSjr960T1fBfIXTn/Mj7zlDsk3ntzImNg0uwgohqt2SjLUOR20zPhfrgGXT4fN5<br>> T7K9ToSMM4QcGLaSx0ry<br>> =Qc6u<br>> -----END PGP SIGNATURE-----<br></div>                                           </div></body>
</html>