Re: [PATCH v5 10/14] dt-bindings: PCI: Add CIX Sky1 PCIe Root Complex bindings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 2025/6/30 15:26, Krzysztof Kozlowski wrote:
+  sky1,pcie-ctrl-id:
+    description: |
+      Specifies the PCIe controller instance identifier (0-4).
No, you don't get an instance ID. Drop the property and look how other
bindings encoded it (not sure about the purpose and you did not explain
it, so cannot advise).


Dear Krzysztof,

Sorry, I missed your reply to this in the previous email.

Because our Root Port driver needs to support 5 PCIe ports, and the register configuration and offset of each port are different, it is necessary to know which port it is currently. Perhaps I can use the following method and then delete this attribute.

aliases {
		......
		pcie_rc0 = &pcie_x8_rc;
		pcie_rc1 = &pcie_x4_rc;
		pcie_rc2 = &pcie_x2_rc;
		pcie_rc3 = &pcie_x1_0_rc;
		pcie_rc4 = &pcie_x1_1_rc;
		
id = of_alias_get_id(dev->of_node, "pcie_rc");

Best regards,
Hans




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux