ramips: specify "firmware" partition format
[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 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 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
28 linux,default-trigger = "usbport";
29 };
30 };
31
32 gpio-keys-polled {
33 compatible = "gpio-keys-polled";
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 compatible = "jedec,spi-nor";
55 reg = <0>;
56 spi-max-frequency = <10000000>;
57 m25p,chunked-io = <32>;
58
59 partitions {
60 compatible = "fixed-partitions";
61 #address-cells = <1>;
62 #size-cells = <1>;
63
64 partition@0 {
65 label = "u-boot";
66 reg = <0x0 0x30000>;
67 read-only;
68 };
69
70 partition@30000 {
71 label = "u-boot-env";
72 reg = <0x30000 0x1000>;
73 read-only;
74 };
75
76 partition@31000 {
77 label = "config";
78 reg = <0x31000 0xf000>;
79 read-only;
80 };
81
82 factory: partition@40000 {
83 label = "factory";
84 reg = <0x40000 0x10000>;
85 read-only;
86 };
87
88 partition@50000 {
89 compatible = "denx,uimage";
90 label = "firmware";
91 reg = <0x50000 0x7b0000>;
92 };
93 };
94 };
95 };
96
97 &pcie {
98 status = "okay";
99 };
100
101 &pcie0 {
102 mt76@0,0 {
103 reg = <0x0000 0 0 0 0>;
104 mediatek,mtd-eeprom = <&factory 0x8000>;
105 ieee80211-freq-limit = <5000000 6000000>;
106 };
107 };
108
109 &pcie1 {
110 mt76@0,0 {
111 reg = <0x0000 0 0 0 0>;
112 mediatek,mtd-eeprom = <&factory 0x0000>;
113 ieee80211-freq-limit = <2400000 2500000>;
114 };
115 };
116
117 &ethernet {
118 mtd-mac-address = <&factory 0xe006>;
119 };
120
121 &pinctrl {
122 state_default: pinctrl0 {
123 gpio {
124 ralink,group = "uart3", "jtag";
125 ralink,function = "gpio";
126 };
127 };
128 };