ltq-xdsl-app: start after led script
[openwrt/staging/wigyori.git] / target / linux / lantiq / files-4.9 / 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 fpi@10000000 {
28 localbus@0 {
29 nor-boot@0 {
30 compatible = "lantiq,nor";
31 bank-width = <2>;
32 reg = <0 0x0 0x0800000>;
33 #address-cells = <1>;
34 #size-cells = <1>;
35
36 partitions {
37 compatible = "fixed-partitions";
38 #address-cells = <1>;
39 #size-cells = <1>;
40
41 partition@0 {
42 label = "uboot";
43 reg = <0x0 0x30000>;
44 };
45
46 partition@30000 {
47 label = "uboot_env";
48 reg = <0x30000 0x10000>;
49 };
50
51 partition@40000 {
52 label = "firmware";
53 reg = <0x40000 0x750000>;
54 };
55
56 partition@790000 {
57 label = "ddrconfig";
58 reg = <0x790000 0x70000>;
59 read-only;
60 };
61 };
62 };
63 };
64
65 gpio: pinmux@E100B10 {
66 pinctrl-names = "default";
67 pinctrl-0 = <&state_default>;
68
69 state_default: pinmux {
70 mdio {
71 lantiq,groups = "mdio";
72 lantiq,function = "mdio";
73 };
74 };
75 };
76 };
77
78 gphy-xrx200 {
79 compatible = "lantiq,phy-xrx200";
80 firmware1 = "lantiq/xrx200_phy22f_a14.bin"; /*VR9 1.1*/
81 firmware2 = "lantiq/xrx200_phy22f_a22.bin"; /*VR9 1.2*/
82 phys = [ 00 01 ];
83 };
84
85 gpio-keys-polled {
86 compatible = "gpio-keys-polled";
87 #address-cells = <1>;
88 #size-cells = <0>;
89 poll-interval = <100>;
90
91 reset {
92 label = "reset";
93 gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
94 linux,code = <KEY_RESTART>;
95 };
96 };
97
98 gpio-leds {
99 compatible = "gpio-leds";
100
101 dsl: dsl {
102 label = "asl56026:green:dsl";
103 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
104 };
105
106 /* power-* is a bicolour led */
107 power_green: power_green {
108 label = "asl56026:green:power";
109 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
110 default-state = "keep";
111 };
112
113 power_red: power_red {
114 label = "asl56026:red:power";
115 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
116 };
117 };
118
119 gpio_export {
120 compatible = "gpio-export";
121 #size-cells = <0>;
122
123 power_led_blink {
124 gpio-export,name = "power_led_blink";
125 gpio-export,output = <0>;
126 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
127 };
128 };
129 };
130
131 &eth0 {
132 lan: interface@0 {
133 compatible = "lantiq,xrx200-pdi";
134 #address-cells = <1>;
135 #size-cells = <0>;
136 reg = <0>;
137 lantiq,switch;
138
139 ethernet@2 {
140 compatible = "lantiq,xrx200-pdi-port";
141 reg = <2>;
142 phy-mode = "mii";
143 phy-handle = <&phy11>;
144 };
145
146 ethernet@3 {
147 compatible = "lantiq,xrx200-pdi-port";
148 reg = <3>;
149 phy-mode = "mii";
150 phy-handle = <&phy14>;
151 };
152
153 };
154
155 mdio@0 {
156 #address-cells = <1>;
157 #size-cells = <0>;
158 compatible = "lantiq,xrx200-mdio";
159
160 phy11: ethernet-phy@11 {
161 reg = <0x11>;
162 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
163 };
164
165 phy14: ethernet-phy@14 {
166 reg = <0x14>;
167 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
168 };
169
170 };
171 };