X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fstaging%2Fwigyori.git;a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2FBR-6478AC-V2.dts;h=5c90aa15496f0ae8ced6339089c4c8b5c4efaff9;hp=d0da5efdcd00706845aca2657eabafa65128074d;hb=dd3ec40d3d07f9fb419936b27f386217a0c68fb0;hpb=3b1213a377d9015028eac5fac3b5d94daecdc84e diff --git a/target/linux/ramips/dts/BR-6478AC-V2.dts b/target/linux/ramips/dts/BR-6478AC-V2.dts index d0da5efdcd..5c90aa1549 100644 --- a/target/linux/ramips/dts/BR-6478AC-V2.dts +++ b/target/linux/ramips/dts/BR-6478AC-V2.dts @@ -23,17 +23,18 @@ model = "Edimax BR-6478AC v2"; aliases { - led-status = &led_power; + led-boot = &led_power; + led-failsafe = &led_power; + led-running = &led_power; + led-upgrade = &led_power; }; chosen { bootargs = "console=ttyS0,57600"; }; - gpio-keys-polled { + keys { compatible = "gpio-keys-polled"; - #address-cells = <1>; - #size-cells = <0>; poll-interval = <20>; reset_wps { @@ -43,15 +44,15 @@ }; }; - gpio-leds { + leds { compatible = "gpio-leds"; led_power: power { label = "br-6478ac-v2:white:power"; gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; }; - wan { - label = "br-6478ac-v2:blue:wan"; + internet { + label = "br-6478ac-v2:blue:internet"; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; }; wlan { @@ -61,6 +62,8 @@ usb { label = "br-6478ac-v2:blue:usb"; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; + trigger-sources = <&ohci_port1>, <&ehci_port1>; + linux,default-trigger = "usbport"; }; }; @@ -71,7 +74,7 @@ usb-power { gpio-export,name="usb-power"; gpio-export,output=<1>; - gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; /* pin45 */ + gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; }; }; }; @@ -81,45 +84,48 @@ status = "okay"; }; - &spi0 { status = "okay"; - m25p80@0 { - #address-cells = <1>; - #size-cells = <1>; + flash@0 { compatible = "jedec,spi-nor"; reg = <0 0>; - linux,modalias = "m25p80", "mx25l6405d"; 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 = "cimage"; - reg = <0x50000 0x20000>; - read-only; - }; - - partition@70000 { - label = "firmware"; - reg = <0x00070000 0x00790000>; + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + 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 = "cimage"; + reg = <0x50000 0x20000>; + read-only; + }; + + partition@70000 { + compatible = "edimax,uimage"; + label = "firmware"; + reg = <0x00070000 0x00790000>; + }; }; }; }; @@ -127,8 +133,7 @@ &pinctrl { state_default: pinctrl0 { gpio { - ralink,group = "i2c", "uartf", "wdt", "pa", - "ephy", "nd_sd", "wled"; + ralink,group = "i2c", "uartf", "nd_sd"; ralink,function = "gpio"; }; }; @@ -186,23 +191,20 @@ mediatek,port4 = "gmac"; }; - &wmac { ralink,mtd-eeprom = <&factory 0>; }; &pcie { status = "okay"; +}; - pcie-bridge { - mt76@0,0 { - reg = <0x0000 0 0 0 0>; - device_type = "pci"; - mediatek,mtd-eeprom = <&factory 0x8000>; - mediatek,2ghz = <0>; - }; +&pcie0 { + wifi@0,0 { + reg = <0x0000 0 0 0 0>; + mediatek,mtd-eeprom = <&factory 0x8000>; + mediatek,2ghz = <0>; }; - }; &ehci {