4ca5e889dec84b942a225501050847f9277d3d0f
[openwrt/staging/wigyori.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 aliases {
13 led-status = &led_usb;
14 };
15
16 memory@0 {
17 device_type = "memory";
18 reg = <0x0 0x8000000>;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,57600";
23 };
24
25 gpio-leds {
26 compatible = "gpio-leds";
27
28 led_usb: usb {
29 label = "sap-g3200u3:green:usb";
30 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
31 };
32 };
33
34 gpio-keys-polled {
35 compatible = "gpio-keys-polled";
36 poll-interval = <20>;
37
38 reset {
39 label = "reset";
40 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_RESTART>;
42 };
43
44 rfkill {
45 label = "rfkill";
46 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_RFKILL>;
48 };
49 };
50 };
51
52 &spi0 {
53 status = "okay";
54
55 m25p80@0 {
56 compatible = "jedec,spi-nor";
57 reg = <0>;
58 spi-max-frequency = <10000000>;
59 m25p,chunked-io = <32>;
60
61 partitions {
62 compatible = "fixed-partitions";
63 #address-cells = <1>;
64 #size-cells = <1>;
65
66 partition@0 {
67 label = "u-boot";
68 reg = <0x0 0x30000>;
69 read-only;
70 };
71
72 partition@30000 {
73 label = "u-boot-env";
74 reg = <0x30000 0x1000>;
75 read-only;
76 };
77
78 partition@31000 {
79 label = "config";
80 reg = <0x31000 0xf000>;
81 read-only;
82 };
83
84 factory: partition@40000 {
85 label = "factory";
86 reg = <0x40000 0x10000>;
87 read-only;
88 };
89
90 partition@50000 {
91 label = "firmware";
92 reg = <0x50000 0x7b0000>;
93 };
94 };
95 };
96 };
97
98 &pcie {
99 status = "okay";
100 };
101
102 &pcie0 {
103 mt76@0,0 {
104 reg = <0x0000 0 0 0 0>;
105 mediatek,mtd-eeprom = <&factory 0x8000>;
106 ieee80211-freq-limit = <5000000 6000000>;
107 };
108 };
109
110 &pcie1 {
111 mt76@0,0 {
112 reg = <0x0000 0 0 0 0>;
113 mediatek,mtd-eeprom = <&factory 0x0000>;
114 ieee80211-freq-limit = <2400000 2500000>;
115 };
116 };
117
118 &ethernet {
119 mtd-mac-address = <&factory 0xe006>;
120 };
121
122 &pinctrl {
123 state_default: pinctrl0 {
124 gpio {
125 ralink,group = "uart3", "jtag";
126 ralink,function = "gpio";
127 };
128 };
129 };