ramips/mt7621: Name DTS files based on scheme
[oweals/openwrt.git] / target / linux / ramips / dts / mt7621_storylink_sap-g3200u3.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "storylink,sap-g3200u3", "mediatek,mt7621-soc";
10         model = "STORYLiNK SAP-G3200U3";
11
12         memory@0 {
13                 device_type = "memory";
14                 reg = <0x0 0x8000000>;
15         };
16
17         chosen {
18                 bootargs = "console=ttyS0,57600";
19         };
20
21         leds {
22                 compatible = "gpio-leds";
23
24                 usb {
25                         label = "sap-g3200u3:green:usb";
26                         gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
27                         trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
28                         linux,default-trigger = "usbport";
29                 };
30         };
31
32         keys {
33                 compatible = "gpio-keys-polled";
34                 poll-interval = <20>;
35
36                 reset {
37                         label = "reset";
38                         gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
39                         linux,code = <KEY_RESTART>;
40                 };
41
42                 rfkill {
43                         label = "rfkill";
44                         gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
45                         linux,code = <KEY_RFKILL>;
46                 };
47         };
48 };
49
50 &spi0 {
51         status = "okay";
52
53         m25p80@0 {
54                 compatible = "jedec,spi-nor";
55                 reg = <0>;
56                 spi-max-frequency = <10000000>;
57
58                 partitions {
59                         compatible = "fixed-partitions";
60                         #address-cells = <1>;
61                         #size-cells = <1>;
62
63                         partition@0 {
64                                 label = "u-boot";
65                                 reg = <0x0 0x30000>;
66                                 read-only;
67                         };
68
69                         partition@30000 {
70                                 label = "u-boot-env";
71                                 reg = <0x30000 0x1000>;
72                                 read-only;
73                         };
74
75                         partition@31000 {
76                                 label = "config";
77                                 reg = <0x31000 0xf000>;
78                                 read-only;
79                         };
80
81                         factory: partition@40000 {
82                                 label = "factory";
83                                 reg = <0x40000 0x10000>;
84                                 read-only;
85                         };
86
87                         partition@50000 {
88                                 compatible = "denx,uimage";
89                                 label = "firmware";
90                                 reg = <0x50000 0x7b0000>;
91                         };
92                 };
93         };
94 };
95
96 &pcie {
97         status = "okay";
98 };
99
100 &pcie0 {
101         mt76@0,0 {
102                 reg = <0x0000 0 0 0 0>;
103                 mediatek,mtd-eeprom = <&factory 0x8000>;
104                 ieee80211-freq-limit = <5000000 6000000>;
105         };
106 };
107
108 &pcie1 {
109         mt76@0,0 {
110                 reg = <0x0000 0 0 0 0>;
111                 mediatek,mtd-eeprom = <&factory 0x0000>;
112                 ieee80211-freq-limit = <2400000 2500000>;
113         };
114 };
115
116 &ethernet {
117         mtd-mac-address = <&factory 0xe006>;
118 };
119
120 &pinctrl {
121         state_default: pinctrl0 {
122                 gpio {
123                         ralink,group = "uart3", "jtag";
124                         ralink,function = "gpio";
125                 };
126         };
127 };