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