1/dts-v1/; 2 3#include "rt5350.dtsi" 4 5/ { 6 compatible = "HT-TM02", "ralink,rt5350-soc"; 7 model = "HooToo HT-TM02"; 8 9 gpio-leds { 10 compatible = "gpio-leds"; 11 12 wlan { 13 label = "ht-tm02:blue:wlan"; 14 gpios = <&gpio0 7 1>; 15 }; 16 17 lan { 18 label = "ht-tm02:green:lan"; 19 gpios = <&gpio0 12 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 10 1>; 32 linux,code = <0x198>; 33 }; 34 35 modeswitch { 36 label = "modeswitch"; 37 gpios = <&gpio0 14 1>; 38 linux,code = <0x100>; 39 linux,input-type = <5>; 40 }; 41 }; 42}; 43 44&gpio0 { 45 status = "okay"; 46}; 47 48&spi0 { 49 status = "okay"; 50 51 m25p80@0 { 52 #address-cells = <1>; 53 #size-cells = <1>; 54 compatible = "jedec,spi-nor"; 55 reg = <0>; 56 linux,modalias = "m25p80", "mx25l6405d"; 57 spi-max-frequency = <10000000>; 58 59 partition@0 { 60 label = "u-boot"; 61 reg = <0x0 0x30000>; 62 read-only; 63 }; 64 65 partition@30000 { 66 label = "u-boot-env"; 67 reg = <0x30000 0x10000>; 68 read-only; 69 }; 70 71 factory: partition@40000 { 72 label = "factory"; 73 reg = <0x40000 0x10000>; 74 read-only; 75 }; 76 77 partition@50000 { 78 label = "firmware"; 79 reg = <0x50000 0x7b0000>; 80 }; 81 }; 82}; 83 84&pinctrl { 85 state_default: pinctrl0 { 86 gpio { 87 ralink,group = "i2c", "jtag", "uartf"; 88 ralink,function = "gpio"; 89 }; 90 }; 91}; 92 93ðernet { 94 mtd-mac-address = <&factory 0x28>; 95}; 96 97&esw { 98 mediatek,portmap = <0x10>; 99 mediatek,portdisable = <0x2f>; 100}; 101 102&wmac { 103 ralink,mtd-eeprom = <&factory 0>; 104}; 105 106&ehci { 107 status = "okay"; 108}; 109 110&ohci { 111 status = "okay"; 112}; 113