]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: armada8k: Add PHYs support
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 1 Apr 2019 13:12:39 +0000 (15:12 +0200)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 17 Jun 2019 11:15:07 +0000 (12:15 +0100)
commit395e94287406ca72cb4488af7b6a4ed41c7a2dcd
treec7cd8f44430ba3591cb86f5f5ac66b9304453d43
parentb48e0d7fe5b5eb1732dfe0b8057a6c721c42f2d4
PCI: armada8k: Add PHYs support

Bring PHY support for the Armada8k driver.

The Armada8k IP only supports x1, x2 or x4 link widths. Iterate over
the DT 'phys' entries and configure them one by one. Use
phy_set_mode_ext() to make use of the submode parameter (initially
introduced for Ethernet modes). For PCI configuration, let the submode
be the width (1, 2, 4, etc) so that the PHY driver knows how many
lanes are bundled. Do not error out in case of error for compatibility
reasons.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
drivers/pci/controller/dwc/pcie-armada8k.c