* [PATCH 0/2] initial usb support for ExynosAutov920 soc
[not found] <CGME20250514135752epcas5p2c05acfa026f884fabb631bf15d20e4c6@epcas5p2.samsung.com>
@ 2025-05-14 14:07 ` Pritam Manohar Sutar
[not found] ` <CGME20250514135755epcas5p41291579e7eb266d92b91b82621e0fa5d@epcas5p4.samsung.com>
[not found] ` <CGME20250514135757epcas5p1aab0db4b4910b689f76ad00661f2a8e9@epcas5p1.samsung.com>
0 siblings, 2 replies; 7+ messages in thread
From: Pritam Manohar Sutar @ 2025-05-14 14:07 UTC (permalink / raw)
To: pritam.sutar, gregkh, robh, krzk+dt, conor+dt, alim.akhtar,
Thinh.Nguyen
Cc: linux-usb, devicetree, linux-arm-kernel, linux-samsung-soc,
linux-kernel, rosa.pila, dev.tailor, faraz.ata, muhammed.ali,
selvarasu.g
This SoC has a DWC3 compatible USB controller
The USB 3.1 DRD controller has the following features:
* compliant with both USB device 3.1 and USB device 2.0 standards
* compliant with USB host 3.1 and USB host 2.0 standards
* supports USB device 3.1 and USB device 2.0 interfaces
* supports USB host 3.1 and USB host 2.0 interfaces
* full-speed (12 Mbps) and high-speed (480 Mbps) modes with USB device
2.0 interface
* super-speed (5 Gbps) mode with USB device 3.1 Gen1 interface
* super-speed plus (10 Gbps) mode with USB device 3.1 Gen2 interface
* single USB port which can be used for USB 3.1 or USB 2.0
* on-chip USB PHY transceiver
* DWC3 compatible
* supports up to 16 bi-directional endpoints
* compliant with xHCI 1.1 specification
Pritam Manohar Sutar (2):
dt-bindings: usb: samsung,exynos-dwc3: add dt-schema ExynosAutov920
usb: dwc3-exynos: add support for ExynosAutov920
.../bindings/usb/samsung,exynos-dwc3.yaml | 16 ++++++++++++++++
drivers/usb/dwc3/dwc3-exynos.c | 9 +++++++++
2 files changed, 25 insertions(+)
--
2.34.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 1/2] dt-bindings: usb: samsung,exynos-dwc3: add dt-schema ExynosAutov920
[not found] ` <CGME20250514135755epcas5p41291579e7eb266d92b91b82621e0fa5d@epcas5p4.samsung.com>
@ 2025-05-14 14:07 ` Pritam Manohar Sutar
2025-05-15 9:08 ` Krzysztof Kozlowski
2025-05-15 9:31 ` Alim Akhtar
0 siblings, 2 replies; 7+ messages in thread
From: Pritam Manohar Sutar @ 2025-05-14 14:07 UTC (permalink / raw)
To: pritam.sutar, gregkh, robh, krzk+dt, conor+dt, alim.akhtar,
Thinh.Nguyen
Cc: linux-usb, devicetree, linux-arm-kernel, linux-samsung-soc,
linux-kernel, rosa.pila, dev.tailor, faraz.ata, muhammed.ali,
selvarasu.g
Add a dedicated compatible for USB controller found in this SoC
Signed-off-by: Pritam Manohar Sutar <pritam.sutar@samsung.com>
---
.../bindings/usb/samsung,exynos-dwc3.yaml | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml b/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml
index 892545b477ac..6d39e5066944 100644
--- a/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml
+++ b/Documentation/devicetree/bindings/usb/samsung,exynos-dwc3.yaml
@@ -20,6 +20,7 @@ properties:
- samsung,exynos7-dwusb3
- samsung,exynos7870-dwusb3
- samsung,exynos850-dwusb3
+ - samsung,exynosautov920-dwusb3
- items:
- const: samsung,exynos990-dwusb3
- const: samsung,exynos850-dwusb3
@@ -179,6 +180,21 @@ allOf:
required:
- vdd10-supply
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: samsung,exynosautov920-dwusb3
+ then:
+ properties:
+ clocks:
+ minItems: 2
+ maxItems: 2
+ clock-names:
+ items:
+ - const: ref
+ - const: susp_clk
+
additionalProperties: false
examples:
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 2/2] usb: dwc3-exynos: add support for ExynosAutov920
[not found] ` <CGME20250514135757epcas5p1aab0db4b4910b689f76ad00661f2a8e9@epcas5p1.samsung.com>
@ 2025-05-14 14:07 ` Pritam Manohar Sutar
2025-05-14 22:48 ` Thinh Nguyen
2025-05-15 9:30 ` Alim Akhtar
0 siblings, 2 replies; 7+ messages in thread
From: Pritam Manohar Sutar @ 2025-05-14 14:07 UTC (permalink / raw)
To: pritam.sutar, gregkh, robh, krzk+dt, conor+dt, alim.akhtar,
Thinh.Nguyen
Cc: linux-usb, devicetree, linux-arm-kernel, linux-samsung-soc,
linux-kernel, rosa.pila, dev.tailor, faraz.ata, muhammed.ali,
selvarasu.g
This SoC has a DWC3 compatible controllers. It needs "ref" and
"susp_clk" for it's operation.
Add required changes in exynos dwc3 glue layer to support this SoC.
Signed-off-by: Pritam Manohar Sutar <pritam.sutar@samsung.com>
---
drivers/usb/dwc3/dwc3-exynos.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc3/dwc3-exynos.c
index 20abc6a4e824..a8f97d2b31ae 100644
--- a/drivers/usb/dwc3/dwc3-exynos.c
+++ b/drivers/usb/dwc3/dwc3-exynos.c
@@ -187,6 +187,12 @@ static const struct dwc3_exynos_driverdata gs101_drvdata = {
.suspend_clk_idx = 1,
};
+static const struct dwc3_exynos_driverdata exynosautov920_drvdata = {
+ .clk_names = { "ref", "susp_clk"},
+ .num_clks = 2,
+ .suspend_clk_idx = 1,
+};
+
static const struct of_device_id exynos_dwc3_match[] = {
{
.compatible = "samsung,exynos2200-dwusb3",
@@ -209,6 +215,9 @@ static const struct of_device_id exynos_dwc3_match[] = {
}, {
.compatible = "google,gs101-dwusb3",
.data = &gs101_drvdata,
+ }, {
+ .compatible = "samsung,exynosautov920-dwusb3",
+ .data = &exynosautov920_drvdata,
}, {
}
};
--
2.34.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH 2/2] usb: dwc3-exynos: add support for ExynosAutov920
2025-05-14 14:07 ` [PATCH 2/2] usb: dwc3-exynos: add support for ExynosAutov920 Pritam Manohar Sutar
@ 2025-05-14 22:48 ` Thinh Nguyen
2025-05-15 9:30 ` Alim Akhtar
1 sibling, 0 replies; 7+ messages in thread
From: Thinh Nguyen @ 2025-05-14 22:48 UTC (permalink / raw)
To: Pritam Manohar Sutar
Cc: gregkh@linuxfoundation.org, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org, alim.akhtar@samsung.com, Thinh Nguyen,
linux-usb@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org,
rosa.pila@samsung.com, dev.tailor@samsung.com,
faraz.ata@samsung.com, muhammed.ali@samsung.com,
selvarasu.g@samsung.com
On Wed, May 14, 2025, Pritam Manohar Sutar wrote:
> This SoC has a DWC3 compatible controllers. It needs "ref" and
> "susp_clk" for it's operation.
>
> Add required changes in exynos dwc3 glue layer to support this SoC.
>
> Signed-off-by: Pritam Manohar Sutar <pritam.sutar@samsung.com>
> ---
> drivers/usb/dwc3/dwc3-exynos.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc3/dwc3-exynos.c
> index 20abc6a4e824..a8f97d2b31ae 100644
> --- a/drivers/usb/dwc3/dwc3-exynos.c
> +++ b/drivers/usb/dwc3/dwc3-exynos.c
> @@ -187,6 +187,12 @@ static const struct dwc3_exynos_driverdata gs101_drvdata = {
> .suspend_clk_idx = 1,
> };
>
> +static const struct dwc3_exynos_driverdata exynosautov920_drvdata = {
> + .clk_names = { "ref", "susp_clk"},
> + .num_clks = 2,
> + .suspend_clk_idx = 1,
> +};
> +
> static const struct of_device_id exynos_dwc3_match[] = {
> {
> .compatible = "samsung,exynos2200-dwusb3",
> @@ -209,6 +215,9 @@ static const struct of_device_id exynos_dwc3_match[] = {
> }, {
> .compatible = "google,gs101-dwusb3",
> .data = &gs101_drvdata,
> + }, {
> + .compatible = "samsung,exynosautov920-dwusb3",
> + .data = &exynosautov920_drvdata,
Would be nice to group this compatible string along with the other
samsung compatibles above and in order.
Regardless,
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
BR,
Thinh
> }, {
> }
> };
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/2] dt-bindings: usb: samsung,exynos-dwc3: add dt-schema ExynosAutov920
2025-05-14 14:07 ` [PATCH 1/2] dt-bindings: usb: samsung,exynos-dwc3: add dt-schema ExynosAutov920 Pritam Manohar Sutar
@ 2025-05-15 9:08 ` Krzysztof Kozlowski
2025-05-15 9:31 ` Alim Akhtar
1 sibling, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2025-05-15 9:08 UTC (permalink / raw)
To: Pritam Manohar Sutar, gregkh, robh, krzk+dt, conor+dt,
alim.akhtar, Thinh.Nguyen
Cc: linux-usb, devicetree, linux-arm-kernel, linux-samsung-soc,
linux-kernel, rosa.pila, dev.tailor, faraz.ata, muhammed.ali,
selvarasu.g
On 14/05/2025 16:07, Pritam Manohar Sutar wrote:
>
> + - if:
> + properties:
> + compatible:
> + contains:
> + const: samsung,exynosautov920-dwusb3
> + then:
> + properties:
> + clocks:
> + minItems: 2
> + maxItems: 2
> + clock-names:
> + items:
> + - const: ref
> + - const: susp_clk
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH 2/2] usb: dwc3-exynos: add support for ExynosAutov920
2025-05-14 14:07 ` [PATCH 2/2] usb: dwc3-exynos: add support for ExynosAutov920 Pritam Manohar Sutar
2025-05-14 22:48 ` Thinh Nguyen
@ 2025-05-15 9:30 ` Alim Akhtar
1 sibling, 0 replies; 7+ messages in thread
From: Alim Akhtar @ 2025-05-15 9:30 UTC (permalink / raw)
To: 'Pritam Manohar Sutar', gregkh, robh, krzk+dt, conor+dt,
Thinh.Nguyen
Cc: linux-usb, devicetree, linux-arm-kernel, linux-samsung-soc,
linux-kernel, rosa.pila, dev.tailor, faraz.ata, muhammed.ali,
selvarasu.g
Hi Pritam
> -----Original Message-----
> From: Pritam Manohar Sutar <pritam.sutar@samsung.com>
> Sent: Wednesday, May 14, 2025 7:38 PM
> To: pritam.sutar@samsung.com; gregkh@linuxfoundation.org;
> robh@kernel.org; krzk+dt@kernel.org; conor+dt@kernel.org;
>
[snip]
> static const struct of_device_id exynos_dwc3_match[] = {
> {
> .compatible = "samsung,exynos2200-dwusb3", @@ -209,6
> +215,9 @@ static const struct of_device_id exynos_dwc3_match[] = {
> }, {
> .compatible = "google,gs101-dwusb3",
> .data = &gs101_drvdata,
> + }, {
> + .compatible = "samsung,exynosautov920-dwusb3",
> + .data = &exynosautov920_drvdata,
Should go below " samsung,exynos2200-dwusb3" entry (as already pointed by Thinh)
With that fixed
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [PATCH 1/2] dt-bindings: usb: samsung,exynos-dwc3: add dt-schema ExynosAutov920
2025-05-14 14:07 ` [PATCH 1/2] dt-bindings: usb: samsung,exynos-dwc3: add dt-schema ExynosAutov920 Pritam Manohar Sutar
2025-05-15 9:08 ` Krzysztof Kozlowski
@ 2025-05-15 9:31 ` Alim Akhtar
1 sibling, 0 replies; 7+ messages in thread
From: Alim Akhtar @ 2025-05-15 9:31 UTC (permalink / raw)
To: 'Pritam Manohar Sutar', gregkh, robh, krzk+dt, conor+dt,
Thinh.Nguyen
Cc: linux-usb, devicetree, linux-arm-kernel, linux-samsung-soc,
linux-kernel, rosa.pila, dev.tailor, faraz.ata, muhammed.ali,
selvarasu.g
Hi Pritam
> -----Original Message-----
> From: Pritam Manohar Sutar <pritam.sutar@samsung.com>
> Sent: Wednesday, May 14, 2025 7:38 PM
> To: pritam.sutar@samsung.com; gregkh@linuxfoundation.org;
> robh@kernel.org; krzk+dt@kernel.org; conor+dt@kernel.org;
> alim.akhtar@samsung.com; Thinh.Nguyen@synopsys.com
> Cc: linux-usb@vger.kernel.org; devicetree@vger.kernel.org; linux-arm-
> kernel@lists.infradead.org; linux-samsung-soc@vger.kernel.org; linux-
> kernel@vger.kernel.org; rosa.pila@samsung.com; dev.tailor@samsung.com;
> faraz.ata@samsung.com; muhammed.ali@samsung.com;
> selvarasu.g@samsung.com
> Subject: [PATCH 1/2] dt-bindings: usb: samsung,exynos-dwc3: add dt-
> schema ExynosAutov920
>
> Add a dedicated compatible for USB controller found in this SoC
>
> Signed-off-by: Pritam Manohar Sutar <pritam.sutar@samsung.com>
> ---
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-05-15 9:31 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CGME20250514135752epcas5p2c05acfa026f884fabb631bf15d20e4c6@epcas5p2.samsung.com>
2025-05-14 14:07 ` [PATCH 0/2] initial usb support for ExynosAutov920 soc Pritam Manohar Sutar
[not found] ` <CGME20250514135755epcas5p41291579e7eb266d92b91b82621e0fa5d@epcas5p4.samsung.com>
2025-05-14 14:07 ` [PATCH 1/2] dt-bindings: usb: samsung,exynos-dwc3: add dt-schema ExynosAutov920 Pritam Manohar Sutar
2025-05-15 9:08 ` Krzysztof Kozlowski
2025-05-15 9:31 ` Alim Akhtar
[not found] ` <CGME20250514135757epcas5p1aab0db4b4910b689f76ad00661f2a8e9@epcas5p1.samsung.com>
2025-05-14 14:07 ` [PATCH 2/2] usb: dwc3-exynos: add support for ExynosAutov920 Pritam Manohar Sutar
2025-05-14 22:48 ` Thinh Nguyen
2025-05-15 9:30 ` Alim Akhtar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).