2016-07-28 21:35:56 +07:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2016 Marvell Technology Group Ltd.
|
|
|
|
*
|
|
|
|
* This file is dual-licensed: you can use it either under the terms
|
|
|
|
* of the GPLv2 or the X11 license, at your option. Note that this dual
|
|
|
|
* licensing only applies to this file, and not this project as a
|
|
|
|
* whole.
|
|
|
|
*
|
|
|
|
* a) This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* Or, alternatively,
|
|
|
|
*
|
|
|
|
* b) Permission is hereby granted, free of charge, to any person
|
|
|
|
* obtaining a copy of this software and associated documentation
|
|
|
|
* files (the "Software"), to deal in the Software without
|
|
|
|
* restriction, including without limitation the rights to use,
|
|
|
|
* copy, modify, merge, publish, distribute, sublicense, and/or
|
|
|
|
* sell copies of the Software, and to permit persons to whom the
|
|
|
|
* Software is furnished to do so, subject to the following
|
|
|
|
* conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be
|
|
|
|
* included in all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
|
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
|
|
|
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
|
|
|
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
|
|
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
|
|
* OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* 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-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-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-01-02 21:55:58 +07:00
|
|
|
&cp1_nand {
|
2017-10-30 20:31:07 +07:00
|
|
|
num-cs = <1>;
|
|
|
|
pinctrl-0 = <&nand_pins>, <&nand_rb>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
nand-ecc-strength = <4>;
|
|
|
|
nand-ecc-step-size = <512>;
|
|
|
|
marvell,nand-enable-arbiter;
|
2018-01-02 21:55:58 +07:00
|
|
|
marvell,system-controller = <&cp1_syscon0>;
|
2017-10-30 20:31:07 +07:00
|
|
|
nand-on-flash-bbt;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "U-Boot";
|
|
|
|
reg = <0 0x200000>;
|
|
|
|
};
|
|
|
|
partition@200000 {
|
|
|
|
label = "Linux";
|
|
|
|
reg = <0x200000 0xe00000>;
|
|
|
|
};
|
|
|
|
partition@1000000 {
|
|
|
|
label = "Filesystem";
|
|
|
|
reg = <0x1000000 0x3f000000>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
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-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;
|
|
|
|
};
|