hostapd: Fix compile against mbedtsl 3.6
[openwrt/staging/nbd.git] / target / linux / ramips / dts / mt7621_iptime_t5004.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "iptime,t5004", "mediatek,mt7621-soc";
11 model = "ipTIME T5004";
12
13 aliases {
14 led-boot = &led_cpu;
15 led-failsafe = &led_cpu;
16 led-running = &led_cpu;
17 led-upgrade = &led_cpu;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 led_cpu: led-0 {
24 color = <LED_COLOR_ID_BLUE>;
25 function = LED_FUNCTION_CPU;
26 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
27 };
28 };
29
30 keys {
31 compatible = "gpio-keys";
32
33 reset {
34 label = "reset";
35 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RESTART>;
37 };
38 };
39 };
40
41 &nand {
42 status = "okay";
43
44 partitions {
45 compatible = "fixed-partitions";
46 #address-cells = <1>;
47 #size-cells = <1>;
48
49 partition@0 {
50 label = "u-boot";
51 reg = <0x0 0x80000>;
52 read-only;
53 };
54
55 partition@80000 {
56 label = "u-boot-env";
57 reg = <0x80000 0xc0000>;
58 };
59
60 partition@140000 {
61 label = "firmware";
62 reg = <0x140000 0x7e40000>;
63
64 compatible = "fixed-partitions";
65 #address-cells = <1>;
66 #size-cells = <1>;
67
68 partition@0 {
69 label = "kernel";
70 reg = <0x0 0x400000>;
71 };
72
73 partition@400000 {
74 label = "ubi";
75 reg = <0x400000 0x7a40000>;
76 };
77 };
78 };
79 };
80
81 &state_default {
82 gpio {
83 groups = "i2c", "wdt";
84 function = "gpio";
85 };
86 };
87
88 &gmac1 {
89 status = "okay";
90 label = "wan";
91 phy-handle = <&ethphy0>;
92 };
93
94 &mdio {
95 ethphy0: ethernet-phy@0 {
96 reg = <0>;
97 };
98 };
99
100 &switch0 {
101 ports {
102 port@1 {
103 status = "okay";
104 label = "lan4";
105 };
106
107 port@2 {
108 status = "okay";
109 label = "lan3";
110 };
111
112 port@3 {
113 status = "okay";
114 label = "lan2";
115 };
116
117 port@4 {
118 status = "okay";
119 label = "lan1";
120 };
121 };
122 };
123
124 &xhci {
125 status = "disabled";
126 };