2018-02-14 19:17:29 +07:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
2016-07-28 21:35:56 +07:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2016 Marvell Technology Group Ltd.
|
|
|
|
*
|
|
|
|
* Device Tree file for Marvell Armada 8040 Development board platform
|
|
|
|
*/
|
|
|
|
|
2017-08-09 21:44:37 +07:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
2016-07-28 21:35:56 +07:00
|
|
|
#include "armada-8040.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Marvell Armada 8040 DB board";
|
|
|
|
compatible = "marvell,armada8040-db", "marvell,armada8040",
|
|
|
|
"marvell,armada-ap806-quad", "marvell,armada-ap806";
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
stdout-path = "serial0:115200n8";
|
|
|
|
};
|
|
|
|
|
2017-10-14 00:54:52 +07:00
|
|
|
memory@0 {
|
2016-07-28 21:35:56 +07:00
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x0 0x0 0x0 0x80000000>;
|
|
|
|
};
|
2017-08-09 21:44:37 +07:00
|
|
|
|
2018-01-03 22:18:52 +07:00
|
|
|
aliases {
|
|
|
|
ethernet0 = &cp0_eth0;
|
|
|
|
ethernet1 = &cp0_eth2;
|
|
|
|
ethernet2 = &cp1_eth0;
|
|
|
|
ethernet3 = &cp1_eth1;
|
|
|
|
};
|
|
|
|
|
2018-01-02 21:55:58 +07:00
|
|
|
cp0_reg_usb3_0_vbus: cp0-usb3-0-vbus {
|
2017-08-09 21:44:37 +07:00
|
|
|
compatible = "regulator-fixed";
|
2018-01-02 21:55:58 +07:00
|
|
|
regulator-name = "cp0-usb3h0-vbus";
|
2017-08-09 21:44:37 +07:00
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
enable-active-high;
|
|
|
|
gpio = <&expander0 0 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2018-01-02 21:55:58 +07:00
|
|
|
cp0_reg_usb3_1_vbus: cp0-usb3-1-vbus {
|
2017-08-09 21:44:37 +07:00
|
|
|
compatible = "regulator-fixed";
|
2018-01-02 21:55:58 +07:00
|
|
|
regulator-name = "cp0-usb3h1-vbus";
|
2017-08-09 21:44:37 +07:00
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
enable-active-high;
|
|
|
|
gpio = <&expander0 1 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2018-01-02 21:55:58 +07:00
|
|
|
cp0_usb3_0_phy: cp0-usb3-0-phy {
|
2017-08-09 21:44:37 +07:00
|
|
|
compatible = "usb-nop-xceiv";
|
2018-01-02 21:55:58 +07:00
|
|
|
vcc-supply = <&cp0_reg_usb3_0_vbus>;
|
2017-08-09 21:44:37 +07:00
|
|
|
};
|
|
|
|
|
2018-01-02 21:55:58 +07:00
|
|
|
cp0_usb3_1_phy: cp0-usb3-1-phy {
|
2017-08-09 21:44:37 +07:00
|
|
|
compatible = "usb-nop-xceiv";
|
2018-01-02 21:55:58 +07:00
|
|
|
vcc-supply = <&cp0_reg_usb3_1_vbus>;
|
2017-08-09 21:44:37 +07:00
|
|
|
};
|
|
|
|
|
2018-01-02 21:55:58 +07:00
|
|
|
cp1_reg_usb3_0_vbus: cp1-usb3-0-vbus {
|
2017-08-09 21:44:37 +07:00
|
|
|
compatible = "regulator-fixed";
|
2018-01-02 21:55:58 +07:00
|
|
|
regulator-name = "cp1-usb3h0-vbus";
|
2017-08-09 21:44:37 +07:00
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
enable-active-high;
|
|
|
|
gpio = <&expander1 0 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2018-01-02 21:55:58 +07:00
|
|
|
cp1_usb3_0_phy: cp1-usb3-0-phy {
|
2017-08-09 21:44:37 +07:00
|
|
|
compatible = "usb-nop-xceiv";
|
2018-01-02 21:55:58 +07:00
|
|
|
vcc-supply = <&cp1_reg_usb3_0_vbus>;
|
2017-08-09 21:44:37 +07:00
|
|
|
};
|
2016-07-28 21:35:56 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
&i2c0 {
|
|
|
|
status = "okay";
|
|
|
|
clock-frequency = <100000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi0 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
spi-flash@0 {
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <10000000>;
|
|
|
|
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "U-Boot";
|
|
|
|
reg = <0 0x200000>;
|
|
|
|
};
|
|
|
|
partition@400000 {
|
|
|
|
label = "Filesystem";
|
|
|
|
reg = <0x200000 0xce0000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
/* Accessible over the mini-USB CON9 connector on the main board */
|
|
|
|
&uart0 {
|
|
|
|
status = "okay";
|
2017-08-30 17:16:06 +07:00
|
|
|
pinctrl-0 = <&uart0_pins>;
|
|
|
|
pinctrl-names = "default";
|
2016-07-28 21:35:56 +07:00
|
|
|
};
|
|
|
|
|
2017-09-28 19:46:19 +07:00
|
|
|
/* CON6 on CP0 expansion */
|
2018-01-02 21:55:58 +07:00
|
|
|
&cp0_pcie0 {
|
2017-09-28 19:46:19 +07:00
|
|
|
status = "okay";
|
|
|
|
};
|
2016-07-28 21:35:56 +07:00
|
|
|
|
|
|
|
/* CON5 on CP0 expansion */
|
2018-01-02 21:55:58 +07:00
|
|
|
&cp0_pcie2 {
|
2016-07-28 21:35:56 +07:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-01-02 21:55:58 +07:00
|
|
|
&cp0_i2c0 {
|
2016-07-28 21:35:56 +07:00
|
|
|
status = "okay";
|
|
|
|
clock-frequency = <100000>;
|
2017-08-09 21:44:37 +07:00
|
|
|
|
|
|
|
/* U31 */
|
|
|
|
expander0: pca9555@21 {
|
|
|
|
compatible = "nxp,pca9555";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
reg = <0x21>;
|
|
|
|
};
|
|
|
|
|
|
|
|
/* U25 */
|
|
|
|
expander1: pca9555@25 {
|
|
|
|
compatible = "nxp,pca9555";
|
|
|
|
pinctrl-names = "default";
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
reg = <0x25>;
|
|
|
|
};
|
|
|
|
|
2016-07-28 21:35:56 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
/* CON4 on CP0 expansion */
|
2018-01-02 21:55:58 +07:00
|
|
|
&cp0_sata0 {
|
2016-07-28 21:35:56 +07:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
/* CON9 on CP0 expansion */
|
2018-01-02 21:55:58 +07:00
|
|
|
&cp0_usb3_0 {
|
|
|
|
usb-phy = <&cp0_usb3_0_phy>;
|
2016-07-28 21:35:56 +07:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
/* CON10 on CP0 expansion */
|
2018-01-02 21:55:58 +07:00
|
|
|
&cp0_usb3_1 {
|
|
|
|
usb-phy = <&cp0_usb3_1_phy>;
|
2016-07-28 21:35:56 +07:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-01-02 21:55:58 +07:00
|
|
|
&cp0_mdio {
|
2017-06-08 17:04:54 +07:00
|
|
|
status = "okay";
|
|
|
|
|
2017-03-16 22:16:27 +07:00
|
|
|
phy1: ethernet-phy@1 {
|
|
|
|
reg = <1>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-01-02 21:55:58 +07:00
|
|
|
&cp0_ethernet {
|
2017-03-16 22:16:27 +07:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-01-02 21:55:58 +07:00
|
|
|
&cp0_eth0 {
|
2017-09-21 14:54:10 +07:00
|
|
|
status = "okay";
|
|
|
|
phy-mode = "10gbase-kr";
|
2018-05-17 15:29:38 +07:00
|
|
|
|
|
|
|
fixed-link {
|
|
|
|
speed = <10000>;
|
|
|
|
full-duplex;
|
|
|
|
};
|
2017-09-21 14:54:10 +07:00
|
|
|
};
|
|
|
|
|
2018-01-02 21:55:58 +07:00
|
|
|
&cp0_eth2 {
|
2017-03-16 22:16:27 +07:00
|
|
|
status = "okay";
|
|
|
|
phy = <&phy1>;
|
|
|
|
phy-mode = "rgmii-id";
|
|
|
|
};
|
|
|
|
|
2017-09-28 19:46:19 +07:00
|
|
|
/* CON6 on CP1 expansion */
|
2018-01-02 21:55:58 +07:00
|
|
|
&cp1_pcie0 {
|
2017-09-28 19:46:19 +07:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
/* CON7 on CP1 expansion */
|
2018-01-02 21:55:58 +07:00
|
|
|
&cp1_pcie1 {
|
2017-09-28 19:46:19 +07:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2016-07-28 21:35:56 +07:00
|
|
|
/* CON5 on CP1 expansion */
|
2018-01-02 21:55:58 +07:00
|
|
|
&cp1_pcie2 {
|
2016-07-28 21:35:56 +07:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-01-02 21:55:58 +07:00
|
|
|
&cp1_i2c0 {
|
2016-07-28 21:35:56 +07:00
|
|
|
status = "okay";
|
|
|
|
clock-frequency = <100000>;
|
|
|
|
};
|
|
|
|
|
2018-01-02 21:55:58 +07:00
|
|
|
&cp1_spi1 {
|
2017-09-22 20:08:34 +07:00
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
spi-flash@0 {
|
|
|
|
#address-cells = <0x1>;
|
|
|
|
#size-cells = <0x1>;
|
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
reg = <0x0>;
|
|
|
|
spi-max-frequency = <20000000>;
|
|
|
|
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "Boot";
|
|
|
|
reg = <0x0 0x200000>;
|
|
|
|
};
|
|
|
|
partition@200000 {
|
|
|
|
label = "Filesystem";
|
|
|
|
reg = <0x200000 0xd00000>;
|
|
|
|
};
|
|
|
|
partition@f00000 {
|
|
|
|
label = "Boot_2nd";
|
|
|
|
reg = <0xf00000 0x100000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-10-30 20:31:07 +07:00
|
|
|
/*
|
|
|
|
* Proper NAND usage will require DPR-76 to be in position 1-2, which disables
|
|
|
|
* MDIO signal of CP1.
|
|
|
|
*/
|
2018-02-20 05:20:45 +07:00
|
|
|
&cp1_nand_controller {
|
2017-10-30 20:31:07 +07:00
|
|
|
pinctrl-0 = <&nand_pins>, <&nand_rb>;
|
|
|
|
pinctrl-names = "default";
|
2018-02-20 05:20:45 +07:00
|
|
|
|
|
|
|
nand@0 {
|
|
|
|
reg = <0>;
|
|
|
|
nand-rb = <0>;
|
|
|
|
nand-on-flash-bbt;
|
|
|
|
nand-ecc-strength = <4>;
|
|
|
|
nand-ecc-step-size = <512>;
|
|
|
|
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "U-Boot";
|
|
|
|
reg = <0 0x200000>;
|
|
|
|
};
|
|
|
|
partition@200000 {
|
|
|
|
label = "Linux";
|
|
|
|
reg = <0x200000 0xe00000>;
|
|
|
|
};
|
|
|
|
partition@1000000 {
|
|
|
|
label = "Filesystem";
|
|
|
|
reg = <0x1000000 0x3f000000>;
|
|
|
|
};
|
|
|
|
};
|
2017-10-30 20:31:07 +07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-07-28 21:35:56 +07:00
|
|
|
/* CON4 on CP1 expansion */
|
2018-01-02 21:55:58 +07:00
|
|
|
&cp1_sata0 {
|
2016-07-28 21:35:56 +07:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
/* CON9 on CP1 expansion */
|
2018-01-02 21:55:58 +07:00
|
|
|
&cp1_usb3_0 {
|
|
|
|
usb-phy = <&cp1_usb3_0_phy>;
|
2016-07-28 21:35:56 +07:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
/* CON10 on CP1 expansion */
|
2018-01-02 21:55:58 +07:00
|
|
|
&cp1_usb3_1 {
|
2016-07-28 21:35:56 +07:00
|
|
|
status = "okay";
|
|
|
|
};
|
2017-03-30 22:23:04 +07:00
|
|
|
|
2018-01-02 21:55:58 +07:00
|
|
|
&cp1_mdio {
|
2017-06-08 17:04:54 +07:00
|
|
|
status = "okay";
|
|
|
|
|
2017-05-16 06:28:33 +07:00
|
|
|
phy0: ethernet-phy@0 {
|
|
|
|
reg = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-01-02 21:55:58 +07:00
|
|
|
&cp1_ethernet {
|
2017-05-16 06:28:33 +07:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-01-02 21:55:58 +07:00
|
|
|
&cp1_eth0 {
|
2017-09-21 14:54:10 +07:00
|
|
|
status = "okay";
|
|
|
|
phy-mode = "10gbase-kr";
|
2018-05-17 15:29:38 +07:00
|
|
|
|
|
|
|
fixed-link {
|
|
|
|
speed = <10000>;
|
|
|
|
full-duplex;
|
|
|
|
};
|
2017-09-21 14:54:10 +07:00
|
|
|
};
|
|
|
|
|
2018-01-02 21:55:58 +07:00
|
|
|
&cp1_eth1 {
|
2017-05-16 06:28:33 +07:00
|
|
|
status = "okay";
|
|
|
|
phy = <&phy0>;
|
|
|
|
phy-mode = "rgmii-id";
|
|
|
|
};
|
|
|
|
|
2017-03-30 22:23:04 +07:00
|
|
|
&ap_sdhci0 {
|
|
|
|
status = "okay";
|
|
|
|
bus-width = <4>;
|
|
|
|
non-removable;
|
|
|
|
};
|
|
|
|
|
2018-01-02 21:55:58 +07:00
|
|
|
&cp0_sdhci0 {
|
2017-03-30 22:23:04 +07:00
|
|
|
status = "okay";
|
|
|
|
bus-width = <8>;
|
|
|
|
non-removable;
|
|
|
|
};
|