77fcff33920eea4c9fc7fe3dedc98b625640c65b
[openwrt/staging/robimarko.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 &gphy0 {
73 lantiq,gphy-mode = <GPHY_MODE_FE>;
74 };
75
76 &gphy1 {
77 lantiq,gphy-mode = <GPHY_MODE_FE>;
78 };
79
80 &gswip_mdio {
81 phy11: ethernet-phy@11 {
82 reg = <0x11>;
83 };
84
85 phy14: ethernet-phy@14 {
86 reg = <0x14>;
87 };
88 };
89
90 &gswip_ports {
91 port@2 {
92 reg = <2>;
93 label = "lan1";
94 phy-mode = "internal";
95 phy-handle = <&phy11>;
96 };
97
98 port@3 {
99 reg = <3>;
100 label = "lan2";
101 phy-mode = "internal";
102 phy-handle = <&phy14>;
103 };
104 };
105
106 &localbus {
107 flash@0 {
108 compatible = "lantiq,nor";
109 bank-width = <2>;
110 reg = <0 0x0 0x0800000>;
111
112 partitions {
113 compatible = "fixed-partitions";
114 #address-cells = <1>;
115 #size-cells = <1>;
116
117 partition@0 {
118 label = "uboot";
119 reg = <0x0 0x30000>;
120 };
121
122 partition@30000 {
123 label = "u-boot-env";
124 reg = <0x30000 0x10000>;
125 };
126
127 partition@40000 {
128 label = "firmware";
129 reg = <0x40000 0x750000>;
130 };
131
132 partition@790000 {
133 label = "ddrconfig";
134 reg = <0x790000 0x70000>;
135 read-only;
136 };
137 };
138 };
139 };