Add support for CP110 UTMI PHY
Subsystems (5)
v3 cover Add support for CP110 UTMI PHY
From: Konstantin Porotchkin <[email protected]>
This series of patches adds a new PHY driver for supporting CP110 UTMI PHY in Linux. Currently the functionality of USB ports connected to this PHY depends on boot loader setup.
The new driver eliminates kernel configuration dependency from the boot loader.
v3:
- rebase on top of Linux 5.12-rc2
- convert Armada 3700 UTMI PHY DT binding document to YAML schema
- create a separate DT binding for Armada CP11x UTMI PHY in YAML format
- change UTMI PHY port node names from "phy" to "usb-phy"
v2:
- extend the comment about reference clock
- fix driver probe function, add some prints
- move to usage of dr_mode from connected USB controller instead of dedicated device tree property
Konstantin Porotchkin (5):
drivers: phy: add support for Armada CP110 UTMI PHY
dt-bindings: phy: convert phy-mvebu-utmi to YAML schema devicetree/bindings: add support for CP110 UTMI PHY arch/arm64: dts: add support for Marvell CP110 UTMI PHY arch/arm64: dts: enable CP110 UTMI PHY usage
.../phy/marvell,armada-3700-utmi-phy.yaml | 57 +++ .../phy/marvell,armada-cp110-utmi-phy.yaml | 109 +++++ .../bindings/phy/phy-mvebu-utmi.txt | 38 -- .../arm64/boot/dts/marvell/armada-7040-db.dts | 14 +- .../arm64/boot/dts/marvell/armada-8040-db.dts | 21 +- .../boot/dts/marvell/armada-8040-mcbin.dtsi | 19 +- arch/arm64/boot/dts/marvell/armada-cp11x.dtsi | 19 + arch/arm64/boot/dts/marvell/cn9130-db.dts | 12 +- arch/arm64/boot/dts/marvell/cn9131-db.dts | 9 +- arch/arm64/boot/dts/marvell/cn9132-db.dts | 11 +- drivers/phy/marvell/Kconfig | 8 + drivers/phy/marvell/Makefile | 1 + drivers/phy/marvell/phy-mvebu-cp110-utmi.c | 384 ++++++++++++++++++ 13 files changed, 650 insertions(+), 52 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/marvell,armada-3700-utmi-phy.yaml create mode 100644 Documentation/devicetree/bindings/phy/marvell,armada-cp110-utmi-phy.yaml delete mode 100644 Documentation/devicetree/bindings/phy/phy-mvebu-utmi.txt create mode 100644 drivers/phy/marvell/phy-mvebu-cp110-utmi.c
Signature · 1 line
2.17.1
PATCH v3 1/5 drivers: phy: add support for Armada CP110 UTMI PHY
From: Konstantin Porotchkin <[email protected]>
Add support for Marvell CP110 UTMI PHY driver allowing the USB2 port configuration independently from the boot loader setup. The CP110/CP115 dies have 2 UTMI PHYs that could be connected to two USB host controllers or to single USB device controller. Since there is only one USB device controller on die, only one of the UTMI PHYs could work in USB device mode.
The CONFIG_PHY_MVEBU_CP110_UTMI should be enabled for usage of this driver.
--- drivers/phy/marvell/Kconfig | 8 + drivers/phy/marvell/Makefile | 1 + drivers/phy/marvell/phy-mvebu-cp110-utmi.c | 384 ++++++++++++++++++++ 3 files changed, 393 insertions(+) create mode 100644 drivers/phy/marvell/phy-mvebu-cp110-utmi.c
drivers/phy/marvell/Kconfig +8 -0
@@ -67,6 +67,14 @@ config PHY_MVEBU_CP110_COMPHY lanes can be used by various controllers (Ethernet, sata, usb, PCIe...). +config PHY_MVEBU_CP110_UTMI + tristate "Marvell CP110 UTMI driver" + depends on ARCH_MVEBU || COMPILE_TEST + depends on OF + select GENERIC_PHY + help + Enable this to support Marvell CP110 UTMI PHY driver. + config PHY_MVEBU_SATA def_bool y depends on ARCH_DOVE || MACH_DOVE || MACH_KIRKWOOD
drivers/phy/marvell/Makefile +1 -0
@@ -8,6 +8,7 @@ obj-$(CONFIG_PHY_MVEBU_A3700_COMPHY) += phy-mvebu-a3700-comphy.o obj-$(CONFIG_PHY_MVEBU_A3700_UTMI) += phy-mvebu-a3700-utmi.o obj-$(CONFIG_PHY_MVEBU_A38X_COMPHY) += phy-armada38x-comphy.o obj-$(CONFIG_PHY_MVEBU_CP110_COMPHY) += phy-mvebu-cp110-comphy.o +obj-$(CONFIG_PHY_MVEBU_CP110_UTMI) += phy-mvebu-cp110-utmi.o obj-$(CONFIG_PHY_MVEBU_SATA) += phy-mvebu-sata.o obj-$(CONFIG_PHY_PXA_28NM_HSIC) += phy-pxa-28nm-hsic.o obj-$(CONFIG_PHY_PXA_28NM_USB2) += phy-pxa-28nm-usb2.o
drivers/phy/marvell/phy-mvebu-cp110-utmi.c new file +384 -0
384 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH v3 2/5 dt-bindings: phy: convert phy-mvebu-utmi to YAML schema
In reply to [email protected]From: Konstantin Porotchkin <[email protected]>
The new file name is marvell,armada-3700-utmi-phy.yaml
--- Documentation/devicetree/bindings/phy/marvell,armada-3700-utmi-phy.yaml | 57 ++++++++++++++++++++ Documentation/devicetree/bindings/phy/phy-mvebu-utmi.txt | 38 ------------- 2 files changed, 57 insertions(+), 38 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/marvell,armada-3700-utmi-phy.yaml delete mode 100644 Documentation/devicetree/bindings/phy/phy-mvebu-utmi.txt
Documentation/devicetree/bindings/phy/marvell,armada-3700-utmi-phy.yaml new file +57 -0
@@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) + +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/phy/marvell,armada-3700-utmi-phy.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Marvell Armada UTMI/UTMI+ PHY + +maintainers: + - Miquel Raynal <[email protected]> + +description: + On Armada 3700, there are two USB controllers, one is compatible with + the USB2 and USB3 specifications and supports OTG. The other one is USB2 + compliant and only supports host mode. Both of these controllers come with + a slightly different UTMI PHY. + +properties: + compatible: + enum: + - marvell,a3700-utmi-host-phy + - marvell,a3700-utmi-otg-phy + reg: + maxItems: 1 + + "#phy-cells": + const: 0 + + marvell,usb-misc-reg: + description: + Phandle on the "USB miscellaneous registers" shared region + covering registers related to both the host controller and + the PHY. + $ref: /schemas/types.yaml#/definitions/phandle + +required: + - compatible + - reg + - "#phy-cells" + - marvell,usb-misc-reg + +additionalProperties: false + +examples: + - | + usb2_utmi_host_phy: phy@5f000 { + compatible = "marvell,armada-3700-utmi-host-phy"; + reg = <0x5f000 0x800>; + marvell,usb-misc-reg = <&usb2_syscon>; + #phy-cells = <0>; + }; + + usb2_syscon: system-controller@5f800 { + compatible = "marvell,armada-3700-usb2-host-misc", "syscon"; + reg = <0x5f800 0x800>; + };
Documentation/devicetree/bindings/phy/phy-mvebu-utmi.txt deleted +0 -38
@@ -1,38 +0,0 @@ -MVEBU A3700 UTMI PHY --------------------- - -USB2 UTMI+ PHY controllers can be found on the following Marvell MVEBU SoCs: -* Armada 3700 - -On Armada 3700, there are two USB controllers, one is compatible with the USB2 -and USB3 specifications and supports OTG. The other one is USB2 compliant and -only supports host mode. Both of these controllers come with a slightly -different UTMI PHY. - -Required Properties: - -- compatible: Should be one of: - * "marvell,a3700-utmi-host-phy" for the PHY connected to - the USB2 host-only controller. - * "marvell,a3700-utmi-otg-phy" for the PHY connected to - the USB3 and USB2 OTG capable controller. -- reg: PHY IP register range. -- marvell,usb-misc-reg: handle on the "USB miscellaneous registers" shared - region covering registers related to both the host - controller and the PHY. -- #phy-cells: Standard property (Documentation: phy-bindings.txt) Should be 0. - - -Example: - - usb2_utmi_host_phy: phy@5f000 { - compatible = "marvell,armada-3700-utmi-host-phy"; - reg = <0x5f000 0x800>; - marvell,usb-misc-reg = <&usb2_syscon>; - #phy-cells = <0>; - }; - - usb2_syscon: system-controller@5f800 { - compatible = "marvell,armada-3700-usb2-host-misc", "syscon"; - reg = <0x5f800 0x800>; - };
Signature · 1 line
2.17.1
Re: [PATCH v3 2/5] dt-bindings: phy: convert phy-mvebu-utmi to YAML schema
Quoted 4 lines · On Sun, 07 Mar 2021 18:33:39 +0200, [email protected] wrote:
From: Konstantin Porotchkin <[email protected]>
The new file name is marvell,armada-3700-utmi-phy.yaml
Quoted 8 lines
Signed-off-by Konstantin Porotchkin <[email protected]>--- Documentation/devicetree/bindings/phy/marvell,armada-3700-utmi-phy.yaml | 57 ++++++++++++++++++++ Documentation/devicetree/bindings/phy/phy-mvebu-utmi.txt | 38 ------------- 2 files changed, 57 insertions(+), 38 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/marvell,armada-3700-utmi-phy.yaml delete mode 100644 Documentation/devicetree/bindings/phy/phy-mvebu-utmi.txt
PATCH v3 3/5 devicetree/bindings: add support for CP110 UTMI PHY
In reply to [email protected]From: Konstantin Porotchkin <[email protected]>
Add DTS binding for Marvell CP110 UTMI PHY
--- Documentation/devicetree/bindings/phy/marvell,armada-cp110-utmi-phy.yaml | 109 ++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/marvell,armada-cp110-utmi-phy.yaml
Documentation/devicetree/bindings/phy/marvell,armada-cp110-utmi-phy.yaml new file +109 -0
@@ -0,0 +1,109 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) + +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/phy/marvell,armada-cp110-utmi-phy.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Marvell Armada CP110/CP115 UTMI PHY + +maintainers: + - Konstantin Porotchkin <[email protected]> + +description: + On Armada 7k/8k and CN913x, there are two host and one device USB controllers. + Each of two exiting UTMI PHYs could be connected to either USB host or USB device + controller. + The USB device controller can only be connected to a single UTMI PHY port + 0.H----- USB HOST0 + UTMI PHY0 --------/ + 0.D-----0 + \------ USB DEVICE + 1.D-----1 + UTMI PHY1 --------\ + 1.H----- USB HOST1 + +properties: + compatible: + const: marvell,cp110-utmi-phy + + reg: + maxItems: 1 + + "#address-cells": + const: 1 + + "#size-cells": + const: 0 + + marvell,system-controller: + description: + Phandle to the system controller node + $ref: /schemas/types.yaml#/definitions/phandle + +#Required child nodes: + +patternProperties: + "^usb-phy@[0|1]$": + type: object + description: + Each UTMI PHY port must be represented as a sub-node. + + properties: + reg: + description: phy port index. + maxItems: 1 + + "#phy-cells": + const: 0 + + required: + - reg + - "#phy-cells" + + additionalProperties: false + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + - marvell,system-controller + +additionalProperties: false + +examples: + - | + cp0_utmi: utmi@580000 { + compatible = "marvell,cp110-utmi-phy"; + reg = <0x580000 0x2000>; + marvell,system-controller = <&cp0_syscon0>; + #address-cells = <1>; + #size-cells = <0>; + + cp0_utmi0: usb-phy@0 { + reg = <0>; + #phy-cells = <0>; + }; + + cp0_utmi1: usb-phy@1 { + reg = <1>; + #phy-cells = <0>; + }; + }; + + cp0_usb3_0 { + usb-phy = <&cp0_usb3_0_phy0>; + phys = <&cp0_utmi0>; + phy-names = "utmi"; + /* UTMI0 is connected to USB host controller (default mode) */ + dr_mode = "host"; + }; + + cp0_usb3_1 { + usb-phy = <&cp0_usb3_0_phy1>; + phys = <&cp0_utmi1>; + phy-names = "utmi"; + /* UTMI1 is connected to USB device controller */ + dr_mode = "peripheral"; + };
Signature · 1 line
2.17.1
Re: [PATCH v3 3/5] devicetree/bindings: add support for CP110 UTMI PHY
Quoted 10 lines · On Sun, 07 Mar 2021 18:33:40 +0200, [email protected] wrote:
From: Konstantin Porotchkin <[email protected]>
Add DTS binding for Marvell CP110 UTMI PHY
Signed-off-by Konstantin Porotchkin <[email protected]>--- Documentation/devicetree/bindings/phy/marvell,armada-cp110-utmi-phy.yaml | 109 ++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/marvell,armada-cp110-utmi-phy.yaml
PATCH v3 4/5 arch/arm64: dts: add support for Marvell CP110 UTMI driver
In reply to [email protected]From: Konstantin Porotchkin <[email protected]>
Add support for Marvell CP110 UTMI PHY in a common DTSI
--- arch/arm64/boot/dts/marvell/armada-cp11x.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
arch/arm64/boot/dts/marvell/armada-cp11x.dtsi +19 -0
@@ -285,6 +285,25 @@ }; }; + CP11X_LABEL(utmi): utmi@580000 { + compatible = "marvell,cp110-utmi-phy"; + reg = <0x580000 0x2000>; + marvell,system-controller = <&CP11X_LABEL(syscon0)>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + + CP11X_LABEL(utmi0): usb-phy@0 { + reg = <0>; + #phy-cells = <0>; + }; + + CP11X_LABEL(utmi1): usb-phy@1 { + reg = <1>; + #phy-cells = <0>; + }; + }; + CP11X_LABEL(usb3_0): usb@500000 { compatible = "marvell,armada-8k-xhci", "generic-xhci";
Signature · 1 line
2.17.1
RE: [PATCH v3 4/5] arch/arm64: dts: add support for Marvell CP110 UTMI driver
This one sent by mistake, please ignore it.
There is another v3 4/5 that has a correct name.
Sorry for the mess.
Kosta
Quoted 57 lines
-----Original Message-----
From: [email protected] <[email protected]>
Sent: Sunday, March 7, 2021 18:34
To: [email protected]; [email protected]; linux- [email protected]
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Nadav Haklai <[email protected]>; Stefan Chulski <[email protected]>; Ben Peled <[email protected]>; Kostya Porotchkin <[email protected]>
Subject: [PATCH v3 4/5]arch/arm64: dts: add support for Marvell CP110 UTMI driverFrom: Konstantin Porotchkin <[email protected]>
Add support for Marvell CP110 UTMI PHY in a common DTSI
Signed-off-by Konstantin Porotchkin <[email protected]>--- arch/arm64/boot/dts/marvell/armada-cp11x.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)arch/arm64/boot/dts/marvell/armada-cp11x.dtsi +19
-0@@ -285,6 +285,25 @@ }; }; + CP11X_LABEL(utmi): utmi@580000 { + compatible = "marvell,cp110-utmi-phy"; + reg = <0x580000 0x2000>; + marvell,system-controller = <&CP11X_LABEL(syscon0)>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + + CP11X_LABEL(utmi0): usb-phy@0 { + reg = <0>; + #phy-cells = <0>; + }; + + CP11X_LABEL(utmi1): usb-phy@1 { + reg = <1>; + #phy-cells = <0>; + }; + }; + CP11X_LABEL(usb3_0): usb@500000 { compatible = "marvell,armada-8k-xhci","generic-xhci";
--
2.17.1
PATCH v3 4/5 arch/arm64: dts: add support for Marvell CP110 UTMI PHY
In reply to [email protected]From: Konstantin Porotchkin <[email protected]>
Add support for Marvell CP110 UTMI PHY in a CP11x DTSI
--- arch/arm64/boot/dts/marvell/armada-cp11x.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
arch/arm64/boot/dts/marvell/armada-cp11x.dtsi +19 -0
@@ -285,6 +285,25 @@ }; }; + CP11X_LABEL(utmi): utmi@580000 { + compatible = "marvell,cp110-utmi-phy"; + reg = <0x580000 0x2000>; + marvell,system-controller = <&CP11X_LABEL(syscon0)>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + + CP11X_LABEL(utmi0): usb-phy@0 { + reg = <0>; + #phy-cells = <0>; + }; + + CP11X_LABEL(utmi1): usb-phy@1 { + reg = <1>; + #phy-cells = <0>; + }; + }; + CP11X_LABEL(usb3_0): usb@500000 { compatible = "marvell,armada-8k-xhci", "generic-xhci";
Signature · 7 lines
2.17.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH v3 5/5 arch/arm64: dts: enable CP110 UTMI PHY usage
In reply to [email protected]From: Konstantin Porotchkin <[email protected]>
Enable support for CP110 UTMI PHY in Armada SoC family platform device trees.
--- arch/arm64/boot/dts/marvell/armada-7040-db.dts | 14 +++++++++---- arch/arm64/boot/dts/marvell/armada-8040-db.dts | 21 ++++++++++++++++++-- arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi | 19 ++++++++++++++++-- arch/arm64/boot/dts/marvell/cn9130-db.dts | 12 +++++++++-- arch/arm64/boot/dts/marvell/cn9131-db.dts | 9 +++++++-- arch/arm64/boot/dts/marvell/cn9132-db.dts | 11 ++++++++-- 6 files changed, 72 insertions(+), 14 deletions(-)
arch/arm64/boot/dts/marvell/armada-7040-db.dts +10 -4
@@ -218,6 +218,10 @@ }; }; +&cp0_utmi { + status = "okay"; +}; + &cp0_comphy1 { cp0_usbh0_con: connector { compatible = "usb-a-connector";
@@ -226,8 +230,9 @@ }; &cp0_usb3_0 { - phys = <&cp0_comphy1 0>; - phy-names = "cp0-usb3h0-comphy"; + phys = <&cp0_comphy1 0>, <&cp0_utmi0>; + phy-names = "cp0-usb3h0-comphy", "utmi"; + dr_mode = "host"; status = "okay"; };
@@ -239,8 +244,9 @@ }; &cp0_usb3_1 { - phys = <&cp0_comphy4 1>; - phy-names = "cp0-usb3h1-comphy"; + phys = <&cp0_comphy4 1>, <&cp0_utmi1>; + phy-names = "cp0-usb3h1-comphy", "utmi"; + dr_mode = "host"; status = "okay"; };
arch/arm64/boot/dts/marvell/armada-8040-db.dts +19 -2
@@ -154,8 +154,15 @@ }; /* CON9 on CP0 expansion */ +&cp0_utmi { + status = "okay"; +}; + &cp0_usb3_0 { usb-phy = <&cp0_usb3_0_phy>; + phys = <&cp0_utmi0>; + phy-names = "utmi"; + dr_mode = "host"; status = "okay"; };
@@ -168,8 +175,9 @@ /* CON10 on CP0 expansion */ &cp0_usb3_1 { - phys = <&cp0_comphy4 1>; - phy-names = "cp0-usb3h1-comphy"; + phys = <&cp0_comphy4 1>, <&cp0_utmi1>; + phy-names = "usb", "utmi"; + dr_mode = "host"; status = "okay"; };
@@ -306,14 +314,23 @@ }; }; +&cp1_utmi { + status = "okay"; +}; + /* CON9 on CP1 expansion */ &cp1_usb3_0 { usb-phy = <&cp1_usb3_0_phy>; + phys = <&cp1_utmi0>; + phy-names = "utmi"; + dr_mode = "host"; status = "okay"; }; /* CON10 on CP1 expansion */ &cp1_usb3_1 { + phys = <&cp1_utmi1>; + phy-names = "utmi"; status = "okay"; };
arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi +17 -2
@@ -259,13 +259,23 @@ vqmmc-supply = <&v_3_3>; }; +&cp0_utmi { + status = "okay"; +}; + &cp0_usb3_0 { /* J38? - USB2.0 only */ + phys = <&cp0_utmi0>; + phy-names = "utmi"; + dr_mode = "host"; status = "okay"; }; &cp0_usb3_1 { /* J38? - USB2.0 only */ + phys = <&cp0_utmi1>; + phy-names = "utmi"; + dr_mode = "host"; status = "okay"; };
@@ -364,9 +374,14 @@ }; }; +&cp1_utmi { + status = "okay"; +}; + &cp1_usb3_0 { /* CPS Lane 2 - CON7 */ - phys = <&cp1_comphy2 0>; - phy-names = "cp1-usb3h0-comphy"; + phys = <&cp1_comphy2 0>, <&cp1_utmi0>; + phy-names = "cp1-usb3h0-comphy", "utmi"; + dr_mode = "host"; status = "okay"; };
arch/arm64/boot/dts/marvell/cn9130-db.dts +10 -2
@@ -392,14 +392,22 @@ }; }; +&cp0_utmi { + status = "okay"; +}; + &cp0_usb3_0 { status = "okay"; usb-phy = <&cp0_usb3_0_phy0>; - phy-names = "usb"; + phys = <&cp0_utmi0>; + phy-names = "utmi"; + dr_mode = "host"; }; &cp0_usb3_1 { status = "okay"; usb-phy = <&cp0_usb3_0_phy1>; - phy-names = "usb"; + phys = <&cp0_utmi1>; + phy-names = "utmi"; + dr_mode = "host"; };
arch/arm64/boot/dts/marvell/cn9131-db.dts +7 -2
@@ -193,10 +193,15 @@ }; /* CON58 */ +&cp1_utmi { + status = "okay"; +}; + &cp1_usb3_1 { status = "okay"; usb-phy = <&cp1_usb3_0_phy0>; /* Generic PHY, providing serdes lanes */ - phys = <&cp1_comphy3 1>; - phy-names = "usb"; + phys = <&cp1_comphy3 1>, <&cp1_utmi1>; + phy-names = "usb", "utmi"; + dr_mode = "host"; };
arch/arm64/boot/dts/marvell/cn9132-db.dts +9 -2
@@ -205,17 +205,24 @@ }; }; +&cp2_utmi { + status = "okay"; +}; + &cp2_usb3_0 { status = "okay"; usb-phy = <&cp2_usb3_0_phy0>; + phys = <&cp2_utmi0>; phy-names = "usb"; + dr_mode = "host"; }; /* SLM-1521-V2, CON11 */ &cp2_usb3_1 { status = "okay"; usb-phy = <&cp2_usb3_0_phy1>; - phy-names = "usb"; /* Generic PHY, providing serdes lanes */ - phys = <&cp2_comphy3 1>; + phys = <&cp2_comphy3 1>, <&cp2_utmi1>; + phy-names = "usb", "utmi"; + dr_mode = "host"; };
Signature · 1 line
2.17.1
Vinod Koul
maintainerQuoted 7 lines · On 07-03-21, 18:33, [email protected] wrote:
From: Konstantin Porotchkin <[email protected]>
This series of patches adds a new PHY driver for supporting CP110 UTMI PHY in Linux. Currently the functionality of USB ports connected to this PHY depends on boot loader setup.
The new driver eliminates kernel configuration dependency from the boot loader.
Applied 1-3, thanks
Signature · 1 line
~Vinod
Gregory CLEMENT
maintainerHi Kosta,
Quoted 20 lines
From: Konstantin Porotchkin <[email protected]>
This series of patches adds a new PHY driver for supporting CP110 UTMI PHY in Linux. Currently the functionality of USB ports connected to this PHY depends on boot loader setup.
The new driver eliminates kernel configuration dependency from the boot loader.v3:
- rebase on top of Linux 5.12-rc2
- convert Armada 3700 UTMI PHY DT binding document to YAML schema
- create a separate DT binding for Armada CP11x UTMI PHY in YAML format
- change UTMI PHY port node names from "phy" to "usb-phy"v2:
- extend the comment about reference clock
- fix driver probe function, add some prints
- move to usage ofdr_modefrom connected USB controller instead of dedicated device tree property
Quoted 6 lines
Konstantin Porotchkin (5):
drivers: phy: add support for Armada CP110 UTMI PHY
dt-bindings: phy: convert phy-mvebu-utmi to YAML schema devicetree/bindings: add support for CP110 UTMI PHYarch/arm64: dts: add support for Marvell CP110 UTMI PHYarch/arm64: dts: enable CP110 UTMI PHY usage
Patch 4 and 5 applied on mvebu/dt64.
I've just modified the title to align with the other commits in arch/arm64/boot/dts/marvell. They now begin by "arm64: dts: marvell:".
Thanks,
Gregory
Quoted 23 lines
.../phy/marvell,armada-3700-utmi-phy.yaml | 57 +++ .../phy/marvell,armada-cp110-utmi-phy.yaml | 109 +++++ .../bindings/phy/phy-mvebu-utmi.txt | 38 -- .../arm64/boot/dts/marvell/armada-7040-db.dts | 14 +- .../arm64/boot/dts/marvell/armada-8040-db.dts | 21 +- .../boot/dts/marvell/armada-8040-mcbin.dtsi | 19 +- arch/arm64/boot/dts/marvell/armada-cp11x.dtsi | 19 + arch/arm64/boot/dts/marvell/cn9130-db.dts | 12 +- arch/arm64/boot/dts/marvell/cn9131-db.dts | 9 +- arch/arm64/boot/dts/marvell/cn9132-db.dts | 11 +- drivers/phy/marvell/Kconfig | 8 + drivers/phy/marvell/Makefile | 1 + drivers/phy/marvell/phy-mvebu-cp110-utmi.c | 384 ++++++++++++++++++ 13 files changed, 650 insertions(+), 52 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/marvell,armada-3700-utmi-phy.yaml create mode 100644 Documentation/devicetree/bindings/phy/marvell,armada-cp110-utmi-phy.yaml delete mode 100644 Documentation/devicetree/bindings/phy/phy-mvebu-utmi.txt create mode 100644 drivers/phy/marvell/phy-mvebu-cp110-utmi.cSignature · 1 line
2.17.1
Signature · 3 lines
Gregory Clement, Bootlin Embedded Linux and Kernel engineering http://bootlin.com