1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
7 model = "COMFAST CF-E393AX";
8 compatible = "comfast,cf-e393ax", "mediatek,mt7981";
13 led-failsafe = &led_red;
14 led-running = &led_blue;
15 led-upgrade = &led_green;
19 bootargs-override = "console=ttyS0,115200n8";
20 stdout-path = "serial0:115200n8";
24 reg = <0 0x40000000 0 0x10000000>; // 256mb
28 compatible = "gpio-keys";
32 linux,code = <KEY_RESTART>;
33 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
38 compatible = "gpio-leds";
41 label = "blue:status";
42 gpios = <&pio 8 GPIO_ACTIVE_LOW>;
43 color = <LED_COLOR_ID_BLUE>;
44 function = LED_FUNCTION_STATUS;
49 gpios = <&pio 34 GPIO_ACTIVE_LOW>;
50 color = <LED_COLOR_ID_RED>;
51 function = LED_FUNCTION_STATUS;
55 label = "green:status";
56 gpios = <&pio 35 GPIO_ACTIVE_LOW>;
57 color = <LED_COLOR_ID_GREEN>;
58 function = LED_FUNCTION_STATUS;
68 compatible = "mediatek,eth-mac";
70 phy-mode = "2500base-x";
71 nvmem-cells = <&macaddr_factory_e000 0>;
72 nvmem-cell-names = "mac-address";
83 compatible = "mediatek,eth-mac";
86 phy-handle = <&int_gbe_phy>;
87 nvmem-cells = <&macaddr_factory_e000 1>;
88 nvmem-cell-names = "mac-address";
94 compatible = "mediatek,mt7531";
97 #interrupt-cells = <1>;
98 interrupt-parent = <&pio>;
99 interrupts = <38 IRQ_TYPE_LEVEL_HIGH>;
100 reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>;
109 spi0_flash_pins: spi0-pins {
112 groups = "spi0", "spi0_wp_hold";
115 pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
116 drive-strength = <MTK_DRIVE_8mA>;
117 bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
120 pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
121 drive-strength = <MTK_DRIVE_8mA>;
122 bias-pull-down = <MTK_PUPD_SET_R1R0_11>;
129 pinctrl-names = "default";
130 pinctrl-0 = <&spi0_flash_pins>;
132 #address-cells = <1>;
135 #address-cells = <1>;
138 spi_nand: spi_nand@0 {
139 #address-cells = <1>;
141 compatible = "spi-nand";
143 spi-max-frequency = <52000000>;
146 spi-cal-mode = "read-data";
147 spi-cal-datalen = <7>;
148 spi-cal-data = /bits/ 8 <0x53 0x50 0x49 0x4E 0x41 0x4E 0x44>;
149 spi-cal-addrlen = <5>;
150 spi-cal-addr = /bits/ 32 <0x0 0x0 0x0 0x0 0x0>;
152 spi-tx-bus-width = <4>;
153 spi-rx-bus-width = <4>;
155 mediatek,bmt-max-ratio = <1>;
156 mediatek,bmt-max-reserved-blocks = <64>;
159 compatible = "fixed-partitions";
160 #address-cells = <1>;
165 reg = <0x00000 0x0100000>;
170 label = "u-boot-env";
171 reg = <0x0100000 0x0080000>;
175 factory: partition@180000 {
177 reg = <0x180000 0x0200000>;
181 compatible = "fixed-layout";
182 #address-cells = <1>;
185 eeprom_factory_0: eeprom@0 {
189 macaddr_factory_e000: macaddr@e000 {
190 compatible = "mac-base";
192 #nvmem-cell-cells = <1>;
199 reg = <0x380000 0x0200000>;
205 reg = <0x580000 0x4000000>;
206 compatible = "linux,ubi";
214 #address-cells = <1>;
226 phy-mode = "2500base-x";
247 nvmem-cells = <&eeprom_factory_0>;
248 nvmem-cell-names = "eeprom";