I'm using kernel 6.4.2 and the Xilinx source code appears to work for Xilinx boards, based on the presence of the dts files.
I have created avnet-uz7ev-evcc.dts and have been slowly bringing features on line by studying documentation, schematics and other dts files.
I have USB, i2c, Ethernet, and SATA working.
I'm working on DisplayPort at the moment. DisplayPort works when I boot the 2022.1 example image provided by avnet.
With my kernel, these are the only two error messages I'm getting:
[ 8.294252] zynqmp-dpsub fd4a0000.display: DP output port not connected
[ 8.294281] zynqmp-dpsub: probe of fd4a0000.display failed with error -22
I checked the source code and this appears to be a device tree issue.
I'm not entirely sure what is going on, but I have a question about setting the phy for DP.
On the 7ev card carrier board, the display port has only one lane. This creates issues with my monitor, but I have found a work around.
According to the main line kernel: xlnx,zynqmp-dpsub.yaml:
phys:
description: PHYs for the DP data lanes
minItems: 1
maxItems: 2
phy-names:
minItems: 1
items:
- const: dp-phy0
- const: dp-phy1
The example is:
phys = <&psgtr 1 PHY_TYPE_DP 0 3>,
<&psgtr 0 PHY_TYPE_DP 1 3>;
According to psgtr documentation:
properties:
"#phy-cells":
const: 4
description: |
The cells contain the following arguments.
- description: The GTR lane
minimum: 0
maximum: 3
- description: The PHY type
enum:
- PHY_TYPE_DP
- PHY_TYPE_PCIE
- PHY_TYPE_SATA
- PHY_TYPE_SGMII
- PHY_TYPE_USB3
- description: The PHY instance
minimum: 0
maximum: 1 # for DP, SATA or USB
maximum: 3 # for PCIE or SGMII
- description: The reference clock number
minimum: 0
maximum: 3
I think I need to set the phys to this:
phy-names = "dp-phy0";
phys = <&psgtr 3 PHY_TYPE_DP 1 3>;
But that, and many other combinations, doesn't work.
I'm not sure what the PHY instance is supposed to be.
I have tried 0, 1 and 3 but, I'm not sure I tried all combinations as I wasn't methodical.
I'm not seven sure this is the issue because SATA and USB work without having to set PHYS.
If anyone can offer help, I'd really appreciate it.