1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 * Broadcom BCM470X / BCM5301X ARM platform code.
4 * DTS for Meraki MR32 / Codename: Espresso
6 * Copyright (C) 2018-2020 Christian Lamparter <chunkeey@gmail.com>
11 #include "bcm4708.dtsi"
12 #include "bcm5301x-nand-cs0-bch8.dtsi"
13 #include <dt-bindings/leds/common.h>
16 compatible = "meraki,mr32", "brcm,brcm53016", "brcm,bcm4708";
17 model = "Meraki MR32";
20 bootargs = " console=ttyS0,115200n8 earlycon";
24 reg = <0x00000000 0x08000000>;
25 device_type = "memory";
33 compatible = "gpio-leds";
36 function = LED_FUNCTION_FAULT;
37 color = <LED_COLOR_ID_AMBER>;
38 gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
42 function = LED_FUNCTION_INDICATOR;
43 color = <LED_COLOR_ID_WHITE>;
44 gpios = <&chipcommon 19 GPIO_ACTIVE_HIGH>;
49 compatible = "gpio-keys";
55 linux,code = <KEY_RESTART>;
56 gpios = <&chipcommon 21 GPIO_ACTIVE_LOW>;
61 compatible = "pwm-leds";
64 /* SYS-LED 1 - Tricolor */
65 function = LED_FUNCTION_INDICATOR;
66 color = <LED_COLOR_ID_RED>;
67 pwms = <&pwm 0 50000 0>;
68 max-brightness = <255>;
72 /* SYS-LED 1 - Tricolor */
73 function = LED_FUNCTION_POWER;
74 color = <LED_COLOR_ID_GREEN>;
75 pwms = <&pwm 1 50000 0>;
76 max-brightness = <255>;
80 /* SYS-LED 1 - Tricolor */
81 function = LED_FUNCTION_INDICATOR;
82 color = <LED_COLOR_ID_BLUE>;
83 pwms = <&pwm 2 50000 0>;
84 max-brightness = <255>;
90 * The platform provided I2C does not budge.
91 * This is a replacement until I can figure
92 * out what are the missing bits...
95 compatible = "i2c-gpio";
96 sda-gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
97 scl-gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
98 i2c-gpio,delay-us = <10>; /* close to 100 kHz */
102 current_sense: ina219@45 {
103 compatible = "ti,ina219";
105 shunt-resistor = <60000>; /* = 60 mOhms */
109 compatible = "atmel,24c64";
118 clock-frequency = <62500000>;
119 /delete-property/ clocks;
130 * compatible = "brcm,bcm20732";
131 * enable-gpios = <&chipcommon 20 GPIO_ACTIVE_HIGH>;
148 pinctrl-names = "default";
149 pinctrl-0 = <&pinmux_pwm>;
153 nand-ecc-algo = "hw";
157 * The partition autodetection does not work for this device.
158 * It will only detect the "nvram" partition with an incorrect size.
159 * [ 1.721667] 1 bcm47xxpart partitions found on MTD device brcmnand.0
160 * [ 1.727962] Creating 1 MTD partitions on "brcmnand.0":
161 * [ 1.733117] 0x000000400000-0x000008000000 : "nvram"
164 compatible = "fixed-partitions";
165 #address-cells = <0x1>;
170 reg = <0x0 0x100000>;
175 label = "bootkernel1";
176 reg = <0x100000 0x300000>;
182 reg = <0x400000 0x100000>;
187 label = "bootkernel2";
188 reg = <0x500000 0x300000>;
194 reg = <0x800000 0x7780000>;