ramips: add support for A5-V11 board (resubmit)
[openwrt/staging/mkresin.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 palmbus@10000000 {
10 spi@b00 {
11 status = "okay";
12 m25p80@0 {
13 #address-cells = <1>;
14 #size-cells = <1>;
15 compatible = "pm25lq032";
16 reg = <0 0>;
17 linux,modalias = "m25p80", "pm25lq032";
18 spi-max-frequency = <10000000>;
19
20 partition@0 {
21 label = "u-boot";
22 reg = <0x0 0x30000>;
23 read-only;
24 };
25
26 partition@30000 {
27 label = "u-boot-env";
28 reg = <0x30000 0x10000>;
29 read-only;
30 };
31
32 factory: partition@40000 {
33 label = "factory";
34 reg = <0x40000 0x10000>;
35 read-only;
36 };
37
38 partition@50000 {
39 label = "firmware";
40 reg = <0x50000 0x3b0000>;
41 };
42 };
43 };
44 gpio1: gpio@660 {
45 status = "okay";
46 };
47 };
48
49 pinctrl {
50 state_default: pinctrl0 {
51 gpio {
52 ralink,group = "i2c", "jtag", "uartf", "led";
53 ralink,function = "gpio";
54 };
55 };
56 };
57
58 ethernet@10100000 {
59 mtd-mac-address = <&factory 0x4>;
60 };
61
62 esw@10110000 {
63 ralink,portmap = <0x2f>;
64 };
65
66 wmac@10180000 {
67 ralink,mtd-eeprom = <&factory 0>;
68 };
69
70 ehci@101c0000 {
71 status = "okay";
72 };
73
74 ohci@101c1000 {
75 status = "okay";
76 };
77
78 gpio-leds {
79 compatible = "gpio-leds";
80 system {
81 label = "a5-v11:blue:system";
82 gpios = <&gpio0 20 1>;
83 };
84 power {
85 label = "a5-v11:red:power";
86 gpios = <&gpio0 17 1>;
87 };
88 };
89
90 gpio-keys-polled {
91 compatible = "gpio-keys-polled";
92 #address-cells = <1>;
93 #size-cells = <0>;
94 poll-interval = <20>;
95 reset {
96 label = "reset";
97 gpios = <&gpio0 0 1>;
98 linux,code = <0x198>;
99 };
100 };
101
102 gpio_export {
103 compatible = "gpio-export";
104 #size-cells = <0>;
105
106 usb {
107 gpio-export,name = "usb";
108 gpio-export,output = <1>;
109 gpios = <&gpio0 7 0>;
110 };
111 root_hub {
112 gpio-export,name = "root_hub";
113 gpio-export,output = <1>;
114 gpios = <&gpio0 12 0>;
115 };
116 };
117 };