1 /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
2 * Copyright (c) 2019, Robert Marko <robimarko@gmail.com>
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 #include "qcom-ipq4019.dtsi"
19 #include <dt-bindings/gpio/gpio.h>
20 #include <dt-bindings/input/input.h>
21 #include <dt-bindings/soc/qcom,tcsr.h>
24 model = "Mikrotik Wireless Wire Dish LHGG-60ad";
25 compatible = "mikrotik,lhgg-60ad";
28 device_type = "memory";
29 reg = <0x80000000 0x10000000>;
33 stdout-path = "serial0:115200n8";
51 /delete-node/ ethernet-phy@1;
52 /delete-node/ ethernet-phy@2;
53 /delete-node/ ethernet-phy@3;
54 /delete-node/ ethernet-phy@4;
55 /delete-node/ psgmii-phy@5;
59 compatible = "qcom,qca-gcnt";
64 compatible = "qcom,tcsr";
65 reg = <0x1949000 0x100>;
66 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
70 compatible = "qcom,tcsr";
71 reg = <0x1953000 0x1000>;
72 qcom,ess-interface-select = <TCSR_ESS_PSGMII_RGMII5>;
76 compatible = "qcom,tcsr";
77 reg = <0x1957000 0x100>;
78 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
90 switch_mac_mode = <0x3>; /* mac mode for RGMII RMII */
91 switch_lan_bmp = <0x0>; /* lan port bitmap */
92 switch_wan_bmp = <0x10>; /* wan port bitmap */
97 phy-mode = "rgmii-id";
104 compatible = "gpio-keys";
108 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
109 linux,code = <KEY_RESTART>;
114 compatible = "gpio-leds";
117 label = "blue:power";
118 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
119 default-state = "keep";
124 label = "yellow:user";
125 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
129 label = "green:wlan";
130 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
134 label = "green:align-left";
135 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
139 label = "green:align-right";
140 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
144 label = "green:align-down";
145 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
149 label = "green:align-up";
150 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
156 serial_pins: serial_pinmux {
158 pins = "gpio60", "gpio61";
159 function = "blsp_uart0";
164 spi_0_pins: spi-0-pinmux {
166 function = "blsp_spi0";
167 pins = "gpio13", "gpio14", "gpio15";
185 pinctrl-0 = <&spi_0_pins>;
186 pinctrl-names = "default";
187 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
192 compatible = "jedec,spi-nor";
193 spi-max-frequency = <24000000>;
196 compatible = "fixed-partitions";
197 #address-cells = <1>;
207 compatible = "mikrotik,routerboot-partitions";
208 #address-cells = <1>;
210 label = "RouterBoot";
211 reg = <0x80000 0x80000>;
227 compatible = "mikrotik,minor";
229 reg = <0x100000 0xf00000>;
236 pinctrl-0 = <&serial_pins>;
237 pinctrl-names = "default";
247 perst-gpio = <&tlmm 42 GPIO_ACTIVE_HIGH>;
250 reg = <0x00000000 0 0 0 0>;
251 #address-cells = <3>;
255 /* wil6210 802.11ad card */
258 /* wil6210 driver has no compatible */
259 reg = <0x00010000 0 0 0 0>;
265 qcom,phy_mdio_addr = <0>;
266 qcom,poll_required = <1>;