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 = <0x3e>; /* lan port bitmap */
199 switch_wan_bmp = <0x40>; /* wan port bitmap */
200 switch_mac_mode = <0x0>; /* mac mode for uniphy instance0*/
201 switch_mac_mode1 = <0xff>; /* mac mode for uniphy instance1*/
202 switch_mac_mode2 = <0xd>; /* mac mode for uniphy instance2*/
203 bm_tick_mode = <0>; /* bm tick mode */
204 tm_tick_mode = <0>; /* tm tick mode */
230 compatible = "ethernet-phy-ieee802.3-c45";
231 ethernet-phy-ieee802.3-c45;
242 phy-handle = <&qca8075_0>;
244 nvmem-cells = <&macaddr_dp1>;
245 nvmem-cell-names = "mac-address";
250 phy-handle = <&qca8075_1>;
252 nvmem-cells = <&macaddr_dp2>;
253 nvmem-cell-names = "mac-address";
258 phy-handle = <&qca8075_2>;
260 nvmem-cells = <&macaddr_dp3>;
261 nvmem-cell-names = "mac-address";
266 phy-handle = <&qca8075_3>;
268 nvmem-cells = <&macaddr_dp4>;
269 nvmem-cell-names = "mac-address";
274 phy-handle = <&qca8075_4>;
276 nvmem-cells = <&macaddr_dp5>;
277 nvmem-cell-names = "mac-address";
282 phy-handle = <&aqr111b0>;
284 nvmem-cells = <&macaddr_dp6_syn>;
285 nvmem-cell-names = "mac-address";
296 compatible = "gmt,g763";
298 clocks =<&sleep_clk>;
314 nand-ecc-strength = <4>;
315 nand-ecc-step-size = <512>;
316 nand-bus-width = <8>;
319 compatible = "fixed-partitions";
320 #address-cells = <1>;
325 reg = <0x00 0x100000>;
331 reg = <0x100000 0x100000>;
336 label = "0:bootconfig";
337 reg = <0x200000 0x80000>;
342 label = "0:bootconfig_1";
343 reg = <0x280000 0x80000>;
349 reg = <0x300000 0x300000>;
355 reg = <0x600000 0x300000>;
361 reg = <0x900000 0x80000>;
366 label = "0:devcfg_1";
367 reg = <0x980000 0x80000>;
373 reg = <0xa00000 0x80000>;
379 reg = <0xa80000 0x80000>;
385 reg = <0xb00000 0x80000>;
391 reg = <0xb80000 0x80000>;
397 reg = <0xc00000 0x80000>;
403 reg = <0xc80000 0x80000>;
408 label = "0:appsblenv";
409 reg = <0xd00000 0x80000>;
414 reg = <0xd80000 0x100000>;
419 label = "0:appsbl_1";
420 reg = <0xe80000 0x100000>;
426 reg = <0xf80000 0x80000>;
432 reg = <0x1000000 0x0080000>;
438 reg = <0x1080000 0x0100000>;
443 label = "boarddata1";
444 reg = <0x1180000 0x0100000>;
447 compatible = "nvmem-cells";
448 #address-cells = <1>;
451 macaddr_dp1: macaddr@0 {
455 macaddr_dp2: macaddr@1 {
459 macaddr_dp3: macaddr@2 {
463 macaddr_dp4: macaddr@3 {
467 macaddr_dp5: macaddr@4 {
471 macaddr_dp6_syn: macaddr@5 {
478 label = "boarddata2";
479 reg = <0x1280000 0x0100000>;
485 reg = <0x1380000 0x0100000>;
491 reg = <0x1480000 0x0500000>;
497 reg = <0x1980000 0x1d00000>;
502 reg = <0x7e00000 0x80000>;
507 reg = <0xe880000 0x11780000>;
540 qcom,ath11k-calibration-variant = "Netgear-RAX120v2";