mcs814x: use the standard device tree binding to represent a PHY node
[openwrt.git] / target / linux / mcs814x / files-3.3 / arch / arm / boot / dts / rbt-832.dts
1 /*
2  * rbt-832.dts - Device Tree file for Tigal RBT-832
3  *
4  * Copyright (C) 2012, Florian Fainelli <florian@openwrt.org>
5  *
6  * Licensed under GPLv2
7  */
8
9 /dts-v1/;
10 /include/ "mcs8140.dtsi"
11
12 / {
13         model = "Tigal RBT-832";
14         compatible = "tigal,rbt-832", "moschip,mcs8140", "moschip,mcs814x";
15
16         chosen {
17                 bootargs = "mem=32M console=ttyS0,115200 earlyprintk";
18         };
19
20         ahb {
21                 vci {
22                         eth0: ethernet@40084000 {
23                                 nuport-mac,link-activity = <0x01>;
24                                 phy = <&phy0>;
25                                 phy-mode = "mii";
26
27                                 phy0: ethernet-phy@0 {
28                                         reg = <1>;
29                                 };
30                         };
31
32                         adc {
33                                 sdram: memory@0,0 {
34                                         reg = <0 0 0x2000000>;
35                                 };
36
37                                 nor: flash@7,0 {
38
39                                         partition@0 {
40                                                 label = "ArmBoot";
41                                                 reg = <0 0x40000>;
42                                         };
43                                         partition@30000 {
44                                                 label = "Enviroment";
45                                                 reg = <0x40000 0x20000>;
46                                         };
47                                         partition@50000 {
48                                                 label = "bZimage";
49                                                 reg = <0x60000 0x1a0000>;
50                                         };
51                                         partition@150000 {
52                                                 label = "UserFS";
53                                                 reg = <0x200000 0x600000>;
54                                         };
55                                 };
56                         };
57
58                         leds {
59                                 compatible = "gpio-leds";
60
61                                 ethernet {
62                                         label = "rbt-832:red:ethernet";
63                                         gpios = <&gpio 0 0>;    // gpio 0 active high
64                                 };
65
66                                 usb0 {
67                                         label = "rbt-832:red:usb0";
68                                         gpios = <&gpio 4 0>;    // gpio 4 active high
69                                 };
70
71                                 usb1 {
72                                         label = "rbt-832:red:usb1";
73                                         gpios = <&gpio 3 0>;    // gpio 3 active high
74                                 };
75
76                                 usb2 {
77                                         label = "rbt-832:red:usb2";
78                                         gpios = <&gpio 2 0>;    // gpio 2 active high
79                                 };
80
81                                 usb3 {
82                                         label = "rbt-832:red:usb3";
83                                         gpios = <&gpio 1 0>;    // gpio 1 active high
84                                 };
85                         };
86                 };
87         };
88 };
89