2020-08-13 15:39:10 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
2016-11-16 15:38:07 +00:00
|
|
|
/*
|
|
|
|
* Device Tree Source for Meraki MX60/MX60W (Buckminster)
|
|
|
|
*
|
|
|
|
* Copyright (C) 2016 Chris Blake <chrisrblake93@gmail.com>
|
|
|
|
*
|
|
|
|
* Based on Cisco Meraki DTS extracted from release wired-12-217818
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
|
2020-08-13 16:26:19 +00:00
|
|
|
#include <dt-bindings/leds/common.h>
|
2016-11-16 15:38:07 +00:00
|
|
|
#include "apm82181.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Meraki MX60/MX60W Security Appliance";
|
2017-12-17 13:59:57 +00:00
|
|
|
compatible = "meraki,mx60", "meraki,buckminster", "apm,bluestone";
|
2016-11-16 15:38:07 +00:00
|
|
|
|
|
|
|
aliases {
|
|
|
|
serial0 = &UART1;
|
|
|
|
};
|
|
|
|
|
|
|
|
chosen {
|
2018-09-21 22:38:37 +00:00
|
|
|
stdout-path = "/plb/opb/serial@ef600400";
|
2016-11-16 15:38:07 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&CRYPTO {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&PKA {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&TRNG {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&USBOTG0 {
|
|
|
|
status = "okay";
|
|
|
|
dr_mode = "host";
|
|
|
|
};
|
|
|
|
|
2022-01-16 19:13:24 +00:00
|
|
|
&ndfc {
|
2016-11-16 15:38:07 +00:00
|
|
|
/* Buckminster has 1GiB of NAND */
|
2022-01-16 19:13:24 +00:00
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
nand {
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
2021-02-20 16:44:12 +00:00
|
|
|
|
2016-11-16 15:38:07 +00:00
|
|
|
partition@0 {
|
|
|
|
label = "u-boot";
|
|
|
|
reg = <0x00000000 0x00100000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@100000 {
|
|
|
|
label = "u-boot-env";
|
|
|
|
reg = <0x00100000 0x00100000>;
|
2023-06-09 18:34:02 +00:00
|
|
|
compatible = "u-boot,env";
|
2016-11-16 15:38:07 +00:00
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@200000 {
|
|
|
|
label = "oops";
|
|
|
|
reg = <0x00200000 0x00040000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@240000 {
|
2024-08-20 19:54:04 +00:00
|
|
|
compatible = "linux,ubi";
|
2016-11-16 15:38:07 +00:00
|
|
|
label = "ubi";
|
|
|
|
reg = <0x00240000 0x3fdc0000>;
|
2024-08-20 19:54:04 +00:00
|
|
|
|
|
|
|
volumes {
|
|
|
|
ubi-volume-board-config {
|
|
|
|
volume = "board-config";
|
|
|
|
|
|
|
|
nvmem-layout {
|
|
|
|
compatible = "fixed-layout";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
macaddr_board_66: macaddr@66 {
|
|
|
|
compatible = "mac-base";
|
|
|
|
reg = <0x66 0x6>;
|
|
|
|
#nvmem-cell-cells = <1>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2016-11-16 15:38:07 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&UART1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&GPIO0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&IIC0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&EMAC0 {
|
|
|
|
status = "okay";
|
2023-10-09 20:15:52 +00:00
|
|
|
|
2024-08-20 19:54:04 +00:00
|
|
|
nvmem-cells = <&macaddr_board_66 0>;
|
|
|
|
nvmem-cell-names = "mac-address";
|
|
|
|
|
2023-10-09 20:15:52 +00:00
|
|
|
fixed-link {
|
|
|
|
speed = <1000>;
|
|
|
|
full-duplex;
|
|
|
|
};
|
2016-11-16 15:38:07 +00:00
|
|
|
|
|
|
|
mdio {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
2023-10-09 20:15:52 +00:00
|
|
|
|
|
|
|
phy_port1: phy@0 {
|
2018-04-10 15:59:42 +00:00
|
|
|
compatible = "ethernet-phy-id004d.d034";
|
2016-11-16 15:38:07 +00:00
|
|
|
reg = <0>;
|
2023-10-09 20:15:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
phy_port2: phy@1 {
|
|
|
|
compatible = "ethernet-phy-id004d.d034";
|
|
|
|
reg = <1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
phy_port3: phy@2 {
|
|
|
|
compatible = "ethernet-phy-id004d.d034";
|
|
|
|
reg = <2>;
|
|
|
|
};
|
|
|
|
|
|
|
|
phy_port4: phy@3 {
|
|
|
|
compatible = "ethernet-phy-id004d.d034";
|
|
|
|
reg = <3>;
|
|
|
|
};
|
|
|
|
|
|
|
|
phy_port5: phy@4 {
|
|
|
|
compatible = "ethernet-phy-id004d.d034";
|
|
|
|
reg = <4>;
|
|
|
|
};
|
|
|
|
|
|
|
|
switch0@10 {
|
|
|
|
compatible = "qca,qca8327";
|
|
|
|
reg = <0x10>;
|
|
|
|
|
|
|
|
ports {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
port@0 {
|
|
|
|
reg = <0>;
|
|
|
|
ethernet = <&EMAC0>;
|
|
|
|
phy-mode = "rgmii-id";
|
|
|
|
tx-internal-delay-ps = <2000>;
|
|
|
|
|
|
|
|
fixed-link {
|
|
|
|
speed = <1000>;
|
|
|
|
full-duplex;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
port@1 {
|
|
|
|
reg = <1>;
|
|
|
|
label = "lan4";
|
|
|
|
phy-mode = "internal";
|
|
|
|
phy-handle = <&phy_port1>;
|
|
|
|
|
|
|
|
leds {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
led@0 {
|
|
|
|
reg = <0>;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
function = LED_FUNCTION_LAN;
|
|
|
|
function-enumerator = <0>;
|
|
|
|
default-state = "keep";
|
|
|
|
};
|
|
|
|
|
|
|
|
led@1 {
|
|
|
|
reg = <1>;
|
|
|
|
color = <LED_COLOR_ID_ORANGE>;
|
|
|
|
function = LED_FUNCTION_LAN;
|
|
|
|
function-enumerator = <1>;
|
|
|
|
default-state = "keep";
|
|
|
|
};
|
|
|
|
|
|
|
|
led@2 {
|
|
|
|
reg = <2>;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
function = LED_FUNCTION_LAN;
|
|
|
|
function-enumerator = <2>;
|
|
|
|
default-state = "keep";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
port@2 {
|
|
|
|
reg = <2>;
|
|
|
|
label = "lan3";
|
|
|
|
phy-mode = "internal";
|
|
|
|
phy-handle = <&phy_port2>;
|
|
|
|
|
|
|
|
leds {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
led@0 {
|
|
|
|
reg = <0>;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
function = LED_FUNCTION_LAN;
|
|
|
|
function-enumerator = <0>;
|
|
|
|
default-state = "keep";
|
|
|
|
};
|
|
|
|
|
|
|
|
led@1 {
|
|
|
|
reg = <1>;
|
|
|
|
color = <LED_COLOR_ID_ORANGE>;
|
|
|
|
function = LED_FUNCTION_LAN;
|
|
|
|
function-enumerator = <1>;
|
|
|
|
default-state = "keep";
|
|
|
|
};
|
|
|
|
|
|
|
|
led@2 {
|
|
|
|
reg = <2>;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
function = LED_FUNCTION_LAN;
|
|
|
|
function-enumerator = <2>;
|
|
|
|
default-state = "keep";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
port@3 {
|
|
|
|
reg = <3>;
|
|
|
|
label = "lan2";
|
|
|
|
phy-mode = "internal";
|
|
|
|
phy-handle = <&phy_port3>;
|
|
|
|
|
|
|
|
leds {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
led@0 {
|
|
|
|
reg = <0>;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
function = LED_FUNCTION_LAN;
|
|
|
|
function-enumerator = <0>;
|
|
|
|
default-state = "keep";
|
|
|
|
};
|
|
|
|
|
|
|
|
led@1 {
|
|
|
|
reg = <1>;
|
|
|
|
color = <LED_COLOR_ID_ORANGE>;
|
|
|
|
function = LED_FUNCTION_LAN;
|
|
|
|
function-enumerator = <1>;
|
|
|
|
default-state = "keep";
|
|
|
|
};
|
|
|
|
|
|
|
|
led@2 {
|
|
|
|
reg = <2>;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
function = LED_FUNCTION_LAN;
|
|
|
|
function-enumerator = <2>;
|
|
|
|
default-state = "keep";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
port@4 {
|
|
|
|
reg = <4>;
|
|
|
|
label = "lan1";
|
|
|
|
phy-mode = "internal";
|
|
|
|
phy-handle = <&phy_port4>;
|
|
|
|
|
|
|
|
leds {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
led@0 {
|
|
|
|
reg = <0>;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
function = LED_FUNCTION_LAN;
|
|
|
|
function-enumerator = <0>;
|
|
|
|
default-state = "keep";
|
|
|
|
};
|
|
|
|
|
|
|
|
led@1 {
|
|
|
|
reg = <1>;
|
|
|
|
color = <LED_COLOR_ID_ORANGE>;
|
|
|
|
function = LED_FUNCTION_LAN;
|
|
|
|
function-enumerator = <1>;
|
|
|
|
default-state = "keep";
|
|
|
|
};
|
|
|
|
|
|
|
|
led@2 {
|
|
|
|
reg = <2>;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
function = LED_FUNCTION_LAN;
|
|
|
|
function-enumerator = <2>;
|
|
|
|
default-state = "keep";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
port@5 {
|
|
|
|
reg = <5>;
|
|
|
|
label = "wan";
|
|
|
|
phy-mode = "internal";
|
|
|
|
phy-handle = <&phy_port5>;
|
2024-08-20 19:54:04 +00:00
|
|
|
nvmem-cells = <&macaddr_board_66 1>;
|
|
|
|
nvmem-cell-names = "mac-address";
|
2023-10-09 20:15:52 +00:00
|
|
|
|
|
|
|
leds {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
led@0 {
|
|
|
|
reg = <0>;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
function = LED_FUNCTION_WAN;
|
|
|
|
function-enumerator = <0>;
|
|
|
|
default-state = "keep";
|
|
|
|
};
|
|
|
|
|
|
|
|
led@1 {
|
|
|
|
reg = <1>;
|
|
|
|
color = <LED_COLOR_ID_ORANGE>;
|
|
|
|
function = LED_FUNCTION_WAN;
|
|
|
|
function-enumerator = <1>;
|
|
|
|
default-state = "keep";
|
|
|
|
};
|
|
|
|
|
|
|
|
led@2 {
|
|
|
|
reg = <2>;
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
function = LED_FUNCTION_WAN;
|
|
|
|
function-enumerator = <2>;
|
|
|
|
default-state = "keep";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2016-11-16 15:38:07 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&POB0 {
|
2018-12-30 11:42:53 +00:00
|
|
|
leds {
|
2016-11-16 15:38:07 +00:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
2020-08-13 16:26:19 +00:00
|
|
|
led-0 {
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
function = LED_FUNCTION_POWER;
|
2016-11-16 15:38:07 +00:00
|
|
|
gpios = <&GPIO0 18 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2020-08-13 16:26:19 +00:00
|
|
|
led-1 {
|
|
|
|
color = <LED_COLOR_ID_AMBER>;
|
|
|
|
function = LED_FUNCTION_FAULT;
|
2016-11-16 15:38:07 +00:00
|
|
|
gpios = <&GPIO0 19 GPIO_ACTIVE_LOW>;
|
2020-08-13 16:26:19 +00:00
|
|
|
panic-indicator;
|
2016-11-16 15:38:07 +00:00
|
|
|
};
|
|
|
|
|
2020-08-13 16:26:19 +00:00
|
|
|
led-2 {
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
function = LED_FUNCTION_WAN;
|
2016-11-16 15:38:07 +00:00
|
|
|
gpios = <&GPIO0 17 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2020-08-13 16:26:19 +00:00
|
|
|
led-3 {
|
|
|
|
color = <LED_COLOR_ID_AMBER>;
|
|
|
|
function = LED_FUNCTION_WAN;
|
2016-11-16 15:38:07 +00:00
|
|
|
gpios = <&GPIO0 15 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2020-08-13 16:26:19 +00:00
|
|
|
led-4 {
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
function = LED_FUNCTION_LAN;
|
|
|
|
function-enumerator = <0>;
|
2016-11-16 15:38:07 +00:00
|
|
|
gpios = <&GPIO0 20 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2020-08-13 16:26:19 +00:00
|
|
|
led-5 {
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
function = LED_FUNCTION_LAN;
|
|
|
|
function-enumerator = <1>;
|
2016-11-16 15:38:07 +00:00
|
|
|
gpios = <&GPIO0 21 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2020-08-13 16:26:19 +00:00
|
|
|
led-6 {
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
function = LED_FUNCTION_LAN;
|
|
|
|
function-enumerator = <2>;
|
2016-11-16 15:38:07 +00:00
|
|
|
gpios = <&GPIO0 22 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2020-08-13 16:26:19 +00:00
|
|
|
led-7 {
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
function = LED_FUNCTION_LAN;
|
|
|
|
function-enumerator = <3>;
|
2016-11-16 15:38:07 +00:00
|
|
|
gpios = <&GPIO0 23 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-30 11:17:25 +00:00
|
|
|
keys {
|
2019-05-31 14:29:32 +00:00
|
|
|
compatible = "gpio-keys";
|
2016-11-16 15:38:07 +00:00
|
|
|
|
2022-06-17 14:10:16 +00:00
|
|
|
button-restart {
|
2016-11-16 15:38:07 +00:00
|
|
|
label = "Reset button";
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>;
|
2019-05-31 14:29:32 +00:00
|
|
|
interrupt-parent = <&UIC1>;
|
|
|
|
interrupts = <0x15 IRQ_TYPE_EDGE_FALLING>;
|
2019-06-15 17:13:30 +00:00
|
|
|
debounce-interval = <60>;
|
2016-11-16 15:38:07 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&PCIE0 {
|
|
|
|
/* Leave this enabled as u-boot on the MX60 will disable it for us */
|
|
|
|
status = "okay";
|
2020-08-12 20:03:27 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* relevant lspci topology:
|
|
|
|
*
|
|
|
|
* -+-[0000:40]---00.0-[41-7f]----00.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
bridge@64,0 {
|
|
|
|
reg = <0x00400000 0 0 0 0>;
|
|
|
|
#address-cells = <3>;
|
|
|
|
#size-cells = <2>;
|
|
|
|
ranges;
|
|
|
|
|
|
|
|
wifi0: wifi@65,0 {
|
|
|
|
/* Atheros AR9380 2.4/5GHz */
|
|
|
|
compatible = "pci168c,0030";
|
|
|
|
reg = <0x00410000 0 0 0 0>;
|
2020-09-03 19:24:16 +00:00
|
|
|
interrupts = <1>; /* INTA */
|
2020-08-12 20:03:27 +00:00
|
|
|
};
|
|
|
|
};
|
2016-11-16 15:38:07 +00:00
|
|
|
};
|