Ryder Lee | 376ac00 | 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" |
Sam Shih | 098c063 | 2020-01-10 16:30:34 +0800 | [diff] [blame] | 10 | #include "mt7629-rfb-u-boot.dtsi" |
Ryder Lee | 376ac00 | 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 { |
Weijie Gao | 102b0b1 | 2019-07-22 10:35:10 +0800 | [diff] [blame] | 17 | spi0 = &snfi; |
Ryder Lee | 376ac00 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 18 | }; |
| 19 | |
| 20 | chosen { |
| 21 | stdout-path = &uart0; |
Ryder Lee | 376ac00 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 22 | }; |
| 23 | }; |
| 24 | |
Weijie Gao | 9d42b61 | 2018-12-20 16:12:55 +0800 | [diff] [blame] | 25 | ð { |
| 26 | status = "okay"; |
| 27 | mediatek,gmac-id = <1>; |
| 28 | phy-mode = "gmii"; |
| 29 | phy-handle = <&phy0>; |
| 30 | |
| 31 | phy0: ethernet-phy@0 { |
| 32 | reg = <0>; |
| 33 | }; |
| 34 | }; |
| 35 | |
Ryder Lee | 376ac00 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 36 | &pinctrl { |
Weijie Gao | 102b0b1 | 2019-07-22 10:35:10 +0800 | [diff] [blame] | 37 | snfi_pins: snfi-pins { |
| 38 | mux { |
| 39 | function = "flash"; |
| 40 | groups = "snfi"; |
| 41 | }; |
| 42 | }; |
| 43 | |
| 44 | snor_pins: snor-pins { |
Ryder Lee | 376ac00 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 45 | mux { |
| 46 | function = "flash"; |
| 47 | groups = "spi_nor"; |
| 48 | }; |
| 49 | }; |
| 50 | |
| 51 | uart0_pins: uart0-default { |
| 52 | mux { |
| 53 | function = "uart"; |
| 54 | groups = "uart0_txd_rxd"; |
| 55 | }; |
| 56 | }; |
| 57 | |
| 58 | watchdog_pins: watchdog-default { |
| 59 | mux { |
| 60 | function = "watchdog"; |
| 61 | groups = "watchdog"; |
| 62 | }; |
| 63 | }; |
| 64 | }; |
| 65 | |
Weijie Gao | 102b0b1 | 2019-07-22 10:35:10 +0800 | [diff] [blame] | 66 | &snfi { |
| 67 | pinctrl-names = "default", "snfi"; |
| 68 | pinctrl-0 = <&snor_pins>; |
| 69 | pinctrl-1 = <&snfi_pins>; |
Ryder Lee | 376ac00 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 70 | status = "okay"; |
| 71 | |
| 72 | spi-flash@0{ |
Neil Armstrong | ffd4c7c | 2019-02-10 10:16:20 +0000 | [diff] [blame] | 73 | compatible = "jedec,spi-nor"; |
Ryder Lee | 376ac00 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 74 | reg = <0>; |
| 75 | u-boot,dm-pre-reloc; |
| 76 | }; |
| 77 | }; |
| 78 | |
| 79 | &uart0 { |
| 80 | pinctrl-names = "default"; |
| 81 | pinctrl-0 = <&uart0_pins>; |
| 82 | status = "okay"; |
| 83 | }; |
| 84 | |
Chunfeng Yun | ba42c28 | 2020-05-02 11:35:19 +0200 | [diff] [blame] | 85 | &xhci { |
| 86 | status = "okay"; |
| 87 | }; |
| 88 | |
| 89 | &u3phy { |
| 90 | status = "okay"; |
| 91 | }; |
| 92 | |
Ryder Lee | 376ac00 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 93 | &watchdog { |
| 94 | pinctrl-names = "default"; |
| 95 | pinctrl-0 = <&watchdog_pins>; |
| 96 | status = "okay"; |
| 97 | }; |