mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 04:42:12 +00:00
044abbde7b
The clk-phase property is used to represent the 2 clock phase values that is needed for the SD/MMC driver. Add a prepare function to the clk_ops, that will use the syscon driver to set sdmmc_clk's phase shift that is located in the system manager. Signed-off-by: Dinh Nguyen <dinguyen@altera.com> Acked-by: Zhangfei Gao <zhangfei.gao@linaro.org> Acked-by: Jaehoon Chung <jh80.chung@samsung.com> --- v9: none v8: Use degrees in the clk-phase binding property v7: Add dts property to represent the clk phase of the sdmmc_clk. Add a prepare function to the gate clk that will toggle clock phase setting. Remove the "altr,socfpga-sdmmc-sdr-clk" clock type. v6: Add a new clock type "altr,socfpga-sdmmc-sdr-clk" that will be used to set the phase shift settings. v5: Use the "snps,dw-mshc" binding v4: Use the sdmmc_clk prepare function to set the phase shift settings v3: Not use the syscon driver because as of 3.13-rc1, the syscon driver is loaded after the clock driver. v2: Use the syscon driver
31 lines
1.4 KiB
Plaintext
31 lines
1.4 KiB
Plaintext
Device Tree Clock bindings for Altera's SoCFPGA platform
|
|
|
|
This binding uses the common clock binding[1].
|
|
|
|
[1] Documentation/devicetree/bindings/clock/clock-bindings.txt
|
|
|
|
Required properties:
|
|
- compatible : shall be one of the following:
|
|
"altr,socfpga-pll-clock" - for a PLL clock
|
|
"altr,socfpga-perip-clock" - The peripheral clock divided from the
|
|
PLL clock.
|
|
"altr,socfpga-gate-clk" - Clocks that directly feed peripherals and
|
|
can get gated.
|
|
|
|
- reg : shall be the control register offset from CLOCK_MANAGER's base for the clock.
|
|
- clocks : shall be the input parent clock phandle for the clock. This is
|
|
either an oscillator or a pll output.
|
|
- #clock-cells : from common clock binding, shall be set to 0.
|
|
|
|
Optional properties:
|
|
- fixed-divider : If clocks have a fixed divider value, use this property.
|
|
- clk-gate : For "socfpga-gate-clk", clk-gate contains the gating register
|
|
and the bit index.
|
|
- div-reg : For "socfpga-gate-clk", div-reg contains the divider register, bit shift,
|
|
and width.
|
|
- clk-phase : For the sdmmc_clk, contains the value of the clock phase that controls
|
|
the SDMMC CIU clock. The first value is the clk_sample(smpsel), and the second
|
|
value is the cclk_in_drv(drvsel). The clk-phase is used to enable the correct
|
|
hold/delay times that is needed for the SD/MMC CIU clock. The values of both
|
|
can be 0-315 degrees, in 45 degree increments.
|