ramips: fix size-cells on spi nodes
[openwrt/staging/wigyori.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 cfi@1f000000 {
14 compatible = "cfi-flash";
15 reg = <0x1f000000 0x800000>;
16 bank-width = <2>;
17 device-width = <2>;
18 #address-cells = <1>;
19 #size-cells = <1>;
20
21 partition@0 {
22 label = "u-boot";
23 reg = <0x0 0x30000>;
24 read-only;
25 };
26
27 partition@30000 {
28 label = "u-boot-env";
29 reg = <0x30000 0x10000>;
30 read-only;
31 };
32
33 factory: partition@40000 {
34 label = "factory";
35 reg = <0x40000 0x10000>;
36 read-only;
37 };
38
39 partition@50000 {
40 label = "firmware";
41 reg = <0x50000 0x7b0000>;
42 };
43 };
44
45 gpio-export {
46 compatible = "gpio-export";
47
48 // Used to enable power-over-ethernet passthrough from port0 to port1.
49 // Disable passthrough by default to prevent accidental equipment damage.
50 poe {
51 gpio-export,name = "poe-passthrough";
52 gpio-export,output = <1>; // OUT_INIT_HIGH
53 gpios = <&gpio0 11 1>; // GPIO 11, ACTIVE_LOW
54 };
55 };
56
57 gpio-leds {
58 compatible = "gpio-leds";
59
60 // The following leds are defined in the ArcOS firmware, but reportedly
61 // not present in the Freestation5 device.
62 wifi {
63 label = "freestation5:unknown:wifi";
64 gpios = <&gpio0 7 1>;
65 };
66
67 powerg {
68 label = "freestation5:unknown:powerg";
69 gpios = <&gpio0 9 1>;
70 };
71
72 usb {
73 label = "freestation5:unknown:usb";
74 gpios = <&gpio0 14 1>;
75 };
76 };
77 };
78
79 &pinctrl {
80 state_default: pinctrl0 {
81 gpio {
82 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
83 ralink,function = "gpio";
84 };
85 };
86 };
87
88 &ethernet {
89 mtd-mac-address = <&factory 0x4>;
90 };
91
92 &esw {
93 mediatek,portmap = <0x01>;
94 };
95
96 &wmac {
97 ralink,mtd-eeprom = <&factory 0>;
98 };
99
100 &otg {
101 status = "okay";
102 };