d39a2d113b4cabeb61647addfc30640c0ae68392
[openwrt/openwrt.git] / target / linux / ramips / dts / RB750Gr3.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/gpio/gpio.h>
6
7 / {
8 compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
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 usr {
24 label = "rb750gr3:green:usr";
25 gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
26 };
27 };
28
29 gpio-keys-polled {
30 compatible = "gpio-keys-polled";
31 #address-cells = <1>;
32 #size-cells = <0>;
33 poll-interval = <20>;
34
35 mode {
36 label = "mode";
37 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_RFKILL>;
39 };
40
41 res {
42 label = "res";
43 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RESTART>;
45 };
46 };
47
48 gpio_export {
49 compatible = "gpio-export";
50 #size-cells = <0>;
51
52 usb {
53 gpio-export,name = "usb";
54 gpio-export,output = <1>;
55 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
56 };
57 };
58 };
59
60 &spi0 {
61 status = "okay";
62
63 m25p80@0 {
64 #address-cells = <1>;
65 #size-cells = <1>;
66 compatible = "jedec,spi-nor";
67 reg = <0>;
68 linux,modalias = "m25p80";
69 spi-max-frequency = <10000000>;
70
71 partition@0 {
72 label = "u-boot";
73 reg = <0x0 0x30000>;
74 read-only;
75 };
76
77 partition@30000 {
78 label = "u-boot-env";
79 reg = <0x30000 0x10000>;
80 read-only;
81 };
82
83 factory: partition@40000 {
84 label = "factory";
85 reg = <0x40000 0x10000>;
86 read-only;
87 };
88
89 partition@50000 {
90 label = "firmware";
91 reg = <0x50000 0xfb0000>;
92 };
93
94 };
95 };
96
97 &ethernet {
98 mtd-mac-address = <&factory 0xe000>;
99 mtd-mac-address-increment = <1>;
100 };
101
102 &pinctrl {
103 state_default: pinctrl0 {
104 gpio {
105 ralink,group = "i2c", "rgmii2", "sdhci";
106 ralink,function = "gpio";
107 };
108 };
109 };
110
111 &sdhci {
112 status = "okay";
113 };
114
115 &xhci {
116 status = "okay";
117 };
118
119 &pcie {
120 status = "disabled";
121 };