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