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 gpios = <&pio 8 GPIO_ACTIVE_LOW>;
42 color = <LED_COLOR_ID_BLUE>;
43 function = LED_FUNCTION_STATUS;
47 gpios = <&pio 34 GPIO_ACTIVE_LOW>;
48 color = <LED_COLOR_ID_RED>;
49 function = LED_FUNCTION_STATUS;
53 gpios = <&pio 35 GPIO_ACTIVE_LOW>;
54 color = <LED_COLOR_ID_GREEN>;
55 function = LED_FUNCTION_STATUS;
65 compatible = "mediatek,eth-mac";
67 phy-mode = "2500base-x";
68 nvmem-cells = <&macaddr_factory_e000 0>;
69 nvmem-cell-names = "mac-address";
80 compatible = "mediatek,eth-mac";
83 phy-handle = <&int_gbe_phy>;
84 nvmem-cells = <&macaddr_factory_e000 1>;
85 nvmem-cell-names = "mac-address";
91 compatible = "mediatek,mt7531";
94 #interrupt-cells = <1>;
95 interrupt-parent = <&pio>;
96 interrupts = <38 IRQ_TYPE_LEVEL_HIGH>;
97 reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>;
106 spi0_flash_pins: spi0-pins {
109 groups = "spi0", "spi0_wp_hold";
112 pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
113 drive-strength = <MTK_DRIVE_8mA>;
114 bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
117 pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
118 drive-strength = <MTK_DRIVE_8mA>;
119 bias-pull-down = <MTK_PUPD_SET_R1R0_11>;
126 pinctrl-names = "default";
127 pinctrl-0 = <&spi0_flash_pins>;
129 #address-cells = <1>;
132 #address-cells = <1>;
135 spi_nand: spi_nand@0 {
136 #address-cells = <1>;
138 compatible = "spi-nand";
140 spi-max-frequency = <52000000>;
143 spi-cal-mode = "read-data";
144 spi-cal-datalen = <7>;
145 spi-cal-data = /bits/ 8 <0x53 0x50 0x49 0x4E 0x41 0x4E 0x44>;
146 spi-cal-addrlen = <5>;
147 spi-cal-addr = /bits/ 32 <0x0 0x0 0x0 0x0 0x0>;
149 spi-tx-bus-width = <4>;
150 spi-rx-bus-width = <4>;
152 mediatek,bmt-max-ratio = <1>;
153 mediatek,bmt-max-reserved-blocks = <64>;
156 compatible = "fixed-partitions";
157 #address-cells = <1>;
162 reg = <0x00000 0x0100000>;
167 label = "u-boot-env";
168 reg = <0x0100000 0x0080000>;
172 factory: partition@180000 {
174 reg = <0x180000 0x0200000>;
178 compatible = "fixed-layout";
179 #address-cells = <1>;
182 eeprom_factory_0: eeprom@0 {
186 macaddr_factory_e000: macaddr@e000 {
187 compatible = "mac-base";
189 #nvmem-cell-cells = <1>;
196 reg = <0x380000 0x0200000>;
202 reg = <0x580000 0x4000000>;
203 compatible = "linux,ubi";
211 #address-cells = <1>;
223 phy-mode = "2500base-x";
244 nvmem-cells = <&eeprom_factory_0>;
245 nvmem-cell-names = "eeprom";