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