X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2FY1S.dts;h=d7f4615aa509663a080423cf82f244cc92293db5;hb=277f7f1459f65f2b0fb4dbd64d5167c41e55ad9a;hp=b8c6ad085e490fd24febed905e1211f5b842e9e2;hpb=6da8ebbb733a6f753ee812738bddcc3bc16212df;p=openwrt.git diff --git a/target/linux/ramips/dts/Y1S.dts b/target/linux/ramips/dts/Y1S.dts index b8c6ad085e..d7f4615aa5 100644 --- a/target/linux/ramips/dts/Y1S.dts +++ b/target/linux/ramips/dts/Y1S.dts @@ -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"; @@ -40,45 +40,66 @@ }; }; + 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 { compatible = "gpio-leds"; power1 { - label = "lenovo:yellow:power"; + label = "y1s:yellow:power"; gpios = <&gpio0 14 1>; }; power2 { - label = "lenovo:blue:power"; + label = "y1s:blue:power"; gpios = <&gpio0 9 1>; }; wlan1 { - label = "lenovo:yellow:wifi"; + label = "y1s:yellow:wifi"; gpios = <&gpio3 0 1>; }; wlan2 { - label = "lenovo:blue:wifi"; + label = "y1s:blue:wifi"; gpios = <&gpio2 10 1>; }; usb1 { - label = "lenovo:yellow:usb"; + label = "y1s:yellow:usb"; gpios = <&gpio2 13 1>; }; usb2 { - label = "lenovo:blue:usb"; + label = "y1s:blue:usb"; gpios = <&gpio2 12 1>; }; internet { - label = "lenovo:blue:internet"; + label = "y1s:blue:internet"; gpios = <&gpio2 11 1>; }; };