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