ramips: replace "mac-address-ascii" with "mac-base"
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3050_tenda_w150m.dts
1 #include "rt3050.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "tenda,w150m", "ralink,rt3050-soc";
8 model = "Tenda W150M";
9
10 aliases {
11 led-boot = &led_ap;
12 led-failsafe = &led_ap;
13 led-running = &led_ap;
14 led-upgrade = &led_ap;
15 };
16
17 flash@1f000000 {
18 compatible = "cfi-flash";
19 reg = <0x1f000000 0x800000>;
20 bank-width = <2>;
21 device-width = <2>;
22
23 partitions {
24 compatible = "fixed-partitions";
25 #address-cells = <1>;
26 #size-cells = <1>;
27
28 partition@0 {
29 label = "u-boot";
30 reg = <0x0 0x30000>;
31 read-only;
32 };
33
34 partition@30000 {
35 label = "u-boot-env";
36 reg = <0x30000 0x10000>;
37 read-only;
38 };
39
40 factory: partition@40000 {
41 label = "factory";
42 reg = <0x40000 0x10000>;
43 read-only;
44 };
45
46 partition@50000 {
47 compatible = "denx,uimage";
48 label = "firmware";
49 reg = <0x50000 0x3b0000>;
50 };
51 };
52 };
53
54 leds {
55 compatible = "gpio-leds";
56
57 3grouter {
58 label = "blue:3grouter";
59 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
60 };
61
62 led_ap: ap {
63 label = "blue:ap";
64 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
65 };
66
67 wisprouter {
68 label = "blue:wisprouter";
69 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
70 };
71
72 wirelessrouter {
73 label = "blue:wirelessrouter";
74 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
75 };
76
77 3g {
78 label = "blue:3g";
79 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
80 };
81
82 wpsreset {
83 label = "blue:wpsreset";
84 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
85 };
86 };
87
88 keys {
89 compatible = "gpio-keys-polled";
90 poll-interval = <20>;
91
92 reset {
93 label = "reset";
94 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
95 linux,code = <KEY_RESTART>;
96 };
97
98 mode {
99 label = "mode";
100 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
101 linux,code = <BTN_0>;
102 };
103 };
104 };
105
106 &state_default {
107 gpio {
108 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
109 function = "gpio";
110 };
111 };
112
113 &ethernet {
114 nvmem-cells = <&macaddr_factory_4>;
115 nvmem-cell-names = "mac-address";
116 };
117
118 &esw {
119 mediatek,portmap = <0x2f>;
120 };
121
122 &wmac {
123 ralink,mtd-eeprom = <&factory 0x0>;
124 };
125
126 &factory {
127 compatible = "nvmem-cells";
128 #address-cells = <1>;
129 #size-cells = <1>;
130
131 macaddr_factory_4: macaddr@4 {
132 reg = <0x4 0x6>;
133 };
134 };