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