Samsung Exynos5260 SoC clock controller

Schema identifier ($id): "http://devicetree.org/schemas/clock/samsung,exynos5260-clock.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Chanwoo Choi <cw00.choi@samsung.com>", "Krzysztof Kozlowski <krzk@kernel.org>", "Sylwester Nawrocki <s.nawrocki@samsung.com>", "Tomasz Figa <tomasz.figa@gmail.com>"

Expected external clocks, defined in DTS as fixed-rate clocks with a matching
name::
  - "fin_pll" - PLL input clock from XXTI
  - "xrtcxti" - input clock from XRTCXTI
  - "ioclk_pcm_extclk" - pcm external operation clock
  - "ioclk_spdif_extclk" - spdif external operation clock
  - "ioclk_i2s_cdclk" - i2s0 codec clock
Phy clocks::
There are several clocks which are generated by specific PHYs.  These clocks
are fed into the clock controller and then routed to the hardware blocks.
These clocks are defined as fixed clocks in the driver with following names::
  - "phyclk_dptx_phy_ch3_txd_clk" - dp phy clock for channel 3
  - "phyclk_dptx_phy_ch2_txd_clk" - dp phy clock for channel 2
  - "phyclk_dptx_phy_ch1_txd_clk" - dp phy clock for channel 1
  - "phyclk_dptx_phy_ch0_txd_clk" - dp phy clock for channel 0
  - "phyclk_hdmi_phy_tmds_clko" - hdmi phy tmds clock
  - "phyclk_hdmi_phy_pixel_clko" - hdmi phy pixel clock
  - "phyclk_hdmi_link_o_tmds_clkhi" - hdmi phy for hdmi link
  - "phyclk_dptx_phy_o_ref_clk_24m" - dp phy reference clock
  - "phyclk_dptx_phy_clk_div2"
  - "phyclk_mipi_dphy_4l_m_rxclkesc0"
  - "phyclk_usbhost20_phy_phyclock" - usb 2.0 phy clock
  - "phyclk_usbhost20_phy_freeclk"
  - "phyclk_usbhost20_phy_clk48mohci"
  - "phyclk_usbdrd30_udrd30_pipe_pclk"
  - "phyclk_usbdrd30_udrd30_phyclock" - usb 3.0 phy clock

All available clocks are defined as preprocessor macros in include/dt-bindings/clock/exynos5260-clk.h header.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "samsung,exynos5260-clock-top", "samsung,exynos5260-clock-peri", "samsung,exynos5260-clock-egl", "samsung,exynos5260-clock-kfc", "samsung,exynos5260-clock-g2d", "samsung,exynos5260-clock-mif", "samsung,exynos5260-clock-mfc", "samsung,exynos5260-clock-g3d", "samsung,exynos5260-clock-fsys", "samsung,exynos5260-clock-aud", "samsung,exynos5260-clock-isp", "samsung,exynos5260-clock-gscl", "samsung,exynos5260-clock-disp"

clocks — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 19

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 19

#clock-cells — required here #

Exact value (const): 1

reg — required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "#clock-cells", "reg"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynos5260-clock-top"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — required here

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "fin_pll"

Item 2

Exact value (const): "dout_mem_pll"

Item 3

Exact value (const): "dout_bus_pll"

Item 4

Exact value (const): "dout_media_pll"

Required in this object (required): "clock-names", "clocks"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynos5260-clock-peri"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — required here

Minimum number of items (minItems): 13

Maximum number of items (maxItems): 13

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "fin_pll"

Item 2

Exact value (const): "ioclk_pcm_extclk"

Item 3

Exact value (const): "ioclk_i2s_cdclk"

Item 4

Exact value (const): "ioclk_spdif_extclk"

Item 5

Exact value (const): "phyclk_hdmi_phy_ref_cko"

Item 6

Exact value (const): "dout_aclk_peri_66"

Item 7

Exact value (const): "dout_sclk_peri_uart0"

Item 8

Exact value (const): "dout_sclk_peri_uart1"

Item 9

Exact value (const): "dout_sclk_peri_uart2"

Item 10

Exact value (const): "dout_sclk_peri_spi0_b"

Item 11

Exact value (const): "dout_sclk_peri_spi1_b"

Item 12

Exact value (const): "dout_sclk_peri_spi2_b"

Item 13

Exact value (const): "dout_aclk_peri_aud"

Required in this object (required): "clock-names", "clocks"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynos5260-clock-egl"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "fin_pll"

Item 2

Exact value (const): "dout_bus_pll"

Required in this object (required): "clock-names", "clocks"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynos5260-clock-kfc"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "fin_pll"

Item 2

Exact value (const): "dout_media_pll"

Required in this object (required): "clock-names", "clocks"

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynos5260-clock-g2d"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "fin_pll"

Item 2

