2018-06-14 06:56:07 +00:00
|
|
|
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
2017-03-07 12:41:06 +00:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2016 Marvell Technology Group Ltd.
|
|
|
|
*
|
|
|
|
* Device Tree file for Marvell Armada 8040 Development board platform
|
|
|
|
*/
|
|
|
|
|
2017-11-13 20:15:33 +00:00
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
2017-03-07 12:41:06 +00: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";
|
|
|
|
};
|
|
|
|
|
2018-02-09 22:33:22 +00:00
|
|
|
memory@0 {
|
2017-03-07 12:41:06 +00:00
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x0 0x0 0x0 0x80000000>;
|
|
|
|
};
|
2017-11-13 20:15:33 +00:00
|
|
|
|
2018-04-20 18:44:52 +00:00
|
|
|
aliases {
|
|
|
|
ethernet0 = &cp0_eth0;
|
|
|
|
ethernet1 = &cp0_eth2;
|
|
|
|
ethernet2 = &cp1_eth0;
|
|
|
|
ethernet3 = &cp1_eth1;
|
|
|
|
};
|
|
|
|
|
|
|
|
cp0_reg_usb3_0_vbus: cp0-usb3-0-vbus {
|
2017-11-13 20:15:33 +00:00
|
|
|
compatible = "regulator-fixed";
|
2018-04-20 18:44:52 +00:00
|
|
|
regulator-name = "cp0-usb3h0-vbus";
|
2017-11-13 20:15:33 +00:00
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
enable-active-high;
|
|
|
|
gpio = <&expander0 0 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2018-04-20 18:44:52 +00:00
|
|
|
cp0_reg_usb3_1_vbus: cp0-usb3-1-vbus {
|
2017-11-13 20:15:33 +00:00
|
|
|
compatible = "regulator-fixed";
|
2018-04-20 18:44:52 +00:00
|
|
|
regulator-name = "cp0-usb3h1-vbus";
|
2017-11-13 20:15:33 +00:00
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
enable-active-high;
|
|
|
|
gpio = <&expander0 1 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2018-04-20 18:44:52 +00:00
|
|
|
cp0_usb3_0_phy: cp0-usb3-0-phy {
|
2017-11-13 20:15:33 +00:00
|
|
|
compatible = "usb-nop-xceiv";
|
2018-04-20 18:44:52 +00:00
|
|
|
vcc-supply = <&cp0_reg_usb3_0_vbus>;
|
2017-11-13 20:15:33 +00:00
|
|
|
};
|
|
|
|
|
2018-04-20 18:44:52 +00:00
|
|
|
cp0_usb3_1_phy: cp0-usb3-1-phy {
|
2017-11-13 20:15:33 +00:00
|
|
|
compatible = "usb-nop-xceiv";
|
2018-04-20 18:44:52 +00:00
|
|
|
vcc-supply = <&cp0_reg_usb3_1_vbus>;
|
2017-11-13 20:15:33 +00:00
|
|
|
};
|
|
|
|
|
2018-04-20 18:44:52 +00:00
|
|
|
cp1_reg_usb3_0_vbus: cp1-usb3-0-vbus {
|
2017-11-13 20:15:33 +00:00
|
|
|
compatible = "regulator-fixed";
|
2018-04-20 18:44:52 +00:00
|
|
|
regulator-name = "cp1-usb3h0-vbus";
|
2017-11-13 20:15:33 +00:00
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
enable-active-high;
|
|
|
|
gpio = <&expander1 0 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
|
2018-04-20 18:44:52 +00:00
|
|
|
cp1_usb3_0_phy: cp1-usb3-0-phy {
|
2017-11-13 20:15:33 +00:00
|
|
|
compatible = "usb-nop-xceiv";
|
2018-04-20 18:44:52 +00:00
|
|
|
vcc-supply = <&cp1_reg_usb3_0_vbus>;
|
2017-11-13 20:15:33 +00:00
|
|
|
};
|
2017-03-07 12:41:06 +00: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";
|
2018-02-09 22:33:22 +00:00
|
|
|
pinctrl-0 = <&uart0_pins>;
|
|
|
|
pinctrl-names = "default";
|
2017-03-07 12:41:06 +00:00
|
|
|
};
|
|
|
|
|
2018-02-09 22:33:22 +00:00
|
|
|
/* CON6 on CP0 expansion */
|
2018-04-20 18:44:52 +00:00
|
|
|
&cp0_pcie0 {
|
2018-02-09 22:33:22 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
2017-03-07 12:41:06 +00:00
|
|
|
|
|
|
|
/* CON5 on CP0 expansion */
|
2018-04-20 18:44:52 +00:00
|
|
|
&cp0_pcie2 {
|
2017-03-07 12:41:06 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-04-20 18:44:52 +00:00
|
|
|
&cp0_i2c0 {
|
2017-03-07 12:41:06 +00:00
|
|
|
status = "okay";
|
|
|
|
clock-frequency = <100000>;
|
2017-11-13 20:15:33 +00: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>;
|
|
|
|
};
|
|
|
|
|
2017-03-07 12:41:06 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* CON4 on CP0 expansion */
|
2018-04-20 18:44:52 +00:00
|
|
|
&cp0_sata0 {
|
2017-03-07 12:41:06 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
/* CON9 on CP0 expansion */
|
2018-04-20 18:44:52 +00:00
|
|
|
&cp0_usb3_0 {
|
|
|
|
usb-phy = <&cp0_usb3_0_phy>;
|
2017-03-07 12:41:06 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
/* CON10 on CP0 expansion */
|
2018-04-20 18:44:52 +00:00
|
|
|
&cp0_usb3_1 {
|
|
|
|
usb-phy = <&cp0_usb3_1_phy>;
|
2017-03-07 12:41:06 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-04-20 18:44:52 +00:00
|
|
|
&cp0_mdio {
|
2017-10-21 15:18:20 +00:00
|
|
|
status = "okay";
|
|
|
|
|
2017-07-09 13:12:48 +00:00
|
|
|
phy1: ethernet-phy@1 {
|
|
|
|
reg = <1>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-04-20 18:44:52 +00:00
|
|
|
&cp0_ethernet {
|
2017-07-09 13:12:48 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-04-20 18:44:52 +00:00
|
|
|
&cp0_eth0 {
|
2018-02-09 22:33:22 +00:00
|
|
|
status = "okay";
|
|
|
|
phy-mode = "10gbase-kr";
|
2018-08-13 05:53:54 +00:00
|
|
|
|
|
|
|
fixed-link {
|
|
|
|
speed = <10000>;
|
|
|
|
full-duplex;
|
|
|
|
};
|
2018-02-09 22:33:22 +00:00
|
|
|
};
|
|
|
|
|
2018-04-20 18:44:52 +00:00
|
|
|
&cp0_eth2 {
|
2017-07-09 13:12:48 +00:00
|
|
|
status = "okay";
|
|
|
|
phy = <&phy1>;
|
|
|
|
phy-mode = "rgmii-id";
|
|
|
|
};
|
|
|
|
|
2018-02-09 22:33:22 +00:00
|
|
|
/* CON6 on CP1 expansion */
|
2018-04-20 18:44:52 +00:00
|
|
|
&cp1_pcie0 {
|
2018-02-09 22:33:22 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
/* CON7 on CP1 expansion */
|
2018-04-20 18:44:52 +00:00
|
|
|
&cp1_pcie1 {
|
2018-02-09 22:33:22 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2017-03-07 12:41:06 +00:00
|
|
|
/* CON5 on CP1 expansion */
|
2018-04-20 18:44:52 +00:00
|
|
|
&cp1_pcie2 {
|
2017-03-07 12:41:06 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-04-20 18:44:52 +00:00
|
|
|
&cp1_i2c0 {
|
2017-03-07 12:41:06 +00:00
|
|
|
status = "okay";
|
|
|
|
clock-frequency = <100000>;
|
|
|
|
};
|
|
|
|
|
2018-04-20 18:44:52 +00:00
|
|
|
&cp1_spi1 {
|
2018-02-09 22:33:22 +00: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>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-04-20 18:44:52 +00:00
|
|
|
/*
|
|
|
|
* Proper NAND usage will require DPR-76 to be in position 1-2, which disables
|
|
|
|
* MDIO signal of CP1.
|
|
|
|
*/
|
2018-06-14 06:56:07 +00:00
|
|
|
&cp1_nand_controller {
|
2018-04-20 18:44:52 +00:00
|
|
|
pinctrl-0 = <&nand_pins>, <&nand_rb>;
|
|
|
|
pinctrl-names = "default";
|
2018-06-14 06:56:07 +00: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>;
|
|
|
|
};
|
|
|
|
};
|
2018-04-20 18:44:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-03-07 12:41:06 +00:00
|
|
|
/* CON4 on CP1 expansion */
|
2018-04-20 18:44:52 +00:00
|
|
|
&cp1_sata0 {
|
2017-03-07 12:41:06 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
/* CON9 on CP1 expansion */
|
2018-04-20 18:44:52 +00:00
|
|
|
&cp1_usb3_0 {
|
|
|
|
usb-phy = <&cp1_usb3_0_phy>;
|
2017-03-07 12:41:06 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
/* CON10 on CP1 expansion */
|
2018-04-20 18:44:52 +00:00
|
|
|
&cp1_usb3_1 {
|
2017-03-07 12:41:06 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
2017-07-09 13:12:48 +00:00
|
|
|
|
2018-04-20 18:44:52 +00:00
|
|
|
&cp1_mdio {
|
2017-10-21 15:18:20 +00:00
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
phy0: ethernet-phy@0 {
|
|
|
|
reg = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-04-20 18:44:52 +00:00
|
|
|
&cp1_ethernet {
|
2017-10-21 15:18:20 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2018-04-20 18:44:52 +00:00
|
|
|
&cp1_eth0 {
|
2018-02-09 22:33:22 +00:00
|
|
|
status = "okay";
|
|
|
|
phy-mode = "10gbase-kr";
|
2018-08-13 05:53:54 +00:00
|
|
|
|
|
|
|
fixed-link {
|
|
|
|
speed = <10000>;
|
|
|
|
full-duplex;
|
|
|
|
};
|
2018-02-09 22:33:22 +00:00
|
|
|
};
|
|
|
|
|
2018-04-20 18:44:52 +00:00
|
|
|
&cp1_eth1 {
|
2017-10-21 15:18:20 +00:00
|
|
|
status = "okay";
|
|
|
|
phy = <&phy0>;
|
|
|
|
phy-mode = "rgmii-id";
|
|
|
|
};
|
|
|
|
|
2017-07-09 13:12:48 +00:00
|
|
|
&ap_sdhci0 {
|
|
|
|
status = "okay";
|
|
|
|
bus-width = <4>;
|
|
|
|
non-removable;
|
|
|
|
};
|
|
|
|
|
2018-04-20 18:44:52 +00:00
|
|
|
&cp0_sdhci0 {
|
2017-07-09 13:12:48 +00:00
|
|
|
status = "okay";
|
|
|
|
bus-width = <8>;
|
|
|
|
non-removable;
|
|
|
|
};
|