Message ID | 20211021174223.43310-6-kernel@esmil.dk (mailing list archive) |
---|---|
State | Awaiting Upstream, archived |
Headers | show |
Series | Basic StarFive JH7100 RISC-V SoC support | expand |
On Thu, 21 Oct 2021 19:42:12 +0200, Emil Renner Berthing wrote: > From: Geert Uytterhoeven <geert@linux-m68k.org> > > Add device tree bindings for the StarFive JH7100 clock generator. > > Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> > Signed-off-by: Emil Renner Berthing <kernel@esmil.dk> > --- > .../clock/starfive,jh7100-clkgen.yaml | 56 +++++++++++++++++++ > 1 file changed, 56 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/starfive,jh7100-clkgen.yaml > Reviewed-by: Rob Herring <robh@kernel.org>
On Fri, 29 Oct 2021 at 03:42, Rob Herring <robh@kernel.org> wrote: > On Thu, 21 Oct 2021 19:42:12 +0200, Emil Renner Berthing wrote: > > From: Geert Uytterhoeven <geert@linux-m68k.org> > > > > Add device tree bindings for the StarFive JH7100 clock generator. > > > > Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> > > Signed-off-by: Emil Renner Berthing <kernel@esmil.dk> > > --- > > .../clock/starfive,jh7100-clkgen.yaml | 56 +++++++++++++++++++ > > 1 file changed, 56 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/clock/starfive,jh7100-clkgen.yaml > > > > Reviewed-by: Rob Herring <robh@kernel.org> Thank you! For the reset bindings you said to remove unused labels in the example. If you don't mind I'll do that here too, but keep the tag. /Emil
diff --git a/Documentation/devicetree/bindings/clock/starfive,jh7100-clkgen.yaml b/Documentation/devicetree/bindings/clock/starfive,jh7100-clkgen.yaml new file mode 100644 index 000000000000..d19f94984eab --- /dev/null +++ b/Documentation/devicetree/bindings/clock/starfive,jh7100-clkgen.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/starfive,jh7100-clkgen.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: StarFive JH7100 Clock Generator + +maintainers: + - Geert Uytterhoeven <geert@linux-m68k.org> + - Emil Renner Berthing <kernel@esmil.dk> + +properties: + compatible: + const: starfive,jh7100-clkgen + + reg: + maxItems: 1 + + clocks: + items: + - description: Main clock source (25 MHz) + - description: Application-specific clock source (12-27 MHz) + - description: RMII reference clock (50 MHz) + - description: RGMII RX clock (125 MHz) + + clock-names: + items: + - const: osc_sys + - const: osc_aud + - const: gmac_rmii_ref + - const: gmac_gr_mii_rxclk + + '#clock-cells': + const: 1 + description: + See <dt-bindings/clock/starfive-jh7100.h> for valid indices. + +required: + - compatible + - reg + - clocks + - clock-names + - '#clock-cells' + +additionalProperties: false + +examples: + - | + clkgen: clock-controller@11800000 { + compatible = "starfive,jh7100-clkgen"; + reg = <0x11800000 0x10000>; + clocks = <&osc_sys>, <&osc_aud>, <&gmac_rmii_ref>, <&gmac_gr_mii_rxclk>; + clock-names = "osc_sys", "osc_aud", "gmac_rmii_ref", "gmac_gr_mii_rxclk"; + #clock-cells = <1>; + };