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