Merge branch 'v1.4' into v1.5
[librecmc/librecmc.git] / target / linux / ramips / dts / X8.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         compatible = "X8", "ralink,rt5350-soc";
9         model = "Poray X8";
10
11         gpio-leds {
12                 compatible = "gpio-leds";
13
14                 power {
15                         label = "x8:green:power";
16                         gpios = <&gpio0 13 1>;
17                 };
18         };
19
20         gpio-keys-polled {
21                 compatible = "gpio-keys-polled";
22                 #address-cells = <1>;
23                 #size-cells = <0>;
24                 poll-interval = <20>;
25
26                 reset {
27                         label = "reset";
28                         gpios = <&gpio0 10 1>;
29                         linux,code = <KEY_RESTART>;
30                 };
31         };
32 };
33
34 &spi0 {
35         status = "okay";
36
37         m25p80@0 {
38                 #address-cells = <1>;
39                 #size-cells = <1>;
40                 compatible = "jedec,spi-nor";
41                 reg = <0>;
42                 spi-max-frequency = <10000000>;
43
44                 partition@0 {
45                         label = "u-boot";
46                         reg = <0x0 0x30000>;
47                         read-only;
48                 };
49
50                 partition@30000 {
51                         label = "u-boot-env";
52                         reg = <0x30000 0x10000>;
53                         read-only;
54                 };
55
56                 factory: partition@40000 {
57                         label = "factory";
58                         reg = <0x40000 0x10000>;
59                         read-only;
60                 };
61
62                 partition@50000 {
63                         label = "firmware";
64                         reg = <0x50000 0x7b0000>;
65                 };
66         };
67 };
68
69 &pinctrl {
70         state_default: pinctrl0 {
71                 gpio {
72                         ralink,group = "i2c", "jtag", "uartf";
73                         ralink,function = "gpio";
74                 };
75         };
76 };
77
78 &ethernet {
79         mtd-mac-address = <&factory 0x4>;
80 };
81
82 &esw {
83         mediatek,portmap = <0x2f>;
84         mediatek,led_polarity = <1>;
85 };
86
87 &wmac {
88         ralink,mtd-eeprom = <&factory 0>;
89         ralink,led-polarity = <1>;
90 };
91
92 &ehci {
93         status = "okay";
94 };
95
96 &ohci {
97         status = "okay";
98 };