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"; |
| 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 | |
developer | a37ad46 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 36 | &pinctrl { |
developer | 6874339 | 2019-07-22 10:35:10 +0800 | [diff] [blame] | 37 | snfi_pins: snfi-pins { |
developer | a37ad46 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 38 | mux { |
| 39 | function = "flash"; |
developer | 6874339 | 2019-07-22 10:35:10 +0800 | [diff] [blame] | 40 | groups = "snfi"; |
| 41 | }; |
| 42 | }; |
| 43 | |
| 44 | snor_pins: snor-pins { |
| 45 | mux { |
| 46 | function = "flash"; |
developer | a37ad46 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 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 | |
developer | 6874339 | 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>; |
developer | a37ad46 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 70 | status = "okay"; |
| 71 | |
| 72 | spi-flash@0{ |
Neil Armstrong | a009fa7 | 2019-02-10 10:16:20 +0000 | [diff] [blame] | 73 | compatible = "jedec,spi-nor"; |
developer | a37ad46 | 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 | |
developer | feaa882 | 2020-05-02 11:35:19 +0200 | [diff] [blame] | 85 | &xhci { |
| 86 | status = "okay"; |
| 87 | }; |
| 88 | |
| 89 | &u3phy { |
| 90 | status = "okay"; |
| 91 | }; |
| 92 | |
developer | a37ad46 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 93 | &watchdog { |
| 94 | pinctrl-names = "default"; |
| 95 | pinctrl-0 = <&watchdog_pins>; |
| 96 | status = "okay"; |
| 97 | }; |