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