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