1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 * Copyright (C) 2023 Tianling Shen <cnsztl@immortalwrt.org>
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/leds/common.h>
11 #include "mt7981.dtsi"
14 model = "CMCC RAX3000M";
15 compatible = "cmcc,rax3000m", "mediatek,mt7981";
19 led-failsafe = &red_led;
20 led-running = &green_led;
21 led-upgrade = &green_led;
26 stdout-path = "serial0:115200n8";
30 reg = <0 0x40000000 0 0x20000000>;
34 compatible = "gpio-keys";
38 linux,code = <KEY_RESTART>;
39 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
45 linux,input-type = <EV_SW>;
46 gpios = <&pio 0 GPIO_ACTIVE_LOW>;
51 compatible = "gpio-leds";
54 function = LED_FUNCTION_STATUS;
55 color = <LED_COLOR_ID_GREEN>;
56 gpios = <&pio 9 GPIO_ACTIVE_LOW>;
60 function = LED_FUNCTION_STATUS;
61 color = <LED_COLOR_ID_BLUE>;
62 gpios = <&pio 12 GPIO_ACTIVE_LOW>;
66 function = LED_FUNCTION_STATUS;
67 color = <LED_COLOR_ID_RED>;
68 gpios = <&pio 35 GPIO_ACTIVE_LOW>;
77 compatible = "mediatek,eth-mac";
79 phy-mode = "2500base-x";
89 compatible = "mediatek,eth-mac";
92 phy-handle = <&int_gbe_phy>;
98 compatible = "mediatek,mt7531";
100 reset-gpios = <&pio 39 GPIO_ACTIVE_HIGH>;
101 interrupt-controller;
102 #interrupt-cells = <1>;
103 interrupt-parent = <&pio>;
104 interrupts = <38 IRQ_TYPE_LEVEL_HIGH>;
110 #address-cells = <1>;
131 phy-mode = "2500base-x";