xref: /linux/arch/arm/boot/dts/broadcom/bcm53015-meraki-mr26.dts (revision 0e2b2a76278153d1ac312b0691cb65dabb9aef3e)
1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2/*
3 * Broadcom BCM470X / BCM5301X ARM platform code.
4 * DTS for Meraki MR26 / Codename: Venom
5 *
6 * Copyright (C) 2022 Christian Lamparter <chunkeey@gmail.com>
7 */
8
9/dts-v1/;
10
11#include "bcm4708.dtsi"
12#include "bcm5301x-nand-cs0-bch8.dtsi"
13#include <dt-bindings/leds/common.h>
14
15/ {
16	compatible = "meraki,mr26", "brcm,bcm53015", "brcm,bcm4708";
17	model = "Meraki MR26";
18
19	memory@0 {
20		reg = <0x00000000 0x08000000>;
21		device_type = "memory";
22	};
23
24	leds {
25		compatible = "gpio-leds";
26
27		led-0 {
28			function = LED_FUNCTION_FAULT;
29			color = <LED_COLOR_ID_AMBER>;
30			gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
31			panic-indicator;
32		};
33		led-1 {
34			function = LED_FUNCTION_INDICATOR;
35			color = <LED_COLOR_ID_WHITE>;
36			gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
37		};
38	};
39
40	keys {
41		compatible = "gpio-keys";
42
43		key-restart {
44			label = "Reset";
45			linux,code = <KEY_RESTART>;
46			gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
47		};
48	};
49};
50
51&uart0 {
52	clock-frequency = <50000000>;
53	/delete-property/ clocks;
54};
55
56&uart1 {
57	status = "disabled";
58};
59
60&gmac0 {
61	status = "okay";
62};
63
64&gmac1 {
65	status = "disabled";
66};
67&gmac2 {
68	status = "disabled";
69};
70&gmac3 {
71	status = "disabled";
72};
73
74&nandcs {
75	partitions {
76		compatible = "fixed-partitions";
77		#address-cells = <0x1>;
78		#size-cells = <0x1>;
79
80		partition@0 {
81			label = "u-boot";
82			reg = <0x0 0x200000>;
83			read-only;
84		};
85
86		partition@200000 {
87			label = "u-boot-env";
88			reg = <0x200000 0x200000>;
89			/* empty */
90		};
91
92		partition@400000 {
93			label = "u-boot-backup";
94			reg = <0x400000 0x200000>;
95			/* empty */
96		};
97
98		partition@600000 {
99			label = "u-boot-env-backup";
100			reg = <0x600000 0x200000>;
101			/* empty */
102		};
103
104		partition@800000 {
105			label = "ubi";
106			reg = <0x800000 0x7780000>;
107		};
108	};
109};
110
111&srab {
112	status = "okay";
113
114	ports {
115		port@0 {
116			label = "poe";
117		};
118
119		port@5 {
120			label = "cpu";
121
122			fixed-link {
123				speed = <1000>;
124				full-duplex;
125			};
126		};
127	};
128};
129
130&i2c0 {
131	status = "okay";
132
133	pinctrl-names = "default";
134	pinctrl-0 = <&pinmux_i2c>;
135
136	clock-frequency = <100000>;
137
138	ina219@40 {
139		compatible = "ti,ina219"; /* PoE power */
140		reg = <0x40>;
141		shunt-resistor = <60000>; /* = 60 mOhms */
142	};
143
144	eeprom@56 {
145		compatible = "atmel,24c64";
146		reg = <0x56>;
147		pagesize = <32>;
148		read-only;
149		#address-cells = <1>;
150		#size-cells = <1>;
151
152		/* it's empty */
153	};
154};
155
156&thermal {
157	status = "disabled";
158	/* does not work, reads 418 degree Celsius */
159};
160