9ecac2cb67c201c4b0e6f5d34ab4cf8322b9ec51
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / VG3503J.dts
1 /dts-v1/;
2
3 #include "vr9.dtsi"
4
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/mips/lantiq_rcu_gphy.h>
7
8 / {
9 compatible = "arcadyan,vg3503j", "lantiq,xway", "lantiq,vr9";
10 model = "BT OpenReach VDSL Modem";
11
12 chosen {
13 bootargs = "console=ttyLTQ0,115200";
14 };
15
16 aliases {
17 led-boot = &power_green;
18 led-failsafe = &power_red;
19 led-running = &power_green;
20 led-upgrade = &power_green;
21
22 led-dsl = &dsl;
23 };
24
25 memory@0 {
26 device_type = "memory";
27 reg = <0x0 0x2000000>;
28 };
29
30 gpio-keys-polled {
31 compatible = "gpio-keys-polled";
32 #address-cells = <1>;
33 #size-cells = <0>;
34 poll-interval = <100>;
35 reset {
36 label = "reset";
37 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_RESTART>;
39 };
40 };
41
42 gpio-leds {
43 compatible = "gpio-leds";
44
45 power_red: power2 {
46 label = "vg3503j:red:power";
47 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
48 };
49 dsl: dsl {
50 label = "vg3503j:green:dsl";
51 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
52 };
53 power_green: power {
54 label = "vg3503j:green:power";
55 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
56 default-state = "keep";
57 };
58 };
59 };
60
61 &eth0 {
62 interface@0 {
63 compatible = "lantiq,xrx200-pdi";
64 #address-cells = <1>;
65 #size-cells = <0>;
66 reg = <0>;
67
68 lantiq,switch;
69 ethernet@2 {
70 compatible = "lantiq,xrx200-pdi-port";
71 reg = <2>;
72 phy-mode = "mii";
73 phy-handle = <&phy11>;
74 };
75 ethernet@4 {
76 compatible = "lantiq,xrx200-pdi-port";
77 reg = <4>;
78 phy-mode = "mii";
79 phy-handle = <&phy13>;
80 };
81 };
82
83 mdio@0 {
84 #address-cells = <1>;
85 #size-cells = <0>;
86 compatible = "lantiq,xrx200-mdio";
87 reg = <0>;
88
89 phy11: ethernet-phy@11 {
90 reg = <0x11>;
91 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
92 lantiq,led1h = <0x70>;
93 lantiq,led1l = <0x00>;
94 lantiq,led2h = <0x00>;
95 lantiq,led2l = <0x03>;
96 };
97 phy13: ethernet-phy@13 {
98 reg = <0x13>;
99 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
100 lantiq,led1h = <0x70>;
101 lantiq,led1l = <0x00>;
102 lantiq,led2h = <0x00>;
103 lantiq,led2l = <0x03>;
104 };
105 };
106 };
107
108 &gphy0 {
109 lantiq,gphy-mode = <GPHY_MODE_GE>;
110 };
111
112 &gphy1 {
113 lantiq,gphy-mode = <GPHY_MODE_GE>;
114 };
115
116 &gpio {
117 pinctrl-names = "default";
118 pinctrl-0 = <&state_default>;
119
120 state_default: pinmux {
121 mdio {
122 lantiq,groups = "mdio";
123 lantiq,function = "mdio";
124 };
125 gphy-leds {
126 lantiq,groups = "gphy0 led0", "gphy0 led1",
127 "gphy0 led2", "gphy1 led0",
128 "gphy1 led1", "gphy1 led2";
129 lantiq,function = "gphy";
130 lantiq,pull = <2>;
131 lantiq,open-drain = <0>;
132 lantiq,output = <1>;
133 };
134 };
135 };
136
137 &localbus {
138 nor@0 {
139 compatible = "lantiq,nor";
140 bank-width = <2>;
141 reg = <0 0x0 0x2000000>;
142 #address-cells = <1>;
143 #size-cells = <1>;
144
145 partitions {
146 compatible = "fixed-partitions";
147 #address-cells = <1>;
148 #size-cells = <1>;
149
150 partition@0 {
151 label = "uboot";
152 reg = <0x00000 0x20000>;
153 };
154
155 partition@20000 {
156 label = "firmware";
157 reg = <0x20000 0x7d0000>;
158 };
159
160 partition@7f0000 {
161 label = "uboot-env";
162 reg = <0x7f0000 0x10000>;
163 };
164 };
165 };
166 };