1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/soc/qcom,tcsr.h>
7 #include <dt-bindings/leds/common.h>
10 model = "Netgear LBR20";
11 compatible = "netgear,lbr20";
14 bootargs-append = "ubi.mtd=ubi root=/dev/ubiblock0_0";
18 led-boot = &led_backlight_white;
19 led-failsafe = &led_status_green;
20 led-running = &led_status_green;
21 led-upgrade = &led_status_red;
22 label-mac-device = &gmac;
26 compatible = "gpio-keys";
30 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
36 gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_WPS_BUTTON>;
42 compatible = "gpio-leds";
44 led_status_green: led-status-green {
45 function = LED_FUNCTION_STATUS;
46 color = <LED_COLOR_ID_GREEN>;
47 gpios = <&tlmm 22 GPIO_ACTIVE_LOW>;
48 default-state = "keep";
51 led_status_red: led-status-red {
52 function = LED_FUNCTION_STATUS;
53 color = <LED_COLOR_ID_RED>;
54 gpios = <&tlmm 23 GPIO_ACTIVE_LOW>;
59 compatible = "gpio-export";
63 gpio-export,name = "lte_rst";
64 gpio-export,output = <1>;
65 gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>;
69 gpio-export,name = "lte_pwrkey";
70 gpio-export,output = <1>;
71 gpios = <&tlmm 29 GPIO_ACTIVE_HIGH>;
75 gpio-export,name = "lte_usb_boot";
76 gpio-export,output = <0>;
77 gpios = <&tlmm 30 GPIO_ACTIVE_HIGH>;
81 gpio-export,name = "lte_pwm";
82 gpio-export,output = <1>;
83 gpios = <&tlmm 31 GPIO_ACTIVE_HIGH>;
91 compatible = "qcom,tcsr";
92 reg = <0x1949000 0x100>;
93 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
99 compatible = "qcom,tcsr";
100 reg = <0x194b000 0x100>;
101 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
105 compatible = "qcom,tcsr";
106 reg = <0x1953000 0x1000>;
107 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
111 compatible = "qcom,tcsr";
112 reg = <0x1957000 0x100>;
113 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
125 pinctrl-0 = <&mdio_pins>;
126 pinctrl-names = "default";
166 mdio_pins: mdio-pinmux {
180 serial_pins: serial-pinmux {
181 function = "blsp_uart0";
182 pins = "gpio16", "gpio17";
186 nand_pins: nand-pins {
188 pins = "gpio52", "gpio53", "gpio58", "gpio59";
194 pins = "gpio54", "gpio55", "gpio56",
195 "gpio57", "gpio60", "gpio61",
196 "gpio62", "gpio63", "gpio64",
197 "gpio65", "gpio66", "gpio67",
206 pinctrl-0 = <&nand_pins>;
207 pinctrl-names = "default";
212 compatible = "fixed-partitions";
213 #address-cells = <1>;
218 reg = <0x00000000 0x00100000>;
224 reg = <0x00100000 0x00100000>;
229 label = "0:BOOTCONFIG";
230 reg = <0x00200000 0x00100000>;
236 reg = <0x00300000 0x00100000>;
242 reg = <0x00400000 0x00100000>;
248 reg = <0x00500000 0x00080000>;
254 reg = <0x00580000 0x00080000>;
259 label = "0:BOOTCONFIG1";
260 reg = <0x00600000 0x00080000>;
265 label = "0:APPSBLENV";
266 reg = <0x00680000 0x00080000>;
271 reg = <0x00700000 0x00200000>;
276 label = "0:APPSBL_1";
277 reg = <0x00900000 0x00200000>;
283 reg = <0x00b00000 0x00080000>;
287 compatible = "fixed-layout";
288 #address-cells = <1>;
291 precal_art_1000: precal@1000 {
292 reg = <0x1000 0x2f20>;
295 precal_art_5000: precal@5000 {
296 reg = <0x5000 0x2f20>;
299 precal_art_9000: precal@9000 {
300 reg = <0x9000 0x2f20>;
308 reg = <0x00b80000 0x00080000>;
314 reg = <0x00c00000 0x00100000>;
319 label = "boarddata1";
320 reg = <0x00d00000 0x00080000>;
324 compatible = "fixed-layout";
325 #address-cells = <1>;
328 mac_address_lan: macaddr@0 {
329 compatible = "mac-base";
331 #nvmem-cell-cells = <1>;
334 mac_address_wan: macaddr@6 {
335 compatible = "mac-base";
337 #nvmem-cell-cells = <1>;
340 mac_address_wlan_5g: macaddr@c {
341 compatible = "mac-base";
343 #nvmem-cell-cells = <1>;
346 mac_address_wlan_2nd5g: macaddr@12 {
347 compatible = "mac-base";
349 #nvmem-cell-cells = <1>;
356 label = "boarddata2";
357 reg = <0x00d80000 0x00040000>;
363 reg = <0x00dc0000 0x00100000>;
368 label = "boarddata1.bak";
369 reg = <0x00ec0000 0x00080000>;
374 label = "boarddata2.bak";
375 reg = <0x00f40000 0x00040000>;
381 reg = <0x00f80000 0x00300000>;
387 reg = <0x01280000 0x00080000>;
393 reg = <0x01300000 0x09300000>;
398 reg = <0x0a600000 0x00700000>;
403 reg = <0x0ad00000 0x05300000>;
414 #address-cells = <1>;
416 compatible = "ti,tlc59108"; /* really is tlc59208f */
419 led_backlight_green: led-backlight-green {
420 function = LED_FUNCTION_BACKLIGHT;
421 color = <LED_COLOR_ID_GREEN>;
423 linux,default-trigger = "default-off";
426 led_backlight_red: led-backlight-red {
427 function = LED_FUNCTION_BACKLIGHT;
428 color = <LED_COLOR_ID_RED>;
430 linux,default-trigger = "default-off";
433 led_backlight_blue: led-backlight-blue {
434 function = LED_FUNCTION_BACKLIGHT;
435 color = <LED_COLOR_ID_BLUE>;
437 linux,default-trigger = "default-off";
440 led_backlight_white: led-backlight-white {
441 function = LED_FUNCTION_BACKLIGHT;
442 color = <LED_COLOR_ID_WHITE>;
444 linux,default-trigger = "default-off";
452 pinctrl-0 = <&serial_pins>;
453 pinctrl-names = "default";
462 nvmem-cell-names = "mac-address";
463 nvmem-cells = <&mac_address_lan 0>;
482 perst-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
483 wake-gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
486 reg = <0x00000000 0 0 0 0>;
487 #address-cells = <3>;
492 compatible = "qcom,ath10k";
494 reg = <0x00010000 0 0 0 0>;
495 ieee80211-freq-limit = <5170000 5350000>;
496 nvmem-cell-names = "pre-calibration", "mac-address";
497 nvmem-cells = <&precal_art_9000>, <&mac_address_wlan_2nd5g 0>;
498 qcom,ath10k-calibration-variant = "Netgear-LBR20";
505 nvmem-cell-names = "pre-calibration", "mac-address";
506 nvmem-cells = <&precal_art_1000>, <&mac_address_lan 0>;
507 qcom,ath10k-calibration-variant = "Netgear-LBR20";
512 ieee80211-freq-limit = <5470000 5815000>;
513 nvmem-cell-names = "pre-calibration", "mac-address";
514 nvmem-cells = <&precal_art_5000>, <&mac_address_wlan_5g 0>;
515 qcom,ath10k-calibration-variant = "Netgear-LBR20";