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_red;
30 led-running = &power_green;
31 led-upgrade = &power_green;
35 stdout-path = "serial0:115200n8";
39 compatible = "gpio-keys";
40 pinctrl-0 = <&button_pins>;
41 pinctrl-names = "default";
45 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_WPS_BUTTON>;
51 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART>;
57 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_LOW>;
59 linux,input-type = <EV_SW>;
64 gpios = <&qcom_pinmux 25 GPIO_ACTIVE_LOW>;
66 linux,input-type = <EV_SW>;
71 compatible = "gpio-leds";
72 pinctrl-0 = <&led_pins>;
73 pinctrl-names = "default";
76 label = "wg2600hp:green:converter";
77 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_HIGH>;
80 power_red: power_red {
81 label = "wg2600hp:red:power";
82 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
86 label = "wg2600hp:green:active";
87 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
91 label = "wg2600hp:red:active";
92 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
95 power_green: power_green {
96 label = "wg2600hp:green:power";
97 gpios = <&qcom_pinmux 14 GPIO_ACTIVE_HIGH>;
101 label = "wg2600hp:red:converter";
102 gpios = <&qcom_pinmux 15 GPIO_ACTIVE_HIGH>;
106 label = "wg2600hp:green:wlan2g";
107 gpios = <&qcom_pinmux 55 GPIO_ACTIVE_HIGH>;
111 label = "wg2600hp:red:wlan2g";
112 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
116 label = "wg2600hp:green:wlan5g";
117 gpios = <&qcom_pinmux 57 GPIO_ACTIVE_HIGH>;
121 label = "wg2600hp:red:wlan5g";
122 gpios = <&qcom_pinmux 58 GPIO_ACTIVE_HIGH>;
126 label = "wg2600hp:green:tv";
127 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
131 label = "wg2600hp:red:tv";
132 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_HIGH>;
144 pinctrl-0 = <&mdio0_pins>;
145 pinctrl-names = "default";
149 qca,ar8327-initvals = <
150 0x00004 0x06000000 /* PAD0_MODE */
151 0x0000c 0x00080080 /* PAD6_MODE */
152 0x000e4 0x0006a545 /* MAC_POWER_SEL */
153 0x000e0 0xc74164de /* SGMII_CTRL */
154 0x0007c 0x0000004e /* PORT0_STATUS */
155 0x00094 0x0000004e /* PORT6_STATUS */
170 pinctrl-0 = <&rgmii2_pins>;
171 pinctrl-names = "default";
173 mtd-mac-address = <&PRODUCTDATA 6>;
187 mtd-mac-address = <&PRODUCTDATA 0>;
197 qcom,mode = <GSBI_PROT_I2C_UART>;
207 qcom,mode = <GSBI_PROT_SPI>;
212 pinctrl-0 = <&spi_pins>;
213 pinctrl-names = "default";
215 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
218 compatible = "jedec,spi-nor";
219 spi-max-frequency = <50000000>;
223 compatible = "fixed-partitions";
224 #address-cells = <1>;
235 reg = <0x20000 0x20000>;
241 reg = <0x40000 0x40000>;
247 reg = <0x80000 0x80000>;
253 reg = <0x100000 0x10000>;
259 reg = <0x110000 0x10000>;
265 reg = <0x120000 0x80000>;
271 reg = <0x1a0000 0x80000>;
277 reg = <0x220000 0x80000>;
283 reg = <0x2a0000 0x10000>;
286 PRODUCTDATA: PRODUCTDATA@2b0000 {
287 label = "PRODUCTDATA";
288 reg = <0x2b0000 0x30000>;
294 reg = <0x2e0000 0x40000>;
300 reg = <0x320000 0x40000>;
306 reg = <0x360000 0x500000>;
311 compatible = "denx,uimage";
313 reg = <0x860000 0x17a0000>;
323 pinctrl-0 = <&usb_pwr_en_pins>;
324 pinctrl-names = "default";
341 button_pins: button_pins {
343 pins = "gpio16", "gpio54", "gpio24", "gpio25";
345 drive-strength = <2>;
350 i2c4_pins: i2c4_pinmux {
352 pins = "gpio12", "gpio13";
354 drive-strength = <12>;
361 pins = "gpio6", "gpio7", "gpio8", "gpio9", "gpio14",
362 "gpio15", "gpio55", "gpio56", "gpio57", "gpio58",
365 drive-strength = <2>;
372 pins = "gpio18", "gpio19", "gpio21";
378 pins = "gpio18", "gpio19";
379 drive-strength = <10>;
384 drive-strength = <10>;
390 drive-strength = <12>;
394 mdio0_pins: mdio0_pins {
396 pins = "gpio0", "gpio1";
398 drive-strength = <8>;
403 rgmii2_pins: rgmii2_pins {
405 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
406 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
408 drive-strength = <8>;
413 usb_pwr_en_pins: usb_pwr_en_pins {
417 drive-strength = <2>;