mediatek: add missing nmbm for RG-X60 Pro

The original firmware has nmbm enabled.
This commit is contained in:
aiamadeus 2024-01-07 23:05:16 +08:00
parent e2a09540eb
commit 89e25b571e

View File

@ -1,15 +1,15 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
/dts-v1/;
#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include "mt7986a.dtsi"
/ {
compatible = "ruijie,rg-x60-pro", "mediatek,mt7986a";
model = "Ruijie RG-X60 Pro";
compatible = "ruijie,rg-x60-pro", "mediatek,mt7986a";
aliases {
serial0 = &uart0;
@ -30,31 +30,31 @@
gpio-keys {
compatible = "gpio-keys";
button-0 {
reset {
label = "reset";
gpios = <&pio 9 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
button-1 {
mesh {
label = "mesh";
gpios = <&pio 10 GPIO_ACTIVE_LOW>;
linux,code = <BTN_MISC>;
};
};
leds-gpio {
leds {
compatible = "gpio-leds";
led_system: led-0 {
label = "white:status";
gpios = <&pio 22 GPIO_ACTIVE_LOW>;
};
led_alarm: led-1 {
led_alarm: status_purple {
label = "purple:status";
gpios = <&pio 11 GPIO_ACTIVE_LOW>;
};
led_system: status_white {
label = "white:status";
gpios = <&pio 22 GPIO_ACTIVE_LOW>;
};
};
};
@ -158,6 +158,10 @@
spi-tx-bus-width = <4>;
spi-rx-bus-width = <4>;
mediatek,nmbm;
mediatek,bmt-max-ratio = <1>;
mediatek,bmt-max-reserved-blocks = <64>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;