bcm958625-meraki-alamo.dtsi (4612B)
1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2/* 3 * Device Tree Bindings for Cisco Meraki MX65 series (Alamo). 4 * 5 * Copyright (C) 2020-2021 Matthew Hagan <mnhagan88@gmail.com> 6 */ 7 8#include "bcm958625-meraki-mx6x-common.dtsi" 9 10/ { 11 keys { 12 compatible = "gpio-keys-polled"; 13 autorepeat; 14 poll-interval = <20>; 15 16 reset { 17 label = "reset"; 18 linux,code = <KEY_RESTART>; 19 gpios = <&gpioa 8 GPIO_ACTIVE_LOW>; 20 }; 21 }; 22 23 leds { 24 compatible = "gpio-leds"; 25 26 led-0 { 27 /* green:wan1-left */ 28 function = LED_FUNCTION_ACTIVITY; 29 function-enumerator = <0>; 30 color = <LED_COLOR_ID_GREEN>; 31 gpios = <&gpioa 25 GPIO_ACTIVE_LOW>; 32 }; 33 34 led-1 { 35 /* green:wan1-right */ 36 function = LED_FUNCTION_ACTIVITY; 37 function-enumerator = <1>; 38 color = <LED_COLOR_ID_GREEN>; 39 gpios = <&gpioa 24 GPIO_ACTIVE_LOW>; 40 }; 41 42 led-2 { 43 /* green:wan2-left */ 44 function = LED_FUNCTION_ACTIVITY; 45 function-enumerator = <2>; 46 color = <LED_COLOR_ID_GREEN>; 47 gpios = <&gpioa 27 GPIO_ACTIVE_LOW>; 48 }; 49 50 led-3 { 51 /* green:wan2-right */ 52 function = LED_FUNCTION_ACTIVITY; 53 function-enumerator = <3>; 54 color = <LED_COLOR_ID_GREEN>; 55 gpios = <&gpioa 26 GPIO_ACTIVE_LOW>; 56 }; 57 58 led-4 { 59 /* amber:power */ 60 function = LED_FUNCTION_FAULT; 61 color = <LED_COLOR_ID_AMBER>; 62 gpios = <&gpioa 3 GPIO_ACTIVE_HIGH>; 63 }; 64 65 led-5 { 66 /* white:status */ 67 function = LED_FUNCTION_STATUS; 68 color = <LED_COLOR_ID_WHITE>; 69 gpios = <&gpioa 31 GPIO_ACTIVE_HIGH>; 70 }; 71 }; 72}; 73 74&axi { 75 mdio-mux@3f1c0 { 76 compatible = "mdio-mux-mmioreg", "mdio-mux"; 77 reg = <0x3f1c0 0x4>; 78 mux-mask = <0x2000>; 79 mdio-parent-bus = <&mdio_ext>; 80 #address-cells = <1>; 81 #size-cells = <0>; 82 83 mdio@0 { 84 reg = <0x0>; 85 #address-cells = <1>; 86 #size-cells = <0>; 87 88 phy_port6: phy@0 { 89 reg = <0>; 90 }; 91 92 phy_port7: phy@1 { 93 reg = <1>; 94 }; 95 96 phy_port8: phy@2 { 97 reg = <2>; 98 }; 99 100 phy_port9: phy@3 { 101 reg = <3>; 102 }; 103 104 phy_port10: phy@4 { 105 reg = <4>; 106 }; 107 108 switch@10 { 109 compatible = "qca,qca8337"; 110 reg = <0x10>; 111 dsa,member = <1 0>; 112 113 ports { 114 #address-cells = <1>; 115 #size-cells = <0>; 116 port@0 { 117 reg = <0>; 118 ethernet = <&sgmii1>; 119 phy-mode = "sgmii"; 120 qca,sgmii-enable-pll; 121 qca,sgmii-txclk-falling-edge; 122 fixed-link { 123 speed = <1000>; 124 full-duplex; 125 }; 126 }; 127 128 port@1 { 129 reg = <1>; 130 label = "lan8"; 131 phy-handle = <&phy_port6>; 132 }; 133 134 port@2 { 135 reg = <2>; 136 label = "lan9"; 137 phy-handle = <&phy_port7>; 138 }; 139 140 port@3 { 141 reg = <3>; 142 label = "lan10"; 143 phy-handle = <&phy_port8>; 144 }; 145 146 port@4 { 147 reg = <4>; 148 label = "lan11"; 149 phy-handle = <&phy_port9>; 150 }; 151 152 port@5 { 153 reg = <5>; 154 label = "lan12"; 155 phy-handle = <&phy_port10>; 156 }; 157 }; 158 }; 159 }; 160 161 mdio-mii@2000 { 162 reg = <0x2000>; 163 #address-cells = <1>; 164 #size-cells = <0>; 165 166 phy_port1: phy@0 { 167 reg = <0>; 168 }; 169 170 phy_port2: phy@1 { 171 reg = <1>; 172 }; 173 174 phy_port3: phy@2 { 175 reg = <2>; 176 }; 177 178 phy_port4: phy@3 { 179 reg = <3>; 180 }; 181 182 phy_port5: phy@4 { 183 reg = <4>; 184 }; 185 186 switch@10 { 187 compatible = "qca,qca8337"; 188 reg = <0x10>; 189 dsa,member = <2 0>; 190 191 ports { 192 #address-cells = <1>; 193 #size-cells = <0>; 194 port@0 { 195 reg = <0>; 196 ethernet = <&sgmii0>; 197 phy-mode = "sgmii"; 198 qca,sgmii-enable-pll; 199 qca,sgmii-txclk-falling-edge; 200 fixed-link { 201 speed = <1000>; 202 full-duplex; 203 }; 204 }; 205 206 port@1 { 207 reg = <1>; 208 label = "lan3"; 209 phy-handle = <&phy_port1>; 210 }; 211 212 port@2 { 213 reg = <2>; 214 label = "lan4"; 215 phy-handle = <&phy_port2>; 216 }; 217 218 port@3 { 219 reg = <3>; 220 label = "lan5"; 221 phy-handle = <&phy_port3>; 222 }; 223 224 port@4 { 225 reg = <4>; 226 label = "lan6"; 227 phy-handle = <&phy_port4>; 228 }; 229 230 port@5 { 231 reg = <5>; 232 label = "lan7"; 233 phy-handle = <&phy_port5>; 234 }; 235 }; 236 }; 237 }; 238 }; 239}; 240 241&srab { 242 compatible = "brcm,bcm58625-srab", "brcm,nsp-srab"; 243 status = "okay"; 244 dsa,member = <0 0>; 245 246 ports { 247 port@0 { 248 label = "wan1"; 249 reg = <0>; 250 }; 251 252 port@1 { 253 label = "wan2"; 254 reg = <1>; 255 }; 256 257 sgmii0: port@4 { 258 label = "sw0"; 259 reg = <4>; 260 fixed-link { 261 speed = <1000>; 262 full-duplex; 263 }; 264 }; 265 266 sgmii1: port@5 { 267 label = "sw1"; 268 reg = <5>; 269 fixed-link { 270 speed = <1000>; 271 full-duplex; 272 }; 273 }; 274 275 port@8 { 276 ethernet = <&amac2>; 277 reg = <8>; 278 fixed-link { 279 speed = <1000>; 280 full-duplex; 281 }; 282 }; 283 }; 284};