ramips: replace full-text licenses by SPDX identifier
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_unielec_u7621-06.dtsi
1 // SPDX-License-Identifier: BSD-3-Clause
2 /*
3 * Copyright(c) 2017 Kristian Evensen <kristian.evensen@gmail.com>.
4 * Copyright(c) 2017 Piotr Dymacz <pepe2k@gmail.com>.
5 * All rights reserved.
6 */
7
8 #include "mt7621.dtsi"
9
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/input.h>
12
13 / {
14 compatible = "unielec,u7621-06", "mediatek,mt7621-soc";
15
16 aliases {
17 led-boot = &led_status;
18 led-failsafe = &led_status;
19 led-running = &led_status;
20 led-upgrade = &led_status;
21 };
22
23 chosen {
24 bootargs = "console=ttyS0,115200";
25 };
26
27 gpio-export {
28 compatible = "gpio-export";
29 #size-cells = <0>;
30
31 modem_reset {
32 gpio-export,name = "modem_reset";
33 gpio-export,output = <1>;
34 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
35 };
36 };
37
38 keys {
39 compatible = "gpio-keys";
40
41 reset {
42 label = "reset";
43 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RESTART>;
45 };
46 };
47
48 leds {
49 compatible = "gpio-leds";
50
51 led_status: status {
52 label = "green:status";
53 gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
54 };
55
56 led4 {
57 label = "green:led4";
58 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
59 };
60
61 led5 {
62 label = "green:led5";
63 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
64 };
65 };
66 };
67
68 &sdhci {
69 status = "okay";
70 };
71
72 &pcie {
73 status = "okay";
74 };
75
76 &gmac0 {
77 mtd-mac-address = <&factory 0xe000>;
78 };
79
80 &switch0 {
81 ports {
82 port@0 {
83 status = "okay";
84 label = "lan1";
85 };
86
87 port@1 {
88 status = "okay";
89 label = "lan2";
90 };
91
92 port@2 {
93 status = "okay";
94 label = "lan3";
95 };
96
97 port@3 {
98 status = "okay";
99 label = "lan4";
100 };
101
102 port@4 {
103 status = "okay";
104 label = "wan";
105 mtd-mac-address = <&factory 0xe000>;
106 mtd-mac-address-increment = <1>;
107 };
108 };
109 };
110
111 &state_default {
112 gpio {
113 groups = "jtag", "uart2", "wdt";
114 function = "gpio";
115 };
116 };