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" |
| 10 | |
| 11 | / { |
| 12 | model = "MediaTek MT7629 RFB"; |
| 13 | compatible = "mediatek,mt7629-rfb", "mediatek,mt7629"; |
| 14 | |
| 15 | aliases { |
| 16 | spi0 = &qspi; |
| 17 | }; |
| 18 | |
| 19 | chosen { |
| 20 | stdout-path = &uart0; |
developer | a37ad46 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 21 | }; |
| 22 | }; |
| 23 | |
developer | e43f3c7 | 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 | |
developer | a37ad46 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 35 | &pinctrl { |
| 36 | qspi_pins: qspi-pins { |
| 37 | mux { |
| 38 | function = "flash"; |
| 39 | groups = "spi_nor"; |
| 40 | }; |
| 41 | }; |
| 42 | |
| 43 | uart0_pins: uart0-default { |
| 44 | mux { |
| 45 | function = "uart"; |
| 46 | groups = "uart0_txd_rxd"; |
| 47 | }; |
| 48 | }; |
| 49 | |
| 50 | watchdog_pins: watchdog-default { |
| 51 | mux { |
| 52 | function = "watchdog"; |
| 53 | groups = "watchdog"; |
| 54 | }; |
| 55 | }; |
| 56 | }; |
| 57 | |
| 58 | &qspi { |
| 59 | pinctrl-names = "default"; |
| 60 | pinctrl-0 = <&qspi_pins>; |
| 61 | status = "okay"; |
| 62 | |
| 63 | spi-flash@0{ |
Neil Armstrong | a009fa7 | 2019-02-10 10:16:20 +0000 | [diff] [blame] | 64 | compatible = "jedec,spi-nor"; |
developer | a37ad46 | 2018-11-15 10:07:50 +0800 | [diff] [blame] | 65 | reg = <0>; |
| 66 | u-boot,dm-pre-reloc; |
| 67 | }; |
| 68 | }; |
| 69 | |
| 70 | &uart0 { |
| 71 | pinctrl-names = "default"; |
| 72 | pinctrl-0 = <&uart0_pins>; |
| 73 | status = "okay"; |
| 74 | }; |
| 75 | |
| 76 | &watchdog { |
| 77 | pinctrl-names = "default"; |
| 78 | pinctrl-0 = <&watchdog_pins>; |
| 79 | status = "okay"; |
| 80 | }; |