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