102 lines
1.6 KiB
Plaintext
102 lines
1.6 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
/dts-v1/;
|
|
#include "mt7981.dtsi"
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
/ {
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
model = "mt7981-360-t7";
|
|
compatible = "mediatek,mt7981", "mediatek,mt7981-rfb";
|
|
chosen {
|
|
stdout-path = &uart0;
|
|
tick-timer = &timer0;
|
|
};
|
|
|
|
config {
|
|
bootcmd = "mtkboardboot";
|
|
};
|
|
|
|
gpio-keys-polled {
|
|
compatible = "gpio-keys";
|
|
|
|
power-button {
|
|
label = "reset";
|
|
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
led@0 {
|
|
label = "blue:run"; /* green */
|
|
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&uart0 {
|
|
status = "okay";
|
|
};
|
|
|
|
ð {
|
|
status = "okay";
|
|
mediatek,gmac-id = <0>;
|
|
phy-mode = "sgmii";
|
|
mediatek,switch = "mt7531";
|
|
reset-gpios = <&gpio 39 GPIO_ACTIVE_HIGH>;
|
|
|
|
fixed-link {
|
|
speed = <1000>;
|
|
full-duplex;
|
|
};
|
|
};
|
|
|
|
&pinctrl {
|
|
spi_flash_pins: spi0-pins-func-1 {
|
|
mux {
|
|
function = "flash";
|
|
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 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&spi_flash_pins>;
|
|
status = "okay";
|
|
must_tx;
|
|
enhance_timing;
|
|
dma_ext;
|
|
ipm_design;
|
|
support_quad;
|
|
tick_dly = <2>;
|
|
sample_sel = <0>;
|
|
|
|
spi_nand@0 {
|
|
compatible = "spi-nand";
|
|
reg = <0>;
|
|
spi-max-frequency = <52000000>;
|
|
};
|
|
};
|
|
|
|
&watchdog {
|
|
status = "disabled";
|
|
};
|