Hal Feng
3f097adb9b
phy: starfive: jh7110-usb: Fix USB 2.0 host occasional detection failure
...
JH7110 USB 2.0 host fails to detect USB 2.0 devices occasionally. With a
long time of debugging and testing, we found that setting Rx clock gating
control signal to normal power consumption mode can solve this problem.
Signed-off-by: Hal Feng <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected] >
2025-05-14 09:45:12 +01:00
Jan Kiszka
e10c52e7e0
phy: starfive: jh7110-usb: Fix link configuration to controller
...
In order to connect the USB 2.0 PHY to its controller, we also need to
set "u0_pdrstn_split_sw_usbpipe_plugen" [1]. Some downstream U-Boot
versions did that, but upstream firmware does not, and the kernel must
not rely on such behavior anyway. Failing to set this left the USB
gadget port invisible to connected hosts behind.
Link: https://doc-en.rvspace.org/JH7110/TRM/JH7110_TRM/sys_syscon.html#sys_syscon__section_b3l_fqs_wsb [1]
Fixes: 16d3a71c20 ("phy: starfive: Add JH7110 USB 2.0 PHY driver")
Signed-off-by: Jan Kiszka <[email protected] >
Signed-off-by: Minda Chen <[email protected] >
Reviewed-by: Conor Dooley <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected] >
2024-10-17 20:19:44 +05:30
Changhuang Liang
8d2a353951
phy: starfive: Correct the dphy configure process
...
We actually want to calculate the alignment values first, then
use the alignment value to look up the data from reg_configs[].
Fixes: d3ab795533 ("phy: starfive: Add mipi dphy tx support")
Reviewed-by: Shengyang Chen <[email protected] >
Signed-off-by: Changhuang Liang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected] >
2024-07-02 18:49:14 +05:30
Shengyang Chen
d3ab795533
phy: starfive: Add mipi dphy tx support
...
Add mipi dphy tx support for the StarFive JH7110 SoC.
It is a module which is used to receive data from DSI
driver and transfer data to DSI interface like mipi screen.
Signed-off-by: Shengyang Chen <[email protected] >
Reviewed-by: Changhuang Liang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected] >
2024-06-15 17:38:30 +05:30
Dr. David Alan Gilbert
9d3799c3e8
phy: starfive: remove unused struct 'regval'
...
'regval' is unused since the original
commit f8aa660841 ("phy: starfive: Add mipi dphy rx support").
Remove it.
Signed-off-by: Dr. David Alan Gilbert <[email protected] >
Reviewed-by: Changhuang Liang <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected] >
2024-06-03 19:29:01 +05:30
Geert Uytterhoeven
e7379477f4
phy: starfive: StarFive PHYs should depend on ARCH_STARFIVE
...
The various StarFive PHYs are only present on StarFive SoCs. Hence add
a dependency on ARCH_STARFIVE, to prevent asking the user about these
drivers when configuring a kernel without StarFive SoC support.
Signed-off-by: Geert Uytterhoeven <[email protected] >
Acked-by: Changhuang Liang <[email protected] >
Link: https://lore.kernel.org/r/12097f6107a18e2f7cfb80f47ac7b27808e062c4.1690300076.git.geert+renesas@glider.be
Signed-off-by: Vinod Koul <[email protected] >
2023-07-26 19:09:08 +05:30
Vinod Koul
ec6beb8258
phy: starfive: make phys depend on HAS_IOMEM
...
the startfive phy drivers use devm_platform_ioremap_resource() which on
some archs (s390) is not present. So make the drivers depend on HAS_IOMEM
Fixes: f8aa660841 ("phy: starfive: Add mipi dphy rx support")
Reported-by: kernel test robot <[email protected] >
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected] /
Reviewed-by: Changhuang Liang <[email protected] >
Signed-off-by: Vinod Koul <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected] >
2023-07-25 19:22:11 +05:30
Changhuang Liang
f8aa660841
phy: starfive: Add mipi dphy rx support
...
Add mipi dphy rx support for the StarFive JH7110 SoC. It is used to
transfer CSI camera data.
Signed-off-by: Changhuang Liang <[email protected] >
Reviewed-by: Minda Chen <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected] >
2023-07-24 16:13:03 +05:30
Dan Carpenter
86fe3e9f4c
phy: starfive: fix error code in probe
...
This is using the wrong pointer, "phy->regs" vs "phy->phy".
Fixes: fd097f48ee ("phy: starfive: Add JH7110 PCIE 2.0 PHY driver")
Signed-off-by: Dan Carpenter <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected] >
2023-07-24 15:53:54 +05:30
Minda Chen
fd097f48ee
phy: starfive: Add JH7110 PCIE 2.0 PHY driver
...
Add Starfive JH7110 SoC PCIe 2.0 PHY driver support.
PCIe 2.0 PHY default connect to PCIe controller.
PCIe PHY can connect to USB 3.0 controller.
Signed-off-by: Minda Chen <[email protected] >
Reviewed-by: Roger Quadros <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected] >
2023-07-12 22:27:44 +05:30
Minda Chen
16d3a71c20
phy: starfive: Add JH7110 USB 2.0 PHY driver
...
Add Starfive JH7110 SoC USB 2.0 PHY driver support.
USB 2.0 PHY default connect to Cadence USB controller.
Signed-off-by: Minda Chen <[email protected] >
Reviewed-by: Roger Quadros <[email protected] >
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected] >
2023-07-12 22:27:44 +05:30