1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
8 compatible = "yuncore,ax835", "mediatek,mt7981";
9 model = "YunCore AX835";
13 led-boot = &led_system;
14 led-failsafe = &led_system;
15 led-running = &led_system;
16 led-upgrade = &led_system;
21 stdout-path = "serial0:115200n8";
25 compatible = "gpio-keys";
29 linux,code = <KEY_RESTART>;
30 gpios = <&pio 1 GPIO_ACTIVE_LOW>;
35 compatible = "regulator-fixed";
36 regulator-name = "led_vbus";
37 regulator-min-microvolt = <3300000>;
38 regulator-max-microvolt = <3300000>;
40 gpio = <&pio 5 GPIO_ACTIVE_HIGH>;
44 compatible = "gpio-leds";
46 led_system: led_system {
48 gpios = <&pio 4 GPIO_ACTIVE_LOW>;
52 label = "green:wifi2";
53 gpios = <&pio 34 GPIO_ACTIVE_LOW>;
54 linux,default-trigger = "phy0tpt";
59 gpios = <&pio 35 GPIO_ACTIVE_LOW>;
60 linux,default-trigger = "phy1tpt";
64 // a gpio-wdt watchdog couldn't be made to work.
65 // the device rebooted after 5 minutes.
67 gpios = <&pio 7 GPIO_ACTIVE_LOW>;
68 linux,default-trigger = "timer";
69 led-pattern = <1000>, <1000>;
72 // there's another "syswatchdog" on gpio2
77 pinctrl-names = "default";
78 pinctrl-0 = <&mdio_pins>;
83 compatible = "mediatek,eth-mac";
85 phy-mode = "2500base-x";
87 nvmem-cell-names = "mac-address";
88 nvmem-cells = <&macaddr_factory_2a>;
100 compatible = "mediatek,mt7531";
102 reset-gpios = <&pio 39 GPIO_ACTIVE_HIGH>;
107 spi0_flash_pins: spi0-pins {
110 groups = "spi0", "spi0_wp_hold";
114 spi2_flash_pins: spi2-pins {
117 groups = "spi2", "spi2_wp_hold";
121 pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
122 drive-strength = <8>;
123 bias-pull-up = <103>;
127 pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
128 drive-strength = <8>;
129 bias-pull-down = <103>;
135 pinctrl-names = "default";
136 pinctrl-0 = <&spi0_flash_pins>;
141 pinctrl-names = "default";
142 pinctrl-0 = <&spi2_flash_pins>;
146 #address-cells = <1>;
149 compatible = "jedec,spi-nor";
152 spi-max-frequency = <52000000>;
153 spi-tx-buswidth = <4>;
154 spi-rx-buswidth = <4>;
157 compatible = "fixed-partitions";
158 #address-cells = <1>;
163 reg = <0x00000 0x40000>;
168 label = "u-boot-env";
169 reg = <0x40000 0x10000>;
173 factory: partition@50000 {
175 reg = <0x50000 0x10000>;
179 compatible = "fixed-layout";
180 #address-cells = <1>;
183 eeprom_factory: eeprom@0 {
187 macaddr_factory_4: macaddr@4 {
191 macaddr_factory_24: macaddr@24 {
195 macaddr_factory_2a: macaddr@2a {
203 reg = <0x100000 0x80000>;
208 compatible = "denx,fit";
210 reg = <0x180000 0xe00000>;
218 #address-cells = <1>;
235 phy-mode = "2500base-x";
256 nvmem-cells = <&eeprom_factory 0>;
257 nvmem-cell-names = "eeprom";