developer | a37ad46 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 1 | /* |
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" | ||||
developer | c69976c | 2020-01-10 16:30:34 +0800 | [diff] [blame] | 10 | #include "mt7629-rfb-u-boot.dtsi" |
developer | a37ad46 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 11 | |
12 | / { | ||||
13 | model = "MediaTek MT7629 RFB"; | ||||
14 | compatible = "mediatek,mt7629-rfb", "mediatek,mt7629"; | ||||
15 | |||||
16 | aliases { | ||||
developer | 9b8267a | 2021-01-20 15:31:34 +0800 | [diff] [blame] | 17 | spi0 = &snor; |
developer | a37ad46 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 18 | }; |
19 | |||||
20 | chosen { | ||||
21 | stdout-path = &uart0; | ||||
developer | a37ad46 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 22 | }; |
23 | }; | ||||
24 | |||||
developer | e43f3c7 | 2018-12-20 16:12:55 +0800 | [diff] [blame] | 25 | ð { |
26 | status = "okay"; | ||||
developer | 8ef6948 | 2020-06-19 19:17:17 +0800 | [diff] [blame] | 27 | mediatek,gmac-id = <0>; |
developer | 31f7ad6 | 2023-07-19 17:17:18 +0800 | [diff] [blame] | 28 | phy-mode = "2500base-x"; |
developer | 8ef6948 | 2020-06-19 19:17:17 +0800 | [diff] [blame] | 29 | mediatek,switch = "mt7531"; |
30 | reset-gpios = <&gpio 28 GPIO_ACTIVE_HIGH>; | ||||
developer | e43f3c7 | 2018-12-20 16:12:55 +0800 | [diff] [blame] | 31 | |
developer | 8ef6948 | 2020-06-19 19:17:17 +0800 | [diff] [blame] | 32 | fixed-link { |
developer | 31f7ad6 | 2023-07-19 17:17:18 +0800 | [diff] [blame] | 33 | speed = <2500>; |
developer | 8ef6948 | 2020-06-19 19:17:17 +0800 | [diff] [blame] | 34 | full-duplex; |
developer | e43f3c7 | 2018-12-20 16:12:55 +0800 | [diff] [blame] | 35 | }; |
36 | }; | ||||
37 | |||||
developer | a37ad46 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 38 | &pinctrl { |
developer | 1268755 | 2021-03-05 10:27:46 +0800 | [diff] [blame] | 39 | state_default: pinmux_conf { |
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 40 | bootph-all; |
developer | 1268755 | 2021-03-05 10:27:46 +0800 | [diff] [blame] | 41 | |
42 | mux { | ||||
43 | function = "jtag"; | ||||
44 | groups = "ephy_leds_jtag"; | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 45 | bootph-all; |
developer | 1268755 | 2021-03-05 10:27:46 +0800 | [diff] [blame] | 46 | }; |
47 | }; | ||||
48 | |||||
developer | 6874339 | 2019-07-22 10:35:10 +0800 | [diff] [blame] | 49 | snfi_pins: snfi-pins { |
developer | a37ad46 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 50 | mux { |
51 | function = "flash"; | ||||
developer | 6874339 | 2019-07-22 10:35:10 +0800 | [diff] [blame] | 52 | groups = "snfi"; |
53 | }; | ||||
54 | }; | ||||
55 | |||||
56 | snor_pins: snor-pins { | ||||
57 | mux { | ||||
58 | function = "flash"; | ||||
developer | a37ad46 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 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 | |||||
developer | 6874339 | 2019-07-22 10:35:10 +0800 | [diff] [blame] | 78 | &snfi { |
79 | pinctrl-names = "default", "snfi"; | ||||
80 | pinctrl-0 = <&snor_pins>; | ||||
81 | pinctrl-1 = <&snfi_pins>; | ||||
developer | 9b8267a | 2021-01-20 15:31:34 +0800 | [diff] [blame] | 82 | status = "disabled"; |
83 | |||||
84 | spi-flash@0{ | ||||
85 | compatible = "jedec,spi-nor"; | ||||
86 | reg = <0>; | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 87 | bootph-all; |
developer | 9b8267a | 2021-01-20 15:31:34 +0800 | [diff] [blame] | 88 | }; |
89 | }; | ||||
90 | |||||
91 | &snor { | ||||
92 | pinctrl-names = "default"; | ||||
93 | pinctrl-0 = <&snor_pins>; | ||||
developer | a37ad46 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 94 | status = "okay"; |
95 | |||||
96 | spi-flash@0{ | ||||
Neil Armstrong | a009fa7 | 2019-02-10 10:16:20 +0000 | [diff] [blame] | 97 | compatible = "jedec,spi-nor"; |
developer | a37ad46 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 98 | reg = <0>; |
developer | 9b8267a | 2021-01-20 15:31:34 +0800 | [diff] [blame] | 99 | spi-tx-bus-width = <1>; |
100 | spi-rx-bus-width = <4>; | ||||
Simon Glass | d3a98cb | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 101 | bootph-all; |
developer | a37ad46 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 102 | }; |
103 | }; | ||||
104 | |||||
105 | &uart0 { | ||||
106 | pinctrl-names = "default"; | ||||
107 | pinctrl-0 = <&uart0_pins>; | ||||
108 | status = "okay"; | ||||
109 | }; | ||||
110 | |||||
developer | feaa882 | 2020-05-02 11:35:19 +0200 | [diff] [blame] | 111 | &xhci { |
112 | status = "okay"; | ||||
113 | }; | ||||
114 | |||||
115 | &u3phy { | ||||
116 | status = "okay"; | ||||
117 | }; | ||||
118 | |||||
developer | a37ad46 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 119 | &watchdog { |
120 | pinctrl-names = "default"; | ||||
121 | pinctrl-0 = <&watchdog_pins>; | ||||
122 | status = "okay"; | ||||
123 | }; |