1/dts-v1/; 2 3#include "mt7620a.dtsi" 4 5/ { 6 compatible = "dlink,dir-810l", "ralink,mt7620a-soc"; 7 model = "D-Link DIR-810L"; 8 9 gpio-keys-polled { 10 compatible = "gpio-keys-polled"; 11 #address-cells = <1>; 12 #size-cells = <0>; 13 poll-interval = <20>; 14 15 reset { 16 label = "reset"; 17 gpios = <&gpio0 1 1>; 18 linux,code = <0x100>; 19 }; 20 21 wps { 22 label = "wps"; 23 gpios = <&gpio0 2 1>; 24 linux,code = <0x100>; 25 }; 26 }; 27 28 gpio-leds { 29 compatible = "gpio-leds"; 30 31 power { 32 label = "dir-810l:green:power"; 33 gpios = <&gpio0 9 0>; 34 }; 35 36 wan { 37 label = "dir-810l:orange:wan"; 38 gpios = <&gpio0 12 0>; 39 }; 40 41 status { 42 label = "dir-810l:orange:power"; 43 gpios = <&gpio0 13 0>; 44 }; 45 }; 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"; 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 factory5g: partition@50000 { 78 label = "factory5g"; 79 reg = <0x50000 0x10000>; 80 read-only; 81 }; 82 83 partition@60000 { 84 label = "Wolf_Config"; 85 reg = <0x60000 0x10000>; 86 read-only; 87 }; 88 89 partition@70000 { 90 label = "MyDlink"; 91 reg = <0x70000 0x80000>; 92 read-only; 93 }; 94 95 partition@e0000 { 96 label = "Jffs2"; 97 reg = <0xe0000 0x80000>; 98 read-only; 99 }; 100 101 partition@170000 { 102 label = "firmware"; 103 reg = <0x170000 0x690000>; 104 }; 105 }; 106}; 107 108&pinctrl { 109 state_default: pinctrl0 { 110 gpio { 111 ralink,group = "mdio", "rgmii1", "i2c", "wled", "uartf"; 112 ralink,function = "gpio"; 113 }; 114 }; 115}; 116 117ðernet { 118 mtd-mac-address = <&factory 0x28>; 119 mediatek,portmap = "llllw"; 120}; 121 122&gsw { 123 mediatek,port4 = "ephy"; 124 pinctrl-names = "default"; 125 pinctrl-0 = <&ephy_pins>; 126}; 127 128&pcie { 129 status = "okay"; 130}; 131 132&wmac { 133 ralink,mtd-eeprom = <&factory 0>; 134}; 135