phy: amlogic: Add Amlogic AXG MIPI/PCIE analog PHY Driver
authorRemi Pommarel <repk@triplefau.lt>
Thu, 23 Jan 2020 23:29:41 +0000 (00:29 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 4 Mar 2020 10:53:30 +0000 (10:53 +0000)
commitaf3f5722d10cc345cbcfd2e1190334baa237a4ee
tree7cc504f153d7fc178305980e8c5929e195cbbcaa
parent6e5f77031cc92397aba2d03c9f82bfc511b83467
phy: amlogic: Add Amlogic AXG MIPI/PCIE analog PHY Driver

This adds support for the MIPI analog PHY which is also used for PCIE
found in the Amlogic AXG SoC Family.

MIPI or PCIE selection is done by the #phy-cells, making the mode
static and exclusive.

For now only PCIE functionality is supported.

This PHY will be used to replace the mipi_enable clock gating logic
which was mistakenly added in the clock subsystem. This also activates
a non documented band gap bit in those registers that allows reliable
PCIE clock signal generation on AXG platforms.

Signed-off-by: Remi Pommarel <repk@triplefau.lt>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Jerome Brunet <jbrunet@baylibre.com>
drivers/phy/amlogic/Kconfig
drivers/phy/amlogic/Makefile
drivers/phy/amlogic/phy-meson-axg-mipi-pcie-analog.c [new file with mode: 0644]