rockchip: add Radxa CM3 IO board support
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_gnubee_gb-pc1.dts
1 #include "mt7621.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
6
7 / {
8 compatible = "gnubee,gb-pc1", "mediatek,mt7621-soc";
9 model = "GnuBee GB-PC1";
10
11 aliases {
12 led-boot = &led_system;
13 led-failsafe = &led_system;
14 led-running = &led_system;
15 led-upgrade = &led_system;
16 };
17
18 keys {
19 compatible = "gpio-keys";
20
21 reset {
22 label = "reset";
23 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
24 linux,code = <KEY_RESTART>;
25 };
26 };
27
28 leds {
29 compatible = "gpio-leds";
30
31 power {
32 function = LED_FUNCTION_POWER;
33 color = <LED_COLOR_ID_GREEN>;
34 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
35 linux,default-trigger = "default-on";
36 };
37
38 led_system: system {
39 label = "green:system";
40 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
41 linux,default-trigger = "disk-activity";
42 };
43 };
44 };
45
46 &sdhci {
47 status = "okay";
48 };
49
50 &spi0 {
51 status = "okay";
52
53 flash@0 {
54 compatible = "jedec,spi-nor";
55 reg = <0>;
56 spi-max-frequency = <50000000>;
57 broken-flash-reset;
58
59 partitions {
60 compatible = "fixed-partitions";
61 #address-cells = <1>;
62 #size-cells = <1>;
63
64 partition@0 {
65 label = "u-boot";
66 reg = <0x0 0x30000>;
67 read-only;
68 };
69
70 partition@30000 {
71 label = "u-boot-env";
72 reg = <0x30000 0x10000>;
73 read-only;
74 };
75
76 factory: partition@40000 {
77 label = "factory";
78 reg = <0x40000 0x10000>;
79 read-only;
80
81 nvmem-layout {
82 compatible = "fixed-layout";
83 #address-cells = <1>;
84 #size-cells = <1>;
85
86 macaddr_factory_e000: macaddr@e000 {
87 reg = <0xe000 0x6>;
88 };
89 };
90 };
91
92 partition@50000 {
93 compatible = "denx,uimage";
94 label = "firmware";
95 reg = <0x50000 0x1fb0000>;
96 };
97 };
98 };
99 };
100
101 &pcie {
102 status = "okay";
103 };
104
105 &gmac0 {
106 nvmem-cells = <&macaddr_factory_e000>;
107 nvmem-cell-names = "mac-address";
108 };
109
110 &gmac1 {
111 status = "okay";
112 label = "ethblue";
113 phy-handle = <&ethphy4>;
114
115 nvmem-cells = <&macaddr_factory_e000>;
116 nvmem-cell-names = "mac-address";
117 };
118
119 &mdio {
120 ethphy4: ethernet-phy@4 {
121 reg = <4>;
122 };
123 };
124
125 &switch0 {
126 ports {
127 port@0 {
128 status = "okay";
129 label = "ethblack";
130 };
131 };
132 };
133
134 &state_default {
135 gpio {
136 groups = "jtag", "uart3", "wdt";
137 function = "gpio";
138 };
139 };