xref: /freebsd/sys/contrib/device-tree/src/arm/broadcom/bcm53015-meraki-mr26.dts (revision 5b56413d04e608379c9a306373554a8e4d321bc0)
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		port@7 {
129			status = "disabled";
130		};
131
132		port@8 {
133			status = "disabled";
134		};
135	};
136};
137
138&i2c0 {
139	status = "okay";
140
141	pinctrl-names = "default";
142	pinctrl-0 = <&pinmux_i2c>;
143
144	clock-frequency = <100000>;
145
146	ina219@40 {
147		compatible = "ti,ina219"; /* PoE power */
148		reg = <0x40>;
149		shunt-resistor = <60000>; /* = 60 mOhms */
150	};
151
152	eeprom@56 {
153		compatible = "atmel,24c64";
154		reg = <0x56>;
155		pagesize = <32>;
156		read-only;
157		#address-cells = <1>;
158		#size-cells = <1>;
159
160		/* it's empty */
161	};
162};
163
164&thermal {
165	status = "disabled";
166	/* does not work, reads 418 degree Celsius */
167};
168