mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2026-06-11 04:47:28 -04:00
The sgmiisys0 override uses /delete-node/ mediatek,pnswap; but mediatek,pnswap is a property, not a child node. The correct directive would be /delete-property/. As a result, this statement never had any effect and the property was never removed. Drop the incorrect override. Signed-off-by: Maxim Anisimov <maxim.anisimov.ua@gmail.com> Link: https://github.com/openwrt/openwrt/pull/22046 Signed-off-by: Robert Marko <robimarko@gmail.com>
242 lines
4.1 KiB
Plaintext
242 lines
4.1 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0-only OR MIT
|
|
|
|
/dts-v1/;
|
|
#include "mt7981b.dtsi"
|
|
|
|
/ {
|
|
aliases {
|
|
label-mac-device = &gmac0;
|
|
led-boot = &status_led_green;
|
|
led-failsafe = &status_led_orange;
|
|
led-running = &status_led_green;
|
|
led-upgrade = &status_led_green;
|
|
serial0 = &uart0;
|
|
};
|
|
|
|
chosen {
|
|
stdout-path = "serial0:115200n8";
|
|
};
|
|
|
|
gpio-keys {
|
|
compatible = "gpio-keys";
|
|
|
|
button-reset {
|
|
label = "reset";
|
|
linux,code = <KEY_RESTART>;
|
|
gpios = <&pio 24 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
|
|
gpio-leds {
|
|
compatible = "gpio-leds";
|
|
|
|
status_led_green: led-0 {
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
function = LED_FUNCTION_STATUS;
|
|
gpios = <&pio 11 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
status_led_orange: led-1 {
|
|
color = <LED_COLOR_ID_ORANGE>;
|
|
function = LED_FUNCTION_STATUS;
|
|
gpios = <&pio 12 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
};
|
|
|
|
virtual_flash {
|
|
compatible = "mtd-concat";
|
|
devices = <&firmware1 &firmware2>;
|
|
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
partition@0 {
|
|
label = "kernel";
|
|
reg = <0x0 0x600000>;
|
|
};
|
|
|
|
partition@400000 {
|
|
label = "ubi";
|
|
reg = <0x600000 0x0>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&uart0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&watchdog {
|
|
status = "okay";
|
|
};
|
|
|
|
ð {
|
|
status = "okay";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&mdio_pins>;
|
|
|
|
gmac0: mac@0 {
|
|
compatible = "mediatek,eth-mac";
|
|
reg = <0>;
|
|
phy-mode = "2500base-x";
|
|
phy-handle = <&phy10>;
|
|
|
|
nvmem-cell-names = "mac-address";
|
|
nvmem-cells = <&macaddr_factory_a>;
|
|
};
|
|
};
|
|
|
|
&mdio_bus {
|
|
/* Airoha EN8811H */
|
|
phy10: ethernet-phy@a {
|
|
reg = <0xa>;
|
|
interrupt-parent = <&pio>;
|
|
interrupts = <38 IRQ_TYPE_EDGE_FALLING>;
|
|
reset-gpios = <&pio 22 GPIO_ACTIVE_LOW>;
|
|
reset-assert-us = <10000>;
|
|
reset-deassert-us = <20000>;
|
|
};
|
|
};
|
|
|
|
&pio {
|
|
spi0_flash_pins: spi0-pins {
|
|
mux {
|
|
function = "spi";
|
|
groups = "spi0", "spi0_wp_hold";
|
|
};
|
|
|
|
conf-pu {
|
|
pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
|
|
drive-strength = <MTK_DRIVE_8mA>;
|
|
bias-pull-up = <MTK_PUPD_SET_R1R0_11>;
|
|
};
|
|
|
|
conf-pd {
|
|
pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
|
|
drive-strength = <MTK_DRIVE_8mA>;
|
|
bias-pull-down = <MTK_PUPD_SET_R1R0_11>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&spi0 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&spi0_flash_pins>;
|
|
status = "okay";
|
|
|
|
/* Winbond W25N01GVZEIG (128M) */
|
|
spi_nand@0 {
|
|
compatible = "spi-nand";
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <52000000>;
|
|
spi-tx-buswidth = <4>;
|
|
spi-rx-buswidth = <4>;
|
|
|
|
mediatek,nmbm;
|
|
mediatek,bmt-max-ratio = <1>;
|
|
mediatek,bmt-max-reserved-blocks = <64>;
|
|
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
/* bl2 */
|
|
partition@0 {
|
|
label = "preloader";
|
|
reg = <0x0 0x80000>;
|
|
read-only;
|
|
};
|
|
|
|
/* fip */
|
|
partition@80000 {
|
|
label = "u-boot";
|
|
reg = <0x80000 0x200000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@280000 {
|
|
label = "u-config";
|
|
reg = <0x280000 0x80000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@300000 {
|
|
label = "rf-eeprom";
|
|
reg = <0x300000 0x200000>;
|
|
read-only;
|
|
|
|
nvmem-layout {
|
|
compatible = "fixed-layout";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
eeprom_factory_0: eeprom@0 {
|
|
reg = <0x0 0x1000>;
|
|
};
|
|
|
|
macaddr_factory_a: macaddr@a {
|
|
reg = <0xa 0x6>;
|
|
};
|
|
};
|
|
};
|
|
|
|
firmware1: partition@500000 {
|
|
label = "firmware_1";
|
|
reg = <0x500000 0x3500000>;
|
|
};
|
|
|
|
partition@3a00000 {
|
|
label = "config_1";
|
|
reg = <0x3a00000 0x80000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@3a80000 {
|
|
label = "dump";
|
|
reg = <0x3a80000 0x80000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@3c00000 {
|
|
label = "u-state";
|
|
reg = <0x3c00000 0x20000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@3e80000 {
|
|
label = "u-config_res";
|
|
reg = <0x3e80000 0x80000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@3f00000 {
|
|
label = "rf-eeprom_res";
|
|
reg = <0x3f00000 0x200000>;
|
|
read-only;
|
|
};
|
|
|
|
firmware2: partition@4100000 {
|
|
label = "firmware_2";
|
|
reg = <0x4140000 0x3500000>;
|
|
};
|
|
|
|
partition@7600000 {
|
|
label = "config_2";
|
|
reg = <0x7600000 0x80000>;
|
|
read-only;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&wifi {
|
|
nvmem-cell-names = "eeprom";
|
|
nvmem-cells = <&eeprom_factory_0>;
|
|
status = "okay";
|
|
};
|