Samsung Exynos7 SoC clock controller
Schema identifier ($id): "http://devicetree.org/schemas/clock/samsung,exynos7-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
All available clocks are defined as preprocessor macros in include/dt-bindings/clock/exynos7-clk.h header.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "samsung,exynos7-clock-topc", "samsung,exynos7-clock-top0", "samsung,exynos7-clock-top1", "samsung,exynos7-clock-ccore", "samsung,exynos7-clock-peric0", "samsung,exynos7-clock-peric1", "samsung,exynos7-clock-peris", "samsung,exynos7-clock-fsys0", "samsung,exynos7-clock-fsys1", "samsung,exynos7-clock-mscl", "samsung,exynos7-clock-aud"
clocks — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 13
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 13
#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 hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos7-clock-top0"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— required hereMinimum number of items (
minItems):6Maximum number of items (
maxItems):6
clock-names— required hereArray item rules (
items)Item 1
Exact value (
const):"fin_pll"Item 2
Exact value (
const):"dout_sclk_bus0_pll"Item 3
Exact value (
const):"dout_sclk_bus1_pll"Item 4
Exact value (
const):"dout_sclk_cc_pll"Item 5
Exact value (
const):"dout_sclk_mfc_pll"Item 6
Exact value (
const):"dout_sclk_aud_pll"
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos7-clock-top1"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— required hereMinimum number of items (
minItems):5Maximum number of items (
maxItems):5
clock-names— required hereArray item rules (
items)Item 1
Exact value (
const):"fin_pll"Item 2
Exact value (
const):"dout_sclk_bus0_pll"Item 3
Exact value (
const):"dout_sclk_bus1_pll"Item 4
Exact value (
const):"dout_sclk_cc_pll"Item 5
Exact value (
const):"dout_sclk_mfc_pll"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos7-clock-ccore"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
clock-names— required hereArray item rules (
items)Item 1
Exact value (
const):"fin_pll"Item 2
Exact value (
const):"dout_aclk_ccore_133"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos7-clock-peric0"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
clock-names— required hereArray item rules (
items)Item 1
Exact value (
const):"fin_pll"Item 2
Exact value (
const):"dout_aclk_peric0_66"Item 3
Exact value (
const):"sclk_uart0"
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos7-clock-peric1"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— required hereMinimum number of items (
minItems):13Maximum number of items (
maxItems):13
clock-names— required hereArray item rules (
items)Item 1
Exact value (
const):"fin_pll"Item 2
Exact value (
const):"dout_aclk_peric1_66"Item 3
Exact value (
const):"sclk_uart1"Item 4
Exact value (
const):"sclk_uart2"Item 5
Exact value (
const):"sclk_uart3"Item 6
Exact value (
const):"sclk_spi0"Item 7
Exact value (
const):"sclk_spi1"Item 8
Exact value (
const):"sclk_spi2"Item 9
Exact value (
const):"sclk_spi3"Item 10
Exact value (
const):"sclk_spi4"Item 11
Exact value (
const):"sclk_i2s1"Item 12
Exact value (
const):"sclk_pcm1"Item 13
Exact value (
const):"sclk_spdif"
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos7-clock-peris"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
clock-names— required hereArray item rules (
items)Item 1
Exact value (
const):"fin_pll"Item 2
Exact value (
const):"dout_aclk_peris_66"
Rule 7 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos7-clock-fsys0"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
clock-names— required hereArray item rules (
items)Item 1
Exact value (
const):"fin_pll"Item 2
Exact value (
const):"dout_aclk_fsys0_200"Item 3
Exact value (
const):"dout_sclk_mmc2"
Rule 8 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos7-clock-fsys1"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— required hereMinimum number of items (
minItems):7Maximum number of items (
maxItems):7
clock-names— required hereArray item rules (
items)Item 1
Exact value (
const):"fin_pll"Item 2
Exact value (
const):"dout_aclk_fsys1_200"Item 3
Exact value (
const):"dout_sclk_mmc0"Item 4
Exact value (
const):"dout_sclk_mmc1"Item 5
Exact value (
const):"dout_sclk_ufsunipro20"Item 6
Exact value (
const):"dout_sclk_phy_fsys1"Item 7
Exact value (
const):"dout_sclk_phy_fsys1_26m"
Rule 9 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"samsung,exynos7-clock-aud"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
clock-names— required hereArray item rules (
items)Item 1
Exact value (
const):"fin_pll"Item 2
Exact value (
const):"fout_aud_pll"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/exynos7-clk.h>
fin_pll: clock {
compatible = "fixed-clock";
clock-output-names = "fin_pll";
#clock-cells = <0>;
clock-frequency = <24000000>;
};
clock-controller@105e0000 {
compatible = "samsung,exynos7-clock-top1";
reg = <0x105e0000 0xb000>;
#clock-cells = <1>;
clocks = <&fin_pll>,
<&clock_topc DOUT_SCLK_BUS0_PLL>,
<&clock_topc DOUT_SCLK_BUS1_PLL>,
<&clock_topc DOUT_SCLK_CC_PLL>,
<&clock_topc DOUT_SCLK_MFC_PLL>;
clock-names = "fin_pll",
"dout_sclk_bus0_pll",
"dout_sclk_bus1_pll",
"dout_sclk_cc_pll",
"dout_sclk_mfc_pll";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)