aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/files/arch/mips/boot/dts/lantiq/vr9_arcadyan_vg3503j.dts
blob: fb771edcb7e65dba17759ec0e4a0bb41b472ff56 (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
#include "vr9.dtsi"

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

/ {
	compatible = "arcadyan,vg3503j", "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 6 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_RESTART>;
		};
	};

	leds {
		compatible = "gpio-leds";

		power_red: power2 {
			label = "red:power";
			gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
		};
		dsl: dsl {
			label = "green:dsl";
			gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
		};
		power_green: power {
			label = "green:power";
			gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
			default-state = "keep";
		};
	};
};

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

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

&gswip {
	pinctrl-0 = <&gphy0_led0_pins>, <&gphy0_led1_pins>, <&gphy0_led2_pins>,
		    <&gphy1_led0_pins>, <&gphy1_led1_pins>, <&gphy1_led2_pins>;
	pinctrl-names = "default";
};

&gswip_mdio {
	phy11: ethernet-phy@11 {
		reg = <0x11>;
		lantiq,led1h = <0x70>;
		lantiq,led1l = <0x00>;
		lantiq,led2h = <0x00>;
		lantiq,led2l = <0x03>;
	};
	phy13: ethernet-phy@13 {
		reg = <0x13>;
		lantiq,led1h = <0x70>;
		lantiq,led1l = <0x00>;
		lantiq,led2h = <0x00>;
		lantiq,led2l = <0x03>;
	};
};

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

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

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

			partition@0 {
				label = "uboot";
				reg = <0x00000 0x20000>;
			};

			partition@20000 {
				label = "firmware";
				reg = <0x20000 0x7d0000>;
			};

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