Author: blogic
Date: 2016-04-20 19:19:05 +0200 (Wed, 20 Apr 2016)
New Revision: 49205

Added:
   trunk/target/linux/ramips/mt7620/profiles/planex.mk
Modified:
   trunk/target/linux/ramips/base-files/etc/board.d/01_leds
   trunk/target/linux/ramips/base-files/etc/diag.sh
   trunk/target/linux/ramips/base-files/lib/upgrade/platform.sh
   trunk/target/linux/ramips/dts/MZK-750DHP.dts
Log:
ramips: fix support Planex MZK-750DHP.

fix script for Planex MZK-750DHP.
modification of the GPIO definition.
add Profile.

Signed-off-by: YuheiOKAWA <[email protected]>

Modified: trunk/target/linux/ramips/base-files/etc/board.d/01_leds
===================================================================
--- trunk/target/linux/ramips/base-files/etc/board.d/01_leds    2016-04-20 
17:19:00 UTC (rev 49204)
+++ trunk/target/linux/ramips/base-files/etc/board.d/01_leds    2016-04-20 
17:19:05 UTC (rev 49205)
@@ -122,6 +122,7 @@
        set_wifi_led "$board:green:wifi"
        ;;
 dir-810l|\
+mzk-750dhp|\
 mzk-dp150n)
        ucidef_set_led_default "power" "power" "$board:green:power" "1"
        ;;

Modified: trunk/target/linux/ramips/base-files/etc/diag.sh
===================================================================
--- trunk/target/linux/ramips/base-files/etc/diag.sh    2016-04-20 17:19:00 UTC 
(rev 49204)
+++ trunk/target/linux/ramips/base-files/etc/diag.sh    2016-04-20 17:19:05 UTC 
(rev 49205)
@@ -21,6 +21,7 @@
        br-6475nd|\
        e1700|\
        fonera20n|\
+       mzk-750dhp|\
        mzk-dp150n|\
        mzk-w300nh2|\
        nbg-419n|\

Modified: trunk/target/linux/ramips/base-files/lib/upgrade/platform.sh
===================================================================
--- trunk/target/linux/ramips/base-files/lib/upgrade/platform.sh        
2016-04-20 17:19:00 UTC (rev 49204)
+++ trunk/target/linux/ramips/base-files/lib/upgrade/platform.sh        
2016-04-20 17:19:05 UTC (rev 49205)
@@ -86,6 +86,7 @@
        mpr-a2|\
        mr-102n|\
        mt7628|\
+       mzk-750dhp|\
        mzk-dp150n|\
        mzk-w300nh2|\
        mzk-wdpr|\

Modified: trunk/target/linux/ramips/dts/MZK-750DHP.dts
===================================================================
--- trunk/target/linux/ramips/dts/MZK-750DHP.dts        2016-04-20 17:19:00 UTC 
(rev 49204)
+++ trunk/target/linux/ramips/dts/MZK-750DHP.dts        2016-04-20 17:19:05 UTC 
(rev 49205)
@@ -11,6 +11,10 @@
                        status = "okay";
                };
 
+               gpio2: gpio@660 {
+                       status = "okay";
+               };
+
                spi@b00 {
                        status = "okay";
 
@@ -51,7 +55,7 @@
        pinctrl {
                state_default: pinctrl0 {
                        gpio {
-                               ralink,group = "i2c", "spi refclk", "rgmii1";
+                               ralink,group = "i2c", "spi refclk", "rgmii1", 
"nd_sd";
                                ralink,function = "gpio";
                        };
                };
@@ -74,6 +78,15 @@
 
        pcie@10140000 {
                status = "okay";
+
+               pcie-bridge {
+                       mt76@0,0 {
+                               reg = <0x0000 0 0 0 0>;
+                               device_type = "pci";
+                               mediatek,mtd-eeprom = <&factory 0x8000>;
+                               mediatek,2ghz = <0>;
+                       };
+               };
        };
        
        gpio-leds {
@@ -81,7 +94,7 @@
 
                wps {
                        label = "mzk-750dhp:green:wps";
-                       gpios = <&gpio1 11 1>;
+                       gpios = <&gpio2 15 1>;
                };
 
                power {
@@ -88,6 +101,11 @@
                        label = "mzk-750dhp:green:power";
                        gpios = <&gpio1 15 1>;
                };
+
+               wlan5g {
+                       label = "mzk-750dhp:green:wlan5g";
+                       gpios = <&gpio1 14 1>;
+               };
        };
 
        gpio-keys-polled {
@@ -99,12 +117,12 @@
                s1 {
                        label = "reset";
                        gpios = <&gpio0 1 1>;
-                       linux,code = <0x100>;
+                       linux,code = <0x198>;
                };
 
                s2 {
                        label = "wps";
-                       gpios = <&gpio0 2 1>;
+                       gpios = <&gpio2 19 1>;
                        linux,code = <0x211>;
                };
        };

Added: trunk/target/linux/ramips/mt7620/profiles/planex.mk
===================================================================
--- trunk/target/linux/ramips/mt7620/profiles/planex.mk                         
(rev 0)
+++ trunk/target/linux/ramips/mt7620/profiles/planex.mk 2016-04-20 17:19:05 UTC 
(rev 49205)
@@ -0,0 +1,16 @@
+#
+# Copyright (C) 2016 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+define Profile/MZK-750DHP
+       NAME:=Planex MZK-750DHP
+       PACKAGES:= kmod-mt76 kmod-mt7610e
+endef
+
+define Profile/MZK-750DHP/Description
+       Package set optimized for the Planex MZK-750DHP.
+endef
+$(eval $(call Profile,MZK-750DHP))
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to