3d10f582b01fcbdb0e08d09f6778883f21d6425c
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-4.19 / arch / mips / boot / dts / lantiq / vr9_alphanetworks_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 keys {
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 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 &localbus {
123 flash@0 {
124 compatible = "lantiq,nor";
125 bank-width = <2>;
126 reg = <0 0x0 0x0800000>;
127
128 partitions {
129 compatible = "fixed-partitions";
130 #address-cells = <1>;
131 #size-cells = <1>;
132
133 partition@0 {
134 label = "uboot";
135 reg = <0x0 0x30000>;
136 };
137
138 partition@30000 {
139 label = "uboot_env";
140 reg = <0x30000 0x10000>;
141 };
142
143 partition@40000 {
144 label = "firmware";
145 reg = <0x40000 0x750000>;
146 };
147
148 partition@790000 {
149 label = "ddrconfig";
150 reg = <0x790000 0x70000>;
151 read-only;
152 };
153 };
154 };
155 };