ramips: cleanup SPI flash device tree properties usage
[openwrt/openwrt.git] / target / linux / ramips / dts / ASL26555-16M.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "ASL26555", "ralink,rt3050-soc";
9 model = "Alpha ASL26555 (16M)";
10
11 gpio-keys-polled {
12 compatible = "gpio-keys-polled";
13 #address-cells = <1>;
14 #size-cells = <0>;
15 poll-interval = <20>;
16
17 reset {
18 label = "reset";
19 gpios = <&gpio0 10 0>;
20 linux,code = <KEY_RESTART>;
21 };
22
23 wps {
24 label = "wps";
25 gpios = <&gpio0 12 0>;
26 linux,code = <KEY_WPS_BUTTON>;
27 };
28 };
29
30 gpio-leds {
31 compatible = "gpio-leds";
32
33 eth {
34 label = "asl26555:green:eth";
35 gpios = <&gpio0 0 1>;
36 };
37
38 wan-red {
39 label = "asl26555:red:wan";
40 gpios = <&gpio0 1 0>;
41 };
42
43 wan-green {
44 label = "asl26555:green:wan";
45 gpios = <&gpio0 2 0>;
46 };
47
48 wlan {
49 label = "asl26555:green:wlan";
50 gpios = <&gpio0 7 0>;
51 };
52
53 power-green {
54 label = "asl26555:green:power";
55 gpios = <&gpio0 8 0>;
56 };
57
58 power-red {
59 label = "asl26555:red:power";
60 gpios = <&gpio0 9 0>;
61 };
62
63 3g-green {
64 label = "asl26555:green:3g";
65 gpios = <&gpio0 14 1>;
66 };
67
68 3g-red {
69 label = "asl26555:red:3g";
70 gpios = <&gpio0 17 1>;
71 };
72 };
73 };
74
75 &gpio0 {
76 status = "okay";
77 };
78
79 &spi0 {
80 status = "okay";
81
82 m25p80@0 {
83 #address-cells = <1>;
84 #size-cells = <1>;
85 compatible = "jedec,spi-nor";
86 reg = <0>;
87 spi-max-frequency = <10000000>;
88
89 partition@0 {
90 label = "uboot";
91 reg = <0x0 0x30000>;
92 read-only;
93 };
94
95 partition@30000 {
96 label = "uboot-env";
97 reg = <0x30000 0x10000>;
98 read-only;
99 };
100
101 partition@40000 {
102 label = "factory";
103 reg = <0x40000 0x10000>;
104 read-only;
105 };
106
107 partition@50000 {
108 label = "firmware";
109 reg = <0x50000 0xf80000>;
110 };
111
112 partition@fd0000 {
113 label = "cert";
114 reg = <0xfd0000 0x10000>;
115 read-only;
116 };
117
118 partition@fe0000 {
119 label = "langpack";
120 reg = <0xfe0000 0x10000>;
121 read-only;
122 };
123
124 devdata: partition@ff0000 {
125 label = "devdata";
126 reg = <0xff0000 0x10000>;
127 read-only;
128 };
129 };
130 };
131
132 &pinctrl {
133 state_default: pinctrl0 {
134 gpio {
135 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
136 ralink,function = "gpio";
137 };
138 };
139 };
140
141 &ethernet {
142 mtd-mac-address = <&devdata 0x4004>;
143 };
144
145 &esw {
146 mediatek,portmap = <0x1e>;
147 };
148
149 &wmac {
150 ralink,mtd-eeprom = <&devdata 0x4000>;
151 };
152
153 &otg {
154 status = "okay";
155 };