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