Message ID | 1467931071-31004-2-git-send-email-gregory.clement@free-electrons.com (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | Stephen Boyd |
Headers | show |
Hello, On Fri, 8 Jul 2016 00:37:46 +0200, Gregory CLEMENT wrote: > +gpio1: gpio@13800 { > + compatible = "marvell,mvebu-gpio-3700", "syscon", "simple-mfd"; I find this compatible string not very consistent with what we do for other drivers, it should have been: marvell,armada-3700-gpio or something like that. > + xtalclk: xtal-clk { > + compatible = "marvell,armada-3700-xtal-clock"; See here for example. Thomas
Hi Thomas, On ven., juil. 08 2016, Thomas Petazzoni <thomas.petazzoni@free-electrons.com> wrote: > Hello, > > On Fri, 8 Jul 2016 00:37:46 +0200, Gregory CLEMENT wrote: > >> +gpio1: gpio@13800 { >> + compatible = "marvell,mvebu-gpio-3700", "syscon", "simple-mfd"; > > I find this compatible string not very consistent with what we do for > other drivers, it should have been: > > marvell,armada-3700-gpio Thanks for pointing this. We missed it during the last review. I agree that using marvell,armada-3700-gpio is more appropriate, especially because the gpio controller on Armada 37xx seems to be different that the ones used on the other mvebu SoCs. Gregory > > or something like that. > > >> + xtalclk: xtal-clk { >> + compatible = "marvell,armada-3700-xtal-clock"; > > See here for example. > > Thomas > -- > Thomas Petazzoni, CTO, Free Electrons > Embedded Linux, Kernel and Android engineering > http://free-electrons.com
diff --git a/Documentation/devicetree/bindings/clock/armada3700-xtal-clock.txt b/Documentation/devicetree/bindings/clock/armada3700-xtal-clock.txt new file mode 100644 index 000000000000..176c4fe6f0e9 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/armada3700-xtal-clock.txt @@ -0,0 +1,28 @@ +* Xtal Clock bindings for Marvell Armada 37xx SoCs + +Marvell Armada 37xx SoCs allow to determine the xtal clock frequencies by +reading the gpio latch register. + +This node must be a subnode of the node exposing the register address +of the GPIO block where the gpio latch is located. + +Required properties: +- compatible : shall be one of the following: + "marvell,armada-3700-xtal-clock" +- #clock-cells : from common clock binding; shall be set to 0 + +Optional properties: +- clock-output-names : from common clock binding; allows overwrite default clock + output names ("xtal") + +Example: +gpio1: gpio@13800 { + compatible = "marvell,mvebu-gpio-3700", "syscon", "simple-mfd"; + reg = <0x13800 0x1000>; + + xtalclk: xtal-clk { + compatible = "marvell,armada-3700-xtal-clock"; + clock-output-names = "xtal"; + #clock-cells = <0>; + }; +};