1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 * Device Tree Source for Linksys EA8300 (Dallas)
6 * Copyright (C) 2019 Jeff Kletsky
12 #include "qcom-ipq4019.dtsi"
13 #include <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/input/input.h>
15 #include <dt-bindings/soc/qcom,tcsr.h>
18 model = "Linksys EA8300 (Dallas)";
19 compatible = "linksys,ea8300", "qcom,ipq4019";
23 led-boot = &led_wps_amber;
24 led-failsafe = &led_wps;
25 led-running = &led_linksys;
26 led-upgrade = &led_world;
27 serial0 = &blsp1_uart1;
32 compatible = "gpio-leds";
34 // Retain node names from running OEM on EA8300
36 // Front panel LEDs, top to bottom
39 label = "ea8300:amber:plug";
40 gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>;
44 label = "ea8300:amber:world";
45 gpios = <&tlmm 49 GPIO_ACTIVE_HIGH>;
49 label = "ea8300:white:wps";
50 gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
53 led_wps_amber: wps_amber {
54 label = "ea8300:amber:wps";
55 gpios = <&tlmm 22 GPIO_ACTIVE_HIGH>;
60 label = "ea8300:white:linksys";
61 gpios = <&tlmm 45 GPIO_ACTIVE_HIGH>;
64 // On back panel, above USB socket
67 label = "ea8300:green:usb";
68 gpios = <&tlmm 61 GPIO_ACTIVE_LOW>;
69 trigger-sources = <&usb3_port1>, <&usb3_port2>,
71 linux,default-trigger = "usbport";
77 compatible = "gpio-keys";
81 linux,code = <KEY_RESTART>;
82 gpios = <&tlmm 50 GPIO_ACTIVE_LOW>;
87 linux,code = <KEY_WPS_BUTTON>;
88 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
94 // OEM U-Boot provides either
95 // init=/sbin/init rootfstype=ubifs ubi.mtd=11,2048 \
96 // root=ubi0:ubifs rootwait rw
97 // or the same with ubi.mtd=13,2048
101 bootargs-append = " root=/dev/ubiblock0_0 rootfstype=squashfs ro";
106 device_type = "memory";
107 reg = <0x80000000 0x10000000>;
125 compatible = "qcom,tcsr";
126 reg = <0x1949000 0x100>;
127 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
131 compatible = "qcom,tcsr";
132 reg = <0x194b000 0x100>;
133 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
137 compatible = "qcom,tcsr";
138 reg = <0x1953000 0x1000>;
139 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
143 compatible = "qcom,tcsr";
144 reg = <0x1957000 0x100>;
145 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
152 #address-cells = <1>;
157 #trigger-source-cells = <0>;
166 #address-cells = <1>;
171 #trigger-source-cells = <0>;
176 #trigger-source-cells = <0>;
206 pinctrl-0 = <&serial_0_pins>;
207 pinctrl-names = "default";
218 pinctrl-0 = <&nand_pins>;
219 pinctrl-names = "default";
223 compatible = "fixed-partitions";
224 #address-cells = <1>;
229 reg = <0x0 0x100000>;
235 reg = <0x100000 0x100000>;
241 reg = <0x200000 0x100000>;
247 reg = <0x300000 0x80000>;
253 reg = <0x380000 0x80000>;
259 reg = <0x400000 0x80000>;
265 reg = <0x480000 0x200000>;
271 reg = <0x680000 0x80000>;
272 // writable -- U-Boot environment
277 reg = <0x700000 0x40000>;
278 // writable -- Boot counter records
283 reg = <0x740000 0x40000>;
289 reg = <0x780000 0x5800000>;
294 reg = <0xa80000 0x5500000>;
298 label = "alt_kernel";
299 reg = <0x5f80000 0x5800000>;
303 label = "alt_rootfs";
304 reg = <0x6280000 0x5500000>;
309 reg = <0xb780000 0x100000>;
315 reg = <0xb880000 0x4680000>;
325 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
326 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
329 reg = <0x00000000 0 0 0 0>;
330 #address-cells = <3>;
335 compatible = "qcom,ath10k";
336 reg = <0x00010000 0 0 0 0>;
346 serial_0_pins: serial0-pinmux {
347 pins = "gpio16", "gpio17";
348 function = "blsp_uart0";
352 nand_pins: nand_pins {
354 pins = "gpio53", "gpio58", "gpio59";
359 // gpio61 controls led_usb
362 pins = "gpio55", "gpio56", "gpio57",
363 "gpio60", "gpio62", "gpio63",
364 "gpio64", "gpio65", "gpio66",
365 "gpio67", "gpio68", "gpio69";
386 qcom,ath10k-calibration-variant = "linksys-ea8300-fcc";
391 ieee80211-freq-limit = <5170000 5330000>;
392 qcom,ath10k-calibration-variant = "linksys-ea8300-fcc";
397 ieee80211-freq-limit = <5490000 5835000>;
398 qcom,ath10k-calibration-variant = "linksys-ea8300-fcc";