e1e90504061199aa99b5e25b77d10329e5dc14d1
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_iptime_a1004ns.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "mt7620a_iptime.dtsi"
5
6 / {
7 compatible = "iptime,a1004ns", "ralink,mt7620a-soc";
8 model = "ipTIME A1004ns";
9
10 aliases {
11 led-boot = &led_cpu;
12 led-failsafe = &led_cpu;
13 led-running = &led_cpu;
14 led-upgrade = &led_cpu;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_cpu: cpu {
21 label = "a1004ns:blue:cpu";
22 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
23 };
24
25 usb {
26 label = "a1004ns:blue:usb";
27 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
28 trigger-sources = <&ohci_port1>, <&ehci_port1>;
29 linux,default-trigger = "usbport";
30 };
31 };
32
33 keys {
34 compatible = "gpio-keys";
35
36 reset {
37 label = "reset";
38 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_RESTART>;
40 };
41
42 wps {
43 label = "wps";
44 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_WPS_BUTTON>;
46 };
47 };
48 };
49
50 &firmware {
51 reg = <0x30000 0xfd0000>;
52 };
53
54 &state_default {
55 gpio {
56 groups = "i2c", "uartf", "spi refclk";
57 function = "gpio";
58 };
59 };
60
61 &ethernet {
62 pinctrl-names = "default";
63 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
64
65 port@5 {
66 status = "okay";
67 mediatek,fixed-link = <1000 1 1 1>;
68 phy-mode = "rgmii";
69 };
70
71 mdio-bus {
72 status = "okay";
73
74 ethernet-phy@0 {
75 reg = <0>;
76 phy-mode = "rgmii";
77 };
78
79 ethernet-phy@1 {
80 reg = <1>;
81 phy-mode = "rgmii";
82 };
83
84 ethernet-phy@2 {
85 reg = <2>;
86 phy-mode = "rgmii";
87 };
88
89 ethernet-phy@3 {
90 reg = <3>;
91 phy-mode = "rgmii";
92 };
93
94 ethernet-phy@4 {
95 reg = <4>;
96 phy-mode = "rgmii";
97 };
98
99 ethernet-phy@1f {
100 reg = <0x1f>;
101 phy-mode = "rgmii";
102 };
103 };
104 };