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";
53 compatible = "qcom,qca-gcnt";
58 compatible = "qcom,tcsr";
59 reg = <0x1949000 0x100>;
60 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
64 compatible = "qcom,tcsr";
65 reg = <0x1953000 0x1000>;
66 qcom,ess-interface-select = <TCSR_ESS_PSGMII_RGMII5>;
70 compatible = "qcom,tcsr";
71 reg = <0x1957000 0x100>;
72 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
85 compatible = "gpio-keys";
89 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
90 linux,code = <KEY_RESTART>;
95 compatible = "gpio-leds";
99 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
100 default-state = "keep";
105 label = "yellow:user";
106 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
110 label = "green:wlan";
111 gpios = <&tlmm 58 GPIO_ACTIVE_HIGH>;
115 label = "green:align-left";
116 gpios = <&tlmm 1 GPIO_ACTIVE_HIGH>;
120 label = "green:align-right";
121 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
125 label = "green:align-down";
126 gpios = <&tlmm 4 GPIO_ACTIVE_HIGH>;
130 label = "green:align-up";
131 gpios = <&tlmm 5 GPIO_ACTIVE_HIGH>;
137 serial_pins: serial_pinmux {
139 pins = "gpio60", "gpio61";
140 function = "blsp_uart0";
145 spi_0_pins: spi-0-pinmux {
147 function = "blsp_spi0";
148 pins = "gpio13", "gpio14", "gpio15";
166 pinctrl-0 = <&spi_0_pins>;
167 pinctrl-names = "default";
168 cs-gpios = <&tlmm 12 GPIO_ACTIVE_HIGH>;
173 compatible = "jedec,spi-nor";
174 spi-max-frequency = <24000000>;
177 compatible = "fixed-partitions";
178 #address-cells = <1>;
188 compatible = "mikrotik,routerboot-partitions";
189 #address-cells = <1>;
191 label = "RouterBoot";
192 reg = <0x80000 0x80000>;
208 compatible = "mikrotik,minor";
210 reg = <0x100000 0xf00000>;
217 pinctrl-0 = <&serial_pins>;
218 pinctrl-names = "default";
228 perst-gpio = <&tlmm 42 GPIO_ACTIVE_HIGH>;
231 reg = <0x00000000 0 0 0 0>;
232 #address-cells = <3>;
236 /* wil6210 802.11ad card */
239 /* wil6210 driver has no compatible */
240 reg = <0x00010000 0 0 0 0>;
272 /delete-property/ psgmii-ethphy;
279 phy-handle = <ðphy0>;
280 phy-mode = "rgmii-id";