2 * Device Tree Source for Meraki MR33 (Stinkbug)
4 * Copyright (C) 2017 Chris Blake <chrisrblake93@gmail.com>
5 * Copyright (C) 2017 Christian Lamparter <chunkeey@googlemail.com>
7 * Based on Cisco Meraki DTS from GPL release r25-linux-3.14-20170427
9 * This file is licensed under the terms of the GNU General Public
10 * License version 2. This program is licensed "as is" without
11 * any warranty of any kind, whether express or implied.
14 #include "qcom-ipq4019.dtsi"
15 #include "qcom-ipq4019-bus.dtsi"
16 #include <dt-bindings/gpio/gpio.h>
17 #include <dt-bindings/input/input.h>
18 #include <dt-bindings/soc/qcom,tcsr.h>
21 model = "Meraki MR33 Access Point";
22 compatible = "meraki,mr33", "qcom,ipq4019";
25 led-boot = &status_green;
26 led-failsafe = &status_red;
27 led-running = &status_green;
28 led-upgrade = &power_orange;
31 /* Do we really need this defined? */
33 device_type = "memory";
34 reg = <0x80000000 0x10000000>;
40 pinctrl-0 = <&mdio_pins>;
41 pinctrl-names = "default";
42 /delete-node/ ethernet-phy@0;
43 /delete-node/ ethernet-phy@2;
44 /delete-node/ ethernet-phy@3;
45 /delete-node/ ethernet-phy@4;
48 /* It is a 56-bit counter that supplies the count to the ARM arch
49 timers and without upstream driver */
51 compatible = "qcom,qca-gcnt";
56 compatible = "qcom,tcsr";
57 reg = <0x1953000 0x1000>;
58 qcom,ess-interface-select = <TCSR_ESS_PSGMII_RGMII5>;
62 compatible = "qcom,tcsr";
63 reg = <0x1949000 0x100>;
64 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
68 compatible = "qcom,tcsr";
69 reg = <0x1957000 0x100>;
70 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
74 pinctrl-0 = <&serial_0_pins>;
75 pinctrl-names = "default";
80 pinctrl-0 = <&serial_1_pins>;
81 pinctrl-names = "default";
85 compatible = "ti,cc2650";
86 enable-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
99 switch_mac_mode = <0x3>; /* mac mode for RGMII RMII */
100 switch_lan_bmp = <0x0>; /* lan port bitmap */
101 switch_wan_bmp = <0x10>; /* wan port bitmap */
107 phy-mode = "rgmii-rxid";
113 compatible = "gpio-keys";
117 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
118 linux,code = <KEY_RESTART>;
123 compatible = "gpio-leds";
125 power_orange: power {
126 label = "mr33:orange:power";
127 gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
142 qcom,phy_mdio_addr = <1>;
143 qcom,poll_required = <1>;
148 pinctrl-0 = <&i2c_0_pins>;
149 pinctrl-names = "default";
152 compatible = "atmel,24c64";
155 read-only; /* This holds our MAC & Meraki board-data */
160 pinctrl-0 = <&i2c_1_pins>;
161 pinctrl-names = "default";
165 enable-gpio = <&tlmm 48 GPIO_ACTIVE_HIGH>;
166 compatible = "ti,lp5562";
167 clock-mode = /bits/8 <2>;
172 chan-name = "mr33:red:status";
173 led-cur = /bits/ 8 <0x20>;
174 max-cur = /bits/ 8 <0x60>;
177 status_green: chan1 {
178 chan-name = "mr33:green:status";
179 led-cur = /bits/ 8 <0x20>;
180 max-cur = /bits/ 8 <0x60>;
184 chan-name = "mr33:blue:status";
185 led-cur = /bits/ 8 <0x20>;
186 max-cur = /bits/ 8 <0x60>;
190 chan-name = "mr33:white:status";
191 led-cur = /bits/ 8 <0x20>;
192 max-cur = /bits/ 8 <0x60>;
198 pinctrl-0 = <&nand_pins>;
199 pinctrl-names = "default";
204 compatible = "fixed-partitions";
205 #address-cells = <1>;
210 reg = <0x000000000000 0x000000100000>;
215 reg = <0x000000100000 0x000000100000>;
219 label = "bootconfig";
220 reg = <0x000000200000 0x000000100000>;
225 reg = <0x000000300000 0x000000100000>;
230 reg = <0x000000400000 0x000000100000>;
235 reg = <0x000000500000 0x000000080000>;
240 reg = <0x000000580000 0x000000080000>;
245 reg = <0x000000600000 0x000000080000>;
250 reg = <0x000000700000 0x000000200000>;
254 label = "u-boot-backup";
255 reg = <0x000000900000 0x000000200000>;
260 reg = <0x000000b00000 0x000000080000>;
265 reg = <0x000000c00000 0x000007000000>;
273 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
274 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
283 * GPIO43 should be 0/1 whenever the unit is
284 * powered through PoE or AC-Adapter.
285 * That said, playing with this seems to
289 mdio_pins: mdio_pinmux {
302 serial_0_pins: serial_pinmux {
304 pins = "gpio16", "gpio17";
305 function = "blsp_uart0";
310 serial_1_pins: serial1_pinmux {
312 /* We use the i2c-0 pins for serial_1 */
313 pins = "gpio8", "gpio9";
314 function = "blsp_uart1";
319 i2c_0_pins: i2c_0_pinmux {
321 function = "blsp_i2c0";
322 pins = "gpio20", "gpio21";
325 pins = "gpio20", "gpio21";
326 drive-strength = <16>;
331 i2c_1_pins: i2c_1_pinmux {
333 function = "blsp_i2c1";
334 pins = "gpio34", "gpio35";
337 pins = "gpio34", "gpio35";
338 drive-strength = <16>;
343 nand_pins: nand_pins {
345 * There are 18 pins. 15 pins are common between LCD and NAND.
346 * The QPIC controller arbitrates between LCD and NAND. Of the
347 * remaining 4, 2 are for NAND and 2 are for LCD exclusively.
349 * The meraki source hints that the bluetooth module claims
350 * pin 52 as well. But sadly, there's no data whenever this
351 * is a NAND or LCD exclusive pin or not.
355 pins = "gpio52", "gpio53", "gpio58",
362 pins = "gpio54", "gpio55", "gpio56",
363 "gpio57", "gpio60", "gpio61",
364 "gpio62", "gpio63", "gpio64",
365 "gpio65", "gpio66", "gpio67",
375 qcom,ath10k-calibration-variant = "Meraki-MR33";
380 qcom,ath10k-calibration-variant = "Meraki-MR33";