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>
6 #include <dt-bindings/leds/common.h>
11 model = "JCG Q30 PRO";
12 compatible = "jcg,q30-pro", "mediatek,mt7981";
16 label-mac-device = &gmac0;
17 led-boot = &led_status_red;
18 led-failsafe = &led_status_red;
19 led-running = &led_status_blue;
20 led-upgrade = &led_status_blue;
24 stdout-path = "serial0:115200n8";
28 reg = <0 0x40000000 0 0x10000000>;
32 compatible = "gpio-keys";
36 linux,code = <KEY_RESTART>;
37 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
42 compatible = "gpio-leds";
45 function = LED_FUNCTION_STATUS;
46 color = <LED_COLOR_ID_RED>;
47 gpios = <&pio 8 GPIO_ACTIVE_HIGH>;
50 led_status_blue: blue {
51 function = LED_FUNCTION_STATUS;
52 color = <LED_COLOR_ID_BLUE>;
53 gpios = <&pio 13 GPIO_ACTIVE_LOW>;
62 compatible = "mediatek,eth-mac";
64 phy-mode = "2500base-x";
66 nvmem-cells = <&macaddr_lan>;
67 nvmem-cell-names = "mac-address";
79 compatible = "mediatek,mt7531";
81 reset-gpios = <&pio 39 GPIO_ACTIVE_HIGH>;
83 #interrupt-cells = <1>;
84 interrupt-parent = <&pio>;
85 interrupts = <38 IRQ_TYPE_LEVEL_HIGH>;
90 pinctrl-names = "default";
91 pinctrl-0 = <&spi0_flash_pins>;
95 compatible = "spi-nand";
100 spi-max-frequency = <52000000>;
101 spi-tx-bus-width = <4>;
102 spi-rx-bus-width = <4>;
105 compatible = "fixed-partitions";
106 #address-cells = <1>;
111 reg = <0x0000000 0x0100000>;
116 label = "u-boot-env";
117 reg = <0x0100000 0x0080000>;
120 factory: partition@180000 {
122 reg = <0x0180000 0x0200000>;
126 compatible = "fixed-layout";
127 #address-cells = <1>;
130 macaddr_wan: macaddr@a0024 {
134 macaddr_lan: macaddr@a002a {
142 reg = <0x0380000 0x0200000>;
148 reg = <0x0580000 0x7000000>;
156 #address-cells = <1>;
162 nvmem-cells = <&macaddr_wan>;
163 nvmem-cell-names = "mac-address";
184 phy-mode = "2500base-x";
196 spi0_flash_pins: spi0-pins {
199 groups = "spi0", "spi0_wp_hold";
203 pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
204 drive-strength = <8>;
205 mediatek,pull-up-adv = <0>; /* bias-disable */
209 pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
210 drive-strength = <8>;
211 mediatek,pull-up-adv = <0>; /* bias-disable */
227 mediatek,mtd-eeprom = <&factory 0x0>;