1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include "ipq8074.dtsi"
6 #include "ipq8074-ess.dtsi"
7 #include "ipq8074-hk-cpu.dtsi"
8 #include <dt-bindings/input/input.h>
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/leds/common.h>
13 model = "Netgear RAX120v2";
14 compatible = "netgear,rax120v2", "qcom,ipq8074";
17 serial0 = &blsp1_uart5;
19 led-running = &led_system_white;
20 led-upgrade = &led_system_white;
21 led-internet = &led_wan_white;
22 label-mac-device = &dp1;
26 stdout-path = "serial0:115200n8";
27 bootargs-append = " ubi.mtd=rootfs root=/dev/ubiblock0_0";
31 compatible = "gpio-keys";
35 gpios = <&tlmm 25 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RFKILL>;
41 gpios = <&tlmm 57 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_WPS_BUTTON>;
47 gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_RESTART>;
53 compatible = "spi-gpio";
57 sck-gpios = <&tlmm 18 GPIO_ACTIVE_HIGH>;
58 mosi-gpios = <&tlmm 19 GPIO_ACTIVE_HIGH>;
60 led_gpio: led_gpio@0 {
61 compatible = "fairchild,74hc595";
65 registers-number = <2>;
66 enable-gpios = <&tlmm 20 GPIO_ACTIVE_HIGH>;
67 spi-max-frequency = <1000000>;
72 compatible = "gpio-leds";
74 led_system_white: system-white {
75 label = "white:system";
76 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
77 color = <LED_COLOR_ID_WHITE>;
82 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
83 color = <LED_COLOR_ID_WHITE>;
84 linux,default-trigger = "phy1radio";
89 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
90 color = <LED_COLOR_ID_WHITE>;
91 linux,default-trigger = "phy0radio";
96 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
97 color = <LED_COLOR_ID_WHITE>;
101 label = "white:usb2";
102 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
103 color = <LED_COLOR_ID_WHITE>;
106 led_wan_white: wan-white {
108 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
109 color = <LED_COLOR_ID_WHITE>;
114 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
115 color = <LED_COLOR_ID_GREEN>;
120 gpios = <&led_gpio 10 GPIO_ACTIVE_LOW>;
121 color = <LED_COLOR_ID_RED>;
126 gpios = <&led_gpio 11 GPIO_ACTIVE_LOW>;
127 color = <LED_COLOR_ID_WHITE>;
132 gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
133 color = <LED_COLOR_ID_WHITE>;
139 mdio_pins: mdio-pins {
143 drive-strength = <8>;
150 drive-strength = <8>;
159 pinctrl-0 = <&mdio_pins>;
160 pinctrl-names = "default";
161 reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>;
163 qca8075_0: ethernet-phy@0 {
164 compatible = "ethernet-phy-ieee802.3-c22";
168 qca8075_1: ethernet-phy@1 {
169 compatible = "ethernet-phy-ieee802.3-c22";
173 qca8075_2: ethernet-phy@2 {
174 compatible = "ethernet-phy-ieee802.3-c22";
178 qca8075_3: ethernet-phy@3 {
179 compatible = "ethernet-phy-ieee802.3-c22";
183 qca8075_4: ethernet-phy@4 {
184 compatible = "ethernet-phy-ieee802.3-c22";
188 aqr111b0: ethernet-phy@7 {
189 compatible ="ethernet-phy-ieee802.3-c45";
191 reset-gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
198 switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4 | ESS_PORT5)>; /* lan port bitmap */
199 switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
200 switch_mac_mode = <MAC_MODE_PSGMII>; /* mac mode for uniphy instance0*/
201 switch_mac_mode2 = <MAC_MODE_USXGMII>; /* mac mode for uniphy instance2*/
202 bm_tick_mode = <0>; /* bm tick mode */
203 tm_tick_mode = <0>; /* tm tick mode */
229 compatible = "ethernet-phy-ieee802.3-c45";
230 ethernet-phy-ieee802.3-c45;
241 phy-handle = <&qca8075_0>;
243 nvmem-cells = <&macaddr_dp1>;
244 nvmem-cell-names = "mac-address";
249 phy-handle = <&qca8075_1>;
251 nvmem-cells = <&macaddr_dp2>;
252 nvmem-cell-names = "mac-address";
257 phy-handle = <&qca8075_2>;
259 nvmem-cells = <&macaddr_dp3>;
260 nvmem-cell-names = "mac-address";
265 phy-handle = <&qca8075_3>;
267 nvmem-cells = <&macaddr_dp4>;
268 nvmem-cell-names = "mac-address";
273 phy-handle = <&qca8075_4>;
275 nvmem-cells = <&macaddr_dp5>;
276 nvmem-cell-names = "mac-address";
281 phy-handle = <&aqr111b0>;
283 nvmem-cells = <&macaddr_dp6_syn>;
284 nvmem-cell-names = "mac-address";
295 compatible = "gmt,g763";
297 clocks =<&sleep_clk>;
313 nand-ecc-strength = <4>;
314 nand-ecc-step-size = <512>;
315 nand-bus-width = <8>;
318 compatible = "fixed-partitions";
319 #address-cells = <1>;
324 reg = <0x00 0x100000>;
330 reg = <0x100000 0x100000>;
335 label = "0:bootconfig";
336 reg = <0x200000 0x80000>;
341 label = "0:bootconfig_1";
342 reg = <0x280000 0x80000>;
348 reg = <0x300000 0x300000>;
354 reg = <0x600000 0x300000>;
360 reg = <0x900000 0x80000>;
365 label = "0:devcfg_1";
366 reg = <0x980000 0x80000>;
372 reg = <0xa00000 0x80000>;
378 reg = <0xa80000 0x80000>;
384 reg = <0xb00000 0x80000>;
390 reg = <0xb80000 0x80000>;
396 reg = <0xc00000 0x80000>;
402 reg = <0xc80000 0x80000>;
407 label = "0:appsblenv";
408 reg = <0xd00000 0x80000>;
413 reg = <0xd80000 0x100000>;
418 label = "0:appsbl_1";
419 reg = <0xe80000 0x100000>;
425 reg = <0xf80000 0x80000>;
431 reg = <0x1000000 0x0080000>;
437 reg = <0x1080000 0x0100000>;
442 label = "boarddata1";
443 reg = <0x1180000 0x0100000>;
446 compatible = "nvmem-cells";
447 #address-cells = <1>;
450 macaddr_dp1: macaddr@0 {
454 macaddr_dp2: macaddr@1 {
458 macaddr_dp3: macaddr@2 {
462 macaddr_dp4: macaddr@3 {
466 macaddr_dp5: macaddr@4 {
470 macaddr_dp6_syn: macaddr@5 {
477 label = "boarddata2";
478 reg = <0x1280000 0x0100000>;
484 reg = <0x1380000 0x0100000>;
490 reg = <0x1480000 0x0500000>;
496 reg = <0x1980000 0x1d00000>;
501 reg = <0x7e00000 0x80000>;
506 reg = <0xe880000 0x11780000>;
539 qcom,ath11k-calibration-variant = "Netgear-RAX120v2";