ramips: fix dtc warnings
[openwrt/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 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 #address-cells = <1>;
57 #size-cells = <1>;
58 compatible = "jedec,spi-nor";
59 reg = <0>;
60 spi-max-frequency = <10000000>;
61 m25p,chunked-io = <32>;
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 label = "firmware";
89 reg = <0x50000 0x7b0000>;
90 };
91 };
92 };
93
94 &pcie {
95 status = "okay";
96 };
97
98 &pcie0 {
99 mt76@0,0 {
100 reg = <0x0000 0 0 0 0>;
101 mediatek,mtd-eeprom = <&factory 0x8000>;
102 ieee80211-freq-limit = <5000000 6000000>;
103 };
104 };
105
106 &pcie1 {
107 mt76@0,0 {
108 reg = <0x0000 0 0 0 0>;
109 mediatek,mtd-eeprom = <&factory 0x0000>;
110 ieee80211-freq-limit = <2400000 2500000>;
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 };