GNU Linux-libre 6.1.90-gnu
[releases.git] / arch / arm / boot / dts / bcm53015-meraki-mr26.dts
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                 #address-cells = <1>;
43                 #size-cells = <0>;
44
45                 key-restart {
46                         label = "Reset";
47                         linux,code = <KEY_RESTART>;
48                         gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
49                 };
50         };
51 };
52
53 &uart0 {
54         clock-frequency = <50000000>;
55         /delete-property/ clocks;
56 };
57
58 &uart1 {
59         status = "disabled";
60 };
61
62 &gmac0 {
63         status = "okay";
64 };
65
66 &gmac1 {
67         status = "disabled";
68 };
69 &gmac2 {
70         status = "disabled";
71 };
72 &gmac3 {
73         status = "disabled";
74 };
75
76 &nandcs {
77         nand-ecc-algo = "hw";
78
79         partitions {
80                 compatible = "fixed-partitions";
81                 #address-cells = <0x1>;
82                 #size-cells = <0x1>;
83
84                 partition@0 {
85                         label = "u-boot";
86                         reg = <0x0 0x200000>;
87                         read-only;
88                 };
89
90                 partition@200000 {
91                         label = "u-boot-env";
92                         reg = <0x200000 0x200000>;
93                         /* empty */
94                 };
95
96                 partition@400000 {
97                         label = "u-boot-backup";
98                         reg = <0x400000 0x200000>;
99                         /* empty */
100                 };
101
102                 partition@600000 {
103                         label = "u-boot-env-backup";
104                         reg = <0x600000 0x200000>;
105                         /* empty */
106                 };
107
108                 partition@800000 {
109                         label = "ubi";
110                         reg = <0x800000 0x7780000>;
111                 };
112         };
113 };
114
115 &srab {
116         status = "okay";
117
118         ports {
119                 port@0 {
120                         reg = <0>;
121                         label = "poe";
122                 };
123
124                 port@5 {
125                         reg = <5>;
126                         label = "cpu";
127                         ethernet = <&gmac0>;
128
129                         fixed-link {
130                                 speed = <1000>;
131                                 full-duplex;
132                         };
133                 };
134         };
135 };
136
137 &i2c0 {
138         status = "okay";
139
140         pinctrl-names = "default";
141         pinctrl-0 = <&pinmux_i2c>;
142
143         clock-frequency = <100000>;
144
145         ina219@40 {
146                 compatible = "ti,ina219"; /* PoE power */
147                 reg = <0x40>;
148                 shunt-resistor = <60000>; /* = 60 mOhms */
149         };
150
151         eeprom@56 {
152                 compatible = "atmel,24c64";
153                 reg = <0x56>;
154                 pagesize = <32>;
155                 read-only;
156                 #address-cells = <1>;
157                 #size-cells = <1>;
158
159                 /* it's empty */
160         };
161 };
162
163 &thermal {
164         status = "disabled";
165         /* does not work, reads 418 degree Celsius */
166 };