linux_dsm_epyc7002/Documentation/devicetree/bindings/clock
Linus Walleij ef6eb322ce clk: nomadik: implement the Nomadik clocks properly
The Nomadik clock implementation was a stub just using
fixed clocks.

This implements the clocks properly instead of relying
on them all being on at boot and leaving them all on.

The PLLs are on the top locking to the main chrystal
oscillator, then the HCLK for the peripherals are
below PLL2.

The gated clocks are implemented with zero cells and
given the clock ID as a property of each node, so every
gate need to have its own node in the device tree.
This is because the gate registers contain both HCLK
gates and PCLK gates, where the latter has HCLK as
parent. As can be seen from the register layout, this
is a complete mixup, which means all these gates need
their own node to properly model parent/child relations
for PCLKs apart from the HCLKs.

This driver also adds a helpful debugfs file to inspect
the hardware state of the clock gates.

This is the end result in <debugfs>/clk/clk_summary
after applying a proper device tree:

ulpiclk                0   0    60000000
mxtal                  3   3    19200000
   pll2                1   1    864000000
      clk48            3   3    48000000
         rngcclk       1   1    48000000
         usbmclk       0   0    48000000
         mshcclk       0   0    48000000
         mspclk3       0   0    48000000
         x3dclk        0   0    48000000
         skeclk        0   0    48000000
         owmclk        0   0    48000000
         mspclk2       0   0    48000000
         mspclk1       0   0    48000000
         uart2clk      0   0    48000000
         ipbmcclk      0   0    48000000
         ipi2cclk      0   0    48000000
         usbclk        0   0    48000000
         mspclk0       0   0    48000000
         uart1clk      1   2    48000000
         i2c1clk       0   0    48000000
         i2c0clk       0   0    48000000
         sdiclk        1   1    48000000
         uart0clk      0   0    48000000
         sspiclk       0   0    48000000
         irdaclk       0   0    48000000
      clk72            0   0    72000000
         difclk        0   0    72000000
         clcdclk       0   0    72000000
      clk216           0   0    216000000
         hsiclkrx      0   0    216000000
         clk108        0   0    108000000
            hsiclktx   0   0    108000000
            clk27      0   0    27000000
   pll1                1   1    264000000
      hclk             3   3    264000000
         hclkrng       1   1    264000000
         hclkusbm      0   0    264000000
         hclkcryp      0   0    264000000
         hclkhash      0   0    264000000
         hclk3d        0   0    264000000
         hclkhpi       0   0    264000000
         hclksva       0   0    264000000
         hclksaa       0   0    264000000
         hclkdif       0   0    264000000
         hclkusb       0   0    264000000
         hclkclcd      0   0    264000000
         hclkdma1      0   0    264000000
         hclksdram     0   0    264000000
         hclksmc       1   1    264000000
         hclkdma0      0   0    264000000
         pclk          7   9    264000000
            pclkmsp3   0   0    264000000
            pclkmshc   0   0    264000000
            pclkhsem   0   0    264000000
            pclkske    0   0    264000000
            pclkowm    0   0    264000000
            pclkmsp2   0   0    264000000
            pclkmsp1   0   0    264000000
            pclkuart2  0   0    264000000
            pclkxti    0   0    264000000
            pclkhsi    0   0    264000000
            pclkmsp0   0   0    264000000
            pclkuart1  1   1    264000000
            pclki2c1   0   0    264000000
            pclki2c0   0   0    264000000
            pclksdi    1   1    264000000
            pclkuart0  1   1    264000000
            pclkssp    0   0    264000000
            pclkirda   0   0    264000000
   timclk              1   1    2400000

Acked-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2013-06-20 10:15:30 +02:00
..
altr_socfpga.txt ARM: socfpga: Add clock entries into device tree 2013-04-14 20:17:59 -07:00
axi-clkgen.txt clk: Add axi-clkgen driver 2013-03-19 17:20:30 -07:00
calxeda.txt clk: add highbank clock support 2012-07-11 17:58:47 -07:00
clock-bindings.txt
exynos4-clock.txt clk: exynos4: export clocks required for fimc-is 2013-04-08 23:43:54 +09:00
exynos5250-clock.txt clk: exynos5250: register display block gate clocks to common clock framework 2013-04-04 15:51:23 +09:00
exynos5440-clock.txt clk: exynos5440: register clocks using common clock framework 2013-03-25 18:17:05 +09:00
fixed-clock.txt
fixed-factor-clock.txt clk: add device tree fixed-factor-clock binding support 2013-04-12 10:52:23 -07:00
imx5-clock.txt ARM i.MX53: tve_di clock is not part of the CCM, but of TVE 2013-04-12 19:28:16 +08:00
imx6q-clock.txt ARM i.MX6q: Add audio/video PLL post dividers for i.MX6q rev 1.1 2013-04-12 19:28:12 +08:00
imx23-clock.txt clk: imx: Remove 'clock-output-names' from the examples 2013-01-04 13:16:00 +08:00
imx25-clock.txt clk: imx: Remove 'clock-output-names' from the examples 2013-01-04 13:16:00 +08:00
imx27-clock.txt ARM: mx27: Replace clk_register_clkdev with clock DT lookup 2013-04-09 22:52:52 +08:00
imx28-clock.txt clk: imx: Remove 'clock-output-names' from the examples 2013-01-04 13:16:00 +08:00
imx31-clock.txt ARM: mx31: Replace clk_register_clkdev with clock DT lookup 2013-01-25 11:12:37 +01:00
mvebu-core-clock.txt clk: mvebu: add mvebu core clocks. 2012-11-20 14:34:08 +01:00
mvebu-cpu-clock.txt clk: mvebu: add armada-370-xp CPU specific clocks 2012-11-20 14:35:42 +01:00
mvebu-gated-clock.txt ARM: mvebu: correct gated clock documentation 2013-02-15 20:32:38 +00:00
nvidia,tegra20-car.txt clk: tegra: Fix cdev1 and cdev2 IDs 2013-04-04 16:08:46 -06:00
nvidia,tegra30-car.txt ARM: tegra: define Tegra30 CAR binding 2013-01-28 11:19:07 -07:00
nvidia,tegra114-car.txt ARM: tegra: Define Tegra114 CAR binding 2013-04-04 17:16:40 -06:00
prima2-clock.txt clk: prima2: enable dt-binding clkdev mapping 2013-01-18 09:44:01 -08:00
silabs,si5351.txt clk: add si5351 i2c common clock driver 2013-04-12 11:04:38 -07:00
st,nomadik.txt clk: nomadik: implement the Nomadik clocks properly 2013-06-20 10:15:30 +02:00
sunxi.txt clk: sunxi: Add support for AXI, AHB, APB0 and APB1 gates 2013-04-04 13:51:35 -07:00
vt8500.txt arm: vt8500: doc: Add device tree bindings for arch-vt8500 devices 2012-09-21 19:23:58 +12:00
zynq-7000.txt clk: Add support for fundamental zynq clks 2012-11-14 16:07:55 +01:00