1/dts-v1/;
2
3#include "rt3050.dtsi"
4
5/ {
6	compatible = "BC2", "ralink,rt3052-soc";
7	model = "NexAira BC2";
8
9	cfi@1f000000 {
10		compatible = "cfi-flash";
11		reg = <0x1f000000 0x800000>;
12		bank-width = <2>;
13		device-width = <2>;
14		#address-cells = <1>;
15		#size-cells = <1>;
16
17		partition@0 {
18			label = "u-boot";
19			reg = <0x0 0x30000>;
20			read-only;
21		};
22
23		partition@30000 {
24			label = "u-boot-env";
25			reg = <0x30000 0x10000>;
26			read-only;
27		};
28
29		factory: partition@40000 {
30			label = "factory";
31			reg = <0x40000 0x10000>;
32			read-only;
33		};
34
35		partition@50000 {
36			label = "firmware";
37			reg = <0x50000 0x7b0000>;
38		};
39	};
40
41	gpio-leds {
42		compatible = "gpio-leds";
43
44		usb {
45			label = "bc2:blue:usb";
46			gpios = <&gpio0 20 1>;
47		};
48	};
49
50	gpio-keys-polled {
51		compatible = "gpio-keys-polled";
52		#address-cells = <1>;
53		#size-cells = <0>;
54		poll-interval = <20>;
55
56		reset {
57			label = "reset";
58			gpios = <&gpio0 17 1>;
59			linux,code = <0x198>;
60		};
61	};
62};
63
64&pinctrl {
65	state_default: pinctrl0 {
66		gpio {
67			ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
68			ralink,function = "gpio";
69		};
70	};
71};
72
73&ethernet {
74	mtd-mac-address = <&factory 0x4>;
75};
76
77&esw {
78	mediatek,portmap = <0x2f>;
79};
80
81&wmac {
82	ralink,mtd-eeprom = <&factory 0>;
83};
84
85&otg {
86	status = "okay";
87};
88