ramips: add support for STORYLiNK SAP-G3200U3
[openwrt.git] / target / linux / ramips / dts / SAP-G3200U3.dts
1 /dts-v1/;
2
3 /include/ "mt7621.dtsi"
4
5 / {
6         compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
7         model = "STORYLiNK SAP-G3200U3";
8
9         memory@0 {
10                 device_type = "memory";
11                 reg = <0x0 0x8000000>;
12         };
13
14         chosen {
15                 bootargs = "console=ttyS0,57600";
16         };
17
18         palmbus@1E000000 {
19                 spi@b00 {
20                         status = "okay";
21
22                         m25p80@0 {
23                                 #address-cells = <1>;
24                                 #size-cells = <1>;
25                                 compatible = "mx25l6405d";
26                                 reg = <0 0>;
27                                 linux,modalias = "m25p80", "en25q64";
28                                 spi-max-frequency = <10000000>;
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 0x1000>;
39                                         read-only;
40                                 };
41
42                                 partition@31000 {
43                                         label = "config";
44                                         reg = <0x31000 0xf000>;
45                                         read-only;
46                                 };
47
48                                 factory: partition@40000 {
49                                         label = "factory";
50                                         reg = <0x40000 0x10000>;
51                                         read-only;
52                                 };
53
54                                 partition@50000 {
55                                         label = "firmware";
56                                         reg = <0x50000 0x7b0000>;
57                                 };
58                         };
59                 };
60         };
61
62         pcie@1e140000 {
63                 status = "okay";
64
65                 pcie0 {
66                         mt76@0,0 {
67                                 reg = <0x0000 0 0 0 0>;
68                                 device_type = "pci";
69                                 mediatek,mtd-eeprom = <&factory 0x8000>;
70                                 mediatek,2ghz = <0>;
71                         };
72                 };
73
74                 pcie1 {
75                         mt76@1,0 {
76                                 reg = <0x0000 0 0 0 0>;
77                                 device_type = "pci";
78                                 mediatek,mtd-eeprom = <&factory 0x0000>;
79                                 mediatek,5ghz = <0>;
80                         };
81                 };
82         };
83
84         ethernet@1e100000 {
85                 mtd-mac-address = <&factory 0xe006>;
86         };
87
88         gpio-leds {
89                 compatible = "gpio-leds";
90
91                 usb {
92                         label = "storylink:green:usb";
93                         gpios = <&gpio0 13 1>;
94                 };
95         };
96
97         gpio-keys-polled {
98                 compatible = "gpio-keys-polled";
99                 #address-cells = <1>;
100                 #size-cells = <0>;
101                 poll-interval = <20>;
102                 reset {
103                         label = "reset";
104                         gpios = <&gpio0 16 1>;
105                         linux,code = <0x198>;
106                 };
107                 rfkill {
108                         label = "rfkill";
109                         gpios = <&gpio0 14 1>;
110                         linux,code = <0xf7>;
111                 };
112         };
113
114         pinctrl {
115                 state_default: pinctrl0 {
116                         gpio {
117                                 ralink,group = "uart3", "jtag";
118                                 ralink,function = "gpio";
119                         };
120                 };
121         };
122 };