Merge tag 's390-5.2-1' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
[linux-2.6-microblaze.git] / drivers / staging / mt7621-dts / gbpc1.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         memory@0 {
13                 device_type = "memory";
14                 reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
15         };
16
17         chosen {
18                 bootargs = "console=ttyS0,57600";
19         };
20
21         palmbus: palmbus@1E000000 {
22                 i2c@900 {
23                         status = "okay";
24                 };
25         };
26
27         gpio-keys {
28                 compatible = "gpio-keys";
29
30                 reset {
31                         label = "reset";
32                         gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
33                         linux,code = <KEY_RESTART>;
34                 };
35         };
36
37         gpio-leds {
38                 compatible = "gpio-leds";
39
40                 system {
41                         label = "gb-pc1:green:system";
42                         gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
43                 };
44
45                 status {
46                         label = "gb-pc1:green:status";
47                         gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
48                 };
49
50                 lan1 {
51                         label = "gb-pc1:green:lan1";
52                         gpios = <&gpio 24 GPIO_ACTIVE_LOW>;
53                 };
54
55                 lan2 {
56                         label = "gb-pc1:green:lan2";
57                         gpios = <&gpio 25 GPIO_ACTIVE_LOW>;
58                 };
59         };
60 };
61
62 &sdhci {
63         status = "okay";
64 };
65
66 &spi0 {
67         status = "okay";
68
69         m25p80@0 {
70                 #address-cells = <1>;
71                 #size-cells = <1>;
72                 compatible = "jedec,spi-nor";
73                 reg = <0>;
74                 spi-max-frequency = <50000000>;
75                 broken-flash-reset;
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                         label = "firmware";
97                         reg = <0x50000 0x1FB0000>;
98                 };
99
100         };
101 };
102
103 &sysclock {
104                         compatible = "fixed-clock";
105                         /* This is normally 1/4 of cpuclock */
106                         clock-frequency = <225000000>;
107 };
108
109 &cpuclock {
110                         compatible = "fixed-clock";
111                         clock-frequency = <900000000>;
112 };
113
114 &pcie {
115         pinctrl-names = "default";
116         pinctrl-0 = <&pcie_pins>;
117         status = "okay";
118 };
119
120 &pinctrl {
121         state_default: pinctrl0 {
122                 gpio {
123                         groups = "wdt", "rgmii2", "uart3";
124                         function = "gpio";
125                 };
126         };
127 };
128
129 &switch0 {
130         ports {
131                 port@0 {
132                         label = "ethblack";
133                         status = "ok";
134                 };
135                 port@4 {
136                         label = "ethblue";
137                         status = "ok";
138                 };
139         };
140 };