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