3c92b94e0fa0e5ca57431be0128c305d935369bf
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / 3G150B.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 / {
6 compatible = "3G150B", "ralink,rt5350-soc";
7 model = "Tenda 3G150B";
8
9 gpio-leds {
10 compatible = "gpio-leds";
11
12 ap {
13 label = "3g150b:blue:ap";
14 gpios = <&gpio0 7 1>;
15 };
16
17 3g {
18 label = "3g150b:blue:3g";
19 gpios = <&gpio0 14 1>;
20 };
21 };
22
23 gpio-keys-polled {
24 compatible = "gpio-keys-polled";
25 #address-cells = <1>;
26 #size-cells = <0>;
27 poll-interval = <20>;
28
29 reset {
30 label = "reset";
31 gpios = <&gpio0 0 1>;
32 linux,code = <0x198>;
33 };
34 };
35
36 gpio_export {
37 compatible = "gpio-export";
38 #size-cells = <0>;
39
40 usb {
41 gpio-export,name = "usb";
42 gpio-export,output = <1>;
43 gpios = <&gpio0 13 0>;
44 };
45 };
46 };
47
48 &spi0 {
49 status = "okay";
50
51 m25p80@0 {
52 #address-cells = <1>;
53 #size-cells = <1>;
54 compatible = "jedec,spi-nor";
55 reg = <0 0>;
56 linux,modalias = "m25p80", "s25fl064k";
57 spi-max-frequency = <10000000>;
58
59 partition@0 {
60 label = "u-boot";
61 reg = <0x0 0x30000>;
62 read-only;
63 };
64
65 partition@30000 {
66 label = "u-boot-env";
67 reg = <0x30000 0x10000>;
68 read-only;
69 };
70
71 factory: partition@40000 {
72 label = "factory";
73 reg = <0x40000 0x10000>;
74 read-only;
75 };
76
77 partition@50000 {
78 label = "firmware";
79 reg = <0x50000 0x3b0000>;
80 };
81 };
82 };
83
84 &gpio1 {
85 status = "okay";
86 };
87
88 &pinctrl {
89 state_default: pinctrl0 {
90 gpio {
91 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf", "led";
92 ralink,function = "gpio";
93 };
94 };
95 };
96
97 &ethernet {
98 mtd-mac-address = <&factory 0x4>;
99 };
100
101 &esw {
102 mediatek,portmap = <0x2f>;
103 };
104
105 &wmac {
106 ralink,mtd-eeprom = <&factory 0>;
107 ralink,led-polarity = <1>;
108 };
109
110 &ehci {
111 status = "okay";
112 };
113
114 &ohci {
115 status = "okay";
116 };