lantiq: dts: drop superfluous unit address
[openwrt/staging/wigyori.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 {
100 #address-cells = <1>;
101 #size-cells = <0>;
102 compatible = "lantiq,xrx200-mdio";
103
104 phy11: ethernet-phy@11 {
105 reg = <0x11>;
106 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
107 };
108
109 phy14: ethernet-phy@14 {
110 reg = <0x14>;
111 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
112 };
113 };
114 };
115
116 &gphy0 {
117 lantiq,gphy-mode = <GPHY_MODE_FE>;
118 };
119
120 &gphy1 {
121 lantiq,gphy-mode = <GPHY_MODE_FE>;
122 };
123
124 &gpio {
125 pinctrl-names = "default";
126 pinctrl-0 = <&state_default>;
127
128 state_default: pinmux {
129 mdio {
130 lantiq,groups = "mdio";
131 lantiq,function = "mdio";
132 };
133 };
134 };
135
136 &localbus {
137 nor@0 {
138 compatible = "lantiq,nor";
139 bank-width = <2>;
140 reg = <0 0x0 0x0800000>;
141 #address-cells = <1>;
142 #size-cells = <1>;
143
144 partitions {
145 compatible = "fixed-partitions";
146 #address-cells = <1>;
147 #size-cells = <1>;
148
149 partition@0 {
150 label = "uboot";
151 reg = <0x0 0x30000>;
152 };
153
154 partition@30000 {
155 label = "uboot_env";
156 reg = <0x30000 0x10000>;
157 };
158
159 partition@40000 {
160 label = "firmware";
161 reg = <0x40000 0x750000>;
162 };
163
164 partition@790000 {
165 label = "ddrconfig";
166 reg = <0x790000 0x70000>;
167 read-only;
168 };
169 };
170 };
171 };