d9e963239fb99438fcf1ea8c5054383d0f31ad44
[openwrt/svn-archive/archive.git] / target / linux / ramips / dts / X5.dts
1 /dts-v1/;
2
3 /include/ "rt5350.dtsi"
4
5 / {
6 compatible = "X5", "ralink,rt5350-soc";
7 model = "Poray X5";
8
9 palmbus@10000000 {
10 sysc@0 {
11 ralink,pinmux = "i2c", "spi", "uartlite", "mdio", "sdram", "rgmii";
12 ralink,gpiomux = "jtag";
13 ralink,uartmux = "gpio";
14 ralink,wdtmux = <1>;
15 };
16
17 gpio0: gpio@600 {
18 status = "okay";
19 };
20
21 spi@b00 {
22 status = "okay";
23 m25p80@0 {
24 #address-cells = <1>;
25 #size-cells = <1>;
26 compatible = "gd25q64";
27 reg = <0 0>;
28 linux,modalias = "m25p80", "gd25q64";
29 spi-max-frequency = <10000000>;
30
31 partition@0 {
32 label = "u-boot";
33 reg = <0x0 0x30000>;
34 read-only;
35 };
36
37 partition@30000 {
38 label = "u-boot-env";
39 reg = <0x30000 0x10000>;
40 read-only;
41 };
42
43 factory: partition@40000 {
44 label = "factory";
45 reg = <0x40000 0x10000>;
46 read-only;
47 };
48
49 partition@50000 {
50 label = "firmware";
51 reg = <0x50000 0x7b0000>;
52 };
53 };
54 };
55 };
56
57 ethernet@10100000 {
58 status = "okay";
59 };
60
61 esw@10110000 {
62 status = "okay";
63 ralink,portmap = <0x2f>;
64 ralink,led_polarity = <1>;
65 };
66
67 gpio-leds {
68 compatible = "gpio-leds";
69 power {
70 label = "x5:green:power";
71 gpios = <&gpio0 13 1>;
72 };
73 20 {
74 label = "x5:green:20";
75 gpios = <&gpio0 12 1>;
76 };
77 50 {
78 label = "x5:green:50";
79 gpios = <&gpio0 11 1>;
80 };
81 80 {
82 label = "x5:green:80";
83 gpios = <&gpio0 7 1>;
84 };
85 };
86
87 gpio-keys-polled {
88 compatible = "gpio-keys-polled";
89 #address-cells = <1>;
90 #size-cells = <0>;
91 poll-interval = <20>;
92 bat {
93 label = "bat";
94 gpios = <&gpio0 9 1>;
95 linux,code = <0x211>;
96 };
97 reset {
98 label = "reset";
99 gpios = <&gpio0 10 1>;
100 linux,code = <0x198>;
101 };
102 mode {
103 label = "mode";
104 gpios = <&gpio0 14 1>;
105 linux,code = <0x100>;
106 linux,input-type = <5>;
107 };
108 };
109
110 gpio_export {
111 compatible = "gpio-export";
112 #size-cells = <0>;
113 usb-mode {
114 gpio-export,name = "usb-mode";
115 gpio-export,output = <0>;
116 gpios = <&gpio0 18 0>;
117 };
118 };
119
120 wmac@10180000 {
121 status = "okay";
122 ralink,mtd-eeprom = <&factory 0>;
123 ralink,led-polarity = <1>;
124 };
125
126 ehci@101c0000 {
127 status = "okay";
128 };
129
130 ohci@101c1000 {
131 status = "okay";
132 };
133 };