ramips: dts: drop memory nodes
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7621_youhua_wr1200js.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 = "youhua,wr1200js", "mediatek,mt7621-soc";
10 model = "YouHua WR1200JS";
11
12 aliases {
13 led-boot = &led_wps;
14 led-failsafe = &led_wps;
15 };
16
17 chosen {
18 bootargs = "console=ttyS0,115200";
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 internet {
25 label = "wr1200js:blue:internet";
26 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
27 };
28
29 led_wps: wps {
30 label = "wr1200js:blue:wps";
31 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
32 };
33
34 usb {
35 label = "wr1200js:blue:usb";
36 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
37 trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
38 linux,default-trigger = "usbport";
39 };
40 };
41
42 keys {
43 compatible = "gpio-keys-polled";
44 poll-interval = <20>;
45
46 reset {
47 label = "reset";
48 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RESTART>;
50 };
51
52 wps {
53 label = "wps";
54 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_WPS_BUTTON>;
56 };
57
58 wifi {
59 label = "wifi";
60 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_RFKILL>;
62 };
63 };
64 };
65
66 &spi0 {
67 status = "okay";
68
69 m25p80@0 {
70 compatible = "jedec,spi-nor";
71 reg = <0>;
72 spi-max-frequency = <10000000>;
73
74 partitions {
75 compatible = "fixed-partitions";
76 #address-cells = <1>;
77 #size-cells = <1>;
78
79 partition@0 {
80 label = "u-boot";
81 reg = <0x0 0x30000>;
82 read-only;
83 };
84
85 partition@30000 {
86 label = "u-boot-env";
87 reg = <0x30000 0x10000>;
88 read-only;
89 };
90
91 factory: partition@40000 {
92 label = "factory";
93 reg = <0x40000 0x10000>;
94 read-only;
95 };
96
97 partition@50000 {
98 compatible = "denx,uimage";
99 label = "firmware";
100 reg = <0x50000 0xfb0000>;
101 };
102 };
103 };
104 };
105
106 &pcie {
107 status = "okay";
108 };
109
110 &pcie0 {
111 mt76@0,0 {
112 reg = <0x0000 0 0 0 0>;
113 mediatek,mtd-eeprom = <&factory 0x0000>;
114 };
115 };
116
117 &pcie1 {
118 mt76@0,0 {
119 reg = <0x0000 0 0 0 0>;
120 mediatek,mtd-eeprom = <&factory 0x8000>;
121 ieee80211-freq-limit = <5000000 6000000>;
122
123 led {
124 led-sources = <2>;
125 led-active-low;
126 };
127 };
128 };
129
130 &ethernet {
131 mtd-mac-address = <&factory 0xe000>;
132 };
133
134 &pinctrl {
135 state_default: pinctrl0 {
136 gpio {
137 ralink,group = "i2c", "uart2", "uart3", "wdt";
138 ralink,function = "gpio";
139 };
140 };
141 };