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