~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/scripts/dtc/include-prefixes/arm/broadcom/bcm958625-meraki-kingpin.dtsi

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2 /*
  3  * Device Tree Bindings for Cisco Meraki MX64 series (Kingpin).
  4  *
  5  * Copyright (C) 2020-2021 Matthew Hagan <mnhagan88@gmail.com>
  6  */
  7 
  8 #include "bcm958625-meraki-mx6x-common.dtsi"
  9 
 10 / {
 11 
 12         keys {
 13                 compatible = "gpio-keys-polled";
 14                 autorepeat;
 15                 poll-interval = <20>;
 16 
 17                 button-reset {
 18                         label = "reset";
 19                         linux,code = <KEY_RESTART>;
 20                         gpios = <&gpioa 6 GPIO_ACTIVE_LOW>;
 21                 };
 22         };
 23 
 24         leds {
 25                 compatible = "gpio-leds";
 26 
 27                 led-0 {
 28                         /* green:lan1-left */
 29                         function = LED_FUNCTION_ACTIVITY;
 30                         function-enumerator = <0>;
 31                         color = <LED_COLOR_ID_GREEN>;
 32                         gpios = <&gpioa 19 GPIO_ACTIVE_LOW>;
 33                 };
 34 
 35                 led-1 {
 36                         /* green:lan1-right */
 37                         function = LED_FUNCTION_ACTIVITY;
 38                         function-enumerator = <1>;
 39                         color = <LED_COLOR_ID_GREEN>;
 40                         gpios = <&gpioa 18 GPIO_ACTIVE_LOW>;
 41                 };
 42 
 43                 led-2 {
 44                         /* green:lan2-left */
 45                         function = LED_FUNCTION_ACTIVITY;
 46                         function-enumerator = <2>;
 47                         color = <LED_COLOR_ID_GREEN>;
 48                         gpios = <&gpioa 24 GPIO_ACTIVE_LOW>;
 49                 };
 50 
 51                 led-3 {
 52                         /* green:lan2-right */
 53                         function = LED_FUNCTION_ACTIVITY;
 54                         function-enumerator = <3>;
 55                         color = <LED_COLOR_ID_GREEN>;
 56                         gpios = <&gpioa 20 GPIO_ACTIVE_LOW>;
 57                 };
 58 
 59                 led-4 {
 60                         /* green:lan3-left */
 61                         function = LED_FUNCTION_ACTIVITY;
 62                         function-enumerator = <4>;
 63                         color = <LED_COLOR_ID_GREEN>;
 64                         gpios = <&gpioa 26 GPIO_ACTIVE_LOW>;
 65                 };
 66 
 67                 led-5 {
 68                         /* green:lan3-right */
 69                         function = LED_FUNCTION_ACTIVITY;
 70                         function-enumerator = <5>;
 71                         color = <LED_COLOR_ID_GREEN>;
 72                         gpios = <&gpioa 25 GPIO_ACTIVE_LOW>;
 73                 };
 74 
 75                 led-6 {
 76                         /* green:lan4-left */
 77                         function = LED_FUNCTION_ACTIVITY;
 78                         function-enumerator = <6>;
 79                         color = <LED_COLOR_ID_GREEN>;
 80                         gpios = <&gpioa 28 GPIO_ACTIVE_LOW>;
 81                 };
 82 
 83                 led-7 {
 84                         /* green:lan4-right */
 85                         function = LED_FUNCTION_ACTIVITY;
 86                         function-enumerator = <7>;
 87                         color = <LED_COLOR_ID_GREEN>;
 88                         gpios = <&gpioa 27 GPIO_ACTIVE_LOW>;
 89                 };
 90 
 91                 led-8 {
 92                         /* green:wan-left */
 93                         function = LED_FUNCTION_ACTIVITY;
 94                         function-enumerator = <8>;
 95                         color = <LED_COLOR_ID_GREEN>;
 96                         gpios = <&gpioa 30 GPIO_ACTIVE_LOW>;
 97                 };
 98 
 99                 led-9 {
100                         /* green:wan-right */
101                         function = LED_FUNCTION_ACTIVITY;
102                         function-enumerator = <9>;
103                         color = <LED_COLOR_ID_GREEN>;
104                         gpios = <&gpioa 29 GPIO_ACTIVE_LOW>;
105                 };
106 
107                 led-a {
108                         /* amber:power */
109                         function = LED_FUNCTION_FAULT;
110                         color = <LED_COLOR_ID_AMBER>;
111                         gpios = <&gpioa 0 GPIO_ACTIVE_LOW>;
112                 };
113 
114                 led-b {
115                         /* white:status */
116                         function = LED_FUNCTION_STATUS;
117                         color = <LED_COLOR_ID_WHITE>;
118                         gpios = <&gpioa 31 GPIO_ACTIVE_HIGH>;
119                 };
120         };
121 };
122 
123 &srab {
124         compatible = "brcm,bcm58625-srab", "brcm,nsp-srab";
125         status = "okay";
126 
127         ports {
128                 port@0 {
129                         label = "lan1";
130                         reg = <0>;
131                 };
132 
133                 port@1 {
134                         label = "lan2";
135                         reg = <1>;
136                 };
137 
138                 port@2 {
139                         label = "lan3";
140                         reg = <2>;
141                 };
142 
143                 port@3 {
144                         label = "lan4";
145                         reg = <3>;
146                 };
147 
148                 port@4 {
149                         label = "wan";
150                         reg = <4>;
151                 };
152 
153                 port@8 {
154                         ethernet = <&amac2>;
155                         reg = <8>;
156                         fixed-link {
157                                 speed = <1000>;
158                                 full-duplex;
159                         };
160                 };
161         };
162 };

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php