All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] phy: meson8b-usb2: add support for the USB PHY on Meson8 SoCs
@ 2017-05-06 17:36 ` Martin Blumenstingl
  0 siblings, 0 replies; 27+ messages in thread
From: Martin Blumenstingl @ 2017-05-06 17:36 UTC (permalink / raw)
  To: robh+dt-DgEjT+Ai2ygdnm+yROfE0A, mark.rutland-5wv7dgnIgG8,
	kishon-l0cyMroinI0, devicetree-u79uwXL29TY76Z2rM5mHXA,
	linux-amlogic-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r
  Cc: carlo-KA+7E9HrN00dnm+yROfE0A, khilman-rdvid1DuHRBWk0Htik3J/w,
	johnyoun-HKixBCOQz3hWk0Htik3J/w,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	Martin Blumenstingl

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 documentation
(devicetree binding, Kconfig and MODULE_DESCRIPTION) accordingly.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
---
 Documentation/devicetree/bindings/phy/meson8b-usb2-phy.txt | 3 ++-
 drivers/phy/Kconfig                                        | 4 ++--
 drivers/phy/phy-meson8b-usb2.c                             | 5 +++--
 3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/Documentation/devicetree/bindings/phy/meson8b-usb2-phy.txt b/Documentation/devicetree/bindings/phy/meson8b-usb2-phy.txt
index 5fa73b9d20f5..d81d73aea608 100644
--- a/Documentation/devicetree/bindings/phy/meson8b-usb2-phy.txt
+++ b/Documentation/devicetree/bindings/phy/meson8b-usb2-phy.txt
@@ -1,7 +1,8 @@
-* Amlogic Meson8b and GXBB USB2 PHY
+* Amlogic Meson8, Meson8b and GXBB USB2 PHY
 
 Required properties:
 - compatible:	Depending on the platform this should be one of:
+	"amlogic,meson8-usb2-phy"
 	"amlogic,meson8b-usb2-phy"
 	"amlogic,meson-gxbb-usb2-phy"
 - reg:		The base address and length of the registers
diff --git a/drivers/phy/Kconfig b/drivers/phy/Kconfig
index 005cadb7a3f8..0d3e5099ff6a 100644
--- a/drivers/phy/Kconfig
+++ b/drivers/phy/Kconfig
@@ -507,8 +507,8 @@ config PHY_MESON8B_USB2
 	select USB_COMMON
 	select GENERIC_PHY
 	help
-	  Enable this to support the Meson USB2 PHYs found in Meson8b
-	  and GXBB SoCs.
+	  Enable this to support the Meson USB2 PHYs found in Meson8,
+	  Meson8b and GXBB SoCs.
 	  If unsure, say N.
 
 endmenu
diff --git a/drivers/phy/phy-meson8b-usb2.c b/drivers/phy/phy-meson8b-usb2.c
index d75004e69b65..a8012bb1d1c5 100644
--- a/drivers/phy/phy-meson8b-usb2.c
+++ b/drivers/phy/phy-meson8b-usb2.c
@@ -1,5 +1,5 @@
 /*
- * Meson8b and GXBB USB2 PHY driver
+ * Meson8, Meson8b and GXBB USB2 PHY driver
  *
  * Copyright (C) 2016 Martin Blumenstingl <martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
  *
@@ -285,6 +285,7 @@ static int phy_meson8b_usb2_probe(struct platform_device *pdev)
 }
 
 static const struct of_device_id phy_meson8b_usb2_of_match[] = {
+	{ .compatible = "amlogic,meson8-usb2-phy", },
 	{ .compatible = "amlogic,meson8b-usb2-phy", },
 	{ .compatible = "amlogic,meson-gxbb-usb2-phy", },
 	{ },
@@ -301,5 +302,5 @@ static struct platform_driver phy_meson8b_usb2_driver = {
 module_platform_driver(phy_meson8b_usb2_driver);
 
 MODULE_AUTHOR("Martin Blumenstingl <martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>");
-MODULE_DESCRIPTION("Meson8b and GXBB USB2 PHY driver");
+MODULE_DESCRIPTION("Meson8, Meson8b and GXBB USB2 PHY driver");
 MODULE_LICENSE("GPL");
-- 
2.12.2

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2017-06-02 19:14 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-06 17:36 [PATCH] phy: meson8b-usb2: add support for the USB PHY on Meson8 SoCs Martin Blumenstingl
2017-05-06 17:36 ` Martin Blumenstingl
2017-05-06 17:36 ` Martin Blumenstingl
2017-05-08 12:10 ` Kishon Vijay Abraham I
2017-05-08 12:10   ` Kishon Vijay Abraham I
2017-05-08 12:10   ` Kishon Vijay Abraham I
     [not found]   ` <950abc53-df2d-93dd-68d1-e9868445bb93-l0cyMroinI0@public.gmane.org>
2017-05-08 20:02     ` Martin Blumenstingl
2017-05-08 20:02       ` Martin Blumenstingl
2017-05-08 20:02       ` Martin Blumenstingl
     [not found] ` <20170506173625.19501-1-martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2017-05-20 14:12   ` [PATCH v2 0/2] Meson8 USB PHY support Martin Blumenstingl
2017-05-20 14:12     ` Martin Blumenstingl
2017-05-20 14:12     ` Martin Blumenstingl
     [not found]     ` <20170520141250.27388-1-martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2017-05-20 14:12       ` [PATCH v2 1/2] phy: meson8b-usb2: add support for the USB PHY on Meson8 SoCs Martin Blumenstingl
2017-05-20 14:12         ` Martin Blumenstingl
2017-05-20 14:12         ` Martin Blumenstingl
2017-05-20 14:12       ` [PATCH v2 2/2] dt-bindings: phy: meson8b-usb2-phy: add support for the " Martin Blumenstingl
2017-05-20 14:12         ` Martin Blumenstingl
2017-05-20 14:12         ` Martin Blumenstingl
     [not found]         ` <20170520141250.27388-3-martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2017-05-30 22:51           ` Rob Herring
2017-05-30 22:51             ` Rob Herring
2017-05-30 22:51             ` Rob Herring
2017-06-01 13:12     ` [PATCH v2 0/2] Meson8 USB PHY support Kishon Vijay Abraham I
2017-06-01 13:12       ` Kishon Vijay Abraham I
2017-06-01 13:12       ` Kishon Vijay Abraham I
     [not found]       ` <02656f9a-33d8-c009-7785-a6bd7d4b2617-l0cyMroinI0@public.gmane.org>
2017-06-02 19:14         ` Martin Blumenstingl
2017-06-02 19:14           ` Martin Blumenstingl
2017-06-02 19:14           ` Martin Blumenstingl

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.