2018-11-15 02:07:50 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2018 MediaTek Inc.
|
|
|
|
* Author: Ryder Lee <ryder.lee@mediatek.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: (GPL-2.0 OR MIT)
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
#include "mt7629.dtsi"
|
2020-01-10 08:30:34 +00:00
|
|
|
#include "mt7629-rfb-u-boot.dtsi"
|
2018-11-15 02:07:50 +00:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "MediaTek MT7629 RFB";
|
|
|
|
compatible = "mediatek,mt7629-rfb", "mediatek,mt7629";
|
|
|
|
|
|
|
|
aliases {
|
2021-01-20 07:31:34 +00:00
|
|
|
spi0 = &snor;
|
2018-11-15 02:07:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
stdout-path = &uart0;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-20 08:12:55 +00:00
|
|
|
ð {
|
|
|
|
status = "okay";
|
2020-06-19 11:17:17 +00:00
|
|
|
mediatek,gmac-id = <0>;
|
2023-07-19 09:17:18 +00:00
|
|
|
phy-mode = "2500base-x";
|
2020-06-19 11:17:17 +00:00
|
|
|
mediatek,switch = "mt7531";
|
|
|
|
reset-gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
|
|
|
|
|
|
|
|
fixed-link {
|
2023-07-19 09:17:18 +00:00
|
|
|
speed = <2500>;
|
2020-06-19 11:17:17 +00:00
|
|
|
full-duplex;
|
2018-12-20 08:12:55 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-11-15 02:07:50 +00:00
|
|
|
&pinctrl {
|
2021-03-05 02:27:46 +00:00
|
|
|
state_default: pinmux_conf {
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-all;
|
2021-03-05 02:27:46 +00:00
|
|
|
|
|
|
|
mux {
|
|
|
|
function = "jtag";
|
|
|
|
groups = "ephy_leds_jtag";
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-all;
|
2021-03-05 02:27:46 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-07-22 02:35:10 +00:00
|
|
|
snfi_pins: snfi-pins {
|
|
|
|
mux {
|
|
|
|
function = "flash";
|
|
|
|
groups = "snfi";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
snor_pins: snor-pins {
|
2018-11-15 02:07:50 +00:00
|
|
|
mux {
|
|
|
|
function = "flash";
|
|
|
|
groups = "spi_nor";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
uart0_pins: uart0-default {
|
|
|
|
mux {
|
|
|
|
function = "uart";
|
|
|
|
groups = "uart0_txd_rxd";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
watchdog_pins: watchdog-default {
|
|
|
|
mux {
|
|
|
|
function = "watchdog";
|
|
|
|
groups = "watchdog";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2019-07-22 02:35:10 +00:00
|
|
|
&snfi {
|
|
|
|
pinctrl-names = "default", "snfi";
|
|
|
|
pinctrl-0 = <&snor_pins>;
|
|
|
|
pinctrl-1 = <&snfi_pins>;
|
2021-01-20 07:31:34 +00:00
|
|
|
status = "disabled";
|
|
|
|
|
|
|
|
spi-flash@0{
|
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
reg = <0>;
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-all;
|
2021-01-20 07:31:34 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&snor {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&snor_pins>;
|
2018-11-15 02:07:50 +00:00
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
spi-flash@0{
|
2019-02-10 10:16:20 +00:00
|
|
|
compatible = "jedec,spi-nor";
|
2018-11-15 02:07:50 +00:00
|
|
|
reg = <0>;
|
2021-01-20 07:31:34 +00:00
|
|
|
spi-tx-bus-width = <1>;
|
|
|
|
spi-rx-bus-width = <4>;
|
2023-02-13 15:56:33 +00:00
|
|
|
bootph-all;
|
2018-11-15 02:07:50 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart0 {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&uart0_pins>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2020-05-02 09:35:19 +00:00
|
|
|
&xhci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&u3phy {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-11-15 02:07:50 +00:00
|
|
|
&watchdog {
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&watchdog_pins>;
|
|
|
|
status = "okay";
|
|
|
|
};
|