<div dir="ltr"><div><div>Dear all:<br></div> Lenovo AC1200 series has two types,Y1 and Y1S.<br><br> Y1S have 256MB DDR2 ,Y1 only have 128MB and Y1 have not Giga Port.<br><br></div><div><div><div><div><span style="color:rgb(51,51,51);font-family:arial;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:22px;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)"> The attachment is the new patch for Y1 and Y1S</span>.<br>
for pohotoes,please vist my google+ photo album :<br> <a rel="nofollow noreferrer" href="https://plus.google.com/photos/106054345863098360212/albums/6042078871461598481" dir="ltr" target="_blank">https://plus.google.com/photos/106054345863098360212/albums/6042078871461598481</a><br>
<br><br>Regards,<br>
lintel<br><br>Signed-off-by:Lintel<<a href="mailto:lintel.huang@gmail.com">lintel.huang@gmail.com</a>><br><br>Index: target/linux/ramips/base-files/etc/diag.sh<br>===================================================================<br>
--- target/linux/ramips/base-files/etc/diag.sh (revision 41906)<br>+++ target/linux/ramips/base-files/etc/diag.sh (working copy)<br>@@ -185,6 +185,10 @@<br> na930)<br> status_led="na930:blue:power"<br>
;;<br>+ y1 | \<br>+ y1s)<br>+ status_led="lenovo:blue:power"<br>+ ;;<br> esac<br> }<br> <br>Index: target/linux/ramips/base-files/etc/uci-defaults/01_leds<br>===================================================================<br>
--- target/linux/ramips/base-files/etc/uci-defaults/01_leds (revision 41906)<br>+++ target/linux/ramips/base-files/etc/uci-defaults/01_leds (working copy)<br>@@ -194,6 +194,12 @@<br> set_usb_led "wr8305rt:usb"<br>
set_wifi_led "wr8305rt:wifi"<br> ;;<br>+ y1 |\<br>+ y1s)<br>+ ucidef_set_led_default "power" "power" "lenovo:blue:power" "1"<br>+ set_usb_led "lenovo:blue:usb"<br>
+ set_wifi_led "lenovo:blue:wifi"<br>+ ;;<br> esac<br> <br> ucidef_commit_leds<br>Index: target/linux/ramips/base-files/etc/uci-defaults/02_network<br>===================================================================<br>
--- target/linux/ramips/base-files/etc/uci-defaults/02_network (revision 41906)<br>+++ target/linux/ramips/base-files/etc/uci-defaults/02_network (working copy)<br>@@ -177,6 +177,13 @@<br> ucidef_add_switch_vlan "switch0" "2" "4 6t"<br>
;;<br> <br>+ y1 |\<br>+ y1s)<br>+ ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"<br>+ ucidef_add_switch "switch0" "1" "1"<br>+ ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 5 6t"<br>
+ ucidef_add_switch_vlan "switch0" "2" "0 6t"<br>+ ;;<br> d105 | \<br> na930 | \<br> omni-emb-hpm|\<br>@@ -242,7 +249,9 @@<br> dir-300-b7 | \<br> dir-320-b1 | \<br>
psr-680w |\<br>- sl-r7205)<br>+ sl-r7205 |\<br>+ y1 |\<br>+ y1s)<br> lan_mac=$(cat /sys/class/net/eth0/address)<br> lan_mac=$(macaddr_setbit_la "$lan_mac")<br> wan_mac=$(macaddr_add "$lan_mac" 1)<br>
Index: target/linux/ramips/base-files/lib/ramips.sh<br>===================================================================<br>--- target/linux/ramips/base-files/lib/ramips.sh (revision 41906)<br>+++ target/linux/ramips/base-files/lib/ramips.sh (working copy)<br>
@@ -319,6 +319,12 @@<br> *"ZBT WR8305RT")<br> name="wr8305rt"<br> ;;<br>+ *"Lenovo Y1")<br>+ name="y1"<br>+ ;;<br>+ *"Lenovo Y1S")<br>
+ name="y1s"<br>+ ;;<br> *)<br> name="generic"<br> ;;<br>Index: target/linux/ramips/base-files/lib/upgrade/platform.sh<br>===================================================================<br>
--- target/linux/ramips/base-files/lib/upgrade/platform.sh (revision 41906)<br>+++ target/linux/ramips/base-files/lib/upgrade/platform.sh (working copy)<br>@@ -95,7 +95,9 @@<br> wrtnode |\<br> x5 |\<br> x8 |\<br>
- zbt-wa05)<br>+ zbt-wa05 |\<br>+ y1 |\<br>+ y1s)<br> [ "$magic" != "27051956" ] && {<br> echo "Invalid image type."<br> return 1<br>Index: target/linux/ramips/dts/Y1.dts<br>
===================================================================<br>--- target/linux/ramips/dts/Y1.dts (revision 0)<br>+++ target/linux/ramips/dts/Y1.dts (working copy)<br>@@ -0,0 +1,151 @@<br>+/dts-v1/;<br>+<br>
+/ {<br>+ chosen {<br>+ bootargs = "console=ttyS0,115200";<br>+ };<br>+};<br>+<br>+/include/ "mt7620a.dtsi"<br>+<br>+/ {<br>+ compatible = "lenovo,Y1", "ralink,mt7620a-soc";<br>
+ model = "Lenovo Y1";<br>+<br>+ chosen {<br>+ bootargs = "console=ttyS0,115200";<br>+ };<br>+ <br>+ palmbus@10000000 {<br>+ sysc@0 {<br>+ ralink,gpiomux = "i2c", "jtag";<br>
+ ralink,uartmux = "gpio";<br>+ ralink,wdtmux = <1>;<br>+ };<br>+<br>+ gpio0: gpio@600 {<br>+ status = "okay";<br>+ };<br>+<br>+ gpio2: gpio@660 {<br>
+ status = "okay";<br>+ };<br>+<br>+ gpio3: gpio@688 {<br>+ status = "okay";<br>+ };<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>
+ ehci@101c0000 {<br>+ status = "okay";<br>+ };<br>+<br>+ ohci@101c1000 {<br>+ status = "okay";<br>+ };<br>+<br>+ ethernet@10100000 {<br>+ pinctrl-names = "default";<br>
+ pinctrl-0 = <&ephy_pins>;<br>+ mtd-mac-address = <&factory 0x4>;<br>+ ralink,port-map = "llllw";<br>+ };<br>+ <br>+ pcie@10140000 {<br>+ status = "okay";<br>
+ };<br>+ <br>+ wmac@10180000 {<br>+ ralink,mtd-eeprom = <&factory 0>;<br>+ };<br>+<br>+ pinctrl {<br>+ state_default: pinctrl0 {<br>+ gpio {<br>+ ralink,group = "uartf", "wled", "nd_sd";<br>
+ ralink,function = "gpio";<br>+ };<br>+ pa {<br>+ ralink,group = "pa";<br>+ ralink,function = "pa";<br>+ };<br>+ };<br>
+ };<br>+<br>+ gpio-leds {<br>+ compatible = "gpio-leds";<br>+ power1 {<br>+ label = "lenovo:blue:power";<br>+ gpios = <&gpio0 9 1>;<br>+ };<br>
+ wlan1 {<br>+ label = "lenovo:blue:wifi";<br>+ gpios = <&gpio3 0 1>;<br>+ };<br>+ wlan2 {<br>+ label = "lenovo:blue:wifi5g";<br>+ gpios = <&gpio2 10 1>;<br>
+ };<br>+ usb {<br>+ label = "lenovo:blue:usb";<br>+ gpios = <&gpio2 12 1>;<br>+ };<br>+ lan {<br>+ label = "lenovo:blue:lan";<br>
+ gpios = <&gpio2 15 1>;<br>+ };<br>+ internet {<br>+ label = "lenovo:blue:internet";<br>+ gpios = <&gpio2 11 1>;<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 11 1>;<br>+ linux,code = <0x198>;<br>+ };<br>+ };<br>+};<br>Index: target/linux/ramips/dts/Y1S.dts<br>===================================================================<br>
--- target/linux/ramips/dts/Y1S.dts (revision 0)<br>+++ target/linux/ramips/dts/Y1S.dts (working copy)<br>@@ -0,0 +1,187 @@<br>+/dts-v1/;<br>+<br>+/ {<br>+ chosen {<br>+ bootargs = "console=ttyS0,115200";<br>
+ };<br>+};<br>+<br>+/include/ "mt7620a.dtsi"<br>+<br>+/ {<br>+ compatible = "lenovo,Y1S", "ralink,mt7620a-soc";<br>+ model = "Lenovo Y1S";<br>+<br>+ chosen {<br>+ bootargs = "console=ttyS0,115200";<br>
+ };<br>+ <br>+ palmbus@10000000 {<br>+ sysc@0 {<br>+ ralink,gpiomux = "i2c", "jtag";<br>+ ralink,uartmux = "gpio";<br>+ ralink,wdtmux = <1>;<br>
+ };<br>+<br>+ gpio0: gpio@600 {<br>+ status = "okay";<br>+ };<br>+<br>+ gpio2: gpio@660 {<br>+ status = "okay";<br>+ };<br>+<br>+ gpio3: gpio@688 {<br>
+ status = "okay";<br>+ };<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>+ ehci@101c0000 {<br>+ status = "okay";<br>+ };<br>+<br>+ ohci@101c1000 {<br>
+ status = "okay";<br>+ };<br>+<br>+ ethernet@10100000 {<br>+ status = "okay";<br>+ mtd-mac-address = <&factory 0x4>;<br>+ pinctrl-names = "default";<br>
+ pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;<br>+<br>+ ralink,port-map = "wllll";<br>+<br>+ port@4 {<br>+ status = "okay";<br>+ phy-handle = <&phy4>;<br>
+ phy-mode = "rgmii";<br>+ };<br>+<br>+ port@5 {<br>+ status = "okay";<br>+ phy-handle = <&phy5>;<br>+ phy-mode = "rgmii";<br>
+ };<br>+<br>+ mdio-bus {<br>+ status = "okay";<br>+<br>+ phy4: ethernet-phy@4 {<br>+ reg = <4>;<br>+ phy-mode = "rgmii";<br>+ };<br>
+<br>+ phy5: ethernet-phy@5 {<br>+ reg = <5>;<br>+ phy-mode = "rgmii";<br>+ };<br>+ };<br>+ };<br>+<br>+ gsw@10110000 {<br>+ ralink,port4 = "gmac";<br>
+ };<br>+ <br>+ pcie@10140000 {<br>+ status = "okay";<br>+ };<br>+ <br>+ wmac@10180000 {<br>+ ralink,mtd-eeprom = <&factory 0>;<br>+ };<br>+<br>+ pinctrl {<br>+ state_default: pinctrl0 {<br>
+ gpio {<br>+ ralink,group = "uartf", "wled", "nd_sd";<br>+ ralink,function = "gpio";<br>+ };<br>+ pa {<br>+ ralink,group = "pa";<br>
+ ralink,function = "pa";<br>+ };<br>+ };<br>+ };<br>+<br>+ gpio-leds {<br>+ compatible = "gpio-leds";<br>+ power1 {<br>+ label = "lenovo:yellow:power";<br>
+ gpios = <&gpio0 14 1>;<br>+ };<br>+ power2 {<br>+ label = "lenovo:blue:power";<br>+ gpios = <&gpio0 9 1>;<br>+ };<br>+ wlan1 {<br>
+ label = "lenovo:yellow:wifi";<br>+ gpios = <&gpio3 0 1>;<br>+ };<br>+ wlan2 {<br>+ label = "lenovo:blue:wifi";<br>+ gpios = <&gpio2 10 1>;<br>
+ };<br>+ usb1 {<br>+ label = "lenovo:yellow:usb";<br>+ gpios = <&gpio2 13 1>;<br>+ };<br>+ usb2 {<br>+ label = "lenovo:blue:usb";<br>
+ gpios = <&gpio2 12 1>;<br>+ };<br>+ internet {<br>+ label = "lenovo:blue:internet";<br>+ gpios = <&gpio2 11 1>;<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 11 1>;<br>+ linux,code = <0x198>;<br>+ };<br>+ };<br>+};<br>Index: target/linux/ramips/image/Makefile<br>===================================================================<br>
--- target/linux/ramips/image/Makefile (revision 41906)<br>+++ target/linux/ramips/image/Makefile (working copy)<br>@@ -716,6 +716,8 @@<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/Y1=$(call BuildFirmware/Default16M/$(1),$(1),Lenovo-y1,Y1)<br>+Image/Build/Profile/Y1S=$(call BuildFirmware/Default16M/$(1),$(1),Lenovo-y1s,Y1S)<br>
<br> ifeq ($(SUBTARGET),mt7620a)<br> define Image/Build/Profile/Default<br>@@ -730,6 +732,8 @@<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/Y1,$(1))<br>+ $(call Image/Build/Profile/Y1S,$(1))<br> endef<br> endif<br> <br>Index: target/linux/ramips/mt7620a/config-3.10<br>===================================================================<br>
--- target/linux/ramips/mt7620a/config-3.10 (revision 41906)<br>+++ target/linux/ramips/mt7620a/config-3.10 (working copy)<br>@@ -1,6 +1,7 @@<br> CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE=y<br> CONFIG_ARCH_DISCARD_MEMBLOCK=y<br>
CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y<br>+CONFIG_ARCH_HAS_RESET_CONTROLLER=y<br> CONFIG_ARCH_HAVE_CUSTOM_GPIO_H=y<br> CONFIG_ARCH_HIBERNATION_POSSIBLE=y<br> CONFIG_ARCH_REQUIRE_GPIOLIB=y<br>@@ -78,6 +79,7 @@<br> CONFIG_HW_HAS_PCI=y<br>
CONFIG_HW_RANDOM=m<br> CONFIG_HZ_PERIODIC=y<br>+CONFIG_ICPLUS_PHY=y<br> CONFIG_IMAGE_CMDLINE_HACK=y<br> CONFIG_INET_LRO=y<br> CONFIG_INITRAMFS_SOURCE=""<br>@@ -88,6 +90,7 @@<br> CONFIG_IRQ_INTC=y<br> CONFIG_IRQ_WORK=y<br>
CONFIG_M25PXX_USE_FAST_READ=y<br>+CONFIG_MARVELL_PHY=y<br> CONFIG_MDIO_BOARDINFO=y<br> # CONFIG_MII is not set<br> CONFIG_MIPS=y<br>@@ -138,7 +141,9 @@<br> CONFIG_RALINK=y<br> CONFIG_RALINK_USBPHY=y<br> CONFIG_RALINK_WDT=y<br>
+CONFIG_RA_NAT_NONE=y<br> # CONFIG_RCU_STALL_COMMON is not set<br>+CONFIG_REALTEK_PHY=y<br> CONFIG_RESET_CONTROLLER=y<br> # CONFIG_SAMSUNG_USB2PHY is not set<br> # CONFIG_SAMSUNG_USB3PHY is not set<br><br><br></div></div>
</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-31 17:08 GMT+08:00 Lintel Huang <span dir="ltr"><<a href="mailto:lintel.huang@gmail.com" target="_blank">lintel.huang@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Dear John:<br></div> I'm sorry for replying so late,<br> I will make a new patch for Lenovo AC1200 series product later.<br>
<br>Regards, <br>Lintel<br><span style="color:rgb(102,102,102);font-family:arial;font-size:14px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:18px;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><span></span></span></div>
<div class="gmail_extra"><br><br><div class="gmail_quote">2014-07-29 1:24 GMT+08:00 John Crispin <span dir="ltr"><<a href="mailto:john@phrozen.org" target="_blank">john@phrozen.org</a>></span>:<div><div class="h5">
<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><br>
<br>
On 28/07/2014 19:22, Weedy wrote:<br>
><br>
> On 28 Jul 2014 12:45, "John Crispin" <<a href="mailto:john@phrozen.org" target="_blank">john@phrozen.org</a><br>
</div><div>> <mailto:<a href="mailto:john@phrozen.org" target="_blank">john@phrozen.org</a>>> wrote:<br>
>><br>
>> Hi,<br>
>><br>
>> where is the DTS file ?<br>
>><br>
>> John<br>
><br>
> Attached to the first mail.<br>
><br>
<br>
</div>i am marking the patch as rejected in patchwork. please send the whole<br>
code as one self contained patch. this way it becomes merge-able<br>
<span><font color="#888888"><br>
John<br>
</font></span></blockquote></div></div></div><br></div>
</blockquote></div><br></div>