Skip to content

Commit

Permalink
[Edgecore] Add as4581-52p DTS
Browse files Browse the repository at this point in the history
CPU: COMe CPU Module
MAC: Marvell 98DX3530
PHY: Marvell 88E1780 x 4 (1G port 16~32)
Marvell 88E2780 x 2 (Migi-G port 33-48)
DRAM: 8GB(MAC) DDR4 SDRAM
AirFlow: Front To Back
Function port: 1 x USB port
1 x RJ45 Mgmt port
1 x RJ45 Console port
Ethernet Port: 48 x 1G
Uplink port: 4xSFP+
PoE: Microsemi PD69208M x 12 + PD69210 x 2

The DTS is for the PR:
dentproject/dentOS#285

Signed-off-by: Brandon Chuang <[email protected]>
Signed-off-by: Brandon Chuang <[email protected]>
  • Loading branch information
brandonchuang committed Jun 17, 2024
1 parent e6ed169 commit f6ffb86
Show file tree
Hide file tree
Showing 2 changed files with 2,015 additions and 0 deletions.
231 changes: 231 additions & 0 deletions arch/arm64/boot/dts/freescale/accton-as4581-52pl.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,231 @@
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
//
// Device Tree file for LX2160ARDB
//
// Copyright 2018-2020 NXP

/dts-v1/;

#include "accton-as4581-52pl.dtsi"

/ {
model = "NXP Layerscape LX2160ARDB";
compatible = "fsl,lx2160a-rdb", "fsl,lx2160a";

aliases {
crypto = &crypto;
serial0 = &uart0;
};

chosen {
stdout-path = "serial0:115200n8";
};

sb_3v3: regulator-sb3v3 {
compatible = "regulator-fixed";
regulator-name = "MC34717-3.3VSB";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-boot-on;
regulator-always-on;
};
};

&can0 {
status = "okay";

can-transceiver {
max-bitrate = <5000000>;
};
};

&can1 {
status = "okay";

can-transceiver {
max-bitrate = <5000000>;
};
};

&crypto {
status = "okay";
};

&dpmac7 {
status = "okay";
/*phy-handle = <&aquantia_phy1>;*/
fixed-link = <10 1 10000 0 0>;
phy-connection-type = "usxgmii";
/*managed = "in-band-status";*/
};
&dpmac8 {
status = "okay";
/*phy-handle = <&aquantia_phy2>;*/
fixed-link = <11 1 10000 0 0>;
phy-connection-type = "usxgmii";
/*managed = "in-band-status";*/
};
&dpmac9 {
status = "okay";
/*phy-handle = <&aquantia_phy1>;*/
fixed-link = <12 1 10000 0 0>;
phy-connection-type = "usxgmii";
/*managed = "in-band-status";*/
};
&dpmac10 {
status = "okay";
/*phy-handle = <&aquantia_phy2>;*/
fixed-link = <13 1 10000 0 0>;
phy-connection-type = "usxgmii";
/*managed = "in-band-status";*/
};
&dpmac17 {
status = "okay";
phy-handle = <&rgmii_phy1>;
phy-connection-type = "rgmii-id";
};

&emdio1 {
status = "okay";

rgmii_phy1: ethernet-phy@1 {
/* AR8035 PHY */
/*compatible = "ethernet-phy-id004d.d072";*/
compatible = "ethernet-phy-id0141.0dd1";
reg = <0x1>;
eee-broken-1000t;
};
};

&emdio2 {
status = "okay";
};

&esdhc0 {
status = "okay";
};

&fspi {
status = "okay";

flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <50000000>;
#spi-rx-bus-width = <4>;
partition@0 {
reg = <0x0 0x1000000>;
label = "uboot";
};

partition@1 {
reg = <0x1000000 0x100000>;
label = "uboot-env";
};

partition@2 {
reg = <0x1100000 0x2800000>;
label = "onie";
};
};
};

&dspi1 {
status = "okay";
spi-tpm@0 {
compatible = "infineon,slb9670";
/*mode 0*/
reg = <0>;
/*spi-max-frequency = <38000000>;*/
spi-max-frequency = <4000000>;
};
dflash1: flash@1 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "jedec,spi-nor";
reg = <1>;
spi-max-frequency = <1000000>;
};
};

&i2c0 {
status = "okay";
};
&i2c1 {
status = "okay";
};
&i2c2 {
status = "okay";
};
&i2c3 {
status = "okay";
};
&i2c4 {
status = "okay";
};
&i2c5 {
status = "okay";
};
&i2c6 {
status = "okay";
};
&i2c7 {
status = "okay";
};

&pcs_mdio3 {
status = "okay";
};

&pcs_mdio4 {
status = "okay";
};

&sata0 {
status = "okay";
};

&sata1 {
status = "okay";
};

&sata2 {
status = "okay";
};

&sata3 {
status = "okay";
};

&uart0 {
status = "okay";
};

&uart1 {
status = "okay";
};

&usb0 {
status = "okay";
};

&usb1 {
status = "okay";
};

&emdio2 {
inphi_phy: ethernet-phy@0 {
compatible = "ethernet-phy-id0210.7440";
reg = <0x0>;
};
};

&dpmac5 {
phy-handle = <&inphi_phy>;
};

&dpmac6 {
phy-handle = <&inphi_phy>;
};
Loading

0 comments on commit f6ffb86

Please sign in to comment.