123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211 |
- // SPDX-License-Identifier: GPL-2.0-only
- /*
- * Device Tree Source for Meraki MX60/MX60W (Buckminster)
- *
- * Copyright (C) 2016 Chris Blake <[email protected]>
- *
- * Based on Cisco Meraki DTS extracted from release wired-12-217818
- */
- /dts-v1/;
- #include <dt-bindings/leds/common.h>
- #include "apm82181.dtsi"
- / {
- model = "Meraki MX60/MX60W Security Appliance";
- compatible = "meraki,mx60", "meraki,buckminster", "apm,bluestone";
- aliases {
- serial0 = &UART1;
- };
- chosen {
- stdout-path = "/plb/opb/serial@ef600400";
- };
- };
- &CRYPTO {
- status = "okay";
- };
- &PKA {
- status = "okay";
- };
- &TRNG {
- status = "okay";
- };
- &USBOTG0 {
- status = "okay";
- dr_mode = "host";
- };
- &ndfc {
- /* Buckminster has 1GiB of NAND */
- status = "okay";
- nand {
- partitions {
- compatible = "fixed-partitions";
- #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>;
- compatible = "u-boot,env";
- 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 {
- compatible = "ethernet-phy-id004d.d034";
- reg = <0>;
- qca,mib-poll-interval = <500>;
- qca,ar8327-initvals = <
- 0x0010 0x40000000
- 0x0624 0x007f7f7f
- 0x0004 0x07a00000 /* PAD0_MODE */
- 0x000c 0x01000000 /* PAD6_MODE */
- 0x007c 0x0000007e /* PORT0_STATUS */
- >;
- };
- };
- };
- &POB0 {
- leds {
- compatible = "gpio-leds";
- led-0 {
- color = <LED_COLOR_ID_GREEN>;
- function = LED_FUNCTION_POWER;
- gpios = <&GPIO0 18 GPIO_ACTIVE_LOW>;
- };
- led-1 {
- color = <LED_COLOR_ID_AMBER>;
- function = LED_FUNCTION_FAULT;
- gpios = <&GPIO0 19 GPIO_ACTIVE_LOW>;
- panic-indicator;
- };
- led-2 {
- color = <LED_COLOR_ID_GREEN>;
- function = LED_FUNCTION_WAN;
- gpios = <&GPIO0 17 GPIO_ACTIVE_LOW>;
- };
- led-3 {
- color = <LED_COLOR_ID_AMBER>;
- function = LED_FUNCTION_WAN;
- gpios = <&GPIO0 15 GPIO_ACTIVE_LOW>;
- };
- led-4 {
- color = <LED_COLOR_ID_GREEN>;
- function = LED_FUNCTION_LAN;
- function-enumerator = <0>;
- gpios = <&GPIO0 20 GPIO_ACTIVE_LOW>;
- };
- led-5 {
- color = <LED_COLOR_ID_GREEN>;
- function = LED_FUNCTION_LAN;
- function-enumerator = <1>;
- gpios = <&GPIO0 21 GPIO_ACTIVE_LOW>;
- };
- led-6 {
- color = <LED_COLOR_ID_GREEN>;
- function = LED_FUNCTION_LAN;
- function-enumerator = <2>;
- gpios = <&GPIO0 22 GPIO_ACTIVE_LOW>;
- };
- led-7 {
- color = <LED_COLOR_ID_GREEN>;
- function = LED_FUNCTION_LAN;
- function-enumerator = <3>;
- gpios = <&GPIO0 23 GPIO_ACTIVE_LOW>;
- };
- };
- keys {
- compatible = "gpio-keys";
- button-restart {
- label = "Reset button";
- linux,code = <KEY_RESTART>;
- gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>;
- interrupt-parent = <&UIC1>;
- interrupts = <0x15 IRQ_TYPE_EDGE_FALLING>;
- debounce-interval = <60>;
- };
- };
- };
- &PCIE0 {
- /* Leave this enabled as u-boot on the MX60 will disable it for us */
- status = "okay";
- /*
- * 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>;
- interrupts = <1>; /* INTA */
- };
- };
- };
|