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