lantiq: add 3.18 support
[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 spi@b00 {
11 status = "okay";
12 m25p80@0 {
13 #address-cells = <1>;
14 #size-cells = <1>;
15 compatible = "gd25q64";
16 reg = <0 0>;
17 linux,modalias = "m25p80", "gd25q64";
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 0x7b0000>;
41 };
42 };
43 };
44 };
45
46 pinctrl {
47 state_default: pinctrl0 {
48 gpio {
49 ralink,group = "i2c", "jtag", "uartf";
50 ralink,function = "gpio";
51 };
52 };
53 };
54
55 ethernet@10100000 {
56 mtd-mac-address = <&factory 0x4>;
57 };
58
59 esw@10110000 {
60 ralink,portmap = <0x2f>;
61 ralink,led_polarity = <1>;
62 };
63
64 gpio-leds {
65 compatible = "gpio-leds";
66 power {
67 label = "x5:green:power";
68 gpios = <&gpio0 13 1>;
69 };
70 20 {
71 label = "x5:green:20";
72 gpios = <&gpio0 12 1>;
73 };
74 50 {
75 label = "x5:green:50";
76 gpios = <&gpio0 11 1>;
77 };
78 80 {
79 label = "x5:green:80";
80 gpios = <&gpio0 7 1>;
81 };
82 };
83
84 gpio-keys-polled {
85 compatible = "gpio-keys-polled";
86 #address-cells = <1>;
87 #size-cells = <0>;
88 poll-interval = <20>;
89 bat {
90 label = "bat";
91 gpios = <&gpio0 9 1>;
92 linux,code = <0x211>;
93 };
94 reset {
95 label = "reset";
96 gpios = <&gpio0 10 1>;
97 linux,code = <0x198>;
98 };
99 mode {
100 label = "mode";
101 gpios = <&gpio0 14 1>;
102 linux,code = <0x100>;
103 linux,input-type = <5>;
104 };
105 };
106
107 gpio_export {
108 compatible = "gpio-export";
109 #size-cells = <0>;
110 usb-mode {
111 gpio-export,name = "usb-mode";
112 gpio-export,output = <0>;
113 gpios = <&gpio0 18 0>;
114 };
115 };
116
117 wmac@10180000 {
118 ralink,mtd-eeprom = <&factory 0>;
119 ralink,led-polarity = <1>;
120 };
121
122 ehci@101c0000 {
123 status = "okay";
124 };
125
126 ohci@101c1000 {
127 status = "okay";
128 };
129 };