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