aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_netgear_dm200.dts
blob: b817ff3224e98bc2ecfc7dd521654a23d3b8da8a (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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
#include "vr9.dtsi"

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

/ {
	compatible = "netgear,dm200", "lantiq,xway", "lantiq,vr9";
	model = "Netgear DM200";

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

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

		led-dsl = &dsl_green;
	};

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

	keys {
		compatible = "gpio-keys-polled";
		poll-interval = <100>;
		reset {
			label = "reset";
			gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_RESTART>;
		};
	};

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

		annexa {
			gpio-export,name = "annexa";
			gpio-export,output = <0>;
			gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
		};
		annexb {
			gpio-export,name = "annexb";
			gpio-export,output = <0>;
			gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
		};
	};

	leds {
		compatible = "gpio-leds";

		power_amber: power_amber {
			label = "amber:power";
			gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
		};
		power_green: power_green {
			label = "green:power";
			gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
		};

		lan_amber {
			label = "amber:lan";
			gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
		};
		lan_green {
			label = "green:lan";
			gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
		};

		dsl_amber {
			label = "amber:dsl";
			gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
		};
		dsl_green: dsl_green {
			label = "green:dsl";
			gpios = <&gpio 36 GPIO_ACTIVE_HIGH>;
		};
	};
};

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

&gswip_mdio {
	phy13: ethernet-phy@13 {
		reg = <0x13>;
	};
};

&gswip_ports {
	port@4 {
		reg = <4>;
		label = "lan";
		phy-mode = "internal";
		phy-handle = <&phy13>;
	};
};

&pcie0 {
	status = "disabled";
};

&spi {
	status = "okay";

	flash@4 {
		compatible = "jedec,spi-nor";
		reg = <4>;
		spi-max-frequency = <10000000>;

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

			partition@0 {
				reg = <0x0 0x20000>;
				label = "uboot";
				read-only;
			};

			partition@20000 {
				reg = <0x20000 0x10000>;
				label = "gphyfirmware";
				read-only;
			};

			partition@30000 {
				reg = <0x30000 0x7b0000>;
				label = "firmware";
			};

			partition@7e0000 {
				reg = <0x7e0000 0x10000>;
				label = "sysconfig";
				read-only;
			};

			partition@7f0000 {
				reg = <0x7f0000 0x2000>;
				label = "u-boot-env";
				read-only;
			};

			partition@7f2000 {
				reg = <0x7f2000 0x1000>;
				label = "ART";
				read-only;
			};

			partition@7f3000 {
				reg = <0x7f3000 0x1000>;
				label = "pot";
				read-only;
			};

			partition@7f4000 {
				reg = <0x7f4000 0xc000>;
				label = "ret";
				read-only;
			};
		};
	};
};