OpenWrt – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 /dts-v1/;
2  
3 #include "mt7621.dtsi"
4  
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/gpio/gpio.h>
7  
8 / {
9 compatible = "mikrotik,rbm11g", "mediatek,mt7621-soc";
10 model = "MikroTik RouterBOARD M11G";
11  
12 aliases {
13 led-boot = &led_usr;
14 led-failsafe = &led_usr;
15 led-running = &led_usr;
16 led-upgrade = &led_usr;
17 };
18  
19 memory@0 {
20 device_type = "memory";
21 reg = <0x0 0x10000000>;
22 };
23  
24 chosen {
25 bootargs = "console=ttyS0,115200";
26 };
27  
28 leds {
29 compatible = "gpio-leds";
30  
31 led_usr: usr {
32 label = "rbm11g:green:usr";
33 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
34 };
35  
36 rssi0 {
37 label = "rbm11g:green:rssi0";
38 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
39 };
40  
41 rssi1 {
42 label = "rbm11g:green:rssi1";
43 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
44 };
45  
46 rssi2 {
47 label = "rbm11g:green:rssi2";
48 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
49 };
50  
51 rssi3 {
52 label = "rbm11g:green:rssi3";
53 gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
54 };
55  
56 rssi4 {
57 label = "rbm11g:green:rssi4";
58 gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
59 };
60 };
61  
62 keys {
63 compatible = "gpio-keys-polled";
64 poll-interval = <20>;
65 res {
66 label = "reset";
67 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_RESTART>;
69 };
70 };
71  
72 pcie0_vcc_reg {
73 compatible = "regulator-fixed";
74 regulator-name = "pcie0_vcc";
75  
76 regulator-min-microvolt = <3300000>;
77 regulator-max-microvolt = <3300000>;
78 gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>;
79 enable-active-high;
80 regulator-boot-on;
81 regulator-always-on;
82 };
83 };
84  
85  
86 &spi0 {
87 status = "okay";
88  
89 w25q128@0 {
90 compatible = "jedec,spi-nor";
91 reg = <0>;
92 // XXX empiric value to obtain actual 10MHz SCK at the chip
93 spi-max-frequency = <3125000>;
94  
95 partitions {
96 compatible = "fixed-partitions";
97 #address-cells = <1>;
98 #size-cells = <1>;
99  
100 partition@0 {
101 label = "RouterBoot";
102 reg = <0x0 0x40000>;
103 read-only;
104 compatible = "fixed-partitions";
105 #address-cells = <1>;
106 #size-cells = <1>;
107  
108 partition@0 {
109 label = "bootloader1";
110 reg = <0x0 0xf000>;
111 read-only;
112 };
113  
114 hard_config: partition@f000 {
115 label = "hard_config";
116 reg = <0xf000 0x1000>;
117 read-only;
118 };
119  
120 partition@10000 {
121 label = "bootloader2";
122 reg = <0x10000 0xf000>;
123 read-only;
124 };
125  
126 partition@20000 {
127 label = "soft_config";
128 reg = <0x20000 0x1000>;
129 };
130  
131 partition@30000 {
132 label = "bios";
133 reg = <0x30000 0x1000>;
134 read-only;
135 };
136 };
137  
138 partition@40000 {
139 compatible = "mikrotik,minor";
140 label = "firmware";
141 reg = <0x040000 0xFC0000>;
142 };
143 };
144 };
145 };
146  
147 &ethernet {
148 mtd-mac-address = <&hard_config 0x0010>;
149 mtd-mac-address-increment = <1>;
150 };
151  
152  
153 &pinctrl {
154 state_default: pinctrl0 {
155 gpio {
156 ralink,group = "uart2", "wdt", "rgmii2";
157 ralink,function = "gpio";
158 };
159 };
160 };
161  
162 &i2c {
163 status = "okay";
164 };
165  
166 &pcie {
167 status = "okay";
168 };