25ad9dc13126738c2c539a7aeb5a321bdfad3010
[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";
25
26 reset {
27 label = "reset";
28 gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
29 linux,code = <KEY_RESTART>;
30 };
31 };
32
33 leds {
34 compatible = "gpio-leds";
35
36 system {
37 label = "gb-pc1:green:system";
38 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
39 };
40
41 led_status: status {
42 label = "gb-pc1:green:status";
43 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
44 };
45
46 lan1 {
47 label = "gb-pc1:green:lan1";
48 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
49 };
50
51 lan2 {
52 label = "gb-pc1:green:lan2";
53 gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
54 };
55 };
56 };
57
58 &sdhci {
59 status = "okay";
60 };
61
62 &spi0 {
63 status = "okay";
64
65 m25p80@0 {
66 compatible = "jedec,spi-nor";
67 reg = <0>;
68 spi-max-frequency = <80000000>;
69 m25p,fast-read;
70
71 partitions {
72 compatible = "fixed-partitions";
73 #address-cells = <1>;
74 #size-cells = <1>;
75
76 partition@0 {
77 label = "u-boot";
78 reg = <0x0 0x30000>;
79 read-only;
80 };
81
82 partition@30000 {
83 label = "u-boot-env";
84 reg = <0x30000 0x10000>;
85 read-only;
86 };
87
88 factory: partition@40000 {
89 label = "factory";
90 reg = <0x40000 0x10000>;
91 read-only;
92 };
93
94 partition@50000 {
95 compatible = "denx,uimage";
96 label = "firmware";
97 reg = <0x50000 0x1fb0000>;
98 };
99 };
100 };
101 };
102
103 &pcie {
104 status = "okay";
105 };
106
107 &ethernet {
108 mtd-mac-address = <&factory 0xe000>;
109 };
110
111 &state_default {
112 gpio {
113 ralink,group = "jtag", "rgmii2", "uart3", "wdt";
114 ralink,function = "gpio";
115 };
116 };