Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Martin Blumenstingl and committed by
Kishon Vijay Abraham I
4a3449d1 b78e2908

+6 -5
+3 -3
drivers/phy/amlogic/Kconfig
··· 2 2 # Phy drivers for Amlogic platforms 3 3 # 4 4 config PHY_MESON8B_USB2 5 - tristate "Meson8b and GXBB USB2 PHY driver" 5 + tristate "Meson8, Meson8b and GXBB USB2 PHY driver" 6 6 default ARCH_MESON 7 7 depends on OF && (ARCH_MESON || COMPILE_TEST) 8 8 depends on USB_SUPPORT 9 9 select USB_COMMON 10 10 select GENERIC_PHY 11 11 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. 14 14 If unsure, say N. 15 15 16 16 config PHY_MESON_GXL_USB2
+3 -2
drivers/phy/amlogic/phy-meson8b-usb2.c
··· 1 1 /* 2 - * Meson8b and GXBB USB2 PHY driver 2 + * Meson8, Meson8b and GXBB USB2 PHY driver 3 3 * 4 4 * Copyright (C) 2016 Martin Blumenstingl <martin.blumenstingl@googlemail.com> 5 5 * ··· 266 266 } 267 267 268 268 static const struct of_device_id phy_meson8b_usb2_of_match[] = { 269 + { .compatible = "amlogic,meson8-usb2-phy", }, 269 270 { .compatible = "amlogic,meson8b-usb2-phy", }, 270 271 { .compatible = "amlogic,meson-gxbb-usb2-phy", }, 271 272 { }, ··· 283 282 module_platform_driver(phy_meson8b_usb2_driver); 284 283 285 284 MODULE_AUTHOR("Martin Blumenstingl <martin.blumenstingl@googlemail.com>"); 286 - MODULE_DESCRIPTION("Meson8b and GXBB USB2 PHY driver"); 285 + MODULE_DESCRIPTION("Meson8, Meson8b and GXBB USB2 PHY driver"); 287 286 MODULE_LICENSE("GPL");