Fresh pull from upstream
[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                 linux,modalias = "m25p80";
69                 spi-max-frequency = <10000000>;
70
71                 partition@0 {
72                         label = "u-boot";
73                         reg = <0x0 0x30000>;
74                         read-only;
75                 };
76
77                 partition@30000 {
78                         label = "u-boot-env";
79                         reg = <0x30000 0x10000>;
80                         read-only;
81                 };
82
83                 factory: partition@40000 {
84                         label = "factory";
85                         reg = <0x40000 0x10000>;
86                         read-only;
87                 };
88
89                 partition@50000 {
90                         label = "firmware";
91                         reg = <0x50000 0x760000>;
92                 };
93         };
94 };
95
96 &ehci {
97         status = "okay";
98 };
99
100 &ohci {
101         status = "okay";
102 };
103
104 &ethernet {
105         mtd-mac-address = <&factory 0x4>;
106         mediatek,portmap = "wllll";
107 };
108
109 &wmac {
110         ralink,mtd-eeprom = <&factory 0>;
111 };
112
113 &pinctrl {
114         state_default: pinctrl0 {
115                 default {
116                         ralink,group = "i2c", "spi refclk", "wled";
117                         ralink,function = "gpio";
118                 };
119         };
120 };