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_PORT6)>; /* lan port bitmap */
199 switch_wan_bmp = <ESS_PORT5>; /* 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*/
227 compatible = "ethernet-phy-ieee802.3-c45";
228 ethernet-phy-ieee802.3-c45;
239 phy-handle = <&qca8075_0>;
241 nvmem-cells = <&macaddr_dp1>;
242 nvmem-cell-names = "mac-address";
247 phy-handle = <&qca8075_1>;
249 nvmem-cells = <&macaddr_dp2>;
250 nvmem-cell-names = "mac-address";
255 phy-handle = <&qca8075_2>;
257 nvmem-cells = <&macaddr_dp3>;
258 nvmem-cell-names = "mac-address";
263 phy-handle = <&qca8075_3>;
265 nvmem-cells = <&macaddr_dp4>;
266 nvmem-cell-names = "mac-address";
271 phy-handle = <&qca8075_4>;
273 nvmem-cells = <&macaddr_dp5>;
274 nvmem-cell-names = "mac-address";
279 phy-handle = <&aqr111b0>;
281 nvmem-cells = <&macaddr_dp6_syn>;
282 nvmem-cell-names = "mac-address";
293 compatible = "gmt,g763";
295 clocks =<&sleep_clk>;
311 nand-ecc-strength = <4>;
312 nand-ecc-step-size = <512>;
313 nand-bus-width = <8>;
316 compatible = "fixed-partitions";
317 #address-cells = <1>;
322 reg = <0x00 0x100000>;
328 reg = <0x100000 0x100000>;
333 label = "0:bootconfig";
334 reg = <0x200000 0x80000>;
339 label = "0:bootconfig_1";
340 reg = <0x280000 0x80000>;
346 reg = <0x300000 0x300000>;
352 reg = <0x600000 0x300000>;
358 reg = <0x900000 0x80000>;
363 label = "0:devcfg_1";
364 reg = <0x980000 0x80000>;
370 reg = <0xa00000 0x80000>;
376 reg = <0xa80000 0x80000>;
382 reg = <0xb00000 0x80000>;
388 reg = <0xb80000 0x80000>;
394 reg = <0xc00000 0x80000>;
400 reg = <0xc80000 0x80000>;
405 label = "0:appsblenv";
406 reg = <0xd00000 0x80000>;
411 reg = <0xd80000 0x100000>;
416 label = "0:appsbl_1";
417 reg = <0xe80000 0x100000>;
423 reg = <0xf80000 0x80000>;
429 reg = <0x1000000 0x0080000>;
435 reg = <0x1080000 0x0100000>;
440 label = "boarddata1";
441 reg = <0x1180000 0x0100000>;
445 compatible = "fixed-layout";
446 #address-cells = <1>;
449 macaddr_dp1: macaddr@0 {
453 macaddr_dp2: macaddr@1 {
457 macaddr_dp3: macaddr@2 {
461 macaddr_dp4: macaddr@3 {
465 macaddr_dp5: macaddr@4 {
469 macaddr_dp6_syn: macaddr@5 {
476 label = "boarddata2";
477 reg = <0x1280000 0x0100000>;
483 reg = <0x1380000 0x0100000>;
489 reg = <0x1480000 0x0500000>;
495 reg = <0x1980000 0x1d00000>;
500 reg = <0x7e00000 0x80000>;
505 reg = <0xe880000 0x11780000>;
538 qcom,ath11k-calibration-variant = "Netgear-RAX120v2";