8cdba4ce6fab6581bf0134758fff9b1114aece75
[openwrt/openwrt.git] / target / linux / ramips / dts / RB750Gr3.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,rb750gr3", "mediatek,mt7621-soc";
10 model = "MikroTik RB750Gr3";
11
12 aliases {
13 led-boot = &led_pwr;
14 led-failsafe = &led_pwr;
15 led-running = &led_pwr;
16 led-upgrade = &led_pwr;
17 };
18
19 memory@0 {
20 device_type = "memory";
21 reg = <0x0 0x10000000>;
22 };
23
24 chosen {
25 bootargs = "console=ttyS0,57600";
26 };
27
28 gpio-leds {
29 compatible = "gpio-leds";
30
31 led_pwr: pwr {
32 label = "rb750gr3:blue:pwr";
33 gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
34 };
35
36 usr {
37 label = "rb750gr3:green:usr";
38 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
39 };
40 };
41
42 gpio-keys-polled {
43 compatible = "gpio-keys-polled";
44 poll-interval = <20>;
45
46 mode {
47 label = "mode";
48 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RFKILL>;
50 };
51
52 res {
53 label = "res";
54 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_RESTART>;
56 };
57 };
58
59 gpio_export {
60 compatible = "gpio-export";
61 #size-cells = <0>;
62
63 buzzer {
64 gpio-export,name = "buzzer";
65 gpio-export,output = <0>;
66 gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
67 };
68
69 usb {
70 gpio-export,name = "usb";
71 gpio-export,output = <1>;
72 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
73 };
74 };
75 };
76
77 &spi0 {
78 status = "okay";
79
80 m25p80@0 {
81 compatible = "jedec,spi-nor";
82 reg = <0>;
83 spi-max-frequency = <10000000>;
84 m25p,chunked-io = <32>;
85
86 partitions {
87 compatible = "fixed-partitions";
88 #address-cells = <1>;
89 #size-cells = <1>;
90
91 partition@0 {
92 label = "u-boot";
93 reg = <0x0 0x30000>;
94 read-only;
95 };
96
97 partition@30000 {
98 label = "u-boot-env";
99 reg = <0x30000 0x10000>;
100 read-only;
101 };
102
103 factory: partition@40000 {
104 label = "factory";
105 reg = <0x40000 0x10000>;
106 read-only;
107 };
108
109 partition@50000 {
110 label = "firmware";
111 reg = <0x50000 0xfb0000>;
112 };
113 };
114 };
115 };
116
117 &ethernet {
118 mtd-mac-address = <&factory 0xe000>;
119 mtd-mac-address-increment = <1>;
120 };
121
122 &pinctrl {
123 state_default: pinctrl0 {
124 gpio {
125 ralink,group = "i2c", "uart2", "uart3", "pcie", "rgmii2", "jtag";
126 ralink,function = "gpio";
127 };
128 };
129 };
130
131 &sdhci {
132 status = "okay";
133 };