ramips: move redundant console setup to mt7621 SoC DTSI
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_planex_vr500.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "planex,vr500", "mediatek,mt7621-soc";
10 model = "Planex VR500";
11
12 aliases {
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 led_power: power {
23 label = "vr500:green:power";
24 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
25 };
26 };
27
28 keys {
29 compatible = "gpio-keys";
30
31 reset {
32 label = "reset";
33 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_RESTART>;
35 };
36 };
37 };
38
39 &spi0 {
40 status = "okay";
41
42 flash@0 {
43 compatible = "jedec,spi-nor";
44 reg = <0>;
45 spi-max-frequency = <10000000>;
46
47 partitions {
48 compatible = "fixed-partitions";
49 #address-cells = <1>;
50 #size-cells = <1>;
51
52 partition@0 {
53 label = "u-boot";
54 reg = <0x0 0x30000>;
55 read-only;
56 };
57
58 partition@30000 {
59 label = "u-boot-env";
60 reg = <0x30000 0x10000>;
61 read-only;
62 };
63
64 factory: partition@40000 {
65 label = "factory";
66 reg = <0x40000 0x10000>;
67 read-only;
68 };
69
70 partition@50000 {
71 compatible = "denx,uimage";
72 label = "firmware";
73 reg = <0x50000 0x3fb0000>;
74 };
75 };
76 };
77 };
78
79 &gmac0 {
80 mtd-mac-address = <&factory 0xe000>;
81 };
82
83 &switch0 {
84 ports {
85 port@0 {
86 status = "okay";
87 label = "lan1";
88 };
89
90 port@1 {
91 status = "okay";
92 label = "lan2";
93 };
94
95 port@2 {
96 status = "okay";
97 label = "lan3";
98 };
99
100 port@3 {
101 status = "okay";
102 label = "lan4";
103 };
104
105 port@4 {
106 status = "okay";
107 label = "wan";
108 mtd-mac-address = <&factory 0xe006>;
109 };
110 };
111 };
112
113 &state_default {
114 gpio {
115 groups = "sdhci";
116 function = "gpio";
117 };
118 };