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