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