• Hou Zhiqiang's avatar
    arm64: dts: fsl: Remove num-lanes property from PCIe nodes · 4035ff36
    Hou Zhiqiang authored
    Remove the num-lanes property to avoid the driver setting the
    link width.
    
    On FSL Layerscape SoCs, the number of lanes assigned to PCIe
    controller is not fixed, it is determined by the selected SerDes
    protocol in the RCW (Reset Configuration Word).
    
    The PCIe link training is completed automatically through the selected
    SerDes protocol - the link width set-up is updated by hardware after
    power on reset, so the num-lanes property is not needed for Layerscape
    PCIe.
    
    The current num-lanes property was added erroneously, which actually
    indicates the maximum lanes the PCIe controller can support up to,
    instead of the lanes assigned to the PCIe controller. The link width set
    by SerDes protocol will be overridden by the num-lanes property, hence
    the subsequent re-training will fail when the assigned lanes do not
    match the value in the num-lanes property.
    
    Remove the property to fix the issue
    Signed-off-by: default avatarHou Zhiqiang <Zhiqiang.Hou@nxp.com>
    Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
    Reviewed-by: default avatarAndrew Murray <andrew.murray@arm.com>
    4035ff36
fsl-ls1012a.dtsi 12.7 KB