ramips: fix pci/pcie related 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 #address-cells = <1>;
37 #size-cells = <0>;
38 poll-interval = <20>;
39
40 reset {
41 label = "reset";
42 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
44 };
45
46 rfkill {
47 label = "rfkill";
48 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RFKILL>;
50 };
51 };
52 };
53
54 &spi0 {
55 status = "okay";
56
57 m25p80@0 {
58 #address-cells = <1>;
59 #size-cells = <1>;
60 compatible = "jedec,spi-nor";
61 reg = <0>;
62 spi-max-frequency = <10000000>;
63 m25p,chunked-io = <32>;
64
65 partition@0 {
66 label = "u-boot";
67 reg = <0x0 0x30000>;
68 read-only;
69 };
70
71 partition@30000 {
72 label = "u-boot-env";
73 reg = <0x30000 0x1000>;
74 read-only;
75 };
76
77 partition@31000 {
78 label = "config";
79 reg = <0x31000 0xf000>;
80 read-only;
81 };
82
83 factory: partition@40000 {
84 label = "factory";
85 reg = <0x40000 0x10000>;
86 read-only;
87 };
88
89 partition@50000 {
90 label = "firmware";
91 reg = <0x50000 0x7b0000>;
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 };