lantiq: kernel 4.14: cleanup dts files
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / ASL56026.dts
1 /dts-v1/;
2
3 #include "vr9.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "alphanetworks,asl56026", "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_phy22f_a14.bin"; /*VR9 1.1*/
30 firmware2 = "lantiq/xrx200_phy22f_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
40 reset {
41 label = "reset";
42 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
44 };
45 };
46
47 gpio-leds {
48 compatible = "gpio-leds";
49
50 dsl: dsl {
51 label = "asl56026:green:dsl";
52 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
53 };
54
55 /* power-* is a bicolour led */
56 power_green: power_green {
57 label = "asl56026:green:power";
58 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
59 default-state = "keep";
60 };
61
62 power_red: power_red {
63 label = "asl56026:red:power";
64 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
65 };
66 };
67
68 gpio_export {
69 compatible = "gpio-export";
70 #size-cells = <0>;
71
72 power_led_blink {
73 gpio-export,name = "power_led_blink";
74 gpio-export,output = <0>;
75 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
76 };
77 };
78 };
79
80 &eth0 {
81 lan: interface@0 {
82 compatible = "lantiq,xrx200-pdi";
83 #address-cells = <1>;
84 #size-cells = <0>;
85 reg = <0>;
86 lantiq,switch;
87
88 ethernet@2 {
89 compatible = "lantiq,xrx200-pdi-port";
90 reg = <2>;
91 phy-mode = "mii";
92 phy-handle = <&phy11>;
93 };
94
95 ethernet@3 {
96 compatible = "lantiq,xrx200-pdi-port";
97 reg = <3>;
98 phy-mode = "mii";
99 phy-handle = <&phy14>;
100 };
101
102 };
103
104 mdio@0 {
105 #address-cells = <1>;
106 #size-cells = <0>;
107 compatible = "lantiq,xrx200-mdio";
108 reg = <0>;
109
110 phy11: ethernet-phy@11 {
111 reg = <0x11>;
112 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
113 };
114
115 phy14: ethernet-phy@14 {
116 reg = <0x14>;
117 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
118 };
119
120 };
121 };
122
123 &gpio {
124 pinctrl-names = "default";
125 pinctrl-0 = <&state_default>;
126
127 state_default: pinmux {
128 mdio {
129 lantiq,groups = "mdio";
130 lantiq,function = "mdio";
131 };
132 };
133 };
134
135 &localbus {
136 nor@0 {
137 compatible = "lantiq,nor";
138 bank-width = <2>;
139 reg = <0 0x0 0x0800000>;
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 = <0x0 0x30000>;
151 };
152
153 partition@30000 {
154 label = "uboot_env";
155 reg = <0x30000 0x10000>;
156 };
157
158 partition@40000 {
159 label = "firmware";
160 reg = <0x40000 0x750000>;
161 };
162
163 partition@790000 {
164 label = "ddrconfig";
165 reg = <0x790000 0x70000>;
166 read-only;
167 };
168 };
169 };
170 };