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 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_POWER; 110 color = <LED_COLOR_ID_AMBER>; 111 gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; 112 default-state = "on"; 113 }; 114 115 led-b { 116 /* white:status */ 117 function = LED_FUNCTION_STATUS; 118 color = <LED_COLOR_ID_WHITE>; 119 gpios = <&gpioa 31 GPIO_ACTIVE_HIGH>; 120 }; 121 }; 122}; 123 124&srab { 125 compatible = "brcm,bcm58625-srab", "brcm,nsp-srab"; 126 status = "okay"; 127 128 ports { 129 port@0 { 130 label = "lan1"; 131 reg = <0>; 132 }; 133 134 port@1 { 135 label = "lan2"; 136 reg = <1>; 137 }; 138 139 port@2 { 140 label = "lan3"; 141 reg = <2>; 142 }; 143 144 port@3 { 145 label = "lan4"; 146 reg = <3>; 147 }; 148 149 port@4 { 150 label = "wan"; 151 reg = <4>; 152 }; 153 154 port@8 { 155 ethernet = <&amac2>; 156 reg = <8>; 157 fixed-link { 158 speed = <1000>; 159 full-duplex; 160 }; 161 }; 162 }; 163}; 164