Exact value (const): "dout_aclk_g2d_333"

Required in this object (required): "clock-names", "clocks"

Rule 6 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynos5260-clock-mif"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 1

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "fin_pll"

Required in this object (required): "clock-names", "clocks"

Rule 7 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynos5260-clock-mfc"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — required here

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "fin_pll"

Item 2

Exact value (const): "dout_aclk_mfc_333"

Required in this object (required): "clock-names", "clocks"

Rule 8 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynos5260-clock-g3d"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 1

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "fin_pll"

Required in this object (required): "clock-names", "clocks"

Rule 9 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynos5260-clock-fsys"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — required here

Minimum number of items (minItems): 7

Maximum number of items (maxItems): 7

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "fin_pll"

Item 2

Exact value (const): "phyclk_usbhost20_phy_phyclock"

Item 3

Exact value (const): "phyclk_usbhost20_phy_freeclk"

Item 4

Exact value (const): "phyclk_usbhost20_phy_clk48mohci"

Item 5

Exact value (const): "phyclk_usbdrd30_udrd30_pipe_pclk"

Item 6

Exact value (const): "phyclk_usbdrd30_udrd30_phyclock"

Item 7

Exact value (const): "dout_aclk_fsys_200"

Required in this object (required): "clock-names", "clocks"

Rule 10 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynos5260-clock-aud"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — required here

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "fin_pll"

Item 2

Exact value (const): "fout_aud_pll"

Item 3

Exact value (const): "ioclk_i2s_cdclk"

Item 4

Exact value (const): "ioclk_pcm_extclk"

Required in this object (required): "clock-names", "clocks"

Rule 11 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynos5260-clock-isp"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — required here

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "fin_pll"

Item 2

Exact value (const): "dout_aclk_isp1_266"

Item 3

Exact value (const): "dout_aclk_isp1_400"

Item 4

Exact value (const): "mout_aclk_isp1_266"

Required in this object (required): "clock-names", "clocks"

Rule 12 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynos5260-clock-gscl"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — required here

Minimum number of items (minItems): 3

Maximum number of items (maxItems): 3

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "fin_pll"

Item 2

Exact value (const): "dout_aclk_gscl_400"

Item 3

Exact value (const): "dout_aclk_gscl_333"

Required in this object (required): "clock-names", "clocks"

Rule 13 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,exynos5260-clock-disp"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — required here

Minimum number of items (minItems): 19

Maximum number of items (maxItems): 19

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "fin_pll"

Item 2

Exact value (const): "phyclk_dptx_phy_ch3_txd_clk"

Item 3

Exact value (const): "phyclk_dptx_phy_ch2_txd_clk"

Item 4

Exact value (const): "phyclk_dptx_phy_ch1_txd_clk"

Item 5

Exact value (const): "phyclk_dptx_phy_ch0_txd_clk"

Item 6

Exact value (const): "phyclk_hdmi_phy_tmds_clko"

Item 7

Exact value (const): "phyclk_hdmi_phy_ref_clko"

Item 8

Exact value (const): "phyclk_hdmi_phy_pixel_clko"

Item 9

Exact value (const): "phyclk_hdmi_link_o_tmds_clkhi"

Item 10

Exact value (const): "phyclk_mipi_dphy_4l_m_txbyte_clkhs"

Item 11

Exact value (const): "phyclk_dptx_phy_o_ref_clk_24m"

Item 12

Exact value (const): "phyclk_dptx_phy_clk_div2"

Item 13

Exact value (const): "phyclk_mipi_dphy_4l_m_rxclkesc0"

Item 14

Exact value (const): "phyclk_hdmi_phy_ref_cko"

Item 15

Exact value (const): "ioclk_spdif_extclk"

Item 16

Exact value (const): "dout_aclk_peri_aud"

Item 17

Exact value (const): "dout_aclk_disp_222"

Item 18

Exact value (const): "dout_sclk_disp_pixel"

Item 19

Exact value (const): "dout_aclk_disp_333"

Required in this object (required): "clock-names", "clocks"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/exynos5260-clk.h>

fin_pll: clock {
    compatible = "fixed-clock";
    clock-output-names = "fin_pll";
    #clock-cells = <0>;
    clock-frequency = <24000000>;
};

clock-controller@10010000 {
    compatible = "samsung,exynos5260-clock-top";
    reg = <0x10010000 0x10000>;
    #clock-cells = <1>;
    clocks = <&fin_pll>,
             <&clock_mif MIF_DOUT_MEM_PLL>,
             <&clock_mif MIF_DOUT_BUS_PLL>,
             <&clock_mif MIF_DOUT_MEDIA_PLL>;
    clock-names = "fin_pll",
                  "dout_mem_pll",
                  "dout_bus_pll",
                  "dout_media_pll";
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page