0d951e98c4dabc695b16e963be127bd9ad74d047
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_gnubee_gb-pc1.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 = "gnubee,gb-pc1", "mediatek,mt7621-soc";
10 model = "GB-PC1";
11
12 aliases {
13 led-boot = &led_status;
14 led-failsafe = &led_status;
15 led-running = &led_status;
16 led-upgrade = &led_status;
17 };
18
19 chosen {
20 bootargs = "console=ttyS0,57600";
21 };
22
23 keys {
24 compatible = "gpio-keys-polled";
25 poll-interval = <20>;
26
27 reset {
28 label = "reset";
29 gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
30 linux,code = <KEY_RESTART>;
31 };
32 };
33
34 leds {
35 compatible = "gpio-leds";
36
37 system {
38 label = "gb-pc1:green:system";
39 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
40 };
41
42 led_status: status {
43 label = "gb-pc1:green:status";
44 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
45 };
46
47 lan1 {
48 label = "gb-pc1:green:lan1";
49 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
50 };
51
52 lan2 {
53 label = "gb-pc1:green:lan2";
54 gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
55 };
56 };
57 };
58
59 &sdhci {
60 status = "okay";
61 };
62
63 &spi0 {
64 status = "okay";
65
66 m25p80@0 {
67 compatible = "jedec,spi-nor";
68 reg = <0>;
69 spi-max-frequency = <80000000>;
70 m25p,fast-read;
71
72 partitions {
73 compatible = "fixed-partitions";
74 #address-cells = <1>;
75 #size-cells = <1>;
76
77 partition@0 {
78 label = "u-boot";
79 reg = <0x0 0x30000>;
80 read-only;
81 };
82
83 partition@30000 {
84 label = "u-boot-env";
85 reg = <0x30000 0x10000>;
86 read-only;
87 };
88
89 factory: partition@40000 {
90 label = "factory";
91 reg = <0x40000 0x10000>;
92 read-only;
93 };
94
95 partition@50000 {
96 compatible = "denx,uimage";
97 label = "firmware";
98 reg = <0x50000 0x1fb0000>;
99 };
100 };
101 };
102 };
103
104 &pcie {
105 status = "okay";
106 };
107
108 &ethernet {
109 mtd-mac-address = <&factory 0xe000>;
110 };
111
112 &pinctrl {
113 state_default: pinctrl0 {
114 gpio {
115 ralink,group = "jtag", "rgmii2", "uart3", "wdt";
116 ralink,function = "gpio";
117 };
118 };
119 };