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/;
|
|
|
|
|
|
|
|
#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;
|
2017-11-28 21:51:07 +00:00
|
|
|
led-boot = &status;
|
|
|
|
led-failsafe = &failsafe;
|
|
|
|
led-running = &status;
|
|
|
|
led-upgrade = &status;
|
2016-11-16 15:38:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
|
|
|
&EBC0 {
|
|
|
|
/* Buckminster has 1GiB of NAND */
|
|
|
|
ndfc@1,0 {
|
|
|
|
status = "okay";
|
|
|
|
nand {
|
2021-02-20 16:44:12 +00:00
|
|
|
nand-is-boot-medium;
|
|
|
|
|
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>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@200000 {
|
|
|
|
label = "oops";
|
|
|
|
reg = <0x00200000 0x00040000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@240000 {
|
|
|
|
label = "ubi";
|
|
|
|
reg = <0x00240000 0x3fdc0000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&UART1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&GPIO0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&IIC0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&EMAC0 {
|
|
|
|
status = "okay";
|
|
|
|
phy-handle = <&phy0>;
|
|
|
|
|
|
|
|
mdio {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
phy0: ethernet-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>;
|
2019-04-14 15:23:38 +00:00
|
|
|
qca,mib-poll-interval = <500>;
|
|
|
|
|
2016-11-16 15:38:07 +00:00
|
|
|
qca,ar8327-initvals = <
|
|
|
|
0x0010 0x40000000
|
|
|
|
0x0624 0x007f7f7f
|
|
|
|
0x0004 0x07a00000 /* PAD0_MODE */
|
|
|
|
0x000c 0x01000000 /* PAD6_MODE */
|
|
|
|
0x007c 0x0000007e /* PORT0_STATUS */
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&POB0 {
|
2018-12-30 11:42:53 +00:00
|
|
|
leds {
|
2016-11-16 15:38:07 +00:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
2017-11-28 21:51:07 +00:00
|
|
|
status: power-green {
|
2016-11-16 15:38:07 +00:00
|
|
|
label = "mx60:green:power";
|
|
|
|
gpios = <&GPIO0 18 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
2017-11-28 21:51:07 +00:00
|
|
|
failsafe: power-orange {
|
2016-11-16 15:38:07 +00:00
|
|
|
label = "mx60:orange:power";
|
|
|
|
gpios = <&GPIO0 19 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wan-green {
|
|
|
|
label = "mx60:green:wan";
|
|
|
|
gpios = <&GPIO0 17 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
wan-orange {
|
|
|
|
label = "mx60:orange:wan";
|
|
|
|
gpios = <&GPIO0 15 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
lan1 {
|
|
|
|
label = "mx60:green:lan1";
|
|
|
|
gpios = <&GPIO0 20 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
lan2 {
|
|
|
|
label = "mx60:green:lan2";
|
|
|
|
gpios = <&GPIO0 21 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
lan3 {
|
|
|
|
label = "mx60:green:lan3";
|
|
|
|
gpios = <&GPIO0 22 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
lan4 {
|
|
|
|
label = "mx60:green:lan4";
|
|
|
|
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
|
|
|
|
2018-09-21 22:38:39 +00:00
|
|
|
reset {
|
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
|
|
|
};
|
|
|
|
|
|
|
|
&MSI {
|
|
|
|
status = "okay";
|
|
|
|
};
|