1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
5 #include <dt-bindings/leds/common.h>
10 model = "Cudy TR3000 v1";
11 compatible = "cudy,tr3000-v1", "mediatek,mt7981-spim-snand-rfb";
14 label-mac-device = &gmac1;
15 led-boot = &led_status;
16 led-failsafe = &led_status;
17 led-running = &led_status;
18 led-upgrade = &led_status;
23 stdout-path = "serial0:115200n8";
27 compatible = "gpio-keys";
31 linux,code = <KEY_RESTART>;
32 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
37 linux,input-type = <EV_SW>;
39 gpios = <&pio 0 GPIO_ACTIVE_LOW>;
40 debounce-interval = <60>;
45 compatible = "gpio-leds";
48 function = LED_FUNCTION_POWER;
49 color = <LED_COLOR_ID_RED>;
50 gpios = <&pio 11 GPIO_ACTIVE_LOW>;
54 function = LED_FUNCTION_STATUS;
55 color = <LED_COLOR_ID_WHITE>;
56 gpios = <&pio 10 GPIO_ACTIVE_LOW>;
61 usb_vbus: regulator-usb {
62 compatible = "regulator-fixed";
64 regulator-name = "usb-vbus";
65 regulator-min-microvolt = <5000000>;
66 regulator-max-microvolt = <5000000>;
68 gpio = <&pio 9 GPIO_ACTIVE_LOW>;
82 pinctrl-names = "default";
83 pinctrl-0 = <&mdio_pins>;
88 compatible = "mediatek,eth-mac";
90 phy-mode = "2500base-x";
92 nvmem-cell-names = "mac-address";
93 nvmem-cells = <&macaddr_bdinfo_de00 1>;
97 compatible = "mediatek,eth-mac";
100 phy-handle = <&int_gbe_phy>;
101 nvmem-cell-names = "mac-address";
102 nvmem-cells = <&macaddr_bdinfo_de00 0>;
109 compatible = "ethernet-phy-ieee802.3-c45";
110 phy-mode = "2500base-x";
111 reset-gpios = <&pio 39 GPIO_ACTIVE_LOW>;
112 interrupts = <38 IRQ_TYPE_LEVEL_LOW>;
113 reset-assert-us = <100000>;
114 reset-deassert-us = <100000>;
115 realtek,aldps-enable;
120 pinctrl-names = "default";
121 pinctrl-0 = <&spi0_flash_pins>;
125 #address-cells = <1>;
127 compatible = "spi-nand";
129 spi-max-frequency = <52000000>;
132 spi-cal-mode = "read-data";
133 spi-cal-datalen = <7>;
134 spi-cal-data = /bits/ 8 <0x53 0x50 0x49 0x4E 0x41 0x4E 0x44>;
135 spi-cal-addrlen = <5>;
136 spi-cal-addr = /bits/ 32 <0x0 0x0 0x0 0x0 0x0>;
138 spi-tx-bus-width = <4>;
139 spi-rx-bus-width = <4>;
141 mediatek,bmt-max-ratio = <1>;
142 mediatek,bmt-max-reserved-blocks = <64>;
145 compatible = "fixed-partitions";
146 #address-cells = <1>;
151 reg = <0x00000 0x0100000>;
156 label = "u-boot-env";
157 reg = <0x0100000 0x0080000>;
161 factory: partition@180000 {
163 reg = <0x180000 0x0200000>;
166 compatible = "fixed-layout";
167 #address-cells = <1>;
170 eeprom_factory_0: eeprom@0 {
178 reg = <0x380000 0x0040000>;
181 compatible = "fixed-layout";
182 #address-cells = <1>;
185 macaddr_bdinfo_de00: macaddr@de00 {
186 compatible = "mac-base";
188 #nvmem-cell-cells = <1>;
196 reg = <0x3C0000 0x0200000>;
202 reg = <0x5C0000 0x4000000>;
203 compatible = "linux,ubi";
211 spi0_flash_pins: spi0-pins {
214 groups = "spi0", "spi0_wp_hold";
225 vbus-supply = <&usb_vbus>;
230 nvmem-cells = <&eeprom_factory_0>;
231 nvmem-cell-names = "eeprom";