1/dts-v1/; 2 3#include "rt2880.dtsi" 4 5/ { 6 #address-cells = <1>; 7 #size-cells = <1>; 8 compatible = "RT-N15", "ralink,rt2880-soc"; 9 model = "Asus RT-N15"; 10 11 cfi@1f000000 { 12 compatible = "cfi-flash"; 13 reg = <0x1f000000 0x800000>; 14 bank-width = <2>; 15 device-width = <2>; 16 #address-cells = <1>; 17 #size-cells = <1>; 18 19 partition@0 { 20 label = "uboot"; 21 reg = <0x0 0x30000>; 22 read-only; 23 }; 24 25 partition@30000 { 26 label = "uboot-env"; 27 reg = <0x30000 0x10000>; 28 read-only; 29 }; 30 31 factory: partition@40000 { 32 label = "factory"; 33 reg = <0x40000 0x10000>; 34 read-only; 35 }; 36 37 partition@50000 { 38 label = "firmware"; 39 reg = <0x50000 0x3b0000>; 40 }; 41 }; 42 43 rtl8366s { 44 compatible = "realtek,rtl8366s"; 45 gpio-sda = <&gpio0 1 0>; 46 gpio-sck = <&gpio0 2 0>; 47 }; 48 49 gpio-keys-polled { 50 compatible = "gpio-keys-polled"; 51 #address-cells = <1>; 52 #size-cells = <0>; 53 poll-interval = <100>; 54 55 wps { 56 label = "wps"; 57 gpios = <&gpio0 0 0>; 58 linux,code = <0x211>; 59 }; 60 61 reset { 62 label = "reset"; 63 gpios = <&gpio0 12 0>; 64 linux,code = <0x198>; 65 }; 66 }; 67 68 gpio-leds { 69 compatible = "gpio-leds"; 70 71 power { 72 label = "rt-n15:blue:power"; 73 gpios = <&gpio0 11 1>; 74 }; 75 }; 76}; 77 78&gpio0 { 79 status = "okay"; 80}; 81 82&pinctrl { 83 state_default: pinctrl0 { 84 gpio { 85 ralink,group = "i2c", "uartlite", "mdio"; 86 ralink,function = "gpio"; 87 }; 88 }; 89}; 90 91ðernet { 92 status = "okay"; 93 mtd-mac-address = <&factory 0x4>; 94 95 port@0 { 96 mediatek,fixed-link = <1000 1 1 1>; 97 }; 98 99 mdio-bus { 100 status = "okay"; 101 102 phy0: ethernet-phy@0 { 103 phy-mode = "mii"; 104 reg = <0>; 105 }; 106 }; 107}; 108 109&wmac { 110 ralink,mtd-eeprom = <&factory 0>; 111}; 112