X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2Fmt7621_youku_yk-l2.dts;h=627188873d08a6126a427ce7d2ee79e6fcc0df30;hb=66d12ce667ce9cac249736eebfa95786a9ae2a54;hp=dc5599302a4036857a5f7268af404122dff30bad;hpb=a2c19f1d2f658367e6d62a6bdcfc72f12f23e43e;p=openwrt%2Fopenwrt.git diff --git a/target/linux/ramips/dts/mt7621_youku_yk-l2.dts b/target/linux/ramips/dts/mt7621_youku_yk-l2.dts index dc5599302a..627188873d 100644 --- a/target/linux/ramips/dts/mt7621_youku_yk-l2.dts +++ b/target/linux/ramips/dts/mt7621_youku_yk-l2.dts @@ -1,5 +1,4 @@ // SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/dts-v1/; #include "mt7621.dtsi" @@ -25,37 +24,36 @@ compatible = "gpio-leds"; led_power: power { - label = "yk-l2:blue:power"; - gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; + label = "blue:power"; + gpios = <&gpio 13 GPIO_ACTIVE_LOW>; default-state = "on"; }; led_wps: wps { - label = "yk-l2:blue:wps"; - gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + label = "blue:wps"; + gpios = <&gpio 14 GPIO_ACTIVE_LOW>; }; usb { - label = "yk-l2:blue:usb"; - gpios = <&gpio0 16 GPIO_ACTIVE_LOW>; + label = "blue:usb"; + gpios = <&gpio 16 GPIO_ACTIVE_LOW>; trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>; linux,default-trigger = "usbport"; }; }; keys { - compatible = "gpio-keys-polled"; - poll-interval = <20>; + compatible = "gpio-keys"; reset { label = "reset"; - gpios = <&gpio0 18 GPIO_ACTIVE_LOW>; + gpios = <&gpio 18 GPIO_ACTIVE_LOW>; linux,code = ; }; wps { label = "wps"; - gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; + gpios = <&gpio 17 GPIO_ACTIVE_LOW>; linux,code = ; }; }; @@ -65,10 +63,6 @@ status = "okay"; }; -&xhci { - status = "okay"; -}; - &spi0 { status = "okay"; @@ -138,15 +132,43 @@ }; }; -ðernet { +&gmac0 { mtd-mac-address = <&factory 0xe000>; }; -&pinctrl { - state_default: pinctrl0 { - gpio { - ralink,group = "jtag", "wdt"; - ralink,function = "gpio"; +&switch0 { + ports { + port@0 { + status = "okay"; + label = "lan1"; + }; + + port@1 { + status = "okay"; + label = "lan2"; + }; + + port@2 { + status = "okay"; + label = "lan3"; }; + + port@3 { + status = "okay"; + label = "lan4"; + }; + + port@4 { + status = "okay"; + label = "wan"; + mtd-mac-address = <&factory 0xe006>; + }; + }; +}; + +&state_default { + gpio { + groups = "jtag", "wdt"; + function = "gpio"; }; };