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 <dt-bindings/gpio/gpio.h>
16 #include <dt-bindings/input/input.h>
17 #include <dt-bindings/soc/qcom,tcsr.h>
20 model = "Meraki MR33 Access Point";
21 compatible = "meraki,mr33", "qcom,ipq4019";
24 led-boot = &status_green;
25 led-failsafe = &status_red;
26 led-running = &status_green;
27 led-upgrade = &power_orange;
30 /* Do we really need this defined? */
32 device_type = "memory";
33 reg = <0x80000000 0x10000000>;
39 pinctrl-0 = <&mdio_pins>;
40 pinctrl-names = "default";
41 /delete-node/ ethernet-phy@0;
42 /delete-node/ ethernet-phy@2;
43 /delete-node/ ethernet-phy@3;
44 /delete-node/ ethernet-phy@4;
47 /* It is a 56-bit counter that supplies the count to the ARM arch
48 timers and without upstream driver */
50 compatible = "qcom,qca-gcnt";
55 compatible = "qcom,tcsr";
56 reg = <0x1953000 0x1000>;
57 qcom,ess-interface-select = <TCSR_ESS_PSGMII_RGMII5>;
61 compatible = "qcom,tcsr";
62 reg = <0x1949000 0x100>;
63 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
67 compatible = "qcom,tcsr";
68 reg = <0x1957000 0x100>;
69 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
73 pinctrl-0 = <&serial_0_pins>;
74 pinctrl-names = "default";
79 pinctrl-0 = <&serial_1_pins>;
80 pinctrl-names = "default";
84 compatible = "ti,cc2650";
85 enable-gpios = <&tlmm 12 GPIO_ACTIVE_LOW>;
98 switch_mac_mode = <0x3>; /* mac mode for RGMII RMII */
99 switch_lan_bmp = <0x0>; /* lan port bitmap */
100 switch_wan_bmp = <0x10>; /* wan port bitmap */
106 phy-mode = "rgmii-rxid";
112 compatible = "gpio-keys";
116 gpios = <&tlmm 18 GPIO_ACTIVE_LOW>;
117 linux,code = <KEY_RESTART>;
122 compatible = "gpio-leds";
124 power_orange: power {
125 label = "mr33:orange:power";
126 gpios = <&tlmm 49 GPIO_ACTIVE_LOW>;
141 qcom,phy_mdio_addr = <1>;
142 qcom,poll_required = <1>;
147 pinctrl-0 = <&i2c_0_pins>;
148 pinctrl-names = "default";
151 compatible = "atmel,24c64";
154 read-only; /* This holds our MAC & Meraki board-data */
159 pinctrl-0 = <&i2c_1_pins>;
160 pinctrl-names = "default";
164 enable-gpio = <&tlmm 48 GPIO_ACTIVE_HIGH>;
165 compatible = "ti,lp5562";
166 clock-mode = /bits/8 <2>;
171 chan-name = "mr33:red:status";
172 led-cur = /bits/ 8 <0x20>;
173 max-cur = /bits/ 8 <0x60>;
176 status_green: chan1 {
177 chan-name = "mr33:green:status";
178 led-cur = /bits/ 8 <0x20>;
179 max-cur = /bits/ 8 <0x60>;
183 chan-name = "mr33:blue:status";
184 led-cur = /bits/ 8 <0x20>;
185 max-cur = /bits/ 8 <0x60>;
189 chan-name = "mr33:white:status";
190 led-cur = /bits/ 8 <0x20>;
191 max-cur = /bits/ 8 <0x60>;
197 pinctrl-0 = <&nand_pins>;
198 pinctrl-names = "default";
203 compatible = "fixed-partitions";
204 #address-cells = <1>;
209 reg = <0x000000000000 0x000000100000>;
214 reg = <0x000000100000 0x000000100000>;
218 label = "bootconfig";
219 reg = <0x000000200000 0x000000100000>;
224 reg = <0x000000300000 0x000000100000>;
229 reg = <0x000000400000 0x000000100000>;
234 reg = <0x000000500000 0x000000080000>;
239 reg = <0x000000580000 0x000000080000>;
244 reg = <0x000000600000 0x000000080000>;
249 reg = <0x000000700000 0x000000200000>;
253 label = "u-boot-backup";
254 reg = <0x000000900000 0x000000200000>;
259 reg = <0x000000b00000 0x000000080000>;
264 reg = <0x000000c00000 0x000007000000>;
272 perst-gpio = <&tlmm 38 GPIO_ACTIVE_LOW>;
273 wake-gpio = <&tlmm 50 GPIO_ACTIVE_LOW>;
276 reg = <0x00000000 0 0 0 0>;
277 #address-cells = <3>;
282 compatible = "qcom,ath10k";
284 reg = <0x00010000 0 0 0 0>;
295 * GPIO43 should be 0/1 whenever the unit is
296 * powered through PoE or AC-Adapter.
297 * That said, playing with this seems to
301 mdio_pins: mdio_pinmux {
314 serial_0_pins: serial_pinmux {
316 pins = "gpio16", "gpio17";
317 function = "blsp_uart0";
322 serial_1_pins: serial1_pinmux {
324 /* We use the i2c-0 pins for serial_1 */
325 pins = "gpio8", "gpio9";
326 function = "blsp_uart1";
331 i2c_0_pins: i2c_0_pinmux {
333 function = "blsp_i2c0";
334 pins = "gpio20", "gpio21";
337 pins = "gpio20", "gpio21";
338 drive-strength = <16>;
343 i2c_1_pins: i2c_1_pinmux {
345 function = "blsp_i2c1";
346 pins = "gpio34", "gpio35";
349 pins = "gpio34", "gpio35";
350 drive-strength = <16>;
355 nand_pins: nand_pins {
357 * There are 18 pins. 15 pins are common between LCD and NAND.
358 * The QPIC controller arbitrates between LCD and NAND. Of the
359 * remaining 4, 2 are for NAND and 2 are for LCD exclusively.
361 * The meraki source hints that the bluetooth module claims
362 * pin 52 as well. But sadly, there's no data whenever this
363 * is a NAND or LCD exclusive pin or not.
367 pins = "gpio52", "gpio53", "gpio58",
374 pins = "gpio54", "gpio55", "gpio56",
375 "gpio57", "gpio60", "gpio61",
376 "gpio62", "gpio63", "gpio64",
377 "gpio65", "gpio66", "gpio67",
387 qcom,ath10k-calibration-variant = "Meraki-MR33";
392 qcom,ath10k-calibration-variant = "Meraki-MR33";