Skip to content

Commit aa9083f

Browse files
committed
Merge tag 'phy-for-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/kishon/linux-phy into usb-next
phy: for 5.3 *) Add a new PHY driver for Qualcomm PCIe2 PHY *) Add a new PHY driver for Mixel DPHY present in i.MX8 *) Fix Qualcomm QMP UFS PHY driver from incorrectly reporting that PHY enable failed *) Fix _BUG_ on Amlogic G12A USB3 + PCIE Combo PHY Driver due to calling a sleeping function from invalid context *) Fix WARN_ON dump on rcar-gen3-usb2 PHY driver caused due to imbalance powered flag *) Fix .cocci and sparse warnings Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> * tag 'phy-for-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/kishon/linux-phy: phy: qcom-qmp: Raise qcom_qmp_phy_enable() polling delay phy: meson-g12a-usb3-pcie: disable locking for cr_regmap phy: Add driver for mixel mipi dphy found on NXP's i.MX8 SoCs dt-bindings: phy: Add documentation for mixel dphy dt-bindings: phy-pxa-usb: add bindings phy: renesas: rcar-gen3-usb2: fix imbalance powered flag phy: qcom-qmp: Drop useless msm8998_pciephy_cfg setting phy: qcom-qmp: Correct READY_STATUS poll break condition phy: ti: am654-serdes: Make serdes_am654_xlate() static phy: usb: phy-brcm-usb: Fix platform_no_drv_owner.cocci warnings phy: samsung: Use struct_size() in devm_kzalloc() phy: qcom: Add Qualcomm PCIe2 PHY driver dt-bindings: phy: Add binding for Qualcomm PCIe2 PHY
2 parents 90fca07 + 5206026 commit aa9083f

15 files changed

Lines changed: 960 additions & 13 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
Mixel DSI PHY for i.MX8
2+
3+
The Mixel MIPI-DSI PHY IP block is e.g. found on i.MX8 platforms (along the
4+
MIPI-DSI IP from Northwest Logic). It represents the physical layer for the
5+
electrical signals for DSI.
6+
7+
Required properties:
8+
- compatible: Must be:
9+
- "fsl,imx8mq-mipi-dphy"
10+
- clocks: Must contain an entry for each entry in clock-names.
11+
- clock-names: Must contain the following entries:
12+
- "phy_ref": phandle and specifier referring to the DPHY ref clock
13+
- reg: the register range of the PHY controller
14+
- #phy-cells: number of cells in PHY, as defined in
15+
Documentation/devicetree/bindings/phy/phy-bindings.txt
16+
this must be <0>
17+
18+
Optional properties:
19+
- power-domains: phandle to power domain
20+
21+
Example:
22+
dphy: dphy@30a0030 {
23+
compatible = "fsl,imx8mq-mipi-dphy";
24+
clocks = <&clk IMX8MQ_CLK_DSI_PHY_REF>;
25+
clock-names = "phy_ref";
26+
reg = <0x30a00300 0x100>;
27+
power-domains = <&pd_mipi0>;
28+
#phy-cells = <0>;
29+
};
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Marvell PXA USB PHY
2+
-------------------
3+
4+
Required properties:
5+
- compatible: one of: "marvell,mmp2-usb-phy", "marvell,pxa910-usb-phy",
6+
"marvell,pxa168-usb-phy",
7+
- #phy-cells: must be 0
8+
9+
Example:
10+
usb-phy: usbphy@d4207000 {
11+
compatible = "marvell,mmp2-usb-phy";
12+
reg = <0xd4207000 0x40>;
13+
#phy-cells = <0>;
14+
status = "okay";
15+
};
16+
17+
This document explains the device tree binding. For general
18+
information about PHY subsystem refer to Documentation/phy.txt
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
Qualcomm PCIe2 PHY controller
2+
=============================
3+
4+
The Qualcomm PCIe2 PHY is a Synopsys based phy found in a number of Qualcomm
5+
platforms.
6+
7+
Required properties:
8+
- compatible: compatible list, should be:
9+
"qcom,qcs404-pcie2-phy", "qcom,pcie2-phy"
10+
11+
- reg: offset and length of the PHY register set.
12+
- #phy-cells: must be 0.
13+
14+
- clocks: a clock-specifier pair for the "pipe" clock
15+
16+
- vdda-vp-supply: phandle to low voltage regulator
17+
- vdda-vph-supply: phandle to high voltage regulator
18+
19+
- resets: reset-specifier pairs for the "phy" and "pipe" resets
20+
- reset-names: list of resets, should contain:
21+
"phy" and "pipe"
22+
23+
- clock-output-names: name of the outgoing clock signal from the PHY PLL
24+
- #clock-cells: must be 0
25+
26+
Example:
27+
phy@7786000 {
28+
compatible = "qcom,qcs404-pcie2-phy", "qcom,pcie2-phy";
29+
reg = <0x07786000 0xb8>;
30+
31+
clocks = <&gcc GCC_PCIE_0_PIPE_CLK>;
32+
resets = <&gcc GCC_PCIEPHY_0_PHY_BCR>,
33+
<&gcc GCC_PCIE_0_PIPE_ARES>;
34+
reset-names = "phy", "pipe";
35+
36+
vdda-vp-supply = <&vreg_l3_1p05>;
37+
vdda-vph-supply = <&vreg_l5_1p8>;
38+
39+
clock-output-names = "pcie_0_pipe_clk";
40+
#clock-cells = <0>;
41+
#phy-cells = <0>;
42+
};

‎drivers/phy/amlogic/phy-meson-g12a-usb3-pcie.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ static const struct regmap_config phy_g12a_usb3_pcie_cr_regmap_conf = {
188188
.reg_read = phy_g12a_usb3_pcie_cr_bus_read,
189189
.reg_write = phy_g12a_usb3_pcie_cr_bus_write,
190190
.max_register = 0xffff,
191-
.fast_io = true,
191+
.disable_locking = true,
192192
};
193193

194194
static int phy_g12a_usb3_init(struct phy *phy)

‎drivers/phy/broadcom/phy-brcm-usb.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,6 @@ static struct platform_driver brcm_usb_driver = {
443443
.remove = brcm_usb_phy_remove,
444444
.driver = {
445445
.name = "brcmstb-usb-phy",
446-
.owner = THIS_MODULE,
447446
.pm = &brcm_usb_phy_pm_ops,
448447
.of_match_table = brcm_usb_dt_ids,
449448
},

‎drivers/phy/freescale/Kconfig‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,13 @@ config PHY_FSL_IMX8MQ_USB
44
depends on OF && HAS_IOMEM
55
select GENERIC_PHY
66
default ARCH_MXC && ARM64
7+
8+
config PHY_MIXEL_MIPI_DPHY
9+
tristate "Mixel MIPI DSI PHY support"
10+
depends on OF && HAS_IOMEM
11+
select GENERIC_PHY
12+
select GENERIC_PHY_MIPI_DPHY
13+
select REGMAP_MMIO
14+
help
15+
Enable this to add support for the Mixel DSI PHY as found
16+
on NXP's i.MX8 family of SOCs.

‎drivers/phy/freescale/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
obj-$(CONFIG_PHY_FSL_IMX8MQ_USB) += phy-fsl-imx8mq-usb.o
3+
obj-$(CONFIG_PHY_MIXEL_MIPI_DPHY) += phy-fsl-imx8-mipi-dphy.o

0 commit comments

Comments
 (0)