1 // SPDX-License-Identifier: GPL-2.0-or-later O 2 /* 3 * Broadcom BCM470X / BCM5301X ARM platform co 4 * DTS for Meraki MR32 / Codename: Espresso 5 * 6 * Copyright (C) 2018-2020 Christian Lamparter< 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,mr32", "brcm,bcm5 17 model = "Meraki MR32"; 18 19 chosen { 20 bootargs = " console=ttyS0,115 21 }; 22 23 memory@0 { 24 reg = <0x00000000 0x08000000>; 25 device_type = "memory"; 26 }; 27 28 aliases { 29 serial1 = &uart2; 30 }; 31 32 leds { 33 compatible = "gpio-leds"; 34 35 sysled3 { 36 function = LED_FUNCTIO 37 color = <LED_COLOR_ID_ 38 gpios = <&chipcommon 1 39 panic-indicator; 40 }; 41 sysled2 { 42 function = LED_FUNCTIO 43 color = <LED_COLOR_ID_ 44 gpios = <&chipcommon 1 45 }; 46 }; 47 48 keys { 49 compatible = "gpio-keys"; 50 51 button-restart { 52 label = "Reset"; 53 linux,code = <KEY_REST 54 gpios = <&chipcommon 2 55 }; 56 }; 57 58 pwm-leds { 59 compatible = "pwm-leds"; 60 61 led-0 { 62 /* SYS-LED 1 - Tricolo 63 function = LED_FUNCTIO 64 color = <LED_COLOR_ID_ 65 pwms = <&pwm 0 50000 0 66 max-brightness = <255> 67 }; 68 69 led-1 { 70 /* SYS-LED 1 - Tricolo 71 function = LED_FUNCTIO 72 color = <LED_COLOR_ID_ 73 pwms = <&pwm 1 50000 0 74 max-brightness = <255> 75 }; 76 77 led-2 { 78 /* SYS-LED 1 - Tricolo 79 function = LED_FUNCTIO 80 color = <LED_COLOR_ID_ 81 pwms = <&pwm 2 50000 0 82 max-brightness = <255> 83 }; 84 }; 85 }; 86 87 &uart0 { 88 clock-frequency = <62500000>; 89 /delete-property/ clocks; 90 }; 91 92 &uart1 { 93 status = "disabled"; 94 }; 95 96 &uart2 { 97 status = "okay"; 98 /* 99 * bluetooth-le { 100 * compatible = "brcm,bcm20732"; 101 * enable-gpios = <&chipcommon 20 102 *}; 103 */ 104 }; 105 106 &gmac0 { 107 nvmem-cell-names = "mac-address"; 108 nvmem-cells = <&mac_address>; 109 }; 110 111 &gmac1 { 112 status = "disabled"; 113 }; 114 &gmac2 { 115 status = "disabled"; 116 }; 117 &gmac3 { 118 status = "disabled"; 119 }; 120 121 &pwm { 122 status = "okay"; 123 pinctrl-names = "default"; 124 pinctrl-0 = <&pinmux_pwm>; 125 }; 126 127 &nandcs { 128 partitions { 129 /* 130 * The partition autodetection 131 * It will only detect the "nv 132 * [ 1.721667] 1 bcm47 133 * [ 1.727962] Creatin 134 * [ 1.733117] 0x00000 135 */ 136 137 compatible = "fixed-partitions 138 #address-cells = <0x1>; 139 #size-cells = <0x1>; 140 141 partition@0 { 142 label = "u-boot"; 143 reg = <0x0 0x100000>; 144 read-only; 145 }; 146 147 partition@100000 { 148 label = "bootkernel1"; 149 reg = <0x100000 0x3000 150 read-only; 151 }; 152 153 partition@400000 { 154 label = "nvram"; 155 reg = <0x400000 0x1000 156 read-only; 157 }; 158 159 partition@500000 { 160 label = "bootkernel2"; 161 reg = <0x500000 0x3000 162 read-only; 163 }; 164 165 partition@800000 { 166 label = "ubi"; 167 reg = <0x800000 0x7780 168 }; 169 }; 170 }; 171 172 &srab { 173 status = "okay"; 174 175 ports { 176 port@0 { 177 label = "poe"; 178 }; 179 180 port@5 { 181 label = "cpu"; 182 183 fixed-link { 184 speed = <1000> 185 full-duplex; 186 }; 187 }; 188 189 port@7 { 190 status = "disabled"; 191 }; 192 193 port@8 { 194 status = "disabled"; 195 }; 196 }; 197 }; 198 199 &i2c0 { 200 status = "okay"; 201 202 pinctrl-names = "default"; 203 pinctrl-0 = <&pinmux_i2c>; 204 205 clock-frequency = <100000>; 206 207 current_sense: ina219@45 { 208 compatible = "ti,ina219"; 209 reg = <0x45>; 210 shunt-resistor = <60000>; /* = 211 }; 212 213 eeprom: eeprom@50 { 214 compatible = "atmel,24c64"; 215 reg = <0x50>; 216 pagesize = <32>; 217 read-only; 218 219 nvmem-layout { 220 compatible = "fixed-la 221 #address-cells = <1>; 222 #size-cells = <1>; 223 224 mac_address: mac-addre 225 reg = <0x66 0x 226 }; 227 }; 228 }; 229 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.