2020-08-28 22:35:50 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2016 Marvell International Ltd.
|
|
|
|
* Copyright (C) 2020 Sartura Ltd.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "armada-8040.dtsi" /* include SoC device tree */
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "iEi-Puzzle-M801";
|
|
|
|
compatible = "marvell,armada8040-puzzle-m801",
|
|
|
|
"marvell,armada8040";
|
|
|
|
|
|
|
|
chosen {
|
|
|
|
stdout-path = "serial0:115200n8";
|
|
|
|
};
|
|
|
|
|
|
|
|
aliases {
|
2021-01-17 15:19:49 +00:00
|
|
|
i2c0 = &ap_i2c0;
|
|
|
|
i2c1 = &cp0_i2c0;
|
|
|
|
i2c2 = &cp0_i2c1;
|
2020-08-28 22:35:50 +00:00
|
|
|
i2c3 = &i2c_switch;
|
2021-01-17 15:19:49 +00:00
|
|
|
spi0 = &ap_spi0;
|
2020-08-28 22:35:50 +00:00
|
|
|
gpio0 = &ap_gpio0;
|
2021-01-17 15:19:49 +00:00
|
|
|
gpio1 = &cp0_gpio0;
|
|
|
|
gpio2 = &cp0_gpio1;
|
2020-08-28 22:35:50 +00:00
|
|
|
gpio3 = &sfpplus_gpio;
|
|
|
|
};
|
|
|
|
|
|
|
|
memory@00000000 {
|
|
|
|
device_type = "memory";
|
|
|
|
reg = <0x0 0x0 0x0 0x80000000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
simple-bus {
|
|
|
|
compatible = "simple-bus";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
reg_usb3h0_vbus: usb3-vbus0 {
|
|
|
|
compatible = "regulator-fixed";
|
|
|
|
pinctrl-names = "default";
|
2021-01-17 15:19:49 +00:00
|
|
|
pinctrl-0 = <&cp0_xhci_vbus_pins>;
|
2020-08-28 22:35:50 +00:00
|
|
|
regulator-name = "reg-usb3h0-vbus";
|
|
|
|
regulator-min-microvolt = <5000000>;
|
|
|
|
regulator-max-microvolt = <5000000>;
|
|
|
|
startup-delay-us = <500000>;
|
|
|
|
enable-active-high;
|
|
|
|
regulator-always-on;
|
|
|
|
regulator-boot-on;
|
2021-01-17 15:19:49 +00:00
|
|
|
gpio = <&cp0_gpio1 15 GPIO_ACTIVE_HIGH>; /* GPIO[47] */
|
2020-08-28 22:35:50 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
&ap_i2c0 {
|
2020-08-28 22:35:50 +00:00
|
|
|
status = "okay";
|
|
|
|
clock-frequency = <100000>;
|
|
|
|
|
|
|
|
rtc@32 {
|
|
|
|
compatible = "epson,rx8010";
|
|
|
|
reg = <0x32>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ap_pinctl {
|
|
|
|
/*
|
|
|
|
* MPP Bus:
|
|
|
|
* AP SPI0 [0-3]
|
|
|
|
* AP I2C [4-5]
|
|
|
|
* AP GPIO [6]
|
|
|
|
* AP UART 1 RX/TX [7-8]
|
|
|
|
* AP GPIO [9-10]
|
|
|
|
* AP GPIO [12]
|
|
|
|
* UART0 [11,19]
|
|
|
|
*/
|
|
|
|
/* 0 1 2 3 4 5 6 7 8 9 */
|
|
|
|
pin-func = < 3 3 3 3 3 3 3 3 3 0
|
|
|
|
0 3 0 0 0 0 0 0 0 3 >;
|
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
&cp0_pinctl {
|
2020-08-28 22:35:50 +00:00
|
|
|
/*
|
|
|
|
* MPP Bus:
|
|
|
|
* [0-31] = 0xff: Keep default CP0_shared_pins:
|
|
|
|
* [11] CLKOUT_MPP_11 (out)
|
|
|
|
* [23] LINK_RD_IN_CP2CP (in)
|
|
|
|
* [25] CLKOUT_MPP_25 (out)
|
|
|
|
* [29] AVS_FB_IN_CP2CP (in)
|
|
|
|
* [32,34] SMI
|
|
|
|
* [33] MSS power down
|
|
|
|
* [35-38] CP0 I2C1 and I2C0
|
|
|
|
* [39] MSS CKE Enable
|
|
|
|
* [40,41] CP0 UART1 TX/RX
|
|
|
|
* [42,43] XSMI (controls two 10G phys)
|
|
|
|
* [47] USB VBUS EN
|
|
|
|
* [48] FAN PWM
|
|
|
|
* [49] 10G port 1 interrupt
|
|
|
|
* [50] 10G port 0 interrupt
|
|
|
|
* [51] 2.5G SFP TX fault
|
|
|
|
* [52] PCIe reset out
|
|
|
|
* [53] 2.5G SFP mode
|
|
|
|
* [54] 2.5G SFP LOS
|
|
|
|
* [55] Micro SD card detect
|
|
|
|
* [56-61] Micro SD
|
|
|
|
* [62] CP1 SFI SFP FAULT
|
|
|
|
*/
|
|
|
|
/* 0 1 2 3 4 5 6 7 8 9 */
|
|
|
|
pin-func = < 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
|
|
|
|
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
|
|
|
|
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
|
|
|
|
0xff 0 7 0xa 7 2 2 2 2 0xa
|
|
|
|
7 7 8 8 0 0 0 0 0 0
|
|
|
|
0 0 0 0 0 0 0xe 0xe 0xe 0xe
|
|
|
|
0xe 0xe 0 >;
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
cp0_xhci_vbus_pins: cpm-xhci-vbus-pins {
|
2020-08-28 22:35:50 +00:00
|
|
|
marvell,pins = < 47 >;
|
|
|
|
marvell,function = <0>;
|
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
cp0_pcie_reset_pins: cpm-pcie-reset-pins {
|
2020-08-28 22:35:50 +00:00
|
|
|
marvell,pins = < 52 >;
|
|
|
|
marvell,function = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
&cp0_sdhci0 {
|
2020-08-28 22:35:50 +00:00
|
|
|
pinctrl-names = "default";
|
2021-01-17 15:19:49 +00:00
|
|
|
pinctrl-0 = <&cp0_sdhci_pins>;
|
2020-08-28 22:35:50 +00:00
|
|
|
bus-width= <4>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
&cp0_pcie0 {
|
2020-08-28 22:35:50 +00:00
|
|
|
num-lanes = <1>;
|
|
|
|
pinctrl-names = "default";
|
2021-01-17 15:19:49 +00:00
|
|
|
pinctrl-0 = <&cp0_pcie_reset_pins>;
|
|
|
|
marvell,reset-gpio = <&cp0_gpio1 20 GPIO_ACTIVE_LOW>; /* GPIO[52] */
|
2020-08-28 22:35:50 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
&cp0_i2c0 {
|
2020-08-28 22:35:50 +00:00
|
|
|
pinctrl-names = "default";
|
2021-01-17 15:19:49 +00:00
|
|
|
pinctrl-0 = <&cp0_i2c0_pins>;
|
2020-08-28 22:35:50 +00:00
|
|
|
status = "okay";
|
|
|
|
clock-frequency = <100000>;
|
|
|
|
|
|
|
|
sfpplus_gpio: gpio@21 {
|
|
|
|
compatible = "nxp,pca9555";
|
|
|
|
reg = <0x21>;
|
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
&cp0_i2c1 {
|
2020-08-28 22:35:50 +00:00
|
|
|
pinctrl-names = "default";
|
2021-01-17 15:19:49 +00:00
|
|
|
pinctrl-0 = <&cp0_i2c1_pins>;
|
2020-08-28 22:35:50 +00:00
|
|
|
status = "okay";
|
|
|
|
clock-frequency = <100000>;
|
|
|
|
|
|
|
|
i2c_switch: i2c-switch@70 {
|
|
|
|
compatible = "nxp,pca9544";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
reg = <0x70>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
&cp0_sata0 {
|
2020-08-28 22:35:50 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
&cp0_ethernet {
|
2020-08-28 22:35:50 +00:00
|
|
|
pinctrl-names = "default";
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
&cp0_mdio {
|
2020-08-28 22:35:50 +00:00
|
|
|
status = "okay";
|
2021-01-17 15:19:49 +00:00
|
|
|
cp0_ge_phy0: ethernet-phy@1 {
|
2020-08-28 22:35:50 +00:00
|
|
|
reg = <0>;
|
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
cp0_ge_phy1: ethernet-phy@2 {
|
2020-08-28 22:35:50 +00:00
|
|
|
reg = <1>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
&cp0_eth0 {
|
2020-08-28 22:35:50 +00:00
|
|
|
status = "okay";
|
|
|
|
phy-mode = "sfi";
|
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
&cp0_eth1 {
|
2020-08-28 22:35:50 +00:00
|
|
|
status = "okay";
|
|
|
|
phy-mode = "sgmii";
|
2021-01-17 15:19:49 +00:00
|
|
|
phy = <&cp0_ge_phy0>;
|
2020-08-28 22:35:50 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
&cp0_eth2 {
|
2020-08-28 22:35:50 +00:00
|
|
|
status = "okay";
|
|
|
|
phy-mode = "sgmii";
|
2021-01-17 15:19:49 +00:00
|
|
|
phy = <&cp0_ge_phy1>;
|
2020-08-28 22:35:50 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
&cp0_comphy {
|
2020-08-28 22:35:50 +00:00
|
|
|
/*
|
|
|
|
* CP0 Serdes Configuration:
|
|
|
|
* Lane 0: PCIe0 (x1)
|
|
|
|
* Lane 1: SGMII2
|
|
|
|
* Lane 2: SATA0
|
|
|
|
* Lane 3: SGMII1
|
|
|
|
* Lane 4: SFI (10G)
|
|
|
|
* Lane 5: SATA1
|
|
|
|
*/
|
|
|
|
phy0 {
|
2017-04-26 12:40:00 +00:00
|
|
|
phy-type = <COMPHY_TYPE_PEX0>;
|
2020-08-28 22:35:50 +00:00
|
|
|
};
|
|
|
|
phy1 {
|
2017-04-26 12:40:00 +00:00
|
|
|
phy-type = <COMPHY_TYPE_SGMII2>;
|
|
|
|
phy-speed = <COMPHY_SPEED_1_25G>;
|
2020-08-28 22:35:50 +00:00
|
|
|
};
|
|
|
|
phy2 {
|
2017-04-26 12:40:00 +00:00
|
|
|
phy-type = <COMPHY_TYPE_SATA0>;
|
2020-08-28 22:35:50 +00:00
|
|
|
};
|
|
|
|
phy3 {
|
2017-04-26 12:40:00 +00:00
|
|
|
phy-type = <COMPHY_TYPE_SGMII1>;
|
|
|
|
phy-speed = <COMPHY_SPEED_1_25G>;
|
2020-08-28 22:35:50 +00:00
|
|
|
};
|
|
|
|
phy4 {
|
2018-05-14 08:20:54 +00:00
|
|
|
phy-type = <COMPHY_TYPE_SFI0>;
|
2020-08-28 22:35:50 +00:00
|
|
|
};
|
|
|
|
phy5 {
|
2017-04-26 12:40:00 +00:00
|
|
|
phy-type = <COMPHY_TYPE_SATA1>;
|
2020-08-28 22:35:50 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
&cp1_mdio {
|
2020-08-28 22:35:50 +00:00
|
|
|
status = "okay";
|
2021-01-17 15:19:49 +00:00
|
|
|
cp1_ge_phy0: ethernet-phy@3 {
|
2020-08-28 22:35:50 +00:00
|
|
|
reg = <1>;
|
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
cp1_ge_phy1: ethernet-phy@4 {
|
2020-08-28 22:35:50 +00:00
|
|
|
reg = <0>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
&cp1_pcie0 {
|
2020-08-28 22:35:50 +00:00
|
|
|
num-lanes = <2>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
&cp1_usb3_0 {
|
2020-08-28 22:35:50 +00:00
|
|
|
vbus-supply = <®_usb3h0_vbus>;
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
&cp1_utmi0 {
|
2020-08-28 22:35:50 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
&cp1_ethernet {
|
2020-08-28 22:35:50 +00:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
&cp1_eth0 {
|
2020-08-28 22:35:50 +00:00
|
|
|
status = "okay";
|
|
|
|
phy-mode = "sfi";
|
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
&cp1_eth1 {
|
2020-08-28 22:35:50 +00:00
|
|
|
status = "okay";
|
2021-01-17 15:19:49 +00:00
|
|
|
phy = <&cp1_ge_phy0>;
|
2020-08-28 22:35:50 +00:00
|
|
|
phy-mode = "sgmii";
|
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
&cp1_eth2 {
|
2020-08-28 22:35:50 +00:00
|
|
|
status = "okay";
|
2021-01-17 15:19:49 +00:00
|
|
|
phy = <&cp1_ge_phy1>;
|
2020-08-28 22:35:50 +00:00
|
|
|
phy-mode = "sgmii";
|
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
&cp1_pinctl {
|
2020-08-28 22:35:50 +00:00
|
|
|
/*
|
|
|
|
* MPP Bus:
|
|
|
|
* [0-5] TDM
|
|
|
|
* [6,7] CP1_UART 0
|
|
|
|
* [8] CP1 10G SFP LOS
|
|
|
|
* [9] CP1 10G PHY RESET
|
|
|
|
* [10] CP1 10G SFP TX Disable
|
|
|
|
* [11] CP1 10G SFP Mode
|
|
|
|
* [12] SPI1 CS1n
|
|
|
|
* [13] SPI1 MISO (TDM and SPI ROM shared)
|
|
|
|
* [14] SPI1 CS0n
|
|
|
|
* [15] SPI1 MOSI (TDM and SPI ROM shared)
|
|
|
|
* [16] SPI1 CLK (TDM and SPI ROM shared)
|
|
|
|
* [24] CP1 2.5G SFP TX Disable
|
|
|
|
* [26] CP0 10G SFP TX Fault
|
|
|
|
* [27] CP0 10G SFP Mode
|
|
|
|
* [28] CP0 10G SFP LOS
|
|
|
|
* [29] CP0 10G SFP TX Disable
|
|
|
|
* [30] USB Over current indication
|
|
|
|
* [31] 10G Port 0 phy reset
|
|
|
|
* [32-62] = 0xff: Keep default CP1_shared_pins:
|
|
|
|
*/
|
|
|
|
/* 0 1 2 3 4 5 6 7 8 9 */
|
|
|
|
pin-func = < 0x4 0x4 0x4 0x4 0x4 0x4 0x8 0x8 0x0 0x0
|
|
|
|
0x0 0x0 0x3 0x3 0x3 0x3 0x3 0xff 0xff 0xff
|
|
|
|
0xff 0xff 0xff 0xff 0x0 0xff 0x0 0x0 0x0 0x0
|
|
|
|
0x0 0x0 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
|
|
|
|
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
|
|
|
|
0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff 0xff
|
|
|
|
0xff 0xff 0xff>;
|
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
&ap_spi0 {
|
2020-08-28 22:35:50 +00:00
|
|
|
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@u-boot {
|
|
|
|
reg = <0x00000000 0x001f0000>;
|
|
|
|
label = "u-boot";
|
|
|
|
};
|
|
|
|
partition@u-boot-env {
|
|
|
|
reg = <0x001f0000 0x00010000>;
|
|
|
|
label = "u-boot-env";
|
|
|
|
};
|
|
|
|
partition@ubi1 {
|
|
|
|
reg = <0x00200000 0x03f00000>;
|
|
|
|
label = "ubi1";
|
|
|
|
};
|
|
|
|
partition@ubi2 {
|
|
|
|
reg = <0x04100000 0x03f00000>;
|
|
|
|
label = "ubi2";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-17 15:19:49 +00:00
|
|
|
&cp1_comphy {
|
2020-08-28 22:35:50 +00:00
|
|
|
/*
|
|
|
|
* CP1 Serdes Configuration:
|
|
|
|
* Lane 0: PCIe0 (x2)
|
|
|
|
* Lane 1: PCIe0 (x2)
|
|
|
|
* Lane 2: USB HOST 0
|
|
|
|
* Lane 3: SGMII1
|
|
|
|
* Lane 4: SFI (10G)
|
|
|
|
* Lane 5: SGMII2
|
|
|
|
*/
|
|
|
|
phy0 {
|
2017-04-26 12:40:00 +00:00
|
|
|
phy-type = <COMPHY_TYPE_PEX0>;
|
2020-08-28 22:35:50 +00:00
|
|
|
};
|
|
|
|
phy1 {
|
2017-04-26 12:40:00 +00:00
|
|
|
phy-type = <COMPHY_TYPE_PEX0>;
|
2020-08-28 22:35:50 +00:00
|
|
|
};
|
|
|
|
phy2 {
|
2017-04-26 12:40:00 +00:00
|
|
|
phy-type = <COMPHY_TYPE_USB3_HOST0>;
|
2020-08-28 22:35:50 +00:00
|
|
|
};
|
|
|
|
phy3 {
|
2017-04-26 12:40:00 +00:00
|
|
|
phy-type = <COMPHY_TYPE_SGMII1>;
|
|
|
|
phy-speed = <COMPHY_SPEED_1_25G>;
|
2020-08-28 22:35:50 +00:00
|
|
|
};
|
|
|
|
phy4 {
|
2018-05-14 08:20:54 +00:00
|
|
|
phy-type = <COMPHY_TYPE_SFI0>;
|
2020-08-28 22:35:50 +00:00
|
|
|
};
|
|
|
|
phy5 {
|
2017-04-26 12:40:00 +00:00
|
|
|
phy-type = <COMPHY_TYPE_SGMII2>;
|
|
|
|
phy-speed = <COMPHY_SPEED_1_25G>;
|
2020-08-28 22:35:50 +00:00
|
|
|
};
|
|
|
|
};
|