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,bcm53016", "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";
53 linux,code = <KEY_RESTART>;
54 gpios = <&chipcommon 21 GPIO_ACTIVE_LOW>;
59 compatible = "pwm-leds";
62 /* SYS-LED 1 - Tricolor */
63 function = LED_FUNCTION_INDICATOR;
64 color = <LED_COLOR_ID_RED>;
65 pwms = <&pwm 0 50000 0>;
66 max-brightness = <255>;
70 /* SYS-LED 1 - Tricolor */
71 function = LED_FUNCTION_POWER;
72 color = <LED_COLOR_ID_GREEN>;
73 pwms = <&pwm 1 50000 0>;
74 max-brightness = <255>;
78 /* SYS-LED 1 - Tricolor */
79 function = LED_FUNCTION_INDICATOR;
80 color = <LED_COLOR_ID_BLUE>;
81 pwms = <&pwm 2 50000 0>;
82 max-brightness = <255>;
88 clock-frequency = <62500000>;
89 /delete-property/ clocks;
100 * compatible = "brcm,bcm20732";
101 * enable-gpios = <&chipcommon 20 GPIO_ACTIVE_HIGH>;
107 nvmem-cell-names = "mac-address";
108 nvmem-cells = <&mac_address>;
123 pinctrl-names = "default";
124 pinctrl-0 = <&pinmux_pwm>;
128 nand-ecc-algo = "hw";
132 * The partition autodetection does not work for this device.
133 * It will only detect the "nvram" partition with an incorrect size.
134 * [ 1.721667] 1 bcm47xxpart partitions found on MTD device brcmnand.0
135 * [ 1.727962] Creating 1 MTD partitions on "brcmnand.0":
136 * [ 1.733117] 0x000000400000-0x000008000000 : "nvram"
139 compatible = "fixed-partitions";
140 #address-cells = <0x1>;
145 reg = <0x0 0x100000>;
150 label = "bootkernel1";
151 reg = <0x100000 0x300000>;
157 reg = <0x400000 0x100000>;
162 label = "bootkernel2";
163 reg = <0x500000 0x300000>;
169 reg = <0x800000 0x7780000>;
199 pinctrl-names = "default";
200 pinctrl-0 = <&pinmux_i2c>;
202 clock-frequency = <100000>;
204 current_sense: ina219@45 {
205 compatible = "ti,ina219";
207 shunt-resistor = <60000>; /* = 60 mOhms */
211 compatible = "atmel,24c64";
215 #address-cells = <1>;
218 mac_address: mac-address@66 {