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";
40 compatible = "virtual,mdio-gpio";
43 gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH>,
44 <&qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
45 pinctrl-0 = <&mdio0_pins>;
46 pinctrl-names = "default";
50 qca,ar8327-initvals = <
51 0x00004 0x06000000 /* PAD0_MODE */
52 0x0000c 0x00080080 /* PAD6_MODE */
53 0x000e4 0x0006a545 /* MAC_POWER_SEL */
54 0x000e0 0xc74164de /* SGMII_CTRL */
55 0x0007c 0x0000004e /* PORT0_STATUS */
56 0x00094 0x0000004e /* PORT6_STATUS */
67 compatible = "gpio-keys";
68 pinctrl-0 = <&button_pins>;
69 pinctrl-names = "default";
73 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_LOW>;
74 linux,code = <KEY_WPS_BUTTON>;
79 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
80 linux,code = <KEY_RESTART>;
85 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_LOW>;
87 linux,input-type = <EV_SW>;
92 gpios = <&qcom_pinmux 25 GPIO_ACTIVE_LOW>;
94 linux,input-type = <EV_SW>;
99 compatible = "gpio-leds";
100 pinctrl-0 = <&led_pins>;
101 pinctrl-names = "default";
104 label = "wg2600hp:green:converter";
105 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_HIGH>;
108 power_red: power_red {
109 label = "wg2600hp:red:power";
110 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
114 label = "wg2600hp:green:active";
115 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
119 label = "wg2600hp:red:active";
120 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
123 power_green: power_green {
124 label = "wg2600hp:green:power";
125 gpios = <&qcom_pinmux 14 GPIO_ACTIVE_HIGH>;
129 label = "wg2600hp:red:converter";
130 gpios = <&qcom_pinmux 15 GPIO_ACTIVE_HIGH>;
134 label = "wg2600hp:green:wlan2g";
135 gpios = <&qcom_pinmux 55 GPIO_ACTIVE_HIGH>;
139 label = "wg2600hp:red:wlan2g";
140 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
144 label = "wg2600hp:green:wlan5g";
145 gpios = <&qcom_pinmux 57 GPIO_ACTIVE_HIGH>;
149 label = "wg2600hp:red:wlan5g";
150 gpios = <&qcom_pinmux 58 GPIO_ACTIVE_HIGH>;
154 label = "wg2600hp:green:tv";
155 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
159 label = "wg2600hp:red:tv";
160 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_HIGH>;
175 pinctrl-0 = <&rgmii2_pins>;
176 pinctrl-names = "default";
178 mtd-mac-address = <&PRODUCTDATA 6>;
192 mtd-mac-address = <&PRODUCTDATA 0>;
202 qcom,mode = <GSBI_PROT_I2C_UART>;
212 qcom,mode = <GSBI_PROT_SPI>;
217 pinctrl-0 = <&spi_pins>;
218 pinctrl-names = "default";
220 cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
223 compatible = "jedec,spi-nor";
224 spi-max-frequency = <50000000>;
228 compatible = "fixed-partitions";
229 #address-cells = <1>;
240 reg = <0x20000 0x20000>;
246 reg = <0x40000 0x40000>;
252 reg = <0x80000 0x80000>;
258 reg = <0x100000 0x10000>;
264 reg = <0x110000 0x10000>;
270 reg = <0x120000 0x80000>;
276 reg = <0x1a0000 0x80000>;
282 reg = <0x220000 0x80000>;
288 reg = <0x2a0000 0x10000>;
291 PRODUCTDATA: PRODUCTDATA@2b0000 {
292 label = "PRODUCTDATA";
293 reg = <0x2b0000 0x30000>;
299 reg = <0x2e0000 0x40000>;
305 reg = <0x320000 0x40000>;
311 reg = <0x360000 0x500000>;
316 compatible = "denx,uimage";
318 reg = <0x860000 0x17a0000>;
328 pinctrl-0 = <&usb_pwr_en_pins>;
329 pinctrl-names = "default";
346 button_pins: button_pins {
348 pins = "gpio16", "gpio54", "gpio24", "gpio25";
350 drive-strength = <2>;
355 i2c4_pins: i2c4_pinmux {
357 pins = "gpio12", "gpio13";
359 drive-strength = <12>;
366 pins = "gpio6", "gpio7", "gpio8", "gpio9", "gpio14",
367 "gpio15", "gpio55", "gpio56", "gpio57", "gpio58",
370 drive-strength = <2>;
377 pins = "gpio18", "gpio19", "gpio21";
383 pins = "gpio18", "gpio19";
384 drive-strength = <10>;
389 drive-strength = <10>;
395 drive-strength = <12>;
399 mdio0_pins: mdio0_pins {
401 pins = "gpio0", "gpio1";
403 drive-strength = <8>;
408 rgmii2_pins: rgmii2_pins {
410 pins = "gpio27", "gpio28", "gpio29", "gpio30", "gpio31", "gpio32",
411 "gpio51", "gpio52", "gpio59", "gpio60", "gpio61", "gpio62" ;
413 drive-strength = <8>;
418 usb_pwr_en_pins: usb_pwr_en_pins {
422 drive-strength = <2>;