blob: 82f6a34162657b6df68538aa77edc20f8a8417ee [file] [log] [blame]
Ryder Lee376ac002018-11-15 10:07:50 +08001/*
2 * Copyright (C) 2018 MediaTek Inc.
3 * Author: Ryder Lee <ryder.lee@mediatek.com>
4 *
5 * SPDX-License-Identifier: (GPL-2.0 OR MIT)
6 */
7
8/dts-v1/;
9#include "mt7629.dtsi"
Sam Shih098c0632020-01-10 16:30:34 +080010#include "mt7629-rfb-u-boot.dtsi"
Ryder Lee376ac002018-11-15 10:07:50 +080011
12/ {
13 model = "MediaTek MT7629 RFB";
14 compatible = "mediatek,mt7629-rfb", "mediatek,mt7629";
15
16 aliases {
SkyLake.Huang3f1250a2021-01-20 15:31:34 +080017 spi0 = &snor;
Ryder Lee376ac002018-11-15 10:07:50 +080018 };
19
20 chosen {
21 stdout-path = &uart0;
Ryder Lee376ac002018-11-15 10:07:50 +080022 };
23};
24
Weijie Gao9d42b612018-12-20 16:12:55 +080025&eth {
26 status = "okay";
MarkLeef5b441f2020-06-19 19:17:17 +080027 mediatek,gmac-id = <0>;
28 phy-mode = "sgmii";
29 mediatek,switch = "mt7531";
30 reset-gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
Weijie Gao9d42b612018-12-20 16:12:55 +080031
MarkLeef5b441f2020-06-19 19:17:17 +080032 fixed-link {
33 speed = <1000>;
34 full-duplex;
Weijie Gao9d42b612018-12-20 16:12:55 +080035 };
36};
37
Ryder Lee376ac002018-11-15 10:07:50 +080038&pinctrl {
Weijie Gaoe8b98f02021-03-05 10:27:46 +080039 state_default: pinmux_conf {
Simon Glass8c103c32023-02-13 08:56:33 -070040 bootph-all;
Weijie Gaoe8b98f02021-03-05 10:27:46 +080041
42 mux {
43 function = "jtag";
44 groups = "ephy_leds_jtag";
Simon Glass8c103c32023-02-13 08:56:33 -070045 bootph-all;
Weijie Gaoe8b98f02021-03-05 10:27:46 +080046 };
47 };
48
Weijie Gao102b0b12019-07-22 10:35:10 +080049 snfi_pins: snfi-pins {
50 mux {
51 function = "flash";
52 groups = "snfi";
53 };
54 };
55
56 snor_pins: snor-pins {
Ryder Lee376ac002018-11-15 10:07:50 +080057 mux {
58 function = "flash";
59 groups = "spi_nor";
60 };
61 };
62
63 uart0_pins: uart0-default {
64 mux {
65 function = "uart";
66 groups = "uart0_txd_rxd";
67 };
68 };
69
70 watchdog_pins: watchdog-default {
71 mux {
72 function = "watchdog";
73 groups = "watchdog";
74 };
75 };
76};
77
Weijie Gao102b0b12019-07-22 10:35:10 +080078&snfi {
79 pinctrl-names = "default", "snfi";
80 pinctrl-0 = <&snor_pins>;
81 pinctrl-1 = <&snfi_pins>;
SkyLake.Huang3f1250a2021-01-20 15:31:34 +080082 status = "disabled";
83
84 spi-flash@0{
85 compatible = "jedec,spi-nor";
86 reg = <0>;
Simon Glass8c103c32023-02-13 08:56:33 -070087 bootph-all;
SkyLake.Huang3f1250a2021-01-20 15:31:34 +080088 };
89};
90
91&snor {
92 pinctrl-names = "default";
93 pinctrl-0 = <&snor_pins>;
Ryder Lee376ac002018-11-15 10:07:50 +080094 status = "okay";
95
96 spi-flash@0{
Neil Armstrongffd4c7c2019-02-10 10:16:20 +000097 compatible = "jedec,spi-nor";
Ryder Lee376ac002018-11-15 10:07:50 +080098 reg = <0>;
SkyLake.Huang3f1250a2021-01-20 15:31:34 +080099 spi-tx-bus-width = <1>;
100 spi-rx-bus-width = <4>;
Simon Glass8c103c32023-02-13 08:56:33 -0700101 bootph-all;
Ryder Lee376ac002018-11-15 10:07:50 +0800102 };
103};
104
105&uart0 {
106 pinctrl-names = "default";
107 pinctrl-0 = <&uart0_pins>;
108 status = "okay";
109};
110
Chunfeng Yunba42c282020-05-02 11:35:19 +0200111&xhci {
112 status = "okay";
113};
114
115&u3phy {
116 status = "okay";
117};
118
Ryder Lee376ac002018-11-15 10:07:50 +0800119&watchdog {
120 pinctrl-names = "default";
121 pinctrl-0 = <&watchdog_pins>;
122 status = "okay";
123};