Besides ones for GMAC core and peripheral registers, the TH1520 GMAC
requires one more clock for configuring APB glue registers. Describe
it in the binding.
Fixes: f920ce04c399 ("dt-bindings: net: Add T-HEAD dwmac support")
Signed-off-by: Yao Zi <ziyao@disroot.org>
Tested-by: Drew Fustini <fustini@kernel.org>
---
.../devicetree/bindings/net/thead,th1520-gmac.yaml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/net/thead,th1520-gmac.yaml b/Documentation/devicetree/bindings/net/thead,th1520-gmac.yaml
index 6d9de3303762..b3492a9aa4ef 100644
--- a/Documentation/devicetree/bindings/net/thead,th1520-gmac.yaml
+++ b/Documentation/devicetree/bindings/net/thead,th1520-gmac.yaml
@@ -62,11 +62,13 @@ properties:
items:
- description: GMAC main clock
- description: Peripheral registers interface clock
+ - description: APB glue registers interface clock
clock-names:
items:
- const: stmmaceth
- const: pclk
+ - const: apb
interrupts:
items:
@@ -88,8 +90,8 @@ examples:
compatible = "thead,th1520-gmac", "snps,dwmac-3.70a";
reg = <0xe7070000 0x2000>, <0xec003000 0x1000>;
reg-names = "dwmac", "apb";
- clocks = <&clk 1>, <&clk 2>;
- clock-names = "stmmaceth", "pclk";
+ clocks = <&clk 1>, <&clk 2>, <&clk 3>;
+ clock-names = "stmmaceth", "pclk", "apb";
interrupts = <66>;
interrupt-names = "macirq";
phy-mode = "rgmii-id";
--
2.50.1
On Fri, Aug 01, 2025 at 09:12:38AM +0000, Yao Zi wrote: > Besides ones for GMAC core and peripheral registers, the TH1520 GMAC > requires one more clock for configuring APB glue registers. Describe > it in the binding. > > Fixes: f920ce04c399 ("dt-bindings: net: Add T-HEAD dwmac support") > Signed-off-by: Yao Zi <ziyao@disroot.org> > Tested-by: Drew Fustini <fustini@kernel.org> > --- > .../devicetree/bindings/net/thead,th1520-gmac.yaml | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/net/thead,th1520-gmac.yaml b/Documentation/devicetree/bindings/net/thead,th1520-gmac.yaml > index 6d9de3303762..b3492a9aa4ef 100644 > --- a/Documentation/devicetree/bindings/net/thead,th1520-gmac.yaml > +++ b/Documentation/devicetree/bindings/net/thead,th1520-gmac.yaml > @@ -62,11 +62,13 @@ properties: > items: > - description: GMAC main clock > - description: Peripheral registers interface clock > + - description: APB glue registers interface clock > > clock-names: > items: > - const: stmmaceth > - const: pclk > + - const: apb > > interrupts: > items: > @@ -88,8 +90,8 @@ examples: > compatible = "thead,th1520-gmac", "snps,dwmac-3.70a"; > reg = <0xe7070000 0x2000>, <0xec003000 0x1000>; > reg-names = "dwmac", "apb"; > - clocks = <&clk 1>, <&clk 2>; > - clock-names = "stmmaceth", "pclk"; > + clocks = <&clk 1>, <&clk 2>, <&clk 3>; > + clock-names = "stmmaceth", "pclk", "apb"; > interrupts = <66>; > interrupt-names = "macirq"; > phy-mode = "rgmii-id"; > -- > 2.50.1 > Reviewed-by: Drew Fustini <fustini@kernel.org> Thank you for making all 3 clocks required. Drew
On Fri, Aug 01, 2025 at 09:12:38AM +0000, Yao Zi wrote: > Besides ones for GMAC core and peripheral registers, the TH1520 GMAC > requires one more clock for configuring APB glue registers. Describe > it in the binding. > > Fixes: f920ce04c399 ("dt-bindings: net: Add T-HEAD dwmac support") > Signed-off-by: Yao Zi <ziyao@disroot.org> > Tested-by: Drew Fustini <fustini@kernel.org> You cannoy really test the binding, except part of build process and we do not consider building something equal to testing. > --- > .../devicetree/bindings/net/thead,th1520-gmac.yaml | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Best regards, Krzysztof
On Tue, Aug 05, 2025 at 08:39:59AM +0200, Krzysztof Kozlowski wrote: > On Fri, Aug 01, 2025 at 09:12:38AM +0000, Yao Zi wrote: > > Besides ones for GMAC core and peripheral registers, the TH1520 GMAC > > requires one more clock for configuring APB glue registers. Describe > > it in the binding. > > > > Fixes: f920ce04c399 ("dt-bindings: net: Add T-HEAD dwmac support") > > Signed-off-by: Yao Zi <ziyao@disroot.org> > > Tested-by: Drew Fustini <fustini@kernel.org> > > You cannoy really test the binding, except part of build process and we > do not consider building something equal to testing. Good point. I've since provided my Reviewed-by: in this v2 thread so the Tested-by: should be dropped if there or is another series or when applying this v2. Thanks, Drew
On Tue, Aug 05, 2025 at 09:59:06AM -0700, Drew Fustini wrote: > On Tue, Aug 05, 2025 at 08:39:59AM +0200, Krzysztof Kozlowski wrote: > > On Fri, Aug 01, 2025 at 09:12:38AM +0000, Yao Zi wrote: > > > Besides ones for GMAC core and peripheral registers, the TH1520 GMAC > > > requires one more clock for configuring APB glue registers. Describe > > > it in the binding. > > > > > > Fixes: f920ce04c399 ("dt-bindings: net: Add T-HEAD dwmac support") > > > Signed-off-by: Yao Zi <ziyao@disroot.org> > > > Tested-by: Drew Fustini <fustini@kernel.org> > > > > You cannoy really test the binding, except part of build process and we > > do not consider building something equal to testing. > > Good point. I've since provided my Reviewed-by: in this v2 thread so the > Tested-by: should be dropped if there or is another series or when > applying this v2. I'll send v3 of this series soon, dropping the Tested-by and adding Krzysztof's Acked-by tag. Thanks for the guidance! > Thanks, > Drew Best regards, Yao Zi
© 2016 - 2025 Red Hat, Inc.