b7591dec2017b9104ba2c58d8513bf08f6543c81
[openwrt/svn-archive/archive.git] / target / linux / ramips / dts / X8.dts
1 /dts-v1/;
2
3 /include/ "rt5350.dtsi"
4
5 / {
6 compatible = "X8", "ralink,rt5350-soc";
7 model = "Poray X8";
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 esw@10110000 {
56 ralink,portmap = <0x2f>;
57 ralink,led_polarity = <1>;
58 };
59
60 gpio-leds {
61 compatible = "gpio-leds";
62 power {
63 label = "x8:green:power";
64 gpios = <&gpio0 13 1>;
65 };
66 };
67
68 gpio-keys-polled {
69 compatible = "gpio-keys-polled";
70 #address-cells = <1>;
71 #size-cells = <0>;
72 poll-interval = <20>;
73 reset {
74 label = "reset";
75 gpios = <&gpio0 10 1>;
76 linux,code = <0x198>;
77 };
78 };
79
80 wmac@10180000 {
81 ralink,mtd-eeprom = <&factory 0>;
82 ralink,led-polarity = <1>;
83 };
84
85 ehci@101c0000 {
86 status = "okay";
87 };
88
89 ohci@101c1000 {
90 status = "okay";
91 };
92 };