48d368a5a94c208454ee9df21fa180ebd29998aa
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7621_mikrotik_routerboard-m33g.dts
1 /dts-v1/;
2
3 #include "mt7621_mikrotik.dtsi"
4
5 / {
6 compatible = "mikrotik,routerboard-m33g", "mediatek,mt7621-soc";
7 model = "MikroTik RouterBOARD M33G";
8
9 aliases {
10 led-boot = &led_usr;
11 led-failsafe = &led_usr;
12 led-running = &led_usr;
13 led-upgrade = &led_usr;
14 };
15
16 leds {
17 compatible = "gpio-leds";
18
19 led_usr: usr {
20 label = "routerboard-m33g:green:usr";
21 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
22 };
23 };
24
25 pcie0_vcc_reg {
26 compatible = "regulator-fixed";
27 regulator-name = "pcie0_vcc";
28
29 regulator-min-microvolt = <3300000>;
30 regulator-max-microvolt = <3300000>;
31 gpio = <&gpio 9 GPIO_ACTIVE_HIGH>;
32 enable-active-high;
33 regulator-boot-on;
34 regulator-always-on;
35 };
36
37 pcie1_vcc_reg {
38 compatible = "regulator-fixed";
39 regulator-name = "pcie1_vcc";
40
41 regulator-min-microvolt = <3300000>;
42 regulator-max-microvolt = <3300000>;
43 gpio = <&gpio 10 GPIO_ACTIVE_HIGH>;
44 enable-active-high;
45 regulator-boot-on;
46 regulator-always-on;
47 };
48
49 pcie2_vcc_reg {
50 compatible = "regulator-fixed";
51 regulator-name = "pcie2_vcc";
52
53 regulator-min-microvolt = <3300000>;
54 regulator-max-microvolt = <3300000>;
55 gpio = <&gpio 11 GPIO_ACTIVE_HIGH>;
56 enable-active-high;
57 regulator-boot-on;
58 regulator-always-on;
59 };
60
61 usb_vcc_reg {
62 compatible = "regulator-fixed";
63 regulator-name = "usb_vcc";
64
65 regulator-min-microvolt = <5000000>;
66 regulator-max-microvolt = <5000000>;
67 gpio = <&gpio 12 GPIO_ACTIVE_HIGH>;
68 enable-active-high;
69 regulator-always-on;
70 };
71 };
72
73 &spi0 {
74 flash@1 {
75 compatible = "jedec,spi-nor";
76 reg = <1>;
77 spi-max-frequency = <33000000>;
78
79 partitions {
80 compatible = "fixed-partitions";
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 // Region <0x0 0x40000> seems reserved by OEM
85
86 partition@40000 {
87 compatible = "mikrotik,minor";
88 label = "firmware";
89 reg = <0x040000 0xfc0000>;
90 };
91 };
92 };
93 };
94
95 &switch0 {
96 ports {
97 port@0 {
98 status = "okay";
99 label = "wan";
100 };
101
102 port@1 {
103 status = "okay";
104 label = "lan1";
105 };
106
107 port@2 {
108 status = "okay";
109 label = "lan2";
110 };
111 };
112 };
113
114 &state_default {
115 gpio {
116 groups = "uart2", "wdt";
117 function = "gpio";
118 };
119 };
120
121 &sdhci {
122 status = "okay";
123 };
124
125 &i2c {
126 status = "okay";
127 };
128
129 &pcie {
130 status = "okay";
131 };