2020-08-13 15:39:10 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
|
2018-07-16 20:56:36 +00:00
|
|
|
#include "apm82181.dtsi"
|
2016-07-20 13:44:54 +00:00
|
|
|
|
|
|
|
/ {
|
2017-12-17 13:59:56 +00:00
|
|
|
compatible = "wd,mybooklive", "amcc,apollo3g";
|
2016-07-20 13:44:54 +00:00
|
|
|
model = "MyBook Live";
|
2018-07-16 20:56:36 +00:00
|
|
|
|
|
|
|
aliases {
|
|
|
|
serial0 = &UART0;
|
|
|
|
led-boot = &status;
|
|
|
|
led-failsafe = &status;
|
|
|
|
led-running = &status;
|
|
|
|
led-upgrade = &status;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&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>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
/* Part of bootrom - Don't use it without a jump */
|
|
|
|
label = "free";
|
|
|
|
reg = <0x00000000 0x0001e000>;
|
|
|
|
};
|
|
|
|
|
2018-12-23 21:15:34 +00:00
|
|
|
partition@1e000 {
|
2018-07-16 20:56:36 +00:00
|
|
|
label = "env";
|
|
|
|
reg = <0x0001e000 0x00002000>;
|
|
|
|
};
|
|
|
|
|
2018-12-23 21:15:34 +00:00
|
|
|
partition@20000 {
|
2018-07-16 20:56:36 +00:00
|
|
|
label = "uboot";
|
|
|
|
reg = <0x00020000 0x00050000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-23 21:15:34 +00:00
|
|
|
GPIO1: gpio@e0000000 {
|
2018-07-16 20:56:36 +00:00
|
|
|
compatible = "wd,mbl-gpio", "ti,74273";
|
|
|
|
reg-names = "dat";
|
|
|
|
reg = <0xe0000000 0x1>;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
gpio-controller;
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-23 21:15:34 +00:00
|
|
|
GPIO2: gpio@e0100000 {
|
2018-07-16 20:56:36 +00:00
|
|
|
compatible = "wd,mbl-gpio", "ti,74244";
|
|
|
|
reg-names = "dat";
|
|
|
|
reg = <0xe0100000 0x1>;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
gpio-controller;
|
|
|
|
no-output;
|
|
|
|
};
|
|
|
|
|
2018-12-30 11:42:53 +00:00
|
|
|
leds {
|
2018-07-16 20:56:36 +00:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
|
|
|
failsafe: power-red {
|
|
|
|
label = "mbl:red:power";
|
|
|
|
gpios = <&GPIO1 4 GPIO_ACTIVE_HIGH>;
|
|
|
|
linux,default-trigger = "panic";
|
|
|
|
};
|
|
|
|
|
|
|
|
status: power-green {
|
|
|
|
label = "mbl:green:power";
|
|
|
|
gpios = <&GPIO1 5 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
|
|
|
power-blue {
|
|
|
|
label = "mbl:blue:power";
|
|
|
|
gpios = <&GPIO1 6 GPIO_ACTIVE_HIGH>;
|
2018-10-15 18:00:09 +00:00
|
|
|
linux,default-trigger = "disk-activity";
|
2018-07-16 20:56:36 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-30 11:17:25 +00:00
|
|
|
keys {
|
2018-07-16 20:56:36 +00:00
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
poll-interval = <60>; /* 3 * 20 = 60ms */
|
|
|
|
autorepeat;
|
|
|
|
|
|
|
|
reset-button {
|
|
|
|
label = "Reset button";
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
gpios = <&GPIO2 2 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
};
|
2018-07-29 09:55:17 +00:00
|
|
|
|
|
|
|
usbpwr: usb-regulator {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
regulator-name = "Power USB Core";
|
2021-12-24 13:44:08 +00:00
|
|
|
gpios = <&GPIO1 2 GPIO_ACTIVE_HIGH>;
|
2018-07-29 09:55:17 +00:00
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
2021-12-24 13:44:08 +00:00
|
|
|
regulator-boot-on; /* uboot sets this */
|
|
|
|
enable-active-high;
|
2018-07-29 09:55:17 +00:00
|
|
|
};
|
2018-07-16 20:56:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&EMAC0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
phy-map = <0x2>;
|
|
|
|
phy-address = <0x1>;
|
|
|
|
phy-handle = <&phy>;
|
|
|
|
|
|
|
|
mdio {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
2018-07-29 09:55:17 +00:00
|
|
|
reset-gpios = <&GPIO1 0 GPIO_ACTIVE_LOW>;
|
2018-07-16 20:56:36 +00:00
|
|
|
|
|
|
|
phy: phy@1 {
|
|
|
|
compatible = "ethernet-phy-ieee802.3-c22";
|
|
|
|
reg = <1>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&CRYPTO {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&PKA {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&TRNG {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&SATA0 {
|
|
|
|
status = "okay";
|
2020-03-21 19:58:16 +00:00
|
|
|
|
|
|
|
drive0: sata-port@0 {
|
|
|
|
reg = <0>;
|
|
|
|
#thermal-sensor-cells = <0>;
|
|
|
|
};
|
2018-07-16 20:56:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&SATA1 {
|
|
|
|
status = "okay";
|
2020-03-21 19:58:16 +00:00
|
|
|
|
|
|
|
drive1: sata-port@0 {
|
|
|
|
reg = <0>;
|
|
|
|
#thermal-sensor-cells = <0>;
|
|
|
|
};
|
2018-07-16 20:56:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&UART0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&USBOTG0 {
|
|
|
|
status = "okay";
|
|
|
|
dr_mode = "host";
|
2018-07-29 09:55:17 +00:00
|
|
|
vbus-supply = <&usbpwr>;
|
2016-07-20 13:44:54 +00:00
|
|
|
};
|