* [PATCH v2 1/2] ARM: dts: lan966x: add clock gating register
@ 2022-07-07 13:24 Michael Walle
2022-07-07 13:25 ` [PATCH v2 2/2] ARM: dts: kswitch-d10: enable the USB device port Michael Walle
2022-07-11 7:15 ` [PATCH v2 1/2] ARM: dts: lan966x: add clock gating register Claudiu.Beznea
0 siblings, 2 replies; 7+ messages in thread
From: Michael Walle @ 2022-07-07 13:24 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Claudiu Beznea, Nicolas Ferre,
Alexandre Belloni
Cc: linux-arm-kernel, devicetree, linux-kernel, Michael Walle
The clock controller supports an optional clock gating register. This is
necessary to expose the USB device clock, for example. Add it.
Signed-off-by: Michael Walle <michael@walle.cc>
---
changes since v1:
- none
arch/arm/boot/dts/lan966x.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/lan966x.dtsi b/arch/arm/boot/dts/lan966x.dtsi
index 57cb67a180ec..bc102677ff91 100644
--- a/arch/arm/boot/dts/lan966x.dtsi
+++ b/arch/arm/boot/dts/lan966x.dtsi
@@ -65,7 +65,7 @@ clks: clock-controller@e00c00a8 {
#clock-cells = <1>;
clocks = <&cpu_clk>, <&ddr_clk>, <&sys_clk>;
clock-names = "cpu", "ddr", "sys";
- reg = <0xe00c00a8 0x38>;
+ reg = <0xe00c00a8 0x38>, <0xe00c02cc 0x4>;
};
timer {
--
2.30.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH v2 2/2] ARM: dts: kswitch-d10: enable the USB device port
2022-07-07 13:24 [PATCH v2 1/2] ARM: dts: lan966x: add clock gating register Michael Walle
@ 2022-07-07 13:25 ` Michael Walle
2022-07-11 7:15 ` Claudiu.Beznea
2022-07-11 7:15 ` [PATCH v2 1/2] ARM: dts: lan966x: add clock gating register Claudiu.Beznea
1 sibling, 1 reply; 7+ messages in thread
From: Michael Walle @ 2022-07-07 13:25 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Claudiu Beznea, Nicolas Ferre,
Alexandre Belloni
Cc: linux-arm-kernel, devicetree, linux-kernel, Michael Walle
Now that there is driver support for the USB device, enable it.
Signed-off-by: Michael Walle <michael@walle.cc>
---
changes since v1:
- add pinctrl node, Thanks Claudiu
.../boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi b/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi
index 5a6c5f7c371a..3eecaa1b7205 100644
--- a/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi
+++ b/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi
@@ -76,6 +76,12 @@ usart0_pins: usart0-pins {
pins = "GPIO_25", "GPIO_26";
function = "fc0_b";
};
+
+ usbs_a_pins: usbs-a-pins {
+ /* VBUS_DET */
+ pins = "GPIO_66";
+ function = "gpio";
+ };
};
&mdio0 {
@@ -200,6 +206,13 @@ &switch {
status = "okay";
};
+&udc {
+ pinctrl-0 = <&usbs_a_pins>;
+ pinctrl-names = "default";
+ atmel,vbus-gpio = <&gpio 66 GPIO_ACTIVE_HIGH>;
+ status = "okay";
+};
+
&watchdog {
status = "okay";
};
--
2.30.2
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v2 1/2] ARM: dts: lan966x: add clock gating register
2022-07-07 13:24 [PATCH v2 1/2] ARM: dts: lan966x: add clock gating register Michael Walle
2022-07-07 13:25 ` [PATCH v2 2/2] ARM: dts: kswitch-d10: enable the USB device port Michael Walle
@ 2022-07-11 7:15 ` Claudiu.Beznea
2022-07-12 7:22 ` Claudiu.Beznea
1 sibling, 1 reply; 7+ messages in thread
From: Claudiu.Beznea @ 2022-07-11 7:15 UTC (permalink / raw)
To: michael, robh+dt, krzysztof.kozlowski+dt, Nicolas.Ferre,
alexandre.belloni
Cc: linux-arm-kernel, devicetree, linux-kernel
On 07.07.2022 16:24, Michael Walle wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> The clock controller supports an optional clock gating register. This is
> necessary to expose the USB device clock, for example. Add it.
>
> Signed-off-by: Michael Walle <michael@walle.cc>
Applied to at91-dt, thanks!
> ---
> changes since v1:
> - none
>
> arch/arm/boot/dts/lan966x.dtsi | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/arm/boot/dts/lan966x.dtsi b/arch/arm/boot/dts/lan966x.dtsi
> index 57cb67a180ec..bc102677ff91 100644
> --- a/arch/arm/boot/dts/lan966x.dtsi
> +++ b/arch/arm/boot/dts/lan966x.dtsi
> @@ -65,7 +65,7 @@ clks: clock-controller@e00c00a8 {
> #clock-cells = <1>;
> clocks = <&cpu_clk>, <&ddr_clk>, <&sys_clk>;
> clock-names = "cpu", "ddr", "sys";
> - reg = <0xe00c00a8 0x38>;
> + reg = <0xe00c00a8 0x38>, <0xe00c02cc 0x4>;
> };
>
> timer {
> --
> 2.30.2
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 2/2] ARM: dts: kswitch-d10: enable the USB device port
2022-07-07 13:25 ` [PATCH v2 2/2] ARM: dts: kswitch-d10: enable the USB device port Michael Walle
@ 2022-07-11 7:15 ` Claudiu.Beznea
0 siblings, 0 replies; 7+ messages in thread
From: Claudiu.Beznea @ 2022-07-11 7:15 UTC (permalink / raw)
To: michael, robh+dt, krzysztof.kozlowski+dt, Nicolas.Ferre,
alexandre.belloni
Cc: linux-arm-kernel, devicetree, linux-kernel
On 07.07.2022 16:25, Michael Walle wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>
> Now that there is driver support for the USB device, enable it.
>
> Signed-off-by: Michael Walle <michael@walle.cc>
Applied to at91-dt, thanks!
> ---
> changes since v1:
> - add pinctrl node, Thanks Claudiu
>
> .../boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi b/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi
> index 5a6c5f7c371a..3eecaa1b7205 100644
> --- a/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi
> +++ b/arch/arm/boot/dts/lan966x-kontron-kswitch-d10-mmt.dtsi
> @@ -76,6 +76,12 @@ usart0_pins: usart0-pins {
> pins = "GPIO_25", "GPIO_26";
> function = "fc0_b";
> };
> +
> + usbs_a_pins: usbs-a-pins {
> + /* VBUS_DET */
> + pins = "GPIO_66";
> + function = "gpio";
> + };
> };
>
> &mdio0 {
> @@ -200,6 +206,13 @@ &switch {
> status = "okay";
> };
>
> +&udc {
> + pinctrl-0 = <&usbs_a_pins>;
> + pinctrl-names = "default";
> + atmel,vbus-gpio = <&gpio 66 GPIO_ACTIVE_HIGH>;
> + status = "okay";
> +};
> +
> &watchdog {
> status = "okay";
> };
> --
> 2.30.2
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 1/2] ARM: dts: lan966x: add clock gating register
2022-07-11 7:15 ` [PATCH v2 1/2] ARM: dts: lan966x: add clock gating register Claudiu.Beznea
@ 2022-07-12 7:22 ` Claudiu.Beznea
2022-07-19 13:24 ` Michael Walle
0 siblings, 1 reply; 7+ messages in thread
From: Claudiu.Beznea @ 2022-07-12 7:22 UTC (permalink / raw)
To: michael, robh+dt, krzysztof.kozlowski+dt, Nicolas.Ferre,
alexandre.belloni
Cc: linux-arm-kernel, devicetree, linux-kernel
Hi, Michael,
On 11.07.2022 10:15, Claudiu Beznea - M18063 wrote:
> On 07.07.2022 16:24, Michael Walle wrote:
>> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe
>>
>> The clock controller supports an optional clock gating register. This is
>> necessary to expose the USB device clock, for example. Add it.
>>
>> Signed-off-by: Michael Walle <michael@walle.cc>
>
> Applied to at91-dt, thanks!
Actually, I will postpone this until [1] is accepted as current driver may
fail if this patch is applied.
Thank you,
Claudiu Beznea
[1]
https://patchwork.kernel.org/project/linux-usb/patch/20220704102845.168438-2-herve.codina@bootlin.com
>
>> ---
>> changes since v1:
>> - none
>>
>> arch/arm/boot/dts/lan966x.dtsi | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/arch/arm/boot/dts/lan966x.dtsi b/arch/arm/boot/dts/lan966x.dtsi
>> index 57cb67a180ec..bc102677ff91 100644
>> --- a/arch/arm/boot/dts/lan966x.dtsi
>> +++ b/arch/arm/boot/dts/lan966x.dtsi
>> @@ -65,7 +65,7 @@ clks: clock-controller@e00c00a8 {
>> #clock-cells = <1>;
>> clocks = <&cpu_clk>, <&ddr_clk>, <&sys_clk>;
>> clock-names = "cpu", "ddr", "sys";
>> - reg = <0xe00c00a8 0x38>;
>> + reg = <0xe00c00a8 0x38>, <0xe00c02cc 0x4>;
>> };
>>
>> timer {
>> --
>> 2.30.2
>>
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 1/2] ARM: dts: lan966x: add clock gating register
2022-07-12 7:22 ` Claudiu.Beznea
@ 2022-07-19 13:24 ` Michael Walle
2022-07-20 6:52 ` Claudiu.Beznea
0 siblings, 1 reply; 7+ messages in thread
From: Michael Walle @ 2022-07-19 13:24 UTC (permalink / raw)
To: Claudiu.Beznea
Cc: devicetree, alexandre.belloni, linux-kernel, robh+dt,
krzysztof.kozlowski+dt, linux-arm-kernel
Hi Claudiu,
Am 2022-07-12 09:22, schrieb Claudiu.Beznea@microchip.com:
> On 11.07.2022 10:15, Claudiu Beznea - M18063 wrote:
>> On 07.07.2022 16:24, Michael Walle wrote:
>>> EXTERNAL EMAIL: Do not click links or open attachments unless you
>>> know the content is safe
>>>
>>> The clock controller supports an optional clock gating register. This
>>> is
>>> necessary to expose the USB device clock, for example. Add it.
>>>
>>> Signed-off-by: Michael Walle <michael@walle.cc>
>>
>> Applied to at91-dt, thanks!
>
> Actually, I will postpone this until [1] is accepted as current driver
> may
> fail if this patch is applied.
Which was picked today :)
-michael
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v2 1/2] ARM: dts: lan966x: add clock gating register
2022-07-19 13:24 ` Michael Walle
@ 2022-07-20 6:52 ` Claudiu.Beznea
0 siblings, 0 replies; 7+ messages in thread
From: Claudiu.Beznea @ 2022-07-20 6:52 UTC (permalink / raw)
To: michael
Cc: devicetree, alexandre.belloni, linux-kernel, robh+dt,
krzysztof.kozlowski+dt, linux-arm-kernel
On 19.07.2022 16:24, Michael Walle wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the
> content is safe
>
> Hi Claudiu,
>
> Am 2022-07-12 09:22, schrieb Claudiu.Beznea@microchip.com:
>> On 11.07.2022 10:15, Claudiu Beznea - M18063 wrote:
>>> On 07.07.2022 16:24, Michael Walle wrote:
>>>> EXTERNAL EMAIL: Do not click links or open attachments unless you
>>>> know the content is safe
>>>>
>>>> The clock controller supports an optional clock gating register. This
>>>> is
>>>> necessary to expose the USB device clock, for example. Add it.
>>>>
>>>> Signed-off-by: Michael Walle <michael@walle.cc>
>>>
>>> Applied to at91-dt, thanks!
>>
>> Actually, I will postpone this until [1] is accepted as current driver
>> may
>> fail if this patch is applied.
>
> Which was picked today :)
Yes. It's on at91-dt again, thanks!
>
> -michael
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2022-07-20 6:53 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-07 13:24 [PATCH v2 1/2] ARM: dts: lan966x: add clock gating register Michael Walle
2022-07-07 13:25 ` [PATCH v2 2/2] ARM: dts: kswitch-d10: enable the USB device port Michael Walle
2022-07-11 7:15 ` Claudiu.Beznea
2022-07-11 7:15 ` [PATCH v2 1/2] ARM: dts: lan966x: add clock gating register Claudiu.Beznea
2022-07-12 7:22 ` Claudiu.Beznea
2022-07-19 13:24 ` Michael Walle
2022-07-20 6:52 ` Claudiu.Beznea
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).