1be10afcdSGabriel FERNANDEZBinding for a Clockgen hardware block found on 2be10afcdSGabriel FERNANDEZcertain STMicroelectronics consumer electronics SoC devices. 3be10afcdSGabriel FERNANDEZ 4be10afcdSGabriel FERNANDEZA Clockgen node can contain pll, diviser or multiplexer nodes. 5be10afcdSGabriel FERNANDEZ 6be10afcdSGabriel FERNANDEZWe will find only the base address of the Clockgen, this base 7be10afcdSGabriel FERNANDEZaddress is common of all subnode. 8be10afcdSGabriel FERNANDEZ 9be10afcdSGabriel FERNANDEZ clockgen_node { 10be10afcdSGabriel FERNANDEZ reg = <>; 11be10afcdSGabriel FERNANDEZ 12be10afcdSGabriel FERNANDEZ pll_node { 13be10afcdSGabriel FERNANDEZ ... 14be10afcdSGabriel FERNANDEZ }; 15be10afcdSGabriel FERNANDEZ 16be10afcdSGabriel FERNANDEZ quadfs_node { 17be10afcdSGabriel FERNANDEZ ... 18be10afcdSGabriel FERNANDEZ }; 190268099cSGabriel FERNANDEZ 200268099cSGabriel FERNANDEZ mux_node { 210268099cSGabriel FERNANDEZ ... 220268099cSGabriel FERNANDEZ }; 230268099cSGabriel FERNANDEZ 243414666dSGabriel FERNANDEZ flexgen_node { 253414666dSGabriel FERNANDEZ ... 263414666dSGabriel FERNANDEZ }; 27be10afcdSGabriel FERNANDEZ ... 28be10afcdSGabriel FERNANDEZ }; 29be10afcdSGabriel FERNANDEZ 30be10afcdSGabriel FERNANDEZThis binding uses the common clock binding[1]. 31d7fb8300SEric EngestromEach subnode should use the binding described in [2]..[7] 32be10afcdSGabriel FERNANDEZ 33be10afcdSGabriel FERNANDEZ[1] Documentation/devicetree/bindings/clock/clock-bindings.txt 34*34962fb8SMauro Carvalho Chehab[3] Documentation/devicetree/bindings/clock/st/st,clkgen-mux.txt 35*34962fb8SMauro Carvalho Chehab[4] Documentation/devicetree/bindings/clock/st/st,clkgen-pll.txt 36*34962fb8SMauro Carvalho Chehab[7] Documentation/devicetree/bindings/clock/st/st,quadfs.txt 37*34962fb8SMauro Carvalho Chehab[8] Documentation/devicetree/bindings/clock/st/st,flexgen.txt 380268099cSGabriel FERNANDEZ 39be10afcdSGabriel FERNANDEZ 40be10afcdSGabriel FERNANDEZRequired properties: 41be10afcdSGabriel FERNANDEZ- reg : A Base address and length of the register set. 42be10afcdSGabriel FERNANDEZ 43be10afcdSGabriel FERNANDEZExample: 44be10afcdSGabriel FERNANDEZ 4548c926cdSMarco Franchi clockgen-a@90ff000 { 467df404c9SGabriel Fernandez compatible = "st,clkgen-c32"; 477df404c9SGabriel Fernandez reg = <0x90ff000 0x1000>; 48be10afcdSGabriel FERNANDEZ 490268099cSGabriel FERNANDEZ clk_s_a0_pll: clk-s-a0-pll { 50be10afcdSGabriel FERNANDEZ #clock-cells = <1>; 51880d54ffSGabriel Fernandez compatible = "st,clkgen-pll0"; 52be10afcdSGabriel FERNANDEZ 530268099cSGabriel FERNANDEZ clocks = <&clk_sysin>; 54be10afcdSGabriel FERNANDEZ 557df404c9SGabriel Fernandez clock-output-names = "clk-s-a0-pll-ofd-0"; 56be10afcdSGabriel FERNANDEZ }; 57be10afcdSGabriel FERNANDEZ 587df404c9SGabriel Fernandez clk_s_a0_flexgen: clk-s-a0-flexgen { 597df404c9SGabriel Fernandez compatible = "st,flexgen"; 607df404c9SGabriel Fernandez 61be10afcdSGabriel FERNANDEZ #clock-cells = <1>; 62be10afcdSGabriel FERNANDEZ 637df404c9SGabriel Fernandez clocks = <&clk_s_a0_pll 0>, 647df404c9SGabriel Fernandez <&clk_sysin>; 65be10afcdSGabriel FERNANDEZ 667df404c9SGabriel Fernandez clock-output-names = "clk-ic-lmi0"; 67be10afcdSGabriel FERNANDEZ }; 68be10afcdSGabriel FERNANDEZ }; 69