altr_socfpga.txt 1.4 KB

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