6a15458399bc000a51794d50a1d8c858eaf5b05f
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / A5-V11.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 / {
6 compatible = "A5-V11", "ralink,rt5350-soc";
7 model = "A5-V11";
8
9 gpio-leds {
10 compatible = "gpio-leds";
11
12 system {
13 label = "a5-v11:blue:system";
14 gpios = <&gpio0 20 1>;
15 };
16
17 power {
18 label = "a5-v11:red:power";
19 gpios = <&gpio0 17 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 0 1>;
32 linux,code = <0x198>;
33 };
34 };
35
36 gpio_export {
37 compatible = "gpio-export";
38 #size-cells = <0>;
39
40 usb {
41 gpio-export,name = "usb";
42 gpio-export,output = <1>;
43 gpios = <&gpio0 7 0>;
44 };
45
46 root_hub {
47 gpio-export,name = "root_hub";
48 gpio-export,output = <1>;
49 gpios = <&gpio0 12 0>;
50 };
51 };
52 };
53
54 &spi0 {
55 status = "okay";
56
57 m25p80@0 {
58 #address-cells = <1>;
59 #size-cells = <1>;
60 compatible = "jedec,spi-nor";
61 reg = <0 0>;
62 linux,modalias = "m25p80", "pm25lq032";
63 spi-max-frequency = <10000000>;
64
65 partition@0 {
66 label = "u-boot";
67 reg = <0x0 0x30000>;
68 read-only;
69 };
70
71 partition@30000 {
72 label = "u-boot-env";
73 reg = <0x30000 0x10000>;
74 read-only;
75 };
76
77 factory: partition@40000 {
78 label = "factory";
79 reg = <0x40000 0x10000>;
80 read-only;
81 };
82
83 partition@50000 {
84 label = "firmware";
85 reg = <0x50000 0x3b0000>;
86 };
87 };
88 };
89
90 &gpio1 {
91 status = "okay";
92 };
93
94 &pinctrl {
95 state_default: pinctrl0 {
96 gpio {
97 ralink,group = "i2c", "jtag", "uartf", "led";
98 ralink,function = "gpio";
99 };
100 };
101 };
102
103 &ethernet {
104 mtd-mac-address = <&factory 0x4>;
105 };
106
107 &esw {
108 mediatek,portmap = <0x1>;
109 mediatek,portdisable = <0x3e>;
110 };
111
112 &wmac {
113 ralink,mtd-eeprom = <&factory 0>;
114 };
115
116 &ehci {
117 status = "okay";
118 };
119
120 &ohci {
121 status = "okay";
122 };