Merge tag 'u-boot-atmel-fixes-2020.07-a' of https://gitlab.denx.de/u-boot/custodians...
[oweals/u-boot.git] / arch / arm / dts / mt7629-rfb.dts
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 #include "mt7629-rfb-u-boot.dtsi"
11
12 / {
13         model = "MediaTek MT7629 RFB";
14         compatible = "mediatek,mt7629-rfb", "mediatek,mt7629";
15
16         aliases {
17                 spi0 = &snfi;
18         };
19
20         chosen {
21                 stdout-path = &uart0;
22         };
23 };
24
25 &eth {
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
36 &pinctrl {
37         snfi_pins: snfi-pins {
38                 mux {
39                         function = "flash";
40                         groups = "snfi";
41                 };
42         };
43
44         snor_pins: snor-pins {
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
66 &snfi {
67         pinctrl-names = "default", "snfi";
68         pinctrl-0 = <&snor_pins>;
69         pinctrl-1 = <&snfi_pins>;
70         status = "okay";
71
72         spi-flash@0{
73                 compatible = "jedec,spi-nor";
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
85 &xhci {
86         status = "okay";
87 };
88
89 &u3phy {
90         status = "okay";
91 };
92
93 &watchdog {
94         pinctrl-names = "default";
95         pinctrl-0 = <&watchdog_pins>;
96         status = "okay";
97 };