ramips: select kmod-rt2800-soc by default (if available)
[openwrt.git] / target / linux / ramips / dts / FREESTATION5.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6         compatible = "FREESTATION5", "ralink,rt3050-soc";
7         model = "ARC FreeStation5";
8
9         chosen {
10                 bootargs = "console=ttyS0,115200";
11         };
12
13         pinctrl {
14                 state_default: pinctrl0 {
15                         gpio {
16                                 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
17                                 ralink,function = "gpio";
18                         };
19                 };
20         };
21
22         cfi@1f000000 {
23                 compatible = "cfi-flash";
24                 reg = <0x1f000000 0x800000>;
25
26                 bank-width = <2>;
27                 device-width = <2>;
28                 #address-cells = <1>;
29                 #size-cells = <1>;
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         esw@10110000 {
56                 ralink,portmap = <0x01>;
57         };
58
59         otg@101c0000 {
60                 status = "okay";
61         };
62
63         gpio-export {
64                 compatible = "gpio-export";
65                 // Used to enable power-over-ethernet passthrough from port0 to port1.
66                 // Disable passthrough by default to prevent accidental equipment damage.
67                 poe {
68                         gpio-export,name = "poe-passthrough";
69                         gpio-export,output = <1>; // OUT_INIT_HIGH
70                         gpios = <&gpio0 11 1>;    // GPIO 11, ACTIVE_LOW
71                 };
72         };
73
74         gpio-leds {
75                 compatible = "gpio-leds";
76                 // The following leds are defined in the ArcOS firmware, but reportedly
77                 // not present in the Freestation5 device.
78                 wifi {
79                         label = "freestation:unknown:wifi";
80                         gpios = <&gpio0 7 1>;
81                 };
82                 powerg {
83                         label = "freestation:unknown:powerg";
84                         gpios = <&gpio0 9 1>;
85                 };
86                 usb {
87                         label = "freestation:unknown:usb";
88                         gpios = <&gpio0 14 1>;
89                 };
90         };
91 };