diff mbox series

[phy,v2,3/6] arm64: dts: marvell: armada-37xx: Add xtal clock to comphy node

Message ID 20211208024038.8797-4-kabel@kernel.org
State Superseded
Headers show
Series Armada 3720 comphy native implementation | expand

Commit Message

Marek Behún Dec. 8, 2021, 2:40 a.m. UTC
From: Pali Rohár <pali@kernel.org>

Kernel driver phy-mvebu-a3700-comphy.c needs to know the rate of the
reference xtal clock. So add missing xtal clock source into comphy device
tree node. If the property is not present, the driver defaults to 25 MHz
xtal rate (which, as far as we know, is used by all the existing boards).

Signed-off-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Marek Behún <kabel@kernel.org>
---
 arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 2 ++
 1 file changed, 2 insertions(+)

Comments

Marek Behún Dec. 8, 2021, 3:11 a.m. UTC | #1
Hello Gregory,

could you Ack this patch?

Thanks.

Marek
Gregory CLEMENT Dec. 17, 2021, 5:07 p.m. UTC | #2
Marek Behún <kabel@kernel.org> writes:

> From: Pali Rohár <pali@kernel.org>
>
> Kernel driver phy-mvebu-a3700-comphy.c needs to know the rate of the
> reference xtal clock. So add missing xtal clock source into comphy device
> tree node. If the property is not present, the driver defaults to 25 MHz
> xtal rate (which, as far as we know, is used by all the existing boards).
>
> Signed-off-by: Pali Rohár <pali@kernel.org>
> Signed-off-by: Marek Behún <kabel@kernel.org>

Applied on mvebu/dt64

Thanks,

Gregory

> ---
>  arch/arm64/boot/dts/marvell/armada-37xx.dtsi | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
> index 9acc5d2b5a00..673f4906eef9 100644
> --- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
> +++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
> @@ -265,6 +265,8 @@ comphy: phy@18300 {
>  					    "lane2_sata_usb3";
>  				#address-cells = <1>;
>  				#size-cells = <0>;
> +				clocks = <&xtalclk>;
> +				clock-names = "xtal";
>  
>  				comphy0: phy@0 {
>  					reg = <0>;
> -- 
> 2.32.0
>
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
index 9acc5d2b5a00..673f4906eef9 100644
--- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
+++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
@@ -265,6 +265,8 @@  comphy: phy@18300 {
 					    "lane2_sata_usb3";
 				#address-cells = <1>;
 				#size-cells = <0>;
+				clocks = <&xtalclk>;
+				clock-names = "xtal";
 
 				comphy0: phy@0 {
 					reg = <0>;