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 | 6874339 | 2019-07-22 10:35:10 +0800 | [diff] [blame] | 17 | spi0 = &snfi; |
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>; |
28 | phy-mode = "sgmii"; | ||||
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 { |
33 | speed = <1000>; | ||||
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 | 6874339 | 2019-07-22 10:35:10 +0800 | [diff] [blame] | 39 | snfi_pins: snfi-pins { |
developer | a37ad46 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 40 | mux { |
41 | function = "flash"; | ||||
developer | 6874339 | 2019-07-22 10:35:10 +0800 | [diff] [blame] | 42 | groups = "snfi"; |
43 | }; | ||||
44 | }; | ||||
45 | |||||
46 | snor_pins: snor-pins { | ||||
47 | mux { | ||||
48 | function = "flash"; | ||||
developer | a37ad46 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 49 | groups = "spi_nor"; |
50 | }; | ||||
51 | }; | ||||
52 | |||||
53 | uart0_pins: uart0-default { | ||||
54 | mux { | ||||
55 | function = "uart"; | ||||
56 | groups = "uart0_txd_rxd"; | ||||
57 | }; | ||||
58 | }; | ||||
59 | |||||
60 | watchdog_pins: watchdog-default { | ||||
61 | mux { | ||||
62 | function = "watchdog"; | ||||
63 | groups = "watchdog"; | ||||
64 | }; | ||||
65 | }; | ||||
66 | }; | ||||
67 | |||||
developer | 6874339 | 2019-07-22 10:35:10 +0800 | [diff] [blame] | 68 | &snfi { |
69 | pinctrl-names = "default", "snfi"; | ||||
70 | pinctrl-0 = <&snor_pins>; | ||||
71 | pinctrl-1 = <&snfi_pins>; | ||||
developer | a37ad46 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 72 | status = "okay"; |
73 | |||||
74 | spi-flash@0{ | ||||
Neil Armstrong | a009fa7 | 2019-02-10 10:16:20 +0000 | [diff] [blame] | 75 | compatible = "jedec,spi-nor"; |
developer | a37ad46 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 76 | reg = <0>; |
77 | u-boot,dm-pre-reloc; | ||||
78 | }; | ||||
79 | }; | ||||
80 | |||||
81 | &uart0 { | ||||
82 | pinctrl-names = "default"; | ||||
83 | pinctrl-0 = <&uart0_pins>; | ||||
84 | status = "okay"; | ||||
85 | }; | ||||
86 | |||||
developer | feaa882 | 2020-05-02 11:35:19 +0200 | [diff] [blame] | 87 | &xhci { |
88 | status = "okay"; | ||||
89 | }; | ||||
90 | |||||
91 | &u3phy { | ||||
92 | status = "okay"; | ||||
93 | }; | ||||
94 | |||||
developer | a37ad46 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 95 | &watchdog { |
96 | pinctrl-names = "default"; | ||||
97 | pinctrl-0 = <&watchdog_pins>; | ||||
98 | status = "okay"; | ||||
99 | }; |