ipq40xx: only include ath10k-board-qca4019 for the generic subtarget
[openwrt/staging/chunkeey.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 &switch0 {
77 ports {
78 port@0 {
79 status = "okay";
80 label = "lan1";
81 };
82
83 port@1 {
84 status = "okay";
85 label = "lan2";
86 };
87
88 port@2 {
89 status = "okay";
90 label = "lan3";
91 };
92
93 port@3 {
94 status = "okay";
95 label = "lan4";
96 };
97
98 wan: port@4 {
99 status = "okay";
100 label = "wan";
101 };
102 };
103 };
104
105 &state_default {
106 gpio {
107 groups = "jtag", "uart2", "wdt";
108 function = "gpio";
109 };
110 };