18c2ecf20Sopenharmony_ciBinding for Texas Instruments DPLL clock. 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciBinding status: Unstable - ABI compatibility may be broken in the future 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ciThis binding uses the common clock binding[1]. It assumes a 68c2ecf20Sopenharmony_ciregister-mapped DPLL with usually two selectable input clocks 78c2ecf20Sopenharmony_ci(reference clock and bypass clock), with digital phase locked 88c2ecf20Sopenharmony_ciloop logic for multiplying the input clock to a desired output 98c2ecf20Sopenharmony_ciclock. This clock also typically supports different operation 108c2ecf20Sopenharmony_cimodes (locked, low power stop etc.) This binding has several 118c2ecf20Sopenharmony_cisub-types, which effectively result in slightly different setup 128c2ecf20Sopenharmony_cifor the actual DPLL clock. 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci[1] Documentation/devicetree/bindings/clock/clock-bindings.txt 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ciRequired properties: 178c2ecf20Sopenharmony_ci- compatible : shall be one of: 188c2ecf20Sopenharmony_ci "ti,omap3-dpll-clock", 198c2ecf20Sopenharmony_ci "ti,omap3-dpll-core-clock", 208c2ecf20Sopenharmony_ci "ti,omap3-dpll-per-clock", 218c2ecf20Sopenharmony_ci "ti,omap3-dpll-per-j-type-clock", 228c2ecf20Sopenharmony_ci "ti,omap4-dpll-clock", 238c2ecf20Sopenharmony_ci "ti,omap4-dpll-x2-clock", 248c2ecf20Sopenharmony_ci "ti,omap4-dpll-core-clock", 258c2ecf20Sopenharmony_ci "ti,omap4-dpll-m4xen-clock", 268c2ecf20Sopenharmony_ci "ti,omap4-dpll-j-type-clock", 278c2ecf20Sopenharmony_ci "ti,omap5-mpu-dpll-clock", 288c2ecf20Sopenharmony_ci "ti,am3-dpll-no-gate-clock", 298c2ecf20Sopenharmony_ci "ti,am3-dpll-j-type-clock", 308c2ecf20Sopenharmony_ci "ti,am3-dpll-no-gate-j-type-clock", 318c2ecf20Sopenharmony_ci "ti,am3-dpll-clock", 328c2ecf20Sopenharmony_ci "ti,am3-dpll-core-clock", 338c2ecf20Sopenharmony_ci "ti,am3-dpll-x2-clock", 348c2ecf20Sopenharmony_ci "ti,omap2-dpll-core-clock", 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ci- #clock-cells : from common clock binding; shall be set to 0. 378c2ecf20Sopenharmony_ci- clocks : link phandles of parent clocks, first entry lists reference clock 388c2ecf20Sopenharmony_ci and second entry bypass clock 398c2ecf20Sopenharmony_ci- reg : offsets for the register set for controlling the DPLL. 408c2ecf20Sopenharmony_ci Registers are listed in following order: 418c2ecf20Sopenharmony_ci "control" - contains the control register base address 428c2ecf20Sopenharmony_ci "idlest" - contains the idle status register base address 438c2ecf20Sopenharmony_ci "mult-div1" - contains the multiplier / divider register base address 448c2ecf20Sopenharmony_ci "autoidle" - contains the autoidle register base address (optional) 458c2ecf20Sopenharmony_ci ti,am3-* dpll types do not have autoidle register 468c2ecf20Sopenharmony_ci ti,omap2-* dpll type does not support idlest / autoidle registers 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ciOptional properties: 498c2ecf20Sopenharmony_ci- DPLL mode setting - defining any one or more of the following overrides 508c2ecf20Sopenharmony_ci default setting. 518c2ecf20Sopenharmony_ci - ti,low-power-stop : DPLL supports low power stop mode, gating output 528c2ecf20Sopenharmony_ci - ti,low-power-bypass : DPLL output matches rate of parent bypass clock 538c2ecf20Sopenharmony_ci - ti,lock : DPLL locks in programmed rate 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ciExamples: 568c2ecf20Sopenharmony_ci dpll_core_ck: dpll_core_ck@44e00490 { 578c2ecf20Sopenharmony_ci #clock-cells = <0>; 588c2ecf20Sopenharmony_ci compatible = "ti,omap4-dpll-core-clock"; 598c2ecf20Sopenharmony_ci clocks = <&sys_clkin_ck>, <&sys_clkin_ck>; 608c2ecf20Sopenharmony_ci reg = <0x490>, <0x45c>, <0x488>, <0x468>; 618c2ecf20Sopenharmony_ci }; 628c2ecf20Sopenharmony_ci 638c2ecf20Sopenharmony_ci dpll2_ck: dpll2_ck@48004004 { 648c2ecf20Sopenharmony_ci #clock-cells = <0>; 658c2ecf20Sopenharmony_ci compatible = "ti,omap3-dpll-clock"; 668c2ecf20Sopenharmony_ci clocks = <&sys_ck>, <&dpll2_fck>; 678c2ecf20Sopenharmony_ci ti,low-power-stop; 688c2ecf20Sopenharmony_ci ti,low-power-bypass; 698c2ecf20Sopenharmony_ci ti,lock; 708c2ecf20Sopenharmony_ci reg = <0x4>, <0x24>, <0x34>, <0x40>; 718c2ecf20Sopenharmony_ci }; 728c2ecf20Sopenharmony_ci 738c2ecf20Sopenharmony_ci dpll_core_ck: dpll_core_ck@44e00490 { 748c2ecf20Sopenharmony_ci #clock-cells = <0>; 758c2ecf20Sopenharmony_ci compatible = "ti,am3-dpll-core-clock"; 768c2ecf20Sopenharmony_ci clocks = <&sys_clkin_ck>, <&sys_clkin_ck>; 778c2ecf20Sopenharmony_ci reg = <0x90>, <0x5c>, <0x68>; 788c2ecf20Sopenharmony_ci }; 798c2ecf20Sopenharmony_ci 808c2ecf20Sopenharmony_ci dpll_ck: dpll_ck { 818c2ecf20Sopenharmony_ci #clock-cells = <0>; 828c2ecf20Sopenharmony_ci compatible = "ti,omap2-dpll-core-clock"; 838c2ecf20Sopenharmony_ci clocks = <&sys_ck>, <&sys_ck>; 848c2ecf20Sopenharmony_ci reg = <0x0500>, <0x0540>; 858c2ecf20Sopenharmony_ci }; 86