Skip to content

Commit 4a3449d

Browse files
xdarklightkishon
authored andcommitted
phy: meson8b-usb2: add support for the USB PHY on Meson8 SoCs
Meson8 uses the same USB PHY as found on the Meson8b and GXBB SoCs. Add a new of_device_id to indicate this. Also update the Kconfig option and MODULE_DESCRIPTION accordingly. Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
1 parent b78e290 commit 4a3449d

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

‎drivers/phy/amlogic/Kconfig‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
# Phy drivers for Amlogic platforms
33
#
44
config PHY_MESON8B_USB2
5-
tristate "Meson8b and GXBB USB2 PHY driver"
5+
tristate "Meson8, Meson8b and GXBB USB2 PHY driver"
66
default ARCH_MESON
77
depends on OF && (ARCH_MESON || COMPILE_TEST)
88
depends on USB_SUPPORT
99
select USB_COMMON
1010
select GENERIC_PHY
1111
help
12-
Enable this to support the Meson USB2 PHYs found in Meson8b
13-
and GXBB SoCs.
12+
Enable this to support the Meson USB2 PHYs found in Meson8,
13+
Meson8b and GXBB SoCs.
1414
If unsure, say N.
1515

1616
config PHY_MESON_GXL_USB2

‎drivers/phy/amlogic/phy-meson8b-usb2.c‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Meson8b and GXBB USB2 PHY driver
2+
* Meson8, Meson8b and GXBB USB2 PHY driver
33
*
44
* Copyright (C) 2016 Martin Blumenstingl <martin.blumenstingl@googlemail.com>
55
*
@@ -266,6 +266,7 @@ static int phy_meson8b_usb2_probe(struct platform_device *pdev)
266266
}
267267

268268
static const struct of_device_id phy_meson8b_usb2_of_match[] = {
269+
{ .compatible = "amlogic,meson8-usb2-phy", },
269270
{ .compatible = "amlogic,meson8b-usb2-phy", },
270271
{ .compatible = "amlogic,meson-gxbb-usb2-phy", },
271272
{ },
@@ -282,5 +283,5 @@ static struct platform_driver phy_meson8b_usb2_driver = {
282283
module_platform_driver(phy_meson8b_usb2_driver);
283284

284285
MODULE_AUTHOR("Martin Blumenstingl <martin.blumenstingl@googlemail.com>");
285-
MODULE_DESCRIPTION("Meson8b and GXBB USB2 PHY driver");
286+
MODULE_DESCRIPTION("Meson8, Meson8b and GXBB USB2 PHY driver");
286287
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)