ramips: Change all '/include/' clauses to '#include' so preprocessing can be done...
[openwrt/svn-archive/archive.git] / target / linux / ramips / dts / Y1S.dts
index f61280b7554dad0a59c63fe6c72c5854b80ca4de..7679e0a72147ca0406c57ed905bc05b77234c653 100644 (file)
@@ -1,6 +1,6 @@
 /dts-v1/;
 
-/include/ "Y1.dtsi"
+#include "Y1.dtsi"
 
 / {
        compatible = "lenovo,Y1S", "ralink,mt7620a-soc";
@@ -11,7 +11,7 @@
                mtd-mac-address = <&factory 0x4>;
                pinctrl-names = "default";
                pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
-               ralink,port-map = "wllll";
+               mediatek,portmap = "wllll";
 
                port@4 {
                        status = "okay";
                };
        };
 
+       gpio_export {
+               compatible = "gpio-export";
+               #size-cells = <0>;
+               /* GPIO 54、55、56 USB1、2、3 */
+               usb0 {
+                       gpio-export,name = "usb0";
+                       gpio-export,output = <1>; // GPIOF_OUT_INIT_HIGH
+                       gpios = <&gpio2 14 0>; // GPIO2:40+14=GPIO 54
+               };
+               usb1 {
+                       gpio-export,name = "usb1";
+                       gpio-export,output = <1>;
+                       gpios = <&gpio2 15 0>;
+               };
+               usb2 {
+                       gpio-export,name = "usb2";
+                       gpio-export,output = <1>;
+                       gpios = <&gpio2 16 0>;
+               };
+       };
+
        gsw@10110000 {
-               ralink,port4 = "gmac";
+               mediatek,port4 = "gmac";
        };
        
        gpio-leds {