1 // SPDX-License-Identifier: GPL-2.0-only
3 * Device Tree Source for Meraki MR33 (Stinkbug)
5 * Copyright (C) 2017 Chris Blake <chrisrblake93@gmail.com>
6 * Copyright (C) 2017 Christian Lamparter <chunkeey@googlemail.com>
8 * Based on Cisco Meraki DTS from GPL release r25-linux-3.14-20170427
10 * This file is licensed under the terms of the GNU General Public
11 * License version 2. This program is licensed "as is" without
12 * any warranty of any kind, whether express or implied.
15 #include "qcom-ipq4019.dtsi"
16 #include <dt-bindings/gpio/gpio.h>
17 #include <dt-bindings/input/input.h>
18 #include <dt-bindings/soc/qcom,tcsr.h>
19 #include <dt-bindings/leds/common.h>
22 model = "Meraki MR33 Access Point";
23 compatible = "meraki,mr33";
26 led-boot = &status_green;
27 led-failsafe = &status_red;
28 led-running = &status_green;
29 led-upgrade = &power_orange;
32 /* Do we really need this defined? */
34 device_type = "memory";
35 reg = <0x80000000 0x10000000>;
45 pinctrl-0 = <&mdio_pins>;
46 pinctrl-names = "default";
49 /* It is a 56-bit counter that supplies the count to the ARM arch
50 timers and without upstream driver */
52 compatible = "qcom,qca-gcnt";
57 compatible = "qcom,tcsr";
58 reg = <0x1953000 0x1000>;
59 qcom,ess-interface-select = <TCSR_ESS_PSGMII_RGMII5>;
63 compatible = "qcom,tcsr";
64 reg = <0x1949000 0x100>;
65 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
69 compatible = "qcom,tcsr";
70 reg = <0x1957000 0x100>;
71 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
75 pinctrl-0 = <&serial_1_pins>;
76 pinctrl-names = "default";
80 compatible = "ti,cc2650";
81 enable-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
94 switch_mac_mode = <0x3>; /* mac mode for RGMII RMII */
95 switch_lan_bmp = <0x0>; /* lan port bitmap */
96 switch_wan_bmp = <0x10>; /* wan port bitmap */
102 phy-mode = "rgmii-rxid";
108 compatible = "gpio-keys";
112 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
113 linux,code = <KEY_RESTART>;
118 compatible = "gpio-leds";
120 power_orange: power {
121 label = "orange:power";
122 gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
133 pinctrl-0 = <&serial_0_pins>;
134 pinctrl-names = "default";
143 qcom,phy_mdio_addr = <1>;
144 qcom,poll_required = <1>;
149 pinctrl-0 = <&i2c_0_pins>;
150 pinctrl-names = "default";
153 compatible = "atmel,24c64";
156 read-only; /* This holds our MAC & Meraki board-data */
161 pinctrl-0 = <&i2c_1_pins>;
162 pinctrl-names = "default";
166 compatible = "ti,lp5562";
168 clock-mode = /bits/8 <2>;
169 enable-gpio = <&tlmm 48 GPIO_ACTIVE_HIGH>;
170 #address-cells = <1>;
175 chan-name = "red:status";
176 led-cur = /bits/ 8 <0x20>;
177 max-cur = /bits/ 8 <0x60>;
179 color = <LED_COLOR_ID_RED>;
182 status_green: chan@1 {
183 chan-name = "green:status";
184 led-cur = /bits/ 8 <0x20>;
185 max-cur = /bits/ 8 <0x60>;
187 color = <LED_COLOR_ID_GREEN>;
191 chan-name = "blue:status";
192 led-cur = /bits/ 8 <0x20>;
193 max-cur = /bits/ 8 <0x60>;
195 color = <LED_COLOR_ID_BLUE>;
199 chan-name = "white:status";
200 led-cur = /bits/ 8 <0x20>;
201 max-cur = /bits/ 8 <0x60>;
203 color = <LED_COLOR_ID_WHITE>;
209 pinctrl-0 = <&nand_pins>;
210 pinctrl-names = "default";
215 compatible = "fixed-partitions";
216 #address-cells = <1>;
221 reg = <0x00000000 0x00100000>;
226 reg = <0x00100000 0x00100000>;
230 label = "bootconfig";
231 reg = <0x00200000 0x00100000>;
236 reg = <0x00300000 0x00100000>;
241 reg = <0x00400000 0x00100000>;
246 reg = <0x00500000 0x00080000>;
251 reg = <0x00580000 0x00080000>;
256 reg = <0x00600000 0x00080000>;
261 reg = <0x00700000 0x00200000>;
265 label = "u-boot-backup";
266 reg = <0x00900000 0x00200000>;
271 reg = <0x00b00000 0x00080000>;
276 reg = <0x00c00000 0x07000000>;
278 * Do not try to allocate the remaining
279 * 4 MiB to this ubi partition. It will
280 * confuse the u-boot and it might not
281 * find the kernel partition anymore.
290 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
291 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
294 reg = <0x00000000 0 0 0 0>;
295 #address-cells = <3>;
300 compatible = "qcom,ath10k";
302 reg = <0x00010000 0 0 0 0>;
313 * GPIO43 should be 0/1 whenever the unit is
314 * powered through PoE or AC-Adapter.
315 * That said, playing with this seems to
319 mdio_pins: mdio_pinmux {
332 serial_0_pins: serial_pinmux {
334 pins = "gpio16", "gpio17";
335 function = "blsp_uart0";
340 serial_1_pins: serial1_pinmux {
342 /* We use the i2c-0 pins for serial_1 */
343 pins = "gpio8", "gpio9";
344 function = "blsp_uart1";
349 i2c_0_pins: i2c_0_pinmux {
351 function = "blsp_i2c0";
352 pins = "gpio20", "gpio21";
355 pins = "gpio20", "gpio21";
356 drive-strength = <16>;
361 i2c_1_pins: i2c_1_pinmux {
363 function = "blsp_i2c1";
364 pins = "gpio34", "gpio35";
367 pins = "gpio34", "gpio35";
368 drive-strength = <16>;
373 nand_pins: nand_pins {
375 * There are 18 pins. 15 pins are common between LCD and NAND.
376 * The QPIC controller arbitrates between LCD and NAND. Of the
377 * remaining 4, 2 are for NAND and 2 are for LCD exclusively.
379 * The meraki source hints that the bluetooth module claims
380 * pin 52 as well. But sadly, there's no data whenever this
381 * is a NAND or LCD exclusive pin or not.
385 pins = "gpio52", "gpio53", "gpio58",
392 pins = "gpio54", "gpio55", "gpio56",
393 "gpio57", "gpio60", "gpio61",
394 "gpio62", "gpio63", "gpio64",
395 "gpio65", "gpio66", "gpio67",
405 qcom,ath10k-calibration-variant = "Meraki-MR33";
410 qcom,ath10k-calibration-variant = "Meraki-MR33";