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 MX64 series (Kingpin).
0004  *
0005  * Copyright (C) 2020-2021 Matthew Hagan <mnhagan88@gmail.com>
0006  */
0007 
0008 #include "bcm958625-meraki-mx6x-common.dtsi"
0009 
0010 / {
0011 
0012         keys {
0013                 compatible = "gpio-keys-polled";
0014                 autorepeat;
0015                 poll-interval = <20>;
0016 
0017                 button-reset {
0018                         label = "reset";
0019                         linux,code = <KEY_RESTART>;
0020                         gpios = <&gpioa 6 GPIO_ACTIVE_LOW>;
0021                 };
0022         };
0023 
0024         leds {
0025                 compatible = "gpio-leds";
0026 
0027                 led-0 {
0028                         /* green:lan1-left */
0029                         function = LED_FUNCTION_ACTIVITY;
0030                         function-enumerator = <0>;
0031                         color = <LED_COLOR_ID_GREEN>;
0032                         gpios = <&gpioa 19 GPIO_ACTIVE_LOW>;
0033                 };
0034 
0035                 led-1 {
0036                         /* green:lan1-right */
0037                         function = LED_FUNCTION_ACTIVITY;
0038                         function-enumerator = <1>;
0039                         color = <LED_COLOR_ID_GREEN>;
0040                         gpios = <&gpioa 18 GPIO_ACTIVE_LOW>;
0041                 };
0042 
0043                 led-2 {
0044                         /* green:lan2-left */
0045                         function = LED_FUNCTION_ACTIVITY;
0046                         function-enumerator = <2>;
0047                         color = <LED_COLOR_ID_GREEN>;
0048                         gpios = <&gpioa 24 GPIO_ACTIVE_LOW>;
0049                 };
0050 
0051                 led-3 {
0052                         /* green:lan2-right */
0053                         function = LED_FUNCTION_ACTIVITY;
0054                         function-enumerator = <3>;
0055                         color = <LED_COLOR_ID_GREEN>;
0056                         gpios = <&gpioa 20 GPIO_ACTIVE_LOW>;
0057                 };
0058 
0059                 led-4 {
0060                         /* green:lan3-left */
0061                         function = LED_FUNCTION_ACTIVITY;
0062                         function-enumerator = <4>;
0063                         color = <LED_COLOR_ID_GREEN>;
0064                         gpios = <&gpioa 26 GPIO_ACTIVE_LOW>;
0065                 };
0066 
0067                 led-5 {
0068                         /* green:lan3-right */
0069                         function = LED_FUNCTION_ACTIVITY;
0070                         function-enumerator = <5>;
0071                         color = <LED_COLOR_ID_GREEN>;
0072                         gpios = <&gpioa 25 GPIO_ACTIVE_LOW>;
0073                 };
0074 
0075                 led-6 {
0076                         /* green:lan4-left */
0077                         function = LED_FUNCTION_ACTIVITY;
0078                         function-enumerator = <6>;
0079                         color = <LED_COLOR_ID_GREEN>;
0080                         gpios = <&gpioa 28 GPIO_ACTIVE_LOW>;
0081                 };
0082 
0083                 led-7 {
0084                         /* green:lan4-right */
0085                         function = LED_FUNCTION_ACTIVITY;
0086                         function-enumerator = <7>;
0087                         color = <LED_COLOR_ID_GREEN>;
0088                         gpios = <&gpioa 27 GPIO_ACTIVE_LOW>;
0089                 };
0090 
0091                 led-8 {
0092                         /* green:wan-left */
0093                         function = LED_FUNCTION_ACTIVITY;
0094                         function-enumerator = <8>;
0095                         color = <LED_COLOR_ID_GREEN>;
0096                         gpios = <&gpioa 30 GPIO_ACTIVE_LOW>;
0097                 };
0098 
0099                 led-9 {
0100                         /* green:wan-right */
0101                         function = LED_FUNCTION_ACTIVITY;
0102                         function-enumerator = <9>;
0103                         color = <LED_COLOR_ID_GREEN>;
0104                         gpios = <&gpioa 29 GPIO_ACTIVE_LOW>;
0105                 };
0106 
0107                 led-a {
0108                         /* amber:power */
0109                         function = LED_FUNCTION_FAULT;
0110                         color = <LED_COLOR_ID_AMBER>;
0111                         gpios = <&gpioa 0 GPIO_ACTIVE_LOW>;
0112                 };
0113 
0114                 led-b {
0115                         /* white:status */
0116                         function = LED_FUNCTION_STATUS;
0117                         color = <LED_COLOR_ID_WHITE>;
0118                         gpios = <&gpioa 31 GPIO_ACTIVE_HIGH>;
0119                 };
0120         };
0121 };
0122 
0123 &srab {
0124         compatible = "brcm,bcm58625-srab", "brcm,nsp-srab";
0125         status = "okay";
0126 
0127         ports {
0128                 port@0 {
0129                         label = "lan1";
0130                         reg = <0>;
0131                 };
0132 
0133                 port@1 {
0134                         label = "lan2";
0135                         reg = <1>;
0136                 };
0137 
0138                 port@2 {
0139                         label = "lan3";
0140                         reg = <2>;
0141                 };
0142 
0143                 port@3 {
0144                         label = "lan4";
0145                         reg = <3>;
0146                 };
0147 
0148                 port@4 {
0149                         label = "wan";
0150                         reg = <4>;
0151                 };
0152 
0153                 port@8 {
0154                         ethernet = <&amac2>;
0155                         reg = <8>;
0156                         fixed-link {
0157                                 speed = <1000>;
0158                                 full-duplex;
0159                         };
0160                 };
0161         };
0162 };