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