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";
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 clock-frequency = <62500000>;
91 /delete-property/ clocks;
102 * compatible = "brcm,bcm20732";
103 * enable-gpios = <&chipcommon 20 GPIO_ACTIVE_HIGH>;
109 nvmem-cell-names = "mac-address";
110 nvmem-cells = <&mac_address>;
125 pinctrl-names = "default";
126 pinctrl-0 = <&pinmux_pwm>;
130 nand-ecc-algo = "hw";
134 * The partition autodetection does not work for this device.
135 * It will only detect the "nvram" partition with an incorrect size.
136 * [ 1.721667] 1 bcm47xxpart partitions found on MTD device brcmnand.0
137 * [ 1.727962] Creating 1 MTD partitions on "brcmnand.0":
138 * [ 1.733117] 0x000000400000-0x000008000000 : "nvram"
141 compatible = "fixed-partitions";
142 #address-cells = <0x1>;
147 reg = <0x0 0x100000>;
152 label = "bootkernel1";
153 reg = <0x100000 0x300000>;
159 reg = <0x400000 0x100000>;
164 label = "bootkernel2";
165 reg = <0x500000 0x300000>;
171 reg = <0x800000 0x7780000>;
201 pinctrl-names = "default";
202 pinctrl-0 = <&pinmux_i2c>;
204 clock-frequency = <100000>;
206 current_sense: ina219@45 {
207 compatible = "ti,ina219";
209 shunt-resistor = <60000>; /* = 60 mOhms */
213 compatible = "atmel,24c64";
217 #address-cells = <1>;
220 mac_address: mac-address@66 {