Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
0002 /*
0003  * Device Tree Bindings for Cisco Meraki MX65 series (Alamo).
0004  *
0005  * Copyright (C) 2020-2021 Matthew Hagan <mnhagan88@gmail.com>
0006  */
0007 
0008 #include "bcm958625-meraki-mx6x-common.dtsi"
0009 
0010 / {
0011         keys {
0012                 compatible = "gpio-keys-polled";
0013                 autorepeat;
0014                 poll-interval = <20>;
0015 
0016                 button-reset {
0017                         label = "reset";
0018                         linux,code = <KEY_RESTART>;
0019                         gpios = <&gpioa 8 GPIO_ACTIVE_LOW>;
0020                 };
0021         };
0022 
0023         leds {
0024                 compatible = "gpio-leds";
0025 
0026                 led-0 {
0027                         /* green:wan1-left */
0028                         function = LED_FUNCTION_ACTIVITY;
0029                         function-enumerator = <0>;
0030                         color = <LED_COLOR_ID_GREEN>;
0031                         gpios = <&gpioa 25 GPIO_ACTIVE_LOW>;
0032                 };
0033 
0034                 led-1 {
0035                         /* green:wan1-right */
0036                         function = LED_FUNCTION_ACTIVITY;
0037                         function-enumerator = <1>;
0038                         color = <LED_COLOR_ID_GREEN>;
0039                         gpios = <&gpioa 24 GPIO_ACTIVE_LOW>;
0040                 };
0041 
0042                 led-2 {
0043                         /* green:wan2-left */
0044                         function = LED_FUNCTION_ACTIVITY;
0045                         function-enumerator = <2>;
0046                         color = <LED_COLOR_ID_GREEN>;
0047                         gpios = <&gpioa 27 GPIO_ACTIVE_LOW>;
0048                 };
0049 
0050                 led-3 {
0051                         /* green:wan2-right */
0052                         function = LED_FUNCTION_ACTIVITY;
0053                         function-enumerator = <3>;
0054                         color = <LED_COLOR_ID_GREEN>;
0055                         gpios = <&gpioa 26 GPIO_ACTIVE_LOW>;
0056                 };
0057 
0058                 led-4 {
0059                         /* amber:power */
0060                         function = LED_FUNCTION_FAULT;
0061                         color = <LED_COLOR_ID_AMBER>;
0062                         gpios = <&gpioa 3 GPIO_ACTIVE_HIGH>;
0063                 };
0064 
0065                 led-5 {
0066                         /* white:status */
0067                         function = LED_FUNCTION_STATUS;
0068                         color = <LED_COLOR_ID_WHITE>;
0069                         gpios = <&gpioa 31 GPIO_ACTIVE_HIGH>;
0070                 };
0071         };
0072 };
0073 
0074 &axi {
0075         mdio-mux@3f1c0 {
0076                 compatible = "mdio-mux-mmioreg", "mdio-mux";
0077                 reg = <0x3f1c0 0x4>;
0078                 mux-mask = <0x2000>;
0079                 mdio-parent-bus = <&mdio_ext>;
0080                 #address-cells = <1>;
0081                 #size-cells = <0>;
0082 
0083                 mdio@0 {
0084                         reg = <0x0>;
0085                         #address-cells = <1>;
0086                         #size-cells = <0>;
0087 
0088                         phy_port6: phy@0 {
0089                                 reg = <0>;
0090                         };
0091 
0092                         phy_port7: phy@1 {
0093                                 reg = <1>;
0094                         };
0095 
0096                         phy_port8: phy@2 {
0097                                 reg = <2>;
0098                         };
0099 
0100                         phy_port9: phy@3 {
0101                                 reg = <3>;
0102                         };
0103 
0104                         phy_port10: phy@4 {
0105                                 reg = <4>;
0106                         };
0107 
0108                         switch@10 {
0109                                 compatible = "qca,qca8337";
0110                                 reg = <0x10>;
0111                                 dsa,member = <1 0>;
0112 
0113                                 ports {
0114                                         #address-cells = <1>;
0115                                         #size-cells = <0>;
0116                                         port@0 {
0117                                                 reg = <0>;
0118                                                 ethernet = <&sgmii1>;
0119                                                 phy-mode = "sgmii";
0120                                                 qca,sgmii-enable-pll;
0121                                                 qca,sgmii-txclk-falling-edge;
0122                                                 fixed-link {
0123                                                         speed = <1000>;
0124                                                         full-duplex;
0125                                                 };
0126                                         };
0127 
0128                                         port@1 {
0129                                                 reg = <1>;
0130                                                 label = "lan8";
0131                                                 phy-handle = <&phy_port6>;
0132                                         };
0133 
0134                                         port@2 {
0135                                                 reg = <2>;
0136                                                 label = "lan9";
0137                                                 phy-handle = <&phy_port7>;
0138                                         };
0139 
0140                                         port@3 {
0141                                                 reg = <3>;
0142                                                 label = "lan10";
0143                                                 phy-handle = <&phy_port8>;
0144                                         };
0145 
0146                                         port@4 {
0147                                                 reg = <4>;
0148                                                 label = "lan11";
0149                                                 phy-handle = <&phy_port9>;
0150                                         };
0151 
0152                                         port@5 {
0153                                                 reg = <5>;
0154                                                 label = "lan12";
0155                                                 phy-handle = <&phy_port10>;
0156                                         };
0157                                 };
0158                         };
0159                 };
0160 
0161                 mdio-mii@2000 {
0162                         reg = <0x2000>;
0163                         #address-cells = <1>;
0164                         #size-cells = <0>;
0165 
0166                         phy_port1: phy@0 {
0167                                 reg = <0>;
0168                         };
0169 
0170                         phy_port2: phy@1 {
0171                                 reg = <1>;
0172                         };
0173 
0174                         phy_port3: phy@2 {
0175                                 reg = <2>;
0176                         };
0177 
0178                         phy_port4: phy@3 {
0179                                 reg = <3>;
0180                         };
0181 
0182                         phy_port5: phy@4 {
0183                                 reg = <4>;
0184                         };
0185 
0186                         switch@10 {
0187                                 compatible = "qca,qca8337";
0188                                 reg = <0x10>;
0189                                 dsa,member = <2 0>;
0190 
0191                                 ports {
0192                                         #address-cells = <1>;
0193                                         #size-cells = <0>;
0194                                         port@0 {
0195                                                 reg = <0>;
0196                                                 ethernet = <&sgmii0>;
0197                                                 phy-mode = "sgmii";
0198                                                 qca,sgmii-enable-pll;
0199                                                 qca,sgmii-txclk-falling-edge;
0200                                                 fixed-link {
0201                                                         speed = <1000>;
0202                                                         full-duplex;
0203                                                 };
0204                                         };
0205 
0206                                         port@1 {
0207                                                 reg = <1>;
0208                                                 label = "lan3";
0209                                                 phy-handle = <&phy_port1>;
0210                                         };
0211 
0212                                         port@2 {
0213                                                 reg = <2>;
0214                                                 label = "lan4";
0215                                                 phy-handle = <&phy_port2>;
0216                                         };
0217 
0218                                         port@3 {
0219                                                 reg = <3>;
0220                                                 label = "lan5";
0221                                                 phy-handle = <&phy_port3>;
0222                                         };
0223 
0224                                         port@4 {
0225                                                 reg = <4>;
0226                                                 label = "lan6";
0227                                                 phy-handle = <&phy_port4>;
0228                                         };
0229 
0230                                         port@5 {
0231                                                 reg = <5>;
0232                                                 label = "lan7";
0233                                                 phy-handle = <&phy_port5>;
0234                                         };
0235                                 };
0236                         };
0237                 };
0238         };
0239 };
0240 
0241 &srab {
0242         compatible = "brcm,bcm58625-srab", "brcm,nsp-srab";
0243         status = "okay";
0244         dsa,member = <0 0>;
0245 
0246         ports {
0247                 port@0 {
0248                         label = "wan1";
0249                         reg = <0>;
0250                 };
0251 
0252                 port@1 {
0253                         label = "wan2";
0254                         reg = <1>;
0255                 };
0256 
0257                 sgmii0: port@4 {
0258                         label = "sw0";
0259                         reg = <4>;
0260                         fixed-link {
0261                                 speed = <1000>;
0262                                 full-duplex;
0263                         };
0264                 };
0265 
0266                 sgmii1: port@5 {
0267                         label = "sw1";
0268                         reg = <5>;
0269                         fixed-link {
0270                                 speed = <1000>;
0271                                 full-duplex;
0272                         };
0273                 };
0274 
0275                 port@8 {
0276                         ethernet = <&amac2>;
0277                         reg = <8>;
0278                         fixed-link {
0279                                 speed = <1000>;
0280                                 full-duplex;
0281                         };
0282                 };
0283         };
0284 };