Commit debc91ab authored by Grygorii Strashko's avatar Grygorii Strashko Committed by Santosh Shilimkar

ARM: dts: k2e-netcp: add cpts refclk_mux node

KeyStone 66AK2E 1G Ethernet Switch Subsystems, can control an external
multiplexer that selects one of up to 32 clocks for time sync reference
(RFTCLK) clock. This feature can be configured through CPTS_RFTCLK_SEL
register (offset: x08) in CPTS module and modelled as multiplexer clock.

Hence, add cpts-refclk-mux clock node which allows to mux one of SYSCLK2,
SYSCLK3, TIMI0, TIMI1, TSIPCLKA, TSREFCLK, TSIPCLKB clocks as CPTS
reference clock [1] and group all CPTS properties under "cpts" subnode.

[1] http://www.ti.com/lit/gpn/66ak2e05Signed-off-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: default avatarSantosh Shilimkar <santosh.shilimkar@oracle.com>
parent e86ddd18
...@@ -135,8 +135,8 @@ netcp: netcp@24000000 { ...@@ -135,8 +135,8 @@ netcp: netcp@24000000 {
/* NetCP address range */ /* NetCP address range */
ranges = <0 0x24000000 0x1000000>; ranges = <0 0x24000000 0x1000000>;
clocks = <&clkpa>, <&clkcpgmac>, <&chipclk12>; clocks = <&clkpa>, <&clkcpgmac>;
clock-names = "pa_clk", "ethss_clk", "cpts"; clock-names = "pa_clk", "ethss_clk";
dma-coherent; dma-coherent;
ti,navigator-dmas = <&dma_gbe 0>, ti,navigator-dmas = <&dma_gbe 0>,
...@@ -156,6 +156,23 @@ gbe@200000 { /* ETHSS */ ...@@ -156,6 +156,23 @@ gbe@200000 { /* ETHSS */
tx-queue = <896>; tx-queue = <896>;
tx-channel = "nettx"; tx-channel = "nettx";
cpts {
clocks = <&cpts_refclk_mux>;
clock-names = "cpts";
cpts_refclk_mux: cpts-refclk-mux {
#clock-cells = <0>;
clocks = <&chipclk12>, <&chipclk13>,
<&timi0>, <&timi1>,
<&tsipclka>, <&tsrefclk>,
<&tsipclkb>;
ti,mux-tbl = <0x0>, <0x1>, <0x2>,
<0x3>, <0x4>, <0x8>, <0xC>;
assigned-clocks = <&cpts_refclk_mux>;
assigned-clock-parents = <&chipclk12>;
};
};
interfaces { interfaces {
gbe0: interface-0 { gbe0: interface-0 {
slave-port = <0>; slave-port = <0>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment