LS1046A ethernet problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LS1046A ethernet problem

2,297 Views
jack_huang1
Contributor III

The hardware design is SRDS_PRTCL_S1=0x3333, or which there should be a MAC for SGMII.10, external to the BCM54616 PHY.

 RDB is 0x1133, which corresponds to xfi.10.

FRWY is 0x3040, corresponding to pin usused, while another pin is connected to qsgmii.6,5,10,1.

 

Now the corresponding DTS of our hardware is changed to:

 

Fsl-ls1046a-frwy-sdk.dts # will map ethernet9's sgmii.10 to PHY

&fman0 {

         ethernet@f2000 {

                   phy-handle = <&sgmii_phy1>;

                   phy-connection-type = "sgmii";

         };

 

         mdio@fc000 {

                   sgmii_phy1: ethernet-phy@1 {

                            reg = <0x1>;

                   };

         };

};

 

Qoriq-fman3-0-10g-1. Dtsi # changed 10GMAC to 1GMAC and adjusted its cell-index (the SDK has a limit of only 6 1G ports), occupying ethernet1 (there are consistent changes for other files here)

         fman0_rx_0x11: port@91000 {

                   cell-index = <0x9>;

                   compatible = "fsl,fman-v3-port-rx", "fsl,fman-port-1g-rx";

                   reg = <0x91000 0x1000>;

         };

 

         fman0_tx_0x31: port@b1000 {

                   cell-index = <0x29>;

                   compatible = "fsl,fman-v3-port-tx", "fsl,fman-port-1g-tx";

                   reg = <0xb1000 0x1000>;

                   fsl,qman-channel-id = <0x801>;

         };

 

But no device node can be found in the startup log :(compared with RDB log, there is no mac_probe process, but there is mac_load process)

[    3.465650] Freescale FM Ports module

[    3.469312] fsl_mac: fsl_mac: FSL FMan MAC API based driver

[    3.475058] fsl_dpa: FSL DPAA Ethernet driver

 

[    3.497582] fsl_dpa soc:fsl,dpaa:ethernet@9: of_find_device_by_node(ethernet@f2000) failed

[    3.505860] fsl_dpa: probe of soc:fsl,dpaa:ethernet@9 failed with error -22

 

There are no node files in the system file after startup:

/sys/devices/platform/soc/1a00000.fman/1af2000.ethernet

/sys/firmware/devicetree/base/soc/fman@1a00000/ethernet@f2000

/sys/bus/platform/devices/1af2000.ethernet

 

Can you help me see how to write DTS corresponding to our hardware configuration?Please give corresponding Suggestions or documents, thank you.

Labels (1)
0 Kudos
8 Replies

1,866 Views
chunyan_cui
Contributor I

The sgmii.10 is disabled under uboot:

   u-boot/board/freescale/ls1046afrwy/eth.c
   fdt_update_ethernet_dt

   fdt_status_disabled

So linux always can't find the mac device node.

After fixing it, the fm1-mac10 is available.

Even the interface rx is zero, we can continue.

0 Kudos

1,866 Views
chunyan_cui
Contributor I

The prime issue is whether the last MAC (sgmii.10, offset 1af2000) could be used as GE port?

And how to edit the dts?

Is the phy-connection OK?

0 Kudos

1,866 Views
ufedor
NXP Employee
NXP Employee

> whether the last MAC (sgmii.10, offset 1af2000) could be used as GE port?

Yes, it can.

> And how to edit the dts?

Use DTS of the LS1046ARDB from LSDK v19.09 as a reference and modify it accordingly:

freescale\dts\boot\arm64\arch - qoriq-components/linux - Linux Tree for QorIQ support 

> Is the phy-connection OK?

Please refer to the PHY datasheet to verify the connection.

0 Kudos

1,866 Views
jack_huang1
Contributor III

Dear:

        The attachment has been added, thank you.

0 Kudos

1,866 Views
ufedor
NXP Employee
NXP Employee

When replying, use advanced editor to attach:

complete DTS, RCW as binary image or U-Boot log containing RCW

0 Kudos

1,866 Views
chunyan_cui
Contributor I

Here is the dts compiled from dtb.

0 Kudos

1,866 Views
ufedor
NXP Employee
NXP Employee

Please provide:

1) the processor connection schematics as searchable PDF for inspection

2) RCW as binary image or U-Boot log containing RCW

0 Kudos

1,865 Views
chunyan_cui
Contributor I

Thanks a lot!

   As I can't paste the attachments, the PDF and RCW file are provided with E-mail.

0 Kudos