dt-bindings: net: renesas,etheravb: Add additional clocks
Subsystems (5)
PATCH v3 1/5 dt-bindings: net: renesas,etheravb: Add additional clocks
The AVB driver assumes there is an external crystal, but it could be clocked by other means. In order to enable a programmable clock, it needs to be added to the clocks list and enabled in the driver. Since there currently only one clock, there is no clock-names list either.
Update bindings to add the additional optional clock, and explicitly name both of them.
---
V3: No Change V2: No Change
Documentation/devicetree/bindings/net/renesas,etheravb.yaml +10 -1
@@ -49,7 +49,16 @@ properties: interrupt-names: true clocks: - maxItems: 1 + minItems: 1 + maxItems: 2 + items: + - description: AVB functional clock + - description: Optional TXC reference clock + + clock-names: + items: + - const: fck + - const: refclk iommus: maxItems: 1
Signature · 1 line
2.25.1
PATCH v3 2/5 ARM: dts: renesas: Add fck to etheravb-rcar-gen2 clock-names list
The bindings have been updated to support two clocks, but the original clock now requires the name fck. Add a clock-names list in the device tree with fck in it.
---
V3: No Change V2: No Change
arch/arm/boot/dts/r8a7742.dtsi +1 -0
@@ -750,6 +750,7 @@ avb: ethernet@e6800000 { reg = <0 0xe6800000 0 0x800>, <0 0xee0e8000 0 0x4000>; interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg CPG_MOD 812>; + clock-names = "fck"; power-domains = <&sysc R8A7742_PD_ALWAYS_ON>; resets = <&cpg 812>; #address-cells = <1>;
arch/arm/boot/dts/r8a7743.dtsi +1 -0
@@ -702,6 +702,7 @@ avb: ethernet@e6800000 { reg = <0 0xe6800000 0 0x800>, <0 0xee0e8000 0 0x4000>; interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg CPG_MOD 812>; + clock-names = "fck"; power-domains = <&sysc R8A7743_PD_ALWAYS_ON>; resets = <&cpg 812>; #address-cells = <1>;
arch/arm/boot/dts/r8a7744.dtsi +1 -0
@@ -702,6 +702,7 @@ avb: ethernet@e6800000 { reg = <0 0xe6800000 0 0x800>, <0 0xee0e8000 0 0x4000>; interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg CPG_MOD 812>; + clock-names = "fck"; power-domains = <&sysc R8A7744_PD_ALWAYS_ON>; resets = <&cpg 812>; #address-cells = <1>;
arch/arm/boot/dts/r8a7745.dtsi +1 -0
@@ -645,6 +645,7 @@ avb: ethernet@e6800000 { reg = <0 0xe6800000 0 0x800>, <0 0xee0e8000 0 0x4000>; interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg CPG_MOD 812>; + clock-names = "fck"; power-domains = <&sysc R8A7745_PD_ALWAYS_ON>; resets = <&cpg 812>; #address-cells = <1>;
arch/arm/boot/dts/r8a77470.dtsi +1 -0
@@ -537,6 +537,7 @@ avb: ethernet@e6800000 { reg = <0 0xe6800000 0 0x800>, <0 0xee0e8000 0 0x4000>; interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg CPG_MOD 812>; + clock-names = "fck"; power-domains = <&sysc R8A77470_PD_ALWAYS_ON>; resets = <&cpg 812>; #address-cells = <1>;
arch/arm/boot/dts/r8a7790.dtsi +1 -0
@@ -768,6 +768,7 @@ avb: ethernet@e6800000 { reg = <0 0xe6800000 0 0x800>, <0 0xee0e8000 0 0x4000>; interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg CPG_MOD 812>; + clock-names = "fck"; power-domains = <&sysc R8A7790_PD_ALWAYS_ON>; resets = <&cpg 812>; #address-cells = <1>;
arch/arm/boot/dts/r8a7791.dtsi +1 -0
@@ -728,6 +728,7 @@ avb: ethernet@e6800000 { reg = <0 0xe6800000 0 0x800>, <0 0xee0e8000 0 0x4000>; interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg CPG_MOD 812>; + clock-names = "fck"; power-domains = <&sysc R8A7791_PD_ALWAYS_ON>; resets = <&cpg 812>; #address-cells = <1>;
arch/arm/boot/dts/r8a7792.dtsi +1 -0
@@ -537,6 +537,7 @@ avb: ethernet@e6800000 { reg = <0 0xe6800000 0 0x800>, <0 0xee0e8000 0 0x4000>; interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg CPG_MOD 812>; + clock-names = "fck"; power-domains = <&sysc R8A7792_PD_ALWAYS_ON>; resets = <&cpg 812>; #address-cells = <1>;
arch/arm/boot/dts/r8a7794.dtsi +1 -0
@@ -598,6 +598,7 @@ avb: ethernet@e6800000 { reg = <0 0xe6800000 0 0x800>, <0 0xee0e8000 0 0x4000>; interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cpg CPG_MOD 812>; + clock-names = "fck"; power-domains = <&sysc R8A7794_PD_ALWAYS_ON>; resets = <&cpg 812>; #address-cells = <1>;
Signature · 1 line
2.25.1
Re: [PATCH V3 2/5] ARM: dts: renesas: Add fck to etheravb-rcar-gen2 clock-names list
Quoted 3 lines · Adam Ford
The bindings have been updated to support two clocks, but the original clock now requires the name fck. Add a clock-names list in the device tree with fck in it.
Hi Adam
I think requires is too strong. As far as i can see, you don't introduce a change using the name 'fck'. So the name is optional, which is good, because otherwise you would break backwards compatibility with DT blobs.
Is the plan to merge this whole patchset via netdev? If so, you need to repost anyway, once netdev reopens. So maybe you can change the wording?
Andrew
Re: [PATCH V3 2/5] ARM: dts: renesas: Add fck to etheravb-rcar-gen2 clock-names list
Hi Andrew,
Quoted 5 lines · Andrew Lunn
Quoted 3 lines · Adam Ford
The bindings have been updated to support two clocks, but the original clock now requires the name fck. Add a clock-names list in the device tree with fck in it.
Quoted 8 lines
I think requires is too strong. As far as i can see, you don't introduce a change using the name 'fck'. So the name is optional, which is good, because otherwise you would break backwards compatibility with DT blobs.
Is the plan to merge this whole patchset via netdev? If so, you need to repost anyway, once netdev reopens. So maybe you can change the wording?
The DTS patches should go in through the renesas and soc trees. I can apply them as soon as the DT binding patch has been accepted.
Thanks!
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
PATCH v3 3/5 arm64: dts: renesas: Add fck to etheravb-rcar-gen3 clock-names list
In reply to Adam FordThe bindings have been updated to support two clocks, but the original clock now requires the name fck. Add a clock-names list in the device tree with fck in it.
---
V3: No Change V2: No Change
arch/arm64/boot/dts/renesas/r8a774a1.dtsi +1 -0
@@ -1127,6 +1127,7 @@ avb: ethernet@e6800000 { "ch20", "ch21", "ch22", "ch23", "ch24"; clocks = <&cpg CPG_MOD 812>; + clock-names = "fck"; power-domains = <&sysc R8A774A1_PD_ALWAYS_ON>; resets = <&cpg 812>; phy-mode = "rgmii";
arch/arm64/boot/dts/renesas/r8a774b1.dtsi +1 -0
@@ -1001,6 +1001,7 @@ avb: ethernet@e6800000 { "ch20", "ch21", "ch22", "ch23", "ch24"; clocks = <&cpg CPG_MOD 812>; + clock-names = "fck"; power-domains = <&sysc R8A774B1_PD_ALWAYS_ON>; resets = <&cpg 812>; phy-mode = "rgmii";
arch/arm64/boot/dts/renesas/r8a774c0.dtsi +1 -0
@@ -957,6 +957,7 @@ avb: ethernet@e6800000 { "ch20", "ch21", "ch22", "ch23", "ch24"; clocks = <&cpg CPG_MOD 812>; + clock-names = "fck"; power-domains = <&sysc R8A774C0_PD_ALWAYS_ON>; resets = <&cpg 812>; phy-mode = "rgmii";
arch/arm64/boot/dts/renesas/r8a774e1.dtsi +1 -0
@@ -1230,6 +1230,7 @@ avb: ethernet@e6800000 { "ch20", "ch21", "ch22", "ch23", "ch24"; clocks = <&cpg CPG_MOD 812>; + clock-names = "fck"; power-domains = <&sysc R8A774E1_PD_ALWAYS_ON>; resets = <&cpg 812>; phy-mode = "rgmii";
arch/arm64/boot/dts/renesas/r8a77951.dtsi +1 -0
@@ -1312,6 +1312,7 @@ avb: ethernet@e6800000 { "ch20", "ch21", "ch22", "ch23", "ch24"; clocks = <&cpg CPG_MOD 812>; + clock-names = "fck"; power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; resets = <&cpg 812>; phy-mode = "rgmii";
arch/arm64/boot/dts/renesas/r8a77960.dtsi +1 -0
@@ -1188,6 +1188,7 @@ avb: ethernet@e6800000 { "ch20", "ch21", "ch22", "ch23", "ch24"; clocks = <&cpg CPG_MOD 812>; + clock-names = "fck"; power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; resets = <&cpg 812>; phy-mode = "rgmii";
arch/arm64/boot/dts/renesas/r8a77961.dtsi +1 -0
@@ -1144,6 +1144,7 @@ avb: ethernet@e6800000 { "ch20", "ch21", "ch22", "ch23", "ch24"; clocks = <&cpg CPG_MOD 812>; + clock-names = "fck"; power-domains = <&sysc R8A77961_PD_ALWAYS_ON>; resets = <&cpg 812>; phy-mode = "rgmii";
arch/arm64/boot/dts/renesas/r8a77965.dtsi +1 -0
@@ -1050,6 +1050,7 @@ avb: ethernet@e6800000 { "ch20", "ch21", "ch22", "ch23", "ch24"; clocks = <&cpg CPG_MOD 812>; + clock-names = "fck"; power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; resets = <&cpg 812>; phy-mode = "rgmii";
arch/arm64/boot/dts/renesas/r8a77970.dtsi +1 -0
@@ -612,6 +612,7 @@ avb: ethernet@e6800000 { "ch20", "ch21", "ch22", "ch23", "ch24"; clocks = <&cpg CPG_MOD 812>; + clock-names = "fck"; power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; resets = <&cpg 812>; phy-mode = "rgmii";
arch/arm64/boot/dts/renesas/r8a77980.dtsi +1 -0
@@ -664,6 +664,7 @@ avb: ethernet@e6800000 { "ch20", "ch21", "ch22", "ch23", "ch24"; clocks = <&cpg CPG_MOD 812>; + clock-names = "fck"; power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; resets = <&cpg 812>; phy-mode = "rgmii";
arch/arm64/boot/dts/renesas/r8a77990.dtsi +1 -0
@@ -1000,6 +1000,7 @@ avb: ethernet@e6800000 { "ch20", "ch21", "ch22", "ch23", "ch24"; clocks = <&cpg CPG_MOD 812>; + clock-names = "fck"; power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; resets = <&cpg 812>; phy-mode = "rgmii";
arch/arm64/boot/dts/renesas/r8a77995.dtsi +1 -0
@@ -760,6 +760,7 @@ avb: ethernet@e6800000 { "ch20", "ch21", "ch22", "ch23", "ch24"; clocks = <&cpg CPG_MOD 812>; + clock-names = "fck"; power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; resets = <&cpg 812>; phy-mode = "rgmii";
Signature · 1 line
2.25.1
Re: [PATCH V3 3/5] arm64: dts: renesas: Add fck to etheravb-rcar-gen3 clock-names list
Quoted 6 lines · Adam Ford
The bindings have been updated to support two clocks, but the original clock now requires the name fck. Add a clock-names list in the device tree with fck in it.
Signed-off-by Adam Ford <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>
Andrew
Re: [PATCH V3 3/5] arm64: dts: renesas: Add fck to etheravb-rcar-gen3 clock-names list
In reply to Adam FordQuoted 6 lines · Adam Ford
The bindings have been updated to support two clocks, but the original clock now requires the name fck. Add a clock-names list in the device tree with fck in it.
Signed-off-by Adam Ford <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>
queueing in renesas-devel for v5.14, with an additional update for the recently added r8a779a0.dtsi.
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
PATCH v3 4/5 net: ethernet: ravb: Enable optional refclk
In reply to Adam FordFor devices that use a programmable clock for the AVB reference clock, the driver may need to enable them. Add code to find the optional clock and enable it when available.
---
V3: Change 'avb' to 'AVB'
Remove unnessary else statement and pointer maniupluation when enabling the refclock.
Add disable_unprepare call in remove funtion.
V2: The previous patch to fetch the fclk was dropped. In its place
is code to enable the refclk
drivers/net/ethernet/renesas/ravb.h +1 -0
@@ -994,6 +994,7 @@ struct ravb_private {struct platform_device *pdev;void __iomem *addr;struct clk *clk; +struct clk *refclk;struct mdiobb_ctrl mdiobb;u32 num_rx_ring[NUM_RX_QUEUE ];u32 num_tx_ring[NUM_TX_QUEUE ];
drivers/net/ethernet/renesas/ravb_main.c +10 -0
@@ -2148,6 +2148,13 @@ static int ravb_probe(struct platform_device *pdev) goto out_release; } + priv->refclk =devm_clk_get_optional (&pdev->dev,"refclk" ); +if (IS_ERR (priv->refclk)) { + error =PTR_ERR (priv->refclk); + goto out_release; + } +clk_prepare_enable (priv->refclk); + ndev->max_mtu =2048 - (ETH_HLEN +VLAN_HLEN +ETH_FCS_LEN ); ndev->min_mtu =ETH_MIN_MTU ;
@@ -2260,6 +2267,9 @@ static int ravb_remove(struct platform_device *pdev)if (priv->chip_id !=RCAR_GEN2 )ravb_ptp_stop (ndev); +if (priv->refclk) +clk_disable_unprepare (priv->refclk); +dma_free_coherent (ndev->dev.parent, priv->desc_bat_size, priv->desc_bat, priv->desc_bat_dma);/* Set reset mode */
Signature · 1 line
2.25.1
Re: [PATCH V3 4/5] net: ethernet: ravb: Enable optional refclk
drivers/net/ethernet/renesas/ravb_main.c static int ravb_remove(struct platform_device *pdev) · line 2272
Quoted 7 lines
drivers/net/ethernet/renesas/ravb_main.c +3
-0@@ -2260,6 +2267,9 @@ static int ravb_remove(struct platform_device *pdev)if (priv->chip_id !=RCAR_GEN2 )ravb_ptp_stop (ndev); +if (priv->refclk) +clk_disable_unprepare (priv->refclk); +
Hi Adam
You don't need the if (). The clk API is happy with a NULL pointer and will do the right thing. Otherwise:
Andrew
Re: [PATCH V3 4/5] net: ethernet: ravb: Enable optional refclk
In reply to Adam FordHi Adam,
Quoted 5 lines · Adam Ford
For devices that use a programmable clock for the AVB reference clock, the driver may need to enable them. Add code to find the optional clock and enable it when available.
Signed-off-by Adam Ford <[email protected]>
Thanks for your patch!
drivers/net/ethernet/renesas/ravb_main.c static int ravb_probe(struct platform_device *pdev) · line 2157
Quoted 13 lines
drivers/net/ethernet/renesas/ravb_main.c +7
-0@@ -2148,6 +2148,13 @@ static int ravb_probe(struct platform_device *pdev) goto out_release; } + priv->refclk =devm_clk_get_optional (&pdev->dev,"refclk" ); +if (IS_ERR (priv->refclk)) { + error =PTR_ERR (priv->refclk); + goto out_release; + } +clk_prepare_enable (priv->refclk); +
Shouldn't the reference clock be disabled in case of any failure below?
drivers/net/ethernet/renesas/ravb_main.c static int ravb_remove(struct platform_device *pdev) · line 2275
Quoted 13 lines
drivers/net/ethernet/renesas/ravb_main.c +3
-0ndev->max_mtu =2048 - (ETH_HLEN +VLAN_HLEN +ETH_FCS_LEN ); ndev->min_mtu =ETH_MIN_MTU ;@@ -2260,6 +2267,9 @@ static int ravb_remove(struct platform_device *pdev)if (priv->chip_id !=RCAR_GEN2 )ravb_ptp_stop (ndev); +if (priv->refclk) +clk_disable_unprepare (priv->refclk); +dma_free_coherent (ndev->dev.parent, priv->desc_bat_size, priv->desc_bat, priv->desc_bat_dma);/* Set reset mode */
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Re: [PATCH V3 4/5] net: ethernet: ravb: Enable optional refclk
Quoted 18 lines · Geert Uytterhoeven
Hi Adam,
Quoted 5 lines · Adam Ford
For devices that use a programmable clock for the AVB reference clock, the driver may need to enable them. Add code to find the optional clock and enable it when available.
Signed-off-by Adam Ford <[email protected]>Thanks for your patch!
Quoted 6 lines
drivers/net/ethernet/renesas/ravb_main.c +0
-0@@ -2148,6 +2148,13 @@ static int ravb_probe(struct platform_device *pdev) goto out_release; }
Quoted 10 lines
drivers/net/ethernet/renesas/ravb_main.c static int ravb_probe(struct platform_device *pdev) · line 2157
Quoted 7 lines
drivers/net/ethernet/renesas/ravb_main.c +7
-0+ priv->refclk =devm_clk_get_optional (&pdev->dev,"refclk" ); +if (IS_ERR (priv->refclk)) { + error =PTR_ERR (priv->refclk); + goto out_release; + } +clk_prepare_enable (priv->refclk); +Shouldn't the reference clock be disabled in case of any failure below?
I'll generate a V4.
Should I just regenerate this patch since it seems like the rest are OK, or should I regenerate the whole series?
adam
Quoted 24 lines
drivers/net/ethernet/renesas/ravb_main.c static int ravb_remove(struct platform_device *pdev) · line 2275
Quoted 13 lines
drivers/net/ethernet/renesas/ravb_main.c +3
-0ndev->max_mtu =2048 - (ETH_HLEN +VLAN_HLEN +ETH_FCS_LEN ); ndev->min_mtu =ETH_MIN_MTU ;@@ -2260,6 +2267,9 @@ static int ravb_remove(struct platform_device *pdev)if (priv->chip_id !=RCAR_GEN2 )ravb_ptp_stop (ndev); +if (priv->refclk) +clk_disable_unprepare (priv->refclk); +dma_free_coherent (ndev->dev.parent, priv->desc_bat_size, priv->desc_bat, priv->desc_bat_dma);/* Set reset mode */ Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Re: [PATCH V3 4/5] net: ethernet: ravb: Enable optional refclk
Hi Adam,
Quoted 26 lines · Adam Ford
Quoted 15 lines · Geert Uytterhoeven
Quoted 5 lines · Adam Ford
For devices that use a programmable clock for the AVB reference clock, the driver may need to enable them. Add code to find the optional clock and enable it when available.
Signed-off-by Adam Ford <[email protected]>Thanks for your patch!
Quoted 6 lines
drivers/net/ethernet/renesas/ravb_main.c +0
-0@@ -2148,6 +2148,13 @@ static int ravb_probe(struct platform_device *pdev) goto out_release; }Quoted 10 lines
drivers/net/ethernet/renesas/ravb_main.c static int ravb_probe(struct platform_device *pdev) · line 2157
Quoted 7 lines
drivers/net/ethernet/renesas/ravb_main.c +7
-0+ priv->refclk =devm_clk_get_optional (&pdev->dev,"refclk" ); +if (IS_ERR (priv->refclk)) { + error =PTR_ERR (priv->refclk); + goto out_release; + } +clk_prepare_enable (priv->refclk); +Shouldn't the reference clock be disabled in case of any failure below?
Quoted 4 lines
I'll generate a V4.
Should I just regenerate this patch since it seems like the rest are OK, or should I regenerate the whole series?
As the DT bindings haven't been applied yet, I think it would be best if you would send a v4 with just the patches for the netdev tree (i.e. DT bindings patch 1 and driver patch 4).
I will take the DT patches from this series, once the bindings have been accepted.
Thank you!
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
PATCH v3 5/5 arm64: dts: renesas: beacon kits: Setup AVB refclk
In reply to Adam FordThe AVB refererence clock assumes an external clock that runs automatically. Because the Versaclock is wired to provide the AVB refclock, the device tree needs to reference it in order for the driver to start the clock.
---
V3: New to series
arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi +2 -0
@@ -53,6 +53,8 @@ &avb { phy-handle = <&phy0>; rx-internal-delay-ps = <1800>; tx-internal-delay-ps = <2000>; + clocks = <&cpg CPG_MOD 812>, <&versaclock5 4>; + clock-names = "fck", "refclk"; status = "okay"; phy0: ethernet-phy@0 {
Signature · 1 line
2.25.1
Re: [PATCH V3 5/5] arm64: dts: renesas: beacon kits: Setup AVB refclk
Quoted 1 line · Adam Ford
The AVB refererence clock assumes an external clock that runs
reference
Quoted 5 lines
automatically. Because the Versaclock is wired to provide the AVB refclock, the device tree needs to reference it in order for the driver to start the clock.
Signed-off-by Adam Ford <[email protected]>
i.e. will queue in renesas-devel (with the typo fixed) once the DT bindings have been accepted.
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Re: [PATCH V3 5/5] arm64: dts: renesas: beacon kits: Setup AVB refclk
Quoted 10 lines · Geert Uytterhoeven
Quoted 1 line · Adam Ford
The AVB refererence clock assumes an external clock that runs
reference
Quoted 4 lines
automatically. Because the Versaclock is wired to provide the AVB refclock, the device tree needs to reference it in order for the driver to start the clock.
Quoted 6 lines
Quoted 1 line
Signed-off-by Adam Ford <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>i.e. will queue in renesas-devel (with the typo fixed) once the DT bindings have been accepted.
Who do I need to ping to get the DT bindings accepted? They have an acked-by from Rob.
adam
Quoted 10 lines
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Re: [PATCH V3 5/5] arm64: dts: renesas: beacon kits: Setup AVB refclk
Hi Adam,
Quoted 12 lines · Adam Ford
Quoted 11 lines · Geert Uytterhoeven
Quoted 1 line · Adam Ford
The AVB refererence clock assumes an external clock that runs
reference
Quoted 5 lines
automatically. Because the Versaclock is wired to provide the AVB refclock, the device tree needs to reference it in order for the driver to start the clock.
Signed-off-by Adam Ford <[email protected]>
Quoted 7 lines
Quoted 4 lines
Reviewed-by Geert Uytterhoeven <[email protected]>i.e. will queue in renesas-devel (with the typo fixed) once the DT bindings have been accepted.
Who do I need to ping to get the DT bindings accepted? They have an acked-by from Rob.
Sergei, can you please have a look at the DT binding change?
Thanks!
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Re: [PATCH V3 5/5] arm64: dts: renesas: beacon kits: Setup AVB refclk
In reply to Adam FordQuoted 10 lines · Adam Ford
Quoted 10 lines
Quoted 1 line
The AVB refererence clock assumes an external clock that runs
reference
Quoted 5 lines
automatically. Because the Versaclock is wired to provide the AVB refclock, the device tree needs to reference it in order for the driver to start the clock.
Signed-off-by Adam Ford <[email protected]>
Quoted 7 lines
Quoted 4 lines
Reviewed-by Geert Uytterhoeven <[email protected]>i.e. will queue in renesas-devel (with the typo fixed) once the DT bindings have been accepted.
Who do I need to ping to get the DT bindings accepted? They have an acked-by from Rob.
Normally, the bindings get picked up by a subsystem maintainer... or Rob :-)
[...]
MBR, Sergei
Re: [PATCH V3 5/5] arm64: dts: renesas: beacon kits: Setup AVB refclk
In reply to Geert UytterhoevenQuoted 10 lines · Geert Uytterhoeven
Quoted 1 line · Adam Ford
The AVB refererence clock assumes an external clock that runs
reference
Quoted 4 lines
automatically. Because the Versaclock is wired to provide the AVB refclock, the device tree needs to reference it in order for the driver to start the clock.
Quoted 5 lines
Quoted 1 line
Signed-off-by Adam Ford <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>i.e. will queue in renesas-devel (with the typo fixed) once the DT bindings have been accepted.
Geert,
Since the refclk update and corresponding dt-bindings are in net-next, are you OK applying the rest of the DT changes so they can get into 5.13?
adam
Quoted 11 lines
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Re: [PATCH V3 5/5] arm64: dts: renesas: beacon kits: Setup AVB refclk
Hi Adam,
Quoted 16 lines · Adam Ford
Quoted 9 lines · Geert Uytterhoeven
Quoted 1 line · Adam Ford
The AVB refererence clock assumes an external clock that runs
reference
Quoted 4 lines
automatically. Because the Versaclock is wired to provide the AVB refclock, the device tree needs to reference it in order for the driver to start the clock.
Quoted 5 lines
Quoted 1 line
Signed-off-by Adam Ford <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>i.e. will queue in renesas-devel (with the typo fixed) once the DT bindings have been accepted.
Quoted 5 lines
Geert,
Since the refclk update and corresponding dt-bindings are in net-next, are you OK applying the rest of the DT changes so they can get into 5.13?
Queueing in renesas-devel for v5.14, as the soc deadline for v5.13 has already passed two weeks ago.
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Hi!
Quoted 6 lines · Adam Ford
The AVB driver assumes there is an external crystal, but it could be clocked by other means. In order to enable a programmable clock, it needs to be added to the clocks list and enabled in the driver. Since there currently only one clock, there is no clock-names list either.
Quoted 6 lines
Update bindings to add the additional optional clock, and explicitly name both of them.
Signed-off-by Adam Ford <[email protected]>Reviewed-by Geert Uytterhoeven <[email protected]>Acked-by Rob Herring <[email protected]>
[...]
PS: Sorry for the dalay reviewing...
MBR, Sergei