1 #include "qcom-ipq8064-v2.0.dtsi"
3 #include <dt-bindings/input/input.h>
6 model = "NEC Aterm WG2600HP";
7 compatible = "nec,wg2600hp", "qcom,ipq8064";
10 reg = <0x42000000 0x1e000000>;
11 device_type = "memory";
19 reg = <0x41200000 0x300000>;
25 serial0 = &gsbi4_serial;
28 led-boot = &power_green;
29 led-failsafe = &power_green;
30 led-running = &power_green;
31 led-upgrade = &power_green;
35 linux,stdout-path = "serial0:115200n8";
40 button_pins: button_pins {
42 pins = "gpio16", "gpio54", "gpio24", "gpio25";
49 i2c4_pins: i2c4_pinmux {
51 pins = "gpio12", "gpio13";
53 drive-strength = <12>;
60 pins = "gpio6", "gpio7", "gpio8", "gpio9", "gpio14",
61 "gpio15", "gpio55", "gpio56", "gpio57", "gpio58",
71 pins = "gpio18", "gpio19", "gpio21";
77 pins = "gpio18", "gpio19";
78 drive-strength = <10>;
83 drive-strength = <10>;
89 drive-strength = <12>;
93 mdio0_pins: mdio0_pins {
95 pins = "gpio0", "gpio1";
102 rgmii2_pins: rgmii2_pins {
104 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
105 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
107 drive-strength = <8>;
112 usb_pwr_en_pins: usb_pwr_en_pins {
116 drive-strength = <2>;
124 qcom,mode = <GSBI_PROT_I2C_UART>;
130 * The i2c device on gsbi4 should not be enabled.
131 * On ipq806x designs gsbi4 i2c is meant for exclusive
132 * RPM usage. Turning this on in kernel manifests as
133 * i2c failure for the RPM.
137 gsbi5: gsbi@1a200000 {
138 qcom,mode = <GSBI_PROT_SPI>;
144 pinctrl-0 = <&spi_pins>;
145 pinctrl-names = "default";
147 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
150 compatible = "jedec,spi-nor";
151 #address-cells = <1>;
153 spi-max-frequency = <50000000>;
164 reg = <0x20000 0x20000>;
170 reg = <0x40000 0x40000>;
176 reg = <0x80000 0x80000>;
182 reg = <0x100000 0x10000>;
188 reg = <0x110000 0x10000>;
194 reg = <0x120000 0x80000>;
200 reg = <0x1a0000 0x80000>;
206 reg = <0x220000 0x80000>;
212 reg = <0x2a0000 0x10000>;
215 PRODUCTDATA: PRODUCTDATA@2b0000 {
216 label = "PRODUCTDATA";
217 reg = <0x2b0000 0x30000>;
223 reg = <0x2e0000 0x40000>;
229 reg = <0x320000 0x40000>;
235 reg = <0x360000 0x500000>;
241 reg = <0x860000 0x17a0000>;
247 phy@100f8800 { /* USB3 port 1 HS phy */
251 phy@100f8830 { /* USB3 port 1 SS phy */
255 phy@110f8800 { /* USB3 port 0 HS phy */
259 phy@110f8830 { /* USB3 port 0 SS phy */
266 pinctrl-0 = <&usb_pwr_en_pins>;
267 pinctrl-names = "default";
274 pcie0: pci@1b500000 {
276 reset-gpio = <&qcom_pinmux 3 GPIO_ACTIVE_HIGH>;
277 pinctrl-0 = <&pcie0_pins>;
278 pinctrl-names = "default";
281 pcie1: pci@1b700000 {
283 reset-gpio = <&qcom_pinmux 48 GPIO_ACTIVE_HIGH>;
284 pinctrl-0 = <&pcie1_pins>;
285 pinctrl-names = "default";
290 compatible = "virtual,mdio-gpio";
291 #address-cells = <1>;
293 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
294 pinctrl-0 = <&mdio0_pins>;
295 pinctrl-names = "default";
297 phy0: ethernet-phy@0 {
298 device_type = "ethernet-phy";
300 qca,ar8327-initvals = <
301 0x00004 0x7600000 /* PAD0_MODE */
302 0x00008 0x1000000 /* PAD5_MODE */
303 0x0000c 0x80 /* PAD6_MODE */
304 0x000e4 0x6a545 /* MAC_POWER_SEL */
305 0x000e0 0xc74164de /* SGMII_CTRL */
306 0x0007c 0x4e /* PORT0_STATUS */
307 0x00094 0x4e /* PORT6_STATUS */
311 phy4: ethernet-phy@4 {
312 device_type = "ethernet-phy";
317 gmac1: ethernet@37200000 {
322 pinctrl-0 = <&rgmii2_pins>;
323 pinctrl-names = "default";
325 mtd-mac-address = <&PRODUCTDATA 6>;
333 gmac2: ethernet@37400000 {
338 mtd-mac-address = <&PRODUCTDATA 0>;
348 compatible = "gpio-keys";
349 pinctrl-0 = <&button_pins>;
350 pinctrl-names = "default";
354 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_LOW>;
355 linux,code = <KEY_WPS_BUTTON>;
360 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
361 linux,code = <KEY_RESTART>;
366 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_LOW>;
367 linux,code = <BTN_0>;
368 linux,input-type = <EV_SW>;
373 gpios = <&qcom_pinmux 25 GPIO_ACTIVE_LOW>;
374 linux,code = <BTN_0>;
375 linux,input-type = <EV_SW>;
380 compatible = "gpio-leds";
381 pinctrl-0 = <&led_pins>;
382 pinctrl-names = "default";
385 label = "wg2600hp:green:converter";
386 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_HIGH>;
390 label = "wg2600hp:red:power";
391 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
395 label = "wg2600hp:green:active";
396 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
400 label = "wg2600hp:red:active";
401 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
404 power_green: power_green {
405 label = "wg2600hp:green:power";
406 gpios = <&qcom_pinmux 14 GPIO_ACTIVE_HIGH>;
410 label = "wg2600hp:red:converter";
411 gpios = <&qcom_pinmux 15 GPIO_ACTIVE_HIGH>;
415 label = "wg2600hp:green:wlan2g";
416 gpios = <&qcom_pinmux 55 GPIO_ACTIVE_HIGH>;
420 label = "wg2600hp:red:wlan2g";
421 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
425 label = "wg2600hp:green:wlan5g";
426 gpios = <&qcom_pinmux 57 GPIO_ACTIVE_HIGH>;
430 label = "wg2600hp:red:wlan5g";
431 gpios = <&qcom_pinmux 58 GPIO_ACTIVE_HIGH>;
435 label = "wg2600hp:green:tv";
436 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
440 label = "wg2600hp:red:tv";
441 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_HIGH>;