xref: /linux/scripts/dtc/include-prefixes/arm/broadcom/bcm53016-meraki-mr32.dts (revision 724ba6751532055db75992fc6ae21c3e322e94a7)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Broadcom BCM470X / BCM5301X ARM platform code.
4*724ba675SRob Herring * DTS for Meraki MR32 / Codename: Espresso
5*724ba675SRob Herring *
6*724ba675SRob Herring * Copyright (C) 2018-2020 Christian Lamparter <chunkeey@gmail.com>
7*724ba675SRob Herring */
8*724ba675SRob Herring
9*724ba675SRob Herring/dts-v1/;
10*724ba675SRob Herring
11*724ba675SRob Herring#include "bcm4708.dtsi"
12*724ba675SRob Herring#include "bcm5301x-nand-cs0-bch8.dtsi"
13*724ba675SRob Herring#include <dt-bindings/leds/common.h>
14*724ba675SRob Herring
15*724ba675SRob Herring/ {
16*724ba675SRob Herring	compatible = "meraki,mr32", "brcm,bcm53016", "brcm,bcm4708";
17*724ba675SRob Herring	model = "Meraki MR32";
18*724ba675SRob Herring
19*724ba675SRob Herring	chosen {
20*724ba675SRob Herring		bootargs = " console=ttyS0,115200n8 earlycon";
21*724ba675SRob Herring	};
22*724ba675SRob Herring
23*724ba675SRob Herring	memory@0 {
24*724ba675SRob Herring		reg = <0x00000000 0x08000000>;
25*724ba675SRob Herring		device_type = "memory";
26*724ba675SRob Herring	};
27*724ba675SRob Herring
28*724ba675SRob Herring	aliases {
29*724ba675SRob Herring		serial1 = &uart2;
30*724ba675SRob Herring	};
31*724ba675SRob Herring
32*724ba675SRob Herring	leds {
33*724ba675SRob Herring		compatible = "gpio-leds";
34*724ba675SRob Herring
35*724ba675SRob Herring		sysled3 {
36*724ba675SRob Herring			function = LED_FUNCTION_FAULT;
37*724ba675SRob Herring			color = <LED_COLOR_ID_AMBER>;
38*724ba675SRob Herring			gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
39*724ba675SRob Herring			panic-indicator;
40*724ba675SRob Herring		};
41*724ba675SRob Herring		sysled2 {
42*724ba675SRob Herring			function = LED_FUNCTION_INDICATOR;
43*724ba675SRob Herring			color = <LED_COLOR_ID_WHITE>;
44*724ba675SRob Herring			gpios = <&chipcommon 19 GPIO_ACTIVE_HIGH>;
45*724ba675SRob Herring		};
46*724ba675SRob Herring	};
47*724ba675SRob Herring
48*724ba675SRob Herring	keys {
49*724ba675SRob Herring		compatible = "gpio-keys";
50*724ba675SRob Herring
51*724ba675SRob Herring		button-restart {
52*724ba675SRob Herring			label = "Reset";
53*724ba675SRob Herring			linux,code = <KEY_RESTART>;
54*724ba675SRob Herring			gpios = <&chipcommon 21 GPIO_ACTIVE_LOW>;
55*724ba675SRob Herring		};
56*724ba675SRob Herring	};
57*724ba675SRob Herring
58*724ba675SRob Herring	pwm-leds {
59*724ba675SRob Herring		compatible = "pwm-leds";
60*724ba675SRob Herring
61*724ba675SRob Herring		led-0 {
62*724ba675SRob Herring			/* SYS-LED 1 - Tricolor */
63*724ba675SRob Herring			function = LED_FUNCTION_INDICATOR;
64*724ba675SRob Herring			color = <LED_COLOR_ID_RED>;
65*724ba675SRob Herring			pwms = <&pwm 0 50000 0>;
66*724ba675SRob Herring			max-brightness = <255>;
67*724ba675SRob Herring		};
68*724ba675SRob Herring
69*724ba675SRob Herring		led-1 {
70*724ba675SRob Herring			/* SYS-LED 1 - Tricolor */
71*724ba675SRob Herring			function = LED_FUNCTION_POWER;
72*724ba675SRob Herring			color = <LED_COLOR_ID_GREEN>;
73*724ba675SRob Herring			pwms = <&pwm 1 50000 0>;
74*724ba675SRob Herring			max-brightness = <255>;
75*724ba675SRob Herring		};
76*724ba675SRob Herring
77*724ba675SRob Herring		led-2 {
78*724ba675SRob Herring			/* SYS-LED 1 - Tricolor */
79*724ba675SRob Herring			function = LED_FUNCTION_INDICATOR;
80*724ba675SRob Herring			color = <LED_COLOR_ID_BLUE>;
81*724ba675SRob Herring			pwms = <&pwm 2 50000 0>;
82*724ba675SRob Herring			max-brightness = <255>;
83*724ba675SRob Herring		};
84*724ba675SRob Herring	};
85*724ba675SRob Herring};
86*724ba675SRob Herring
87*724ba675SRob Herring&uart0 {
88*724ba675SRob Herring	clock-frequency = <62500000>;
89*724ba675SRob Herring	/delete-property/ clocks;
90*724ba675SRob Herring};
91*724ba675SRob Herring
92*724ba675SRob Herring&uart1 {
93*724ba675SRob Herring	status = "disabled";
94*724ba675SRob Herring};
95*724ba675SRob Herring
96*724ba675SRob Herring&uart2 {
97*724ba675SRob Herring	status = "okay";
98*724ba675SRob Herring	/*
99*724ba675SRob Herring	 * bluetooth-le {
100*724ba675SRob Herring	 *	compatible = "brcm,bcm20732";
101*724ba675SRob Herring	 *	enable-gpios = <&chipcommon 20 GPIO_ACTIVE_HIGH>;
102*724ba675SRob Herring	 *};
103*724ba675SRob Herring	 */
104*724ba675SRob Herring};
105*724ba675SRob Herring
106*724ba675SRob Herring&gmac0 {
107*724ba675SRob Herring	nvmem-cell-names = "mac-address";
108*724ba675SRob Herring	nvmem-cells = <&mac_address>;
109*724ba675SRob Herring};
110*724ba675SRob Herring
111*724ba675SRob Herring&gmac1 {
112*724ba675SRob Herring	status = "disabled";
113*724ba675SRob Herring};
114*724ba675SRob Herring&gmac2 {
115*724ba675SRob Herring	status = "disabled";
116*724ba675SRob Herring};
117*724ba675SRob Herring&gmac3 {
118*724ba675SRob Herring	status = "disabled";
119*724ba675SRob Herring};
120*724ba675SRob Herring
121*724ba675SRob Herring&pwm {
122*724ba675SRob Herring	status = "okay";
123*724ba675SRob Herring	pinctrl-names = "default";
124*724ba675SRob Herring	pinctrl-0 = <&pinmux_pwm>;
125*724ba675SRob Herring};
126*724ba675SRob Herring
127*724ba675SRob Herring&nandcs {
128*724ba675SRob Herring	partitions {
129*724ba675SRob Herring		/*
130*724ba675SRob Herring		 * The partition autodetection does not work for this device.
131*724ba675SRob Herring		 * It will only detect the "nvram" partition with an incorrect size.
132*724ba675SRob Herring		 *	[    1.721667] 1 bcm47xxpart partitions found on MTD device brcmnand.0
133*724ba675SRob Herring		 *	[    1.727962] Creating 1 MTD partitions on "brcmnand.0":
134*724ba675SRob Herring		 *	[    1.733117] 0x000000400000-0x000008000000 : "nvram"
135*724ba675SRob Herring		 */
136*724ba675SRob Herring
137*724ba675SRob Herring		compatible = "fixed-partitions";
138*724ba675SRob Herring		#address-cells = <0x1>;
139*724ba675SRob Herring		#size-cells = <0x1>;
140*724ba675SRob Herring
141*724ba675SRob Herring		partition@0 {
142*724ba675SRob Herring			label = "u-boot";
143*724ba675SRob Herring			reg = <0x0 0x100000>;
144*724ba675SRob Herring			read-only;
145*724ba675SRob Herring		};
146*724ba675SRob Herring
147*724ba675SRob Herring		partition@100000 {
148*724ba675SRob Herring			label = "bootkernel1";
149*724ba675SRob Herring			reg = <0x100000 0x300000>;
150*724ba675SRob Herring			read-only;
151*724ba675SRob Herring		};
152*724ba675SRob Herring
153*724ba675SRob Herring		partition@400000 {
154*724ba675SRob Herring			label = "nvram";
155*724ba675SRob Herring			reg = <0x400000 0x100000>;
156*724ba675SRob Herring			read-only;
157*724ba675SRob Herring		};
158*724ba675SRob Herring
159*724ba675SRob Herring		partition@500000 {
160*724ba675SRob Herring			label = "bootkernel2";
161*724ba675SRob Herring			reg = <0x500000 0x300000>;
162*724ba675SRob Herring			read-only;
163*724ba675SRob Herring		};
164*724ba675SRob Herring
165*724ba675SRob Herring		partition@800000 {
166*724ba675SRob Herring			label = "ubi";
167*724ba675SRob Herring			reg = <0x800000 0x7780000>;
168*724ba675SRob Herring		};
169*724ba675SRob Herring	};
170*724ba675SRob Herring};
171*724ba675SRob Herring
172*724ba675SRob Herring&srab {
173*724ba675SRob Herring	status = "okay";
174*724ba675SRob Herring
175*724ba675SRob Herring	ports {
176*724ba675SRob Herring		port@0 {
177*724ba675SRob Herring			label = "poe";
178*724ba675SRob Herring		};
179*724ba675SRob Herring
180*724ba675SRob Herring		port@5 {
181*724ba675SRob Herring			label = "cpu";
182*724ba675SRob Herring
183*724ba675SRob Herring			fixed-link {
184*724ba675SRob Herring				speed = <1000>;
185*724ba675SRob Herring				full-duplex;
186*724ba675SRob Herring			};
187*724ba675SRob Herring		};
188*724ba675SRob Herring	};
189*724ba675SRob Herring};
190*724ba675SRob Herring
191*724ba675SRob Herring&i2c0 {
192*724ba675SRob Herring	status = "okay";
193*724ba675SRob Herring
194*724ba675SRob Herring	pinctrl-names = "default";
195*724ba675SRob Herring	pinctrl-0 = <&pinmux_i2c>;
196*724ba675SRob Herring
197*724ba675SRob Herring	clock-frequency = <100000>;
198*724ba675SRob Herring
199*724ba675SRob Herring	current_sense: ina219@45 {
200*724ba675SRob Herring		compatible = "ti,ina219";
201*724ba675SRob Herring		reg = <0x45>;
202*724ba675SRob Herring		shunt-resistor = <60000>; /* = 60 mOhms */
203*724ba675SRob Herring	};
204*724ba675SRob Herring
205*724ba675SRob Herring	eeprom: eeprom@50 {
206*724ba675SRob Herring		compatible = "atmel,24c64";
207*724ba675SRob Herring		reg = <0x50>;
208*724ba675SRob Herring		pagesize = <32>;
209*724ba675SRob Herring		read-only;
210*724ba675SRob Herring		#address-cells = <1>;
211*724ba675SRob Herring		#size-cells = <1>;
212*724ba675SRob Herring
213*724ba675SRob Herring		mac_address: mac-address@66 {
214*724ba675SRob Herring			reg = <0x66 0x6>;
215*724ba675SRob Herring		};
216*724ba675SRob Herring	};
217*724ba675SRob Herring};
218