apm821xx: Add support for the Cisco Meraki MX60/MX60W
This patch adds support for the Cisco Meraki MX60/MX60W Security Appliance. Flashing information can be found at https://github.com/riptidewave93/LEDE-MX60 Specs are as follows: AppliedMicro APM82181 SoC at 800MHz 1GiB NAND - Samsung K9K8G08U0D 512MB DDR RAM - 4x Nanya NT5TU128M8GE-AC Atheros AR8327-BL1A Gigabit Ethernet Switch 1x USB 2.0 Port More info can be found at https://wiki.openwrt.org/toh/meraki/mx60 Cc: Christian Lamparter <chunkeey@gmail.com> Signed-off-by: Chris Blake <chrisrblake93@gmail.com>v19.07.3_mercusys_ac12_duma
parent
68634426fe
commit
f478ec2007
@ -0,0 +1,186 @@
|
||||
/*
|
||||
* 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
|
||||
*
|
||||
* This file is licensed under the terms of the GNU General Public
|
||||
* License version 2. This program is licensed "as is" without
|
||||
* any warranty of any kind, whether express or implied.
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
#include "apm82181.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Meraki MX60/MX60W Security Appliance";
|
||||
compatible = "meraki,buckminster";
|
||||
|
||||
aliases {
|
||||
serial0 = &UART1;
|
||||
};
|
||||
|
||||
chosen {
|
||||
linux,stdout-path = "/plb/opb/serial@ef600400";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
&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 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
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>;
|
||||
};
|
||||
|
||||
all {
|
||||
label = "all";
|
||||
reg = <0x00000000 0x40000000>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&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 {
|
||||
device_type = "ethernet-phy";
|
||||
reg = <0>;
|
||||
qca,ar8327-initvals = <
|
||||
0x0010 0x40000000
|
||||
0x0624 0x007f7f7f
|
||||
0x0004 0x07a00000 /* PAD0_MODE */
|
||||
0x000c 0x01000000 /* PAD6_MODE */
|
||||
0x007c 0x0000007e /* PORT0_STATUS */
|
||||
>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&POB0 {
|
||||
gpio-leds {
|
||||
compatible = "gpio-leds";
|
||||
|
||||
power-green {
|
||||
label = "mx60:green:power";
|
||||
gpios = <&GPIO0 18 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
|
||||
power-orange {
|
||||
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>;
|
||||
};
|
||||
};
|
||||
|
||||
gpio_keys_polled {
|
||||
compatible = "gpio-keys-polled";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
poll-interval = <60>; /* 3 * 20 = 60ms */
|
||||
autorepeat;
|
||||
|
||||
button@1 {
|
||||
label = "Reset button";
|
||||
linux,code = <KEY_RESTART>;
|
||||
gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&PCIE0 {
|
||||
/* Leave this enabled as u-boot on the MX60 will disable it for us */
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&MSI {
|
||||
status = "okay";
|
||||
};
|
@ -0,0 +1,32 @@
|
||||
--- a/arch/powerpc/platforms/44x/Kconfig
|
||||
+++ b/arch/powerpc/platforms/44x/Kconfig
|
||||
@@ -30,6 +30,19 @@
|
||||
help
|
||||
This option enables support for the APM APM821xx Evaluation board.
|
||||
|
||||
+config BUCKMINSTER
|
||||
+ bool "Buckminster"
|
||||
+ depends on 44x
|
||||
+ default n
|
||||
+ select APM821xx
|
||||
+ select PCI_MSI
|
||||
+ select PPC4xx_MSI
|
||||
+ select PPC4xx_PCI_EXPRESS
|
||||
+ select IBM_EMAC_RGMII
|
||||
+ select 460EX
|
||||
+ help
|
||||
+ This option enables support for the Cisco Meraki MX60/MX60W (Buckminster) Security Appliance
|
||||
+
|
||||
config EBONY
|
||||
bool "Ebony"
|
||||
depends on 44x
|
||||
--- a/arch/powerpc/platforms/44x/ppc44x_simple.c
|
||||
+++ b/arch/powerpc/platforms/44x/ppc44x_simple.c
|
||||
@@ -63,6 +63,7 @@
|
||||
"amcc,sequoia",
|
||||
"amcc,taishan",
|
||||
"amcc,yosemite",
|
||||
+ "meraki,buckminster",
|
||||
"meraki,ikarem",
|
||||
"mosaixtech,icon"
|
||||
};
|
Loading…
Reference in New Issue