Tesla FSD (Full Self-Driving) SoC clock controller
Schema identifier ($id): "http://devicetree.org/schemas/clock/tesla,fsd-clock.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alim Akhtar <alim.akhtar@samsung.com>", "linux-fsd@tesla.com"
FSD clock controller consist of several clock management unit (CMU), which generates clocks for various internal SoC blocks. The root clock comes from external OSC clock (24 MHz).
All available clocks are defined as preprocessor macros in 'dt-bindings/clock/fsd-clk.h' header.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "tesla,fsd-clock-cmu", "tesla,fsd-clock-imem", "tesla,fsd-clock-peric", "tesla,fsd-clock-fsys0", "tesla,fsd-clock-fsys1", "tesla,fsd-clock-mfc", "tesla,fsd-clock-cam_csi"
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 6
clock-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 6
#clock-cells — required here #
Exact value (const): 1
reg — required here #
Maximum number of items (maxItems): 1
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):"tesla,fsd-clock-cmu"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External reference clock (24 MHz)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"fin_pll"
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"tesla,fsd-clock-imem"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External reference clock (24 MHz)
Item 2
IMEM TCU clock (from CMU_CMU)
Item 3
IMEM bus clock (from CMU_CMU)
Item 4
IMEM DMA clock (from CMU_CMU)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"fin_pll"Item 2
Exact value (
const):"dout_cmu_imem_tcuclk"Item 3
Exact value (
const):"dout_cmu_imem_aclk"Item 4
Exact value (
const):"dout_cmu_imem_dmaclk"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"tesla,fsd-clock-peric"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External reference clock (24 MHz)
Item 2
Shared0 PLL div4 clock (from CMU_CMU)
Item 3
PERIC shared1 div36 clock (from CMU_CMU)
Item 4
PERIC shared0 div3 TBU clock (from CMU_CMU)
Item 5
PERIC shared0 div20 clock (from CMU_CMU)
Item 6
PERIC shared1 div4 DMAclock (from CMU_CMU)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"fin_pll"Item 2
Exact value (
const):"dout_cmu_pll_shared0_div4"Item 3
Exact value (
const):"dout_cmu_peric_shared1div36"Item 4
Exact value (
const):"dout_cmu_peric_shared0div3_tbuclk"Item 5
Exact value (
const):"dout_cmu_peric_shared0div20"Item 6
Exact value (
const):"dout_cmu_peric_shared1div4_dmaclk"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"tesla,fsd-clock-fsys0"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External reference clock (24 MHz)
Item 2
Shared0 PLL div6 clock (from CMU_CMU)
Item 3
FSYS0 shared1 div4 clock (from CMU_CMU)
Item 4
FSYS0 shared0 div4 clock (from CMU_CMU)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"fin_pll"Item 2
Exact value (
const):"dout_cmu_pll_shared0_div6"Item 3
Exact value (
const):"dout_cmu_fsys0_shared1div4"Item 4
Exact value (
const):"dout_cmu_fsys0_shared0div4"
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"tesla,fsd-clock-fsys1"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External reference clock (24 MHz)
Item 2
FSYS1 shared0 div8 clock (from CMU_CMU)
Item 3
FSYS1 shared0 div4 clock (from CMU_CMU)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"fin_pll"Item 2
Exact value (
const):"dout_cmu_fsys1_shared0div8"Item 3
Exact value (
const):"dout_cmu_fsys1_shared0div4"
Rule 6 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"tesla,fsd-clock-mfc"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External reference clock (24 MHz)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"fin_pll"
Rule 7 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"tesla,fsd-clock-cam_csi"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
External reference clock (24 MHz)
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"fin_pll"
Required in this object (required): "compatible", "#clock-cells", "clocks", "clock-names", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/fsd-clk.h>
clock_fsys1: clock-controller@16810000 {
compatible = "tesla,fsd-clock-fsys1";
reg = <0x16810000 0x3000>;
#clock-cells = <1>;
clocks = <&fin_pll>,
<&clock_cmu DOUT_CMU_FSYS1_SHARED0DIV8>,
<&clock_cmu DOUT_CMU_FSYS1_SHARED0DIV4>;
clock-names = "fin_pll",
"dout_cmu_fsys1_shared0div8",
"dout_cmu_fsys1_shared0div4";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 181: Clock controller node for CMU_FSYS1