aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_alphanetworks_asl56026.dts
blob: 77fcff33920eea4c9fc7fe3dedc98b625640c65b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
#include "vr9.dtsi"

#include <dt-bindings/input/input.h>
#include <dt-bindings/mips/lantiq_rcu_gphy.h>

/ {
	compatible = "alphanetworks,asl56026", "lantiq,xway", "lantiq,vr9";
	model = "BT OpenReach VDSL Modem";

	chosen {
		bootargs = "console=ttyLTQ0,115200";
	};

	aliases {
		led-boot = &power_green;
		led-failsafe = &power_red;
		led-running = &power_green;
		led-upgrade = &power_green;

		led-dsl = &dsl;
	};

	memory@0 {
		device_type = "memory";
		reg = <0x0 0x2000000>;
	};

	keys {
		compatible = "gpio-keys-polled";
		poll-interval = <100>;

		reset {
			label = "reset";
			gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_RESTART>;
		};
	};

	leds {
		compatible = "gpio-leds";

		dsl: dsl {
			label = "green:dsl";
			gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
		};

		/* power-* is a bicolour led */
		power_green: power_green {
			label = "green:power";
			gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
			default-state = "keep";
		};

		power_red: power_red {
			label = "red:power";
			gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
		};
	};

	gpio_export {
		compatible = "gpio-export";
		#size-cells = <0>;

		power_led_blink {
			gpio-export,name = "power_led_blink";
			gpio-export,output = <0>;
			gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
		};
	};
};

&gphy0 {
	lantiq,gphy-mode = <GPHY_MODE_FE>;
};

&gphy1 {
	lantiq,gphy-mode = <GPHY_MODE_FE>;
};

&gswip_mdio {
	phy11: ethernet-phy@11 {
		reg = <0x11>;
	};

	phy14: ethernet-phy@14 {
		reg = <0x14>;
	};
};

&gswip_ports {
	port@2 {
		reg = <2>;
		label = "lan1";
		phy-mode = "internal";
		phy-handle = <&phy11>;
	};

	port@3 {
		reg = <3>;
		label = "lan2";
		phy-mode = "internal";
		phy-handle = <&phy14>;
	};
};

&localbus {
	flash@0 {
		compatible = "lantiq,nor";
		bank-width = <2>;
		reg = <0 0x0 0x0800000>;

		partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;

			partition@0 {
				label = "uboot";
				reg = <0x0 0x30000>;
			};

			partition@30000 {
				label = "u-boot-env";
				reg = <0x30000 0x10000>;
			};

			partition@40000 {
				label = "firmware";
				reg = <0x40000 0x750000>;
			};

			partition@790000 {
				label = "ddrconfig";
				reg = <0x790000 0x70000>;
				read-only;
			};
		};
	};
};