Message ID | 20181129164524.18670-3-jbrunet@baylibre.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show |
Series | arm64: dts: meson: add clock controllers input clocks | expand |
Quoting Jerome Brunet (2018-11-29 08:45:23) > Add the clock input of the main clock controller > > Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> > --- > Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt b/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt > index e950599566a9..79454869f96d 100644 > --- a/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt > +++ b/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt > @@ -9,6 +9,8 @@ Required Properties: > "amlogic,gxbb-clkc" for GXBB SoC, > "amlogic,gxl-clkc" for GXL and GXM SoC, > "amlogic,axg-clkc" for AXG SoC. > +- clocks: phandle to the input clock of the controller, presumably the > + platform xtal. Any reason to not have clock-names? I'd prefer to have them because then we can easily hook up providers with their parents based on strings. I suppose we'll have to support both modes of strings and numbers for connections, but that may be more for legacy reasons that could be avoided here if a clock-names property existed. > > - #clock-cells: should be 1. >
On Thu, 2018-11-29 at 15:43 -0800, Stephen Boyd wrote: > Quoting Jerome Brunet (2018-11-29 08:45:23) > > Add the clock input of the main clock controller > > > > Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> > > --- > > Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt > > b/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt > > index e950599566a9..79454869f96d 100644 > > --- a/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt > > +++ b/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt > > @@ -9,6 +9,8 @@ Required Properties: > > "amlogic,gxbb-clkc" for GXBB SoC, > > "amlogic,gxl-clkc" for GXL and GXM SoC, > > "amlogic,axg-clkc" for AXG SoC. > > +- clocks: phandle to the input clock of the controller, presumably the > > + platform xtal. > > Any reason to not have clock-names? Not really, I did not bother because there was only one input clock. I can easily fix this > I'd prefer to have them because then > we can easily hook up providers with their parents based on strings. I > suppose we'll have to support both modes of strings and numbers for > connections, but that may be more for legacy reasons that could be > avoided here if a clock-names property existed. > > > > > - #clock-cells: should be 1. > >
diff --git a/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt b/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt index e950599566a9..79454869f96d 100644 --- a/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt +++ b/Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt @@ -9,6 +9,8 @@ Required Properties: "amlogic,gxbb-clkc" for GXBB SoC, "amlogic,gxl-clkc" for GXL and GXM SoC, "amlogic,axg-clkc" for AXG SoC. +- clocks: phandle to the input clock of the controller, presumably the + platform xtal. - #clock-cells: should be 1. @@ -31,6 +33,7 @@ sysctrl: system-controller@0 { clkc: clock-controller { #clock-cells = <1>; compatible = "amlogic,gxbb-clkc"; + clocks = <&xtal> }; };
Add the clock input of the main clock controller Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> --- Documentation/devicetree/bindings/clock/amlogic,gxbb-clkc.txt | 3 +++ 1 file changed, 3 insertions(+)