Bump version to v1.5 and start work on adding 4.19 kernel suppot
[librecmc/librecmc.git] / target / linux / ramips / dts / ZBT-CPE102.dts
1 /dts-v1/;
2
3 #include "mt7620n.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         compatible = "zbtlink,zbt-cpe102", "ralink,mt7620n-soc";
9         model = "Zbtlink ZBT-CPE102";
10
11         chosen {
12                 bootargs = "console=ttyS0,115200";
13         };
14
15         gpio-leds {
16                 compatible = "gpio-leds";
17
18                 4g-0 {
19                         label = "zbt-cpe102:green:4g-0";
20                         gpios = <&gpio1 14 1>;
21                 };
22
23                 4g-1 {
24                         label = "zbt-cpe102:green:4g-1";
25                         gpios = <&gpio0 2 1>;
26                 };
27
28                 4g-2 {
29                         label = "zbt-cpe102:green:4g-2";
30                         gpios = <&gpio1 15 1>;
31                 };
32         };
33
34         gpio-keys-polled {
35                 compatible = "gpio-keys-polled";
36                 #address-cells = <1>;
37                 #size-cells = <0>;
38                 poll-interval = <20>;
39
40                 reset {
41                         label = "reset";
42                         gpios = <&gpio0 1 1>;
43                         linux,code = <KEY_RESTART>;
44                 };
45         };
46 };
47
48 &gpio1 {
49         status = "okay";
50 };
51
52 &gpio2 {
53         status = "okay";
54 };
55
56 &gpio3 {
57         status = "okay";
58 };
59
60 &spi0 {
61         status = "okay";
62
63         en25q64@0 {
64                 #address-cells = <1>;
65                 #size-cells = <1>;
66                 compatible = "jedec,spi-nor";
67                 reg = <0>;
68                 spi-max-frequency = <10000000>;
69
70                 partition@0 {
71                         label = "u-boot";
72                         reg = <0x0 0x30000>;
73                         read-only;
74                 };
75
76                 partition@30000 {
77                         label = "u-boot-env";
78                         reg = <0x30000 0x10000>;
79                         read-only;
80                 };
81
82                 factory: partition@40000 {
83                         label = "factory";
84                         reg = <0x40000 0x10000>;
85                         read-only;
86                 };
87
88                 partition@50000 {
89                         label = "firmware";
90                         reg = <0x50000 0x760000>;
91                 };
92         };
93 };
94
95 &ehci {
96         status = "okay";
97 };
98
99 &ohci {
100         status = "okay";
101 };
102
103 &ethernet {
104         mtd-mac-address = <&factory 0x4>;
105         mediatek,portmap = "wllll";
106 };
107
108 &wmac {
109         ralink,mtd-eeprom = <&factory 0>;
110 };
111
112 &pinctrl {
113         state_default: pinctrl0 {
114                 default {
115                         ralink,group = "i2c", "spi refclk", "wled";
116                         ralink,function = "gpio";
117                 };
118         };
119 };