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 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 {
299 qca,ar8327-initvals = <
300 0x00004 0x7600000 /* PAD0_MODE */
301 0x00008 0x1000000 /* PAD5_MODE */
302 0x0000c 0x80 /* PAD6_MODE */
303 0x000e4 0x6a545 /* MAC_POWER_SEL */
304 0x000e0 0xc74164de /* SGMII_CTRL */
305 0x0007c 0x4e /* PORT0_STATUS */
306 0x00094 0x4e /* PORT6_STATUS */
310 phy4: ethernet-phy@4 {
315 gmac1: ethernet@37200000 {
320 pinctrl-0 = <&rgmii2_pins>;
321 pinctrl-names = "default";
323 mtd-mac-address = <&PRODUCTDATA 6>;
331 gmac2: ethernet@37400000 {
336 mtd-mac-address = <&PRODUCTDATA 0>;
346 compatible = "gpio-keys";
347 pinctrl-0 = <&button_pins>;
348 pinctrl-names = "default";
352 gpios = <&qcom_pinmux 16 GPIO_ACTIVE_LOW>;
353 linux,code = <KEY_WPS_BUTTON>;
358 gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
359 linux,code = <KEY_RESTART>;
364 gpios = <&qcom_pinmux 24 GPIO_ACTIVE_LOW>;
365 linux,code = <BTN_0>;
366 linux,input-type = <EV_SW>;
371 gpios = <&qcom_pinmux 25 GPIO_ACTIVE_LOW>;
372 linux,code = <BTN_0>;
373 linux,input-type = <EV_SW>;
378 compatible = "gpio-leds";
379 pinctrl-0 = <&led_pins>;
380 pinctrl-names = "default";
383 label = "wg2600hp:green:converter";
384 gpios = <&qcom_pinmux 6 GPIO_ACTIVE_HIGH>;
388 label = "wg2600hp:red:power";
389 gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
393 label = "wg2600hp:green:active";
394 gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
398 label = "wg2600hp:red:active";
399 gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
402 power_green: power_green {
403 label = "wg2600hp:green:power";
404 gpios = <&qcom_pinmux 14 GPIO_ACTIVE_HIGH>;
408 label = "wg2600hp:red:converter";
409 gpios = <&qcom_pinmux 15 GPIO_ACTIVE_HIGH>;
413 label = "wg2600hp:green:wlan2g";
414 gpios = <&qcom_pinmux 55 GPIO_ACTIVE_HIGH>;
418 label = "wg2600hp:red:wlan2g";
419 gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
423 label = "wg2600hp:green:wlan5g";
424 gpios = <&qcom_pinmux 57 GPIO_ACTIVE_HIGH>;
428 label = "wg2600hp:red:wlan5g";
429 gpios = <&qcom_pinmux 58 GPIO_ACTIVE_HIGH>;
433 label = "wg2600hp:green:tv";
434 gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
438 label = "wg2600hp:red:tv";
439 gpios = <&qcom_pinmux 65 GPIO_ACTIVE_HIGH>;