ipq807x: fix wrong define for LAN and WAN ess mask
[openwrt/staging/hauke.git] / target / linux / qualcommax / files / arch / arm64 / boot / dts / qcom / ipq8072-wax218.dts
1 /dts-v1/;
2
3 #include "ipq8074.dtsi"
4 #include "ipq8074-hk-cpu.dtsi"
5 #include "ipq8074-ess.dtsi"
6
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/gpio/gpio.h>
9
10 / {
11 model = "Netgear WAX218";
12 compatible = "netgear,wax218", "qcom,ipq8074";
13
14 aliases {
15 serial0 = &blsp1_uart5;
16 led-boot = &led_power_amber;
17 led-failsafe = &led_power_amber;
18 led-running = &led_power_amber;
19 led-upgrade = &led_power_amber;
20 };
21
22 chosen {
23 stdout-path = "serial0:115200n8";
24 /*
25 * Netgear's U-Boot adds "ubi.mtd=rootfs root=mtd:ubi_rootfs"
26 * That fails to create a UBI block device, so add it here.
27 */
28 bootargs-append = " ubi.block=0,rootfs root=/dev/ubiblock0_1";
29 };
30
31 keys {
32 compatible = "gpio-keys";
33
34 reset {
35 label = "reset";
36 gpios = <&tlmm 52 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
38 };
39 };
40
41 led_spi {
42 compatible = "spi-gpio";
43 #address-cells = <1>;
44 #size-cells = <0>;
45
46 sck-gpios = <&tlmm 18 GPIO_ACTIVE_HIGH>;
47 mosi-gpios = <&tlmm 19 GPIO_ACTIVE_HIGH>;
48
49 led_gpio: led_gpio@0 {
50 compatible = "fairchild,74hc595";
51 reg = <0>;
52 gpio-controller;
53 #gpio-cells = <2>;
54 registers-number = <1>;
55 enable-gpios = <&tlmm 20 GPIO_ACTIVE_HIGH>;
56 spi-max-frequency = <1000000>;
57 };
58 };
59
60 leds {
61 compatible = "gpio-leds";
62
63 led_power_amber: led_power {
64 label = "amber:power";
65 gpios = <&led_gpio 1 GPIO_ACTIVE_HIGH>;
66 };
67
68 led_lan {
69 label = "blue:lan";
70 gpios = <&led_gpio 2 GPIO_ACTIVE_HIGH>;
71 };
72
73 led_wlan_2g {
74 label = "blue:wlan2g";
75 gpios = <&led_gpio 3 GPIO_ACTIVE_HIGH>;
76 };
77
78 led_wlan_5g {
79 label = "blue:wlan5g";
80 gpios = <&led_gpio 4 GPIO_ACTIVE_HIGH>;
81 };
82 };
83 };
84
85 &edma {
86 status = "okay";
87 };
88
89 &switch {
90 status = "okay";
91
92 switch_wan_bmp = <ESS_PORT6>;
93 switch_mac_mode = <0x00>;
94 switch_mac_mode1 = <0xff>;
95 switch_mac_mode2 = <0x0f>;
96 bm_tick_mode = <0>;
97 tm_tick_mode = <0>;
98
99 qcom,port_phyinfo {
100 port@5 {
101 port_id = <6>;
102 phy_address = <28>;
103 port_mac_sel = "QGMAC_PORT";
104 };
105 };
106 };
107
108 &tlmm {
109 mdio_pins: mdio-pins {
110 mdc {
111 pins = "gpio68";
112 function = "mdc";
113 drive-strength = <8>;
114 bias-pull-up;
115 };
116
117 mdio {
118 pins = "gpio69";
119 function = "mdio";
120 drive-strength = <8>;
121 bias-pull-up;
122 };
123 };
124 };
125
126 &mdio {
127 status = "okay";
128
129 pinctrl-0 = <&mdio_pins>;
130 pinctrl-names = "default";
131 reset-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
132
133 qca8081_28: ethernet-phy@28 {
134 reg = <28>;
135 };
136 };
137
138 &dp6_syn {
139 status = "okay";
140 phy-handle = <&qca8081_28>;
141 label = "lan";
142 nvmem-cells = <&macaddr_ubootenv_ethaddr>;
143 nvmem-cell-names = "mac-address";
144 };
145
146 &qpic_bam {
147 status = "okay";
148 };
149
150 &qpic_nand {
151 status = "okay";
152
153 nand@0 {
154 reg = <0>;
155 nand-ecc-strength = <4>;
156 nand-ecc-step-size = <512>;
157 nand-bus-width = <8>;
158
159 partitions {
160 compatible = "qcom,smem-part";
161
162 partition-0-appsblenv {
163 compatible = "fixed-partitions";
164 label = "0:appsblenv";
165 read-only;
166 #address-cells = <1>;
167 #size-cells = <1>;
168
169 partition@0 {
170 compatible = "u-boot,env";
171 label = "env-data";
172 reg = <0x0 0x40000>;
173
174 macaddr_ubootenv_ethaddr: ethaddr {};
175 };
176 };
177 };
178 };
179 };
180
181 &blsp1_uart5 {
182 status = "okay";
183 };
184
185 &wifi {
186 status = "okay";
187
188 qcom,ath11k-calibration-variant = "Netgear-WAX218";
189 };