1/dts-v1/; 2 3#include "mt7620n.dtsi" 4 5/ { 6 compatible = "mlw221", "ralink,mt7620n-soc"; 7 model = "Kingston MLW221"; 8 9 gpio-leds { 10 compatible = "gpio-leds"; 11 12 system { 13 label = "mlw221:blue:system"; 14 gpios = <&gpio2 3 1>; 15 }; 16 17 wifi { 18 label = "mlw221:blue:wifi"; 19 gpios = <&gpio3 0 1>; 20 }; 21 }; 22 23 gpio-keys-polled { 24 compatible = "gpio-keys-polled"; 25 #address-cells = <1>; 26 #size-cells = <0>; 27 poll-interval = <20>; 28 29 reset { 30 label = "reset"; 31 gpios = <&gpio0 1 1>; 32 linux,code = <0x198>; 33 }; 34 35 system { 36 label = "system"; 37 gpios = <&gpio0 2 1>; 38 linux,code = <0x211>; 39 }; 40 }; 41}; 42 43&gpio0 { 44 status = "okay"; 45}; 46 47&gpio2 { 48 status = "okay"; 49}; 50 51&gpio3 { 52 status = "okay"; 53}; 54 55&spi0 { 56 status = "okay"; 57 58 m25p80@0 { 59 #address-cells = <1>; 60 #size-cells = <1>; 61 compatible = "jedec,spi-nor"; 62 reg = <0>; 63 linux,modalias = "m25p80", "s25fl129p1"; 64 spi-max-frequency = <10000000>; 65 66 partition@0 { 67 label = "u-boot"; 68 reg = <0x0 0x30000>; 69 read-only; 70 }; 71 72 partition@30000 { 73 label = "u-boot-env"; 74 reg = <0x30000 0x10000>; 75 read-only; 76 }; 77 78 factory: partition@40000 { 79 label = "factory"; 80 reg = <0x40000 0x10000>; 81 read-only; 82 }; 83 84 partition@50000 { 85 label = "firmware"; 86 reg = <0x50000 0xf60000>; 87 }; 88 89 partition@fb0000 { 90 label = "user-config"; 91 reg = <0xfb0000 0x50000>; 92 }; 93 }; 94}; 95 96&ehci { 97 status = "okay"; 98}; 99 100&ohci { 101 status = "okay"; 102}; 103 104ðernet { 105 mtd-mac-address = <&factory 0x4>; 106 mediatek,portmap = "wllll"; 107}; 108 109&wmac { 110 ralink,mtd-eeprom = <&factory 0>; 111}; 112 113&pinctrl { 114 state_default: pinctrl0 { 115 default { 116 ralink,group = "i2c", "ephy", "wled"; 117 ralink,function = "gpio"; 118 }; 119 }; 120}; 121