forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'openwrt:main' into main
- Loading branch information
Showing
31 changed files
with
442 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,10 +110,6 @@ | |
}; | ||
}; | ||
|
||
&btif { | ||
status = "okay"; | ||
}; | ||
|
||
&cir { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&irrx_pins>; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,259 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 OR MIT) | ||
|
||
/dts-v1/; | ||
|
||
#include "mt7981.dtsi" | ||
|
||
/ { | ||
compatible = "yuncore,ax835", "mediatek,mt7981"; | ||
model = "YunCore AX835"; | ||
|
||
aliases { | ||
ethernet0 = &gmac0; | ||
led-boot = &led_system; | ||
led-failsafe = &led_system; | ||
led-running = &led_system; | ||
led-upgrade = &led_system; | ||
serial0 = &uart0; | ||
}; | ||
|
||
chosen { | ||
stdout-path = "serial0:115200n8"; | ||
}; | ||
|
||
gpio-keys { | ||
compatible = "gpio-keys"; | ||
|
||
reset { | ||
label = "reset"; | ||
linux,code = <KEY_RESTART>; | ||
gpios = <&pio 1 GPIO_ACTIVE_LOW>; | ||
}; | ||
}; | ||
|
||
reg_led_vbus { | ||
compatible = "regulator-fixed"; | ||
regulator-name = "led_vbus"; | ||
regulator-min-microvolt = <3300000>; | ||
regulator-max-microvolt = <3300000>; | ||
regulator-always-on; | ||
gpio = <&pio 5 GPIO_ACTIVE_HIGH>; | ||
}; | ||
|
||
leds { | ||
compatible = "gpio-leds"; | ||
|
||
led_system: led_system { | ||
label = "red:system"; | ||
gpios = <&pio 4 GPIO_ACTIVE_LOW>; | ||
}; | ||
|
||
led_wifi24 { | ||
label = "green:wifi2"; | ||
gpios = <&pio 34 GPIO_ACTIVE_LOW>; | ||
linux,default-trigger = "phy0tpt"; | ||
}; | ||
|
||
led_wifi5 { | ||
label = "blue:wifi5"; | ||
gpios = <&pio 35 GPIO_ACTIVE_LOW>; | ||
linux,default-trigger = "phy1tpt"; | ||
}; | ||
|
||
led_hwwatchdog { | ||
// a gpio-wdt watchdog couldn't be made to work. | ||
// the device rebooted after 5 minutes. | ||
label = "hwwatchdog"; | ||
gpios = <&pio 7 GPIO_ACTIVE_LOW>; | ||
linux,default-trigger = "timer"; | ||
led-pattern = <1000>, <1000>; | ||
}; | ||
|
||
// there's another "syswatchdog" on gpio2 | ||
}; | ||
}; | ||
|
||
ð { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&mdio_pins>; | ||
|
||
status = "okay"; | ||
|
||
gmac0: mac@0 { | ||
compatible = "mediatek,eth-mac"; | ||
reg = <0>; | ||
phy-mode = "2500base-x"; | ||
|
||
fixed-link { | ||
speed = <2500>; | ||
full-duplex; | ||
pause; | ||
}; | ||
}; | ||
}; | ||
|
||
&mdio_bus { | ||
switch: switch@1f { | ||
compatible = "mediatek,mt7531"; | ||
reg = <31>; | ||
reset-gpios = <&pio 39 GPIO_ACTIVE_HIGH>; | ||
}; | ||
}; | ||
|
||
&pio { | ||
spi0_flash_pins: spi0-pins { | ||
mux { | ||
function = "spi"; | ||
groups = "spi0", "spi0_wp_hold"; | ||
}; | ||
}; | ||
|
||
spi2_flash_pins: spi2-pins { | ||
mux { | ||
function = "spi"; | ||
groups = "spi2", "spi2_wp_hold"; | ||
}; | ||
|
||
conf-pu { | ||
pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP"; | ||
drive-strength = <8>; | ||
bias-pull-up = <103>; | ||
}; | ||
|
||
conf-pd { | ||
pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO"; | ||
drive-strength = <8>; | ||
bias-pull-down = <103>; | ||
}; | ||
}; | ||
}; | ||
|
||
&spi0 { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&spi0_flash_pins>; | ||
status = "disabled"; | ||
}; | ||
|
||
&spi2 { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&spi2_flash_pins>; | ||
status = "okay"; | ||
|
||
flash@0 { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
compatible = "jedec,spi-nor"; | ||
reg = <0>; | ||
|
||
spi-max-frequency = <52000000>; | ||
spi-tx-buswidth = <4>; | ||
spi-rx-buswidth = <4>; | ||
|
||
partitions { | ||
compatible = "fixed-partitions"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
partition@00000 { | ||
label = "BL2"; | ||
reg = <0x00000 0x40000>; | ||
read-only; | ||
}; | ||
|
||
partition@40000 { | ||
label = "u-boot-env"; | ||
reg = <0x40000 0x10000>; | ||
read-only; | ||
}; | ||
|
||
factory: partition@50000 { | ||
label = "Factory"; | ||
reg = <0x50000 0x10000>; | ||
read-only; | ||
|
||
compatible = "nvmem-cells"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
eeprom_factory: eeprom@0 { | ||
reg = <0x0 0x1000>; | ||
}; | ||
|
||
macaddr_factory_4: macaddr@4 { | ||
reg = <0x4 0x6>; | ||
}; | ||
|
||
macaddr_factory_24: macaddr@24 { | ||
reg = <0x24 0x6>; | ||
}; | ||
|
||
macaddr_factory_2a: macaddr@2a { | ||
reg = <0x2a 0x6>; | ||
}; | ||
}; | ||
|
||
partition@100000 { | ||
label = "FIP"; | ||
reg = <0x100000 0x80000>; | ||
read-only; | ||
}; | ||
|
||
partition@180000 { | ||
compatible = "denx,fit"; | ||
label = "firmware"; | ||
reg = <0x180000 0xe00000>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
&switch { | ||
ports { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
lan: port@3 { | ||
reg = <3>; | ||
label = "lan"; | ||
|
||
nvmem-cell-names = "mac-address"; | ||
nvmem-cells = <&macaddr_factory_2a 0>; | ||
}; | ||
|
||
port@4 { | ||
reg = <4>; | ||
label = "wan"; | ||
|
||
nvmem-cell-names = "mac-address"; | ||
nvmem-cells = <&macaddr_factory_2a 0>; | ||
}; | ||
|
||
port@6 { | ||
reg = <6>; | ||
label = "cpu"; | ||
ethernet = <&gmac0>; | ||
phy-mode = "2500base-x"; | ||
|
||
fixed-link { | ||
speed = <2500>; | ||
full-duplex; | ||
pause; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
&uart0 { | ||
status = "okay"; | ||
}; | ||
|
||
&watchdog { | ||
status = "okay"; | ||
}; | ||
|
||
&wifi { | ||
status = "okay"; | ||
nvmem-cells = <&eeprom_factory 0>; | ||
nvmem-cell-names = "eeprom"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.