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