aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-08-03 11:13:52 +0000
committerJohn Crispin <blogic@openwrt.org>2014-08-03 11:13:52 +0000
commit41079810695c2f2cecbb4895532635e9e33f0e45 (patch)
tree3e5363c39377daa41129a83aa785952838bba5ae /target/linux/ramips/dts
parent89be00c4f0d888bee7235ee2988270492baaa7c4 (diff)
downloadupstream-41079810695c2f2cecbb4895532635e9e33f0e45.tar.gz
upstream-41079810695c2f2cecbb4895532635e9e33f0e45.tar.bz2
upstream-41079810695c2f2cecbb4895532635e9e33f0e45.zip
ramips:support Lenovo AC1200 Wireless router
Lenovo AC1200 series has two types, Y1 and Y1S. Y1S has 256MB DDR2, Y1 only has 128MB and Y1 have no Giga Port. Signed-off-by: Lintel <lintel.huang@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41961 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/dts')
-rw-r--r--target/linux/ramips/dts/Y1.dts43
-rw-r--r--target/linux/ramips/dts/Y1.dtsi105
-rw-r--r--target/linux/ramips/dts/Y1S.dts79
3 files changed, 227 insertions, 0 deletions
diff --git a/target/linux/ramips/dts/Y1.dts b/target/linux/ramips/dts/Y1.dts
new file mode 100644
index 0000000000..0b7b08208a
--- /dev/null
+++ b/target/linux/ramips/dts/Y1.dts
@@ -0,0 +1,43 @@
+/dts-v1/;
+
+/include/ "Y1.dtsi"
+
+/ {
+ compatible = "lenovo,Y1", "ralink,mt7620a-soc";
+ model = "Lenovo Y1";
+
+ ethernet@10100000 {
+ pinctrl-names = "default";
+ pinctrl-0 = <&ephy_pins>;
+ mtd-mac-address = <&factory 0x4>;
+ ralink,port-map = "llllw";
+ };
+
+ gpio-leds {
+ compatible = "gpio-leds";
+ power1 {
+ label = "lenovo:blue:power";
+ gpios = <&gpio0 9 1>;
+ };
+ wlan1 {
+ label = "lenovo:blue:wifi";
+ gpios = <&gpio3 0 1>;
+ };
+ wlan2 {
+ label = "lenovo:blue:wifi5g";
+ gpios = <&gpio2 10 1>;
+ };
+ usb {
+ label = "lenovo:blue:usb";
+ gpios = <&gpio2 12 1>;
+ };
+ lan {
+ label = "lenovo:blue:lan";
+ gpios = <&gpio2 15 1>;
+ };
+ internet {
+ label = "lenovo:blue:internet";
+ gpios = <&gpio2 11 1>;
+ };
+ };
+};
diff --git a/target/linux/ramips/dts/Y1.dtsi b/target/linux/ramips/dts/Y1.dtsi
new file mode 100644
index 0000000000..06db2bb362
--- /dev/null
+++ b/target/linux/ramips/dts/Y1.dtsi
@@ -0,0 +1,105 @@
+/include/ "mt7620a.dtsi"
+
+/ {
+ chosen {
+ bootargs = "console=ttyS0,115200";
+ };
+
+ palmbus@10000000 {
+ sysc@0 {
+ ralink,gpiomux = "i2c", "jtag";
+ ralink,uartmux = "gpio";
+ ralink,wdtmux = <1>;
+ };
+
+ gpio0: gpio@600 {
+ status = "okay";
+ };
+
+ gpio2: gpio@660 {
+ status = "okay";
+ };
+
+ gpio3: gpio@688 {
+ status = "okay";
+ };
+
+
+ spi@b00 {
+ status = "okay";
+
+ m25p80@0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "w25q128";
+ reg = <0 0>;
+ linux,modalias = "m25p80", "w25q128";
+ 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 0xfb0000>;
+ };
+ };
+ };
+ };
+
+ ehci@101c0000 {
+ status = "okay";
+ };
+
+ ohci@101c1000 {
+ status = "okay";
+ };
+
+ pcie@10140000 {
+ status = "okay";
+ };
+
+ wmac@10180000 {
+ ralink,mtd-eeprom = <&factory 0>;
+ };
+
+ pinctrl {
+ state_default: pinctrl0 {
+ gpio {
+ ralink,group = "uartf", "wled", "nd_sd";
+ ralink,function = "gpio";
+ };
+ pa {
+ ralink,group = "pa";
+ ralink,function = "pa";
+ };
+ };
+ };
+
+ gpio-keys-polled {
+ compatible = "gpio-keys-polled";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ poll-interval = <20>;
+ reset {
+ label = "reset";
+ gpios = <&gpio0 11 1>;
+ linux,code = <0x198>;
+ };
+ };
+};
diff --git a/target/linux/ramips/dts/Y1S.dts b/target/linux/ramips/dts/Y1S.dts
new file mode 100644
index 0000000000..9ecac37225
--- /dev/null
+++ b/target/linux/ramips/dts/Y1S.dts
@@ -0,0 +1,79 @@
+/dts-v1/;
+
+/include/ "Y1.dtsi"
+
+/ {
+ compatible = "lenovo,Y1S", "ralink,mt7620a-soc";
+ model = "Lenovo Y1S";
+
+ ethernet@10100000 {
+ status = "okay";
+ mtd-mac-address = <&factory 0x4>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
+
+ ralink,port-map = "wllll";
+
+ port@4 {
+ status = "okay";
+ phy-handle = <&phy4>;
+ phy-mode = "rgmii";
+ };
+
+ port@5 {
+ status = "okay";
+ phy-handle = <&phy5>;
+ phy-mode = "rgmii";
+ };
+
+ mdio-bus {
+ status = "okay";
+
+ phy4: ethernet-phy@4 {
+ reg = <4>;
+ phy-mode = "rgmii";
+ };
+
+ phy5: ethernet-phy@5 {
+ reg = <5>;
+ phy-mode = "rgmii";
+ };
+ };
+ };
+
+ gsw@10110000 {
+ ralink,port4 = "gmac";
+ };
+
+ gpio-leds {
+ compatible = "gpio-leds";
+ power1 {
+ label = "lenovo:yellow:power";
+ gpios = <&gpio0 14 1>;
+ };
+ power2 {
+ label = "lenovo:blue:power";
+ gpios = <&gpio0 9 1>;
+ };
+ wlan1 {
+ label = "lenovo:yellow:wifi";
+ gpios = <&gpio3 0 1>;
+ };
+ wlan2 {
+ label = "lenovo:blue:wifi";
+ gpios = <&gpio2 10 1>;
+ };
+ usb1 {
+ label = "lenovo:yellow:usb";
+ gpios = <&gpio2 13 1>;
+ };
+ usb2 {
+ label = "lenovo:blue:usb";
+ gpios = <&gpio2 12 1>;
+ };
+ internet {
+ label = "lenovo:blue:internet";
+ gpios = <&gpio2 11 1>;
+ };
+ };
+};