2016-07-20 13:44:54 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2008 DENX Software Engineering, Stefan Roese <sr@denx.de>
|
|
|
|
* (c) Copyright 2010 Western Digital Technologies, Inc. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
#include "apm82181.dtsi"
|
|
|
|
|
2016-07-20 13:44:54 +00:00
|
|
|
/ {
|
|
|
|
compatible = "amcc,apollo3g";
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
serial0 = &UART0;
|
2017-11-28 21:51:07 +00:00
|
|
|
led-boot = &status;
|
|
|
|
led-failsafe = &status;
|
|
|
|
led-running = &status;
|
|
|
|
led-upgrade = &status;
|
2016-07-20 13:44:54 +00:00
|
|
|
};
|
2016-11-12 13:46:32 +00:00
|
|
|
};
|
2016-07-20 13:44:54 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
&POB0 {
|
|
|
|
ebc {
|
|
|
|
nor_flash@0,0 {
|
|
|
|
status = "okay";
|
|
|
|
compatible = "amd,s29gl512n", "jedec-probe", "cfi-flash", "mtd-rom";
|
|
|
|
bank-width = <1>;
|
|
|
|
reg = <0x00000000 0x00000000 0x00080000>;
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
2016-07-20 13:44:54 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
partition@0 {
|
|
|
|
/* Part of bootrom - Don't use it without a jump */
|
|
|
|
label = "free";
|
|
|
|
reg = <0x00000000 0x0001e000>;
|
|
|
|
};
|
2016-07-20 13:44:54 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
partition@1 {
|
|
|
|
label = "env";
|
|
|
|
reg = <0x0001e000 0x00002000>;
|
|
|
|
};
|
2016-07-20 13:44:54 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
partition@2 {
|
|
|
|
label = "uboot";
|
|
|
|
reg = <0x00020000 0x00050000>;
|
|
|
|
};
|
|
|
|
};
|
2016-07-20 13:44:54 +00:00
|
|
|
};
|
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
GPIO1: gpio1@e0000000 {
|
|
|
|
compatible = "wd,mbl-gpio", "ti,74273";
|
|
|
|
reg-names = "dat";
|
|
|
|
reg = <0xe0000000 0x1>;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
gpio-controller;
|
|
|
|
|
|
|
|
enable-phy {
|
|
|
|
/* toggle to reset EMAC PHY */
|
|
|
|
gpio-hog;
|
|
|
|
line-name = "enable EMAC PHY";
|
|
|
|
gpios = <0 GPIO_ACTIVE_LOW>;
|
|
|
|
output-low;
|
2016-07-20 13:44:54 +00:00
|
|
|
};
|
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
enable-button {
|
|
|
|
/* Defined in u-boot as: NOT_NOR
|
|
|
|
* "enables features other than NOR
|
|
|
|
* specifically, the buffer at CS2"
|
|
|
|
* (button).
|
|
|
|
*
|
|
|
|
* Note: This option is disabled as
|
|
|
|
* it prevents the system from being
|
|
|
|
* rebooted successfully.
|
|
|
|
*/
|
|
|
|
|
|
|
|
gpio-hog;
|
|
|
|
line-name = "Enable Reset Button, disable NOR";
|
|
|
|
gpios = <1 GPIO_ACTIVE_HIGH>;
|
|
|
|
output-low;
|
2016-07-20 13:44:54 +00:00
|
|
|
};
|
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
enable-usb {
|
|
|
|
gpio-hog;
|
|
|
|
line-name = "Power USB Core";
|
|
|
|
gpios = <2 GPIO_ACTIVE_LOW>;
|
|
|
|
output-low;
|
|
|
|
status = "disabled";
|
2016-07-20 13:44:54 +00:00
|
|
|
};
|
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
enable-port1 {
|
|
|
|
gpio-hog;
|
|
|
|
line-name = "Power Drive Port 1";
|
|
|
|
gpios = <3 GPIO_ACTIVE_LOW>;
|
|
|
|
output-low;
|
2016-07-20 13:44:54 +00:00
|
|
|
};
|
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
enable-port0 {
|
|
|
|
gpio-hog;
|
|
|
|
line-name = "Power Drive Port 0";
|
|
|
|
gpios = <7 GPIO_ACTIVE_LOW>;
|
|
|
|
output-low;
|
|
|
|
status = "disabled";
|
2016-07-20 13:44:54 +00:00
|
|
|
};
|
2016-11-12 13:46:32 +00:00
|
|
|
};
|
2016-07-20 13:44:54 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
GPIO2: gpio2@e0100000 {
|
|
|
|
compatible = "wd,mbl-gpio", "ti,74244";
|
|
|
|
reg-names = "dat";
|
|
|
|
reg = <0xe0100000 0x1>;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
gpio-controller;
|
|
|
|
no-output;
|
|
|
|
};
|
2016-07-20 13:44:54 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
gpio-leds {
|
|
|
|
compatible = "gpio-leds";
|
2016-07-20 13:44:54 +00:00
|
|
|
|
2017-11-28 21:51:07 +00:00
|
|
|
failsafe: power-red {
|
2016-11-12 13:46:32 +00:00
|
|
|
label = "mbl:red:power";
|
|
|
|
gpios = <&GPIO1 4 GPIO_ACTIVE_HIGH>;
|
|
|
|
linux,default-trigger = "panic";
|
2016-07-20 13:44:54 +00:00
|
|
|
};
|
|
|
|
|
2017-11-28 21:51:07 +00:00
|
|
|
status: power-green {
|
2016-11-12 13:46:32 +00:00
|
|
|
label = "mbl:green:power";
|
|
|
|
gpios = <&GPIO1 5 GPIO_ACTIVE_HIGH>;
|
2016-07-20 13:44:54 +00:00
|
|
|
};
|
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
power-blue {
|
|
|
|
label = "mbl:blue:power";
|
|
|
|
gpios = <&GPIO1 6 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
};
|
2016-07-20 13:44:54 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
gpio_keys_polled {
|
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
poll-interval = <60>; /* 3 * 20 = 60ms */
|
|
|
|
autorepeat;
|
2016-07-20 13:44:54 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
button@1 {
|
|
|
|
label = "Reset button";
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
gpios = <&GPIO2 2 GPIO_ACTIVE_LOW>;
|
2016-07-20 13:44:54 +00:00
|
|
|
};
|
2016-11-12 13:46:32 +00:00
|
|
|
};
|
|
|
|
};
|
2016-07-20 13:44:54 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
&CRYPTO {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2016-07-20 13:44:54 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
&PKA {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2016-07-20 13:44:54 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
&TRNG {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2016-07-20 13:44:54 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
&SATA1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2016-07-20 13:44:54 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
&UART0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2016-07-20 13:44:54 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
&EMAC0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&SATA1 {
|
|
|
|
status = "okay";
|
2016-07-20 13:44:54 +00:00
|
|
|
};
|