ramips: add support for D-Link DRA-1360
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_kroks_kndrt31r19.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7628an_kroks.dtsi"
4
5 / {
6 compatible = "kroks,kndrt31r19", "mediatek,mt7628an-soc";
7 model = "Kroks KNdRt31R19";
8
9 leds {
10 status {
11 label = "red:status";
12 };
13
14 wifi {
15 label = "yellow:wifi";
16 };
17 };
18
19 gpio_export {
20 compatible = "gpio-export";
21 #size-cells = <0>;
22
23 modem1power {
24 gpio-export,name = "modem1power";
25 gpio-export,output = <0>;
26 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
27 };
28
29 modem1sim1 {
30 gpio-export,name = "modem1sim1";
31 gpio-export,output = <1>;
32 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
33 };
34
35 modem1sim2 {
36 gpio-export,name = "modem1sim2";
37 gpio-export,output = <0>;
38 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
39 };
40
41 modem1rsim1 {
42 gpio-export,name = "modem1rsim1";
43 gpio-export,output = <0>;
44 gpios = <&gpio 39 GPIO_ACTIVE_HIGH>;
45 };
46
47 modem1rsim2 {
48 gpio-export,name = "modem1rsim2";
49 gpio-export,output = <0>;
50 gpios = <&gpio 40 GPIO_ACTIVE_HIGH>;
51 };
52 };
53 };
54
55 &esw {
56 mediatek,portmap = <0x2f>;
57 };
58
59 &state_default {
60 gpio {
61 groups = "i2s", "i2c", "p4led_an", "p3led_an", "wled_an";
62 function = "gpio";
63 };
64 };