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 gpios = <&led_gpio 0 GPIO_ACTIVE_LOW>;
76 color = <LED_COLOR_ID_WHITE>;
80 gpios = <&led_gpio 1 GPIO_ACTIVE_LOW>;
81 color = <LED_COLOR_ID_WHITE>;
82 linux,default-trigger = "phy1radio";
86 gpios = <&led_gpio 2 GPIO_ACTIVE_LOW>;
87 color = <LED_COLOR_ID_WHITE>;
88 linux,default-trigger = "phy0radio";
92 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
93 color = <LED_COLOR_ID_WHITE>;
97 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
98 color = <LED_COLOR_ID_WHITE>;
101 led_wan_white: wan-white {
102 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
103 color = <LED_COLOR_ID_WHITE>;
107 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
108 color = <LED_COLOR_ID_GREEN>;
112 gpios = <&led_gpio 10 GPIO_ACTIVE_LOW>;
113 color = <LED_COLOR_ID_RED>;
117 gpios = <&led_gpio 11 GPIO_ACTIVE_LOW>;
118 color = <LED_COLOR_ID_WHITE>;
122 gpios = <&tlmm 40 GPIO_ACTIVE_HIGH>;
123 color = <LED_COLOR_ID_WHITE>;
129 mdio_pins: mdio-pins {
133 drive-strength = <8>;
140 drive-strength = <8>;
149 pinctrl-0 = <&mdio_pins>;
150 pinctrl-names = "default";
151 reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>;
153 ethernet-phy-package@0 {
154 #address-cells = <1>;
158 compatible = "qcom,qca8075-package";
160 qca8075_0: ethernet-phy@0 {
161 compatible = "ethernet-phy-ieee802.3-c22";
165 qca8075_1: ethernet-phy@1 {
166 compatible = "ethernet-phy-ieee802.3-c22";
170 qca8075_2: ethernet-phy@2 {
171 compatible = "ethernet-phy-ieee802.3-c22";
175 qca8075_3: ethernet-phy@3 {
176 compatible = "ethernet-phy-ieee802.3-c22";
180 qca8075_4: ethernet-phy@4 {
181 compatible = "ethernet-phy-ieee802.3-c22";
186 aqr111b0: ethernet-phy@7 {
187 compatible ="ethernet-phy-ieee802.3-c45";
189 reset-gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
196 switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4 | ESS_PORT6)>; /* lan port bitmap */
197 switch_wan_bmp = <ESS_PORT5>; /* wan port bitmap */
198 switch_mac_mode = <MAC_MODE_PSGMII>; /* mac mode for uniphy instance0*/
199 switch_mac_mode2 = <MAC_MODE_USXGMII>; /* mac mode for uniphy instance2*/
225 compatible = "ethernet-phy-ieee802.3-c45";
226 ethernet-phy-ieee802.3-c45;
237 phy-handle = <&qca8075_0>;
239 nvmem-cells = <&macaddr_dp1>;
240 nvmem-cell-names = "mac-address";
245 phy-handle = <&qca8075_1>;
247 nvmem-cells = <&macaddr_dp2>;
248 nvmem-cell-names = "mac-address";
253 phy-handle = <&qca8075_2>;
255 nvmem-cells = <&macaddr_dp3>;
256 nvmem-cell-names = "mac-address";
261 phy-handle = <&qca8075_3>;
263 nvmem-cells = <&macaddr_dp4>;
264 nvmem-cell-names = "mac-address";
269 phy-handle = <&qca8075_4>;
271 nvmem-cells = <&macaddr_dp5>;
272 nvmem-cell-names = "mac-address";
277 phy-mode = "usxgmii";
278 phy-handle = <&aqr111b0>;
280 nvmem-cells = <&macaddr_dp6_syn>;
281 nvmem-cell-names = "mac-address";
292 compatible = "gmt,g763";
294 clocks =<&sleep_clk>;
310 nand-ecc-strength = <4>;
311 nand-ecc-step-size = <512>;
312 nand-bus-width = <8>;
315 compatible = "fixed-partitions";
316 #address-cells = <1>;
321 reg = <0x00 0x100000>;
327 reg = <0x100000 0x100000>;
332 label = "0:bootconfig";
333 reg = <0x200000 0x80000>;
338 label = "0:bootconfig_1";
339 reg = <0x280000 0x80000>;
345 reg = <0x300000 0x300000>;
351 reg = <0x600000 0x300000>;
357 reg = <0x900000 0x80000>;
362 label = "0:devcfg_1";
363 reg = <0x980000 0x80000>;
369 reg = <0xa00000 0x80000>;
375 reg = <0xa80000 0x80000>;
381 reg = <0xb00000 0x80000>;
387 reg = <0xb80000 0x80000>;
393 reg = <0xc00000 0x80000>;
399 reg = <0xc80000 0x80000>;
404 label = "0:appsblenv";
405 reg = <0xd00000 0x80000>;
410 reg = <0xd80000 0x100000>;
415 label = "0:appsbl_1";
416 reg = <0xe80000 0x100000>;
422 reg = <0xf80000 0x80000>;
428 reg = <0x1000000 0x0080000>;
434 reg = <0x1080000 0x0100000>;
439 label = "boarddata1";
440 reg = <0x1180000 0x0100000>;
444 compatible = "fixed-layout";
445 #address-cells = <1>;
448 macaddr_dp1: macaddr@0 {
452 macaddr_dp2: macaddr@1 {
456 macaddr_dp3: macaddr@2 {
460 macaddr_dp4: macaddr@3 {
464 macaddr_dp5: macaddr@4 {
468 macaddr_dp6_syn: macaddr@5 {
475 label = "boarddata2";
476 reg = <0x1280000 0x0100000>;
482 reg = <0x1380000 0x0100000>;
488 reg = <0x1480000 0x0500000>;
494 reg = <0x1980000 0x1d00000>;
499 reg = <0x7e00000 0x80000>;
504 reg = <0xe880000 0x11780000>;
537 qcom,ath11k-calibration-variant = "Netgear-RAX120v2";