2e1977c623d23485a7f05cc67f81604dda85c58e
[openwrt/staging/chunkeey.git] / target / linux / ramips / dts / ALL0256N-4M.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "allnet,all0256n-4m", "allnet,all0256n", "ralink,rt3050-soc";
10 model = "Allnet ALL0256N (4M)";
11
12 gpio-leds {
13 compatible = "gpio-leds";
14
15 rssilow {
16 label = "all0256n:green:rssilow";
17 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
18 };
19
20 rssimed {
21 label = "all0256n:green:rssimed";
22 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
23 };
24
25 rssihigh {
26 label = "all0256n:green:rssihigh";
27 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
28 };
29 };
30
31 gpio-keys-polled {
32 compatible = "gpio-keys-polled";
33 #address-cells = <1>;
34 #size-cells = <0>;
35 poll-interval = <20>;
36
37 reset {
38 label = "reset";
39 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RESTART>;
41 };
42 };
43 };
44
45 &gpio0 {
46 status = "okay";
47 };
48
49 &spi0 {
50 status = "okay";
51
52 m25p80@0 {
53 #address-cells = <1>;
54 #size-cells = <1>;
55 compatible = "jedec,spi-nor";
56 reg = <0>;
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 0x3c8000>;
80 };
81 };
82 };
83
84 &pinctrl {
85 state_default: pinctrl0 {
86 gpio {
87 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
88 ralink,function = "gpio";
89 };
90 };
91 };
92
93 &ethernet {
94 mtd-mac-address = <&factory 0x28>;
95 };
96
97 &esw {
98 mediatek,portmap = <0x3f>;
99 };
100
101 &wmac {
102 ralink,mtd-eeprom = <&factory 0>;
103 };