Add support for the GnuBee Personal Cloud One
[librecmc/librecmc.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 = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
10         model = "GB-PC1";
11
12         memory@0 {
13                 device_type = "memory";
14                 reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
15         };
16
17         chosen {
18                 bootargs = "console=ttyS0,57600";
19         };
20
21         sdhci@10130000 {
22                 status = "okay";
23         };
24
25         palmbus@1E000000 {
26                 spi@b00 {
27                         status = "okay";
28
29                         m25p80@0 {
30                                 #address-cells = <1>;
31                                 #size-cells = <1>;
32                                 compatible = "jedec,spi-nor";
33                                 reg = <0 0>;
34                                 linux,modalias = "m25p80";
35                                 spi-max-frequency = <10000000>;
36                                 m25p,chunked-io = <32>;
37
38                                 partition@0 {
39                                         label = "u-boot";
40                                         reg = <0x0 0x30000>;
41                                         read-only;
42                                 };
43
44                                 partition@30000 {
45                                         label = "u-boot-env";
46                                         reg = <0x30000 0x10000>;
47                                 };
48
49                                 partition@40000 {
50                                         label = "firmware";
51                                         reg = <0x50000 0x1fb0000>;
52                                 };
53
54                         };
55                 };
56
57                 i2c@900 {
58                         compatible = "ralink,i2c-mt7621";
59                         reg = <0x900 0x100>;
60                         #address-cells = <1>;
61                         #size-cells = <0>;
62                         pinctrl-names = "default";
63                         pinctrl-0 = <&i2c_pins>;
64                         status = "okay";
65                 };
66         };
67
68         pcie@1e140000 {
69                 status = "okay";
70         };
71
72         ethernet@1e100000 {
73                 status = "okay";
74         };
75
76         gpio-keys-polled {
77                 compatible = "gpio-keys-polled";
78                 #address-cells = <1>;
79                 #size-cells = <0>;
80                 poll-interval = <20>;
81
82                 reset {
83                         label = "reset";
84                         gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
85                         linux,code = <KEY_RESTART>;
86                 };
87         };
88
89         gpio-leds {
90                 compatible = "gpio-leds";
91
92                 status {
93                         label = "gnubee:green:status";
94                         gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
95                 };
96
97                 system {
98                         label = "gnubee:green:system";
99                         gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
100                 };
101         };
102
103         gpio-power {
104                 compatible = "gpio-power";
105
106                 26 {
107                         label = "gnubee:power:gpio26";
108                         gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
109                 };
110
111                 28 {
112                         label = "gnubee:power:gpio28";
113                         gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
114                 };
115
116                 29 {
117                         label = "gnubee:power:gpio29";
118                         gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
119                 };
120
121                 30 {
122                         label = "gnubee:power:gpio30";
123                         gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
124                 };
125         };
126
127         pinctrl {
128                 state_default: pinctrl0 {
129                         gpio {
130                                 ralink,group = "wdt", "rgmii2", "mdio";
131                                 ralink,function = "gpio";
132                         };
133                 };
134         };
135 };