ramips: fix RBM11G name
[openwrt/staging/lynxis.git] / target / linux / ramips / dts / RBM11G.dts
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-status = &led_usr;
14 };
15
16 memory@0 {
17 device_type = "memory";
18 reg = <0x0 0x10000000>;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,115200";
23 };
24
25 gpio-leds {
26 compatible = "gpio-leds";
27
28 led_usr: usr {
29 label = "rbm11g:green:usr";
30 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
31 };
32
33 rssi0 {
34 label = "rbm11g:green:rssi0";
35 gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
36 };
37
38 rssi1 {
39 label = "rbm11g:green:rssi1";
40 gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
41 };
42
43 rssi2 {
44 label = "rbm11g:green:rssi2";
45 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
46 };
47
48 rssi3 {
49 label = "rbm11g:green:rssi3";
50 gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
51 };
52
53 rssi4 {
54 label = "rbm11g:green:rssi4";
55 gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
56 };
57 };
58
59 gpio-keys-polled {
60 compatible = "gpio-keys-polled";
61 #address-cells = <1>;
62 #size-cells = <0>;
63 poll-interval = <20>;
64 res {
65 label = "reset";
66 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
67 linux,code = <KEY_RESTART>;
68 };
69 };
70
71 pcie0_vcc_reg {
72 compatible = "regulator-fixed";
73 regulator-name = "pcie0_vcc";
74
75 regulator-min-microvolt = <3300000>;
76 regulator-max-microvolt = <3300000>;
77 gpio = <&gpio0 9 GPIO_ACTIVE_HIGH>;
78 enable-active-high;
79 regulator-boot-on;
80 regulator-always-on;
81 };
82 };
83
84
85 &spi0 {
86 status = "okay";
87
88 w25q128@0 {
89 #address-cells = <1>;
90 #size-cells = <1>;
91 compatible = "jedec,spi-nor";
92 reg = <0>;
93 spi-max-frequency = <3125000>;
94
95 partition@0 {
96 label = "routerboot";
97 reg = <0x000000 0x00F000>;
98 read-only;
99 };
100
101 factory: partition@f000 {
102 label = "factory";
103 reg = <0x00F000 0x031000>;
104 read-only;
105 };
106
107 partition@40000 {
108 label = "firmware";
109 reg = <0x040000 0xFC0000>;
110 };
111 };
112 };
113
114 &ethernet {
115 mtd-mac-address = <&factory 0x0010>;
116 mtd-mac-address-increment = <1>;
117 };
118
119
120 &pinctrl {
121 state_default: pinctrl0 {
122 gpio {
123 ralink,group = "uart2", "wdt", "rgmii2";
124 ralink,function = "gpio";
125 };
126 };
127 };
128
129 &i2c {
130 status = "okay";
131 };
132
133 &pcie {
134 status = "okay";
135 };