1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
10 model = "Cetron CT3003";
11 compatible = "cetron,ct3003", "mediatek,mt7981";
15 label-mac-device = &gmac0;
16 led-boot = &led_status_red;
17 led-failsafe = &led_status_red;
18 led-running = &led_status_green;
19 led-upgrade = &led_status_green;
23 stdout-path = "serial0:115200n8";
27 reg = <0 0x40000000 0 0x10000000>;
31 compatible = "gpio-keys";
35 linux,code = <KEY_RESTART>;
36 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_WPS_BUTTON>;
42 gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
47 compatible = "gpio-leds";
49 led_status_red: led_status_red {
51 gpios = <&pio 3 GPIO_ACTIVE_LOW>;
54 led_status_green: led_status_green {
55 label = "green:status";
56 gpios = <&pio 7 GPIO_ACTIVE_LOW>;
65 compatible = "mediatek,eth-mac";
67 phy-mode = "2500base-x";
69 nvmem-cells = <&macaddr_art_0 0>;
70 nvmem-cell-names = "mac-address";
82 compatible = "mediatek,mt7531";
84 reset-gpios = <&pio 39 GPIO_ACTIVE_HIGH>;
86 #interrupt-cells = <1>;
87 interrupt-parent = <&pio>;
88 interrupts = <38 IRQ_TYPE_LEVEL_HIGH>;
93 pinctrl-names = "default";
94 pinctrl-0 = <&spi0_flash_pins>;
98 compatible = "spi-nand";
103 spi-max-frequency = <52000000>;
104 spi-tx-bus-width = <4>;
105 spi-rx-bus-width = <4>;
108 mediatek,bmt-max-ratio = <1>;
109 mediatek,bmt-max-reserved-blocks = <64>;
112 compatible = "fixed-partitions";
113 #address-cells = <1>;
118 reg = <0x0000000 0x0100000>;
123 label = "u-boot-env";
124 reg = <0x0100000 0x0080000>;
129 reg = <0x0180000 0x0100000>;
133 compatible = "fixed-layout";
134 #address-cells = <1>;
137 macaddr_art_0: macaddr@0 {
138 compatible = "mac-base";
140 #nvmem-cell-cells = <1>;
145 factory: partition@280000 {
147 reg = <0x0280000 0x0100000>;
153 reg = <0x0380000 0x0200000>;
159 reg = <0x0580000 0x2000000>;
163 label = "ubi_backup";
164 reg = <0x2580000 0x2000000>;
168 label = "Config_backup";
169 reg = <0x4580000 0x0400000>;
177 #address-cells = <1>;
198 nvmem-cells = <&macaddr_art_0 3>;
199 nvmem-cell-names = "mac-address";
205 phy-mode = "2500base-x";
217 spi0_flash_pins: spi0-pins {
220 groups = "spi0", "spi0_wp_hold";
224 pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
225 drive-strength = <MTK_DRIVE_8mA>;
226 bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
230 pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
231 drive-strength = <MTK_DRIVE_8mA>;
232 bias-pull-down = <MTK_PUPD_SET_R1R0_11>;
248 mediatek,mtd-eeprom = <&factory 0x0>;