kernel: bump 4.9 to 4.9.65
[oweals/openwrt.git] / target / linux / ramips / dts / 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         gpio-leds {
22                 compatible = "gpio-leds";
23
24                 usb {
25                         label = "sap-g3200u3:green:usb";
26                         gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
27                 };
28         };
29
30         gpio-keys-polled {
31                 compatible = "gpio-keys-polled";
32                 #address-cells = <1>;
33                 #size-cells = <0>;
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                 #address-cells = <1>;
55                 #size-cells = <1>;
56                 compatible = "jedec,spi-nor";
57                 reg = <0>;
58                 spi-max-frequency = <10000000>;
59                 m25p,chunked-io = <32>;
60
61                 partition@0 {
62                         label = "u-boot";
63                         reg = <0x0 0x30000>;
64                         read-only;
65                 };
66
67                 partition@30000 {
68                         label = "u-boot-env";
69                         reg = <0x30000 0x1000>;
70                         read-only;
71                 };
72
73                 partition@31000 {
74                         label = "config";
75                         reg = <0x31000 0xf000>;
76                         read-only;
77                 };
78
79                 factory: partition@40000 {
80                         label = "factory";
81                         reg = <0x40000 0x10000>;
82                         read-only;
83                 };
84
85                 partition@50000 {
86                         label = "firmware";
87                         reg = <0x50000 0x7b0000>;
88                 };
89         };
90 };
91
92 &pcie {
93         status = "okay";
94
95         pcie0 {
96                 mt76@0,0 {
97                         reg = <0x0000 0 0 0 0>;
98                         device_type = "pci";
99                         mediatek,mtd-eeprom = <&factory 0x8000>;
100                         ieee80211-freq-limit = <5000000 6000000>;
101                 };
102         };
103
104         pcie1 {
105                 mt76@1,0 {
106                         reg = <0x0000 0 0 0 0>;
107                         device_type = "pci";
108                         mediatek,mtd-eeprom = <&factory 0x0000>;
109                         ieee80211-freq-limit = <2400000 2500000>;
110                 };
111         };
112 };
113
114 &ethernet {
115         mtd-mac-address = <&factory 0xe006>;
116 };
117
118 &pinctrl {
119         state_default: pinctrl0 {
120                 gpio {
121                         ralink,group = "uart3", "jtag";
122                         ralink,function = "gpio";
123                 };
124         };
125 };