blob: f72e80e0dade820adb35db2498566c487e51b40a [file] [log] [blame]
Dinh Nguyen042000b2013-04-11 10:55:25 -05001Device Tree Clock bindings for Altera's SoCFPGA platform
2
3This binding uses the common clock binding[1].
4
5[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
6
7Required properties:
8- compatible : shall be one of the following:
9 "altr,socfpga-pll-clock" - for a PLL clock
10 "altr,socfpga-perip-clock" - The peripheral clock divided from the
11 PLL clock.
Dinh Nguyena92b83a2013-06-05 10:02:54 -050012 "altr,socfpga-gate-clk" - Clocks that directly feed peripherals and
13 can get gated.
14
Dinh Nguyen042000b2013-04-11 10:55:25 -050015- reg : shall be the control register offset from CLOCK_MANAGER's base for the clock.
16- clocks : shall be the input parent clock phandle for the clock. This is
17 either an oscillator or a pll output.
18- #clock-cells : from common clock binding, shall be set to 0.
19
20Optional properties:
21- fixed-divider : If clocks have a fixed divider value, use this property.
Dinh Nguyena92b83a2013-06-05 10:02:54 -050022- clk-gate : For "socfpga-gate-clk", clk-gate contains the gating register
23 and the bit index.
Dinh Nguyen8cb289e2014-04-16 15:05:15 -050024- div-reg : For "socfpga-gate-clk" and "socfpga-periph-clock", div-reg contains
25 the divider register, bit shift, and width.
Dinh Nguyen044abbd2014-01-06 12:17:24 -060026- clk-phase : For the sdmmc_clk, contains the value of the clock phase that controls
27 the SDMMC CIU clock. The first value is the clk_sample(smpsel), and the second
28 value is the cclk_in_drv(drvsel). The clk-phase is used to enable the correct
29 hold/delay times that is needed for the SD/MMC CIU clock. The values of both
30 can be 0-315 degrees, in 45 degree increments.