| /kernel/linux/linux-5.10/drivers/net/ethernet/ti/ |
| D | cpts.c | 21 #include "cpts.h" 50 static int cpts_fifo_pop(struct cpts *cpts, u32 *high, u32 *low) in cpts_fifo_pop() argument 52 u32 r = cpts_read32(cpts, intstat_raw); in cpts_fifo_pop() 55 *high = cpts_read32(cpts, event_high); in cpts_fifo_pop() 56 *low = cpts_read32(cpts, event_low); in cpts_fifo_pop() 57 cpts_write32(cpts, EVENT_POP, event_pop); in cpts_fifo_pop() 63 static int cpts_purge_events(struct cpts *cpts) in cpts_purge_events() argument 69 list_for_each_safe(this, next, &cpts->events) { in cpts_purge_events() 73 list_add(&event->list, &cpts->pool); in cpts_purge_events() 79 dev_dbg(cpts->dev, "cpts: event pool cleaned up %d\n", removed); in cpts_purge_events() [all …]
|
| D | am65-cpts.c | 23 #include "am65-cpts.h" 189 static void am65_cpts_settime(struct am65_cpts *cpts, u64 start_tstamp) in am65_cpts_settime() argument 194 am65_cpts_write32(cpts, val, ts_load_val_hi); in am65_cpts_settime() 196 am65_cpts_write32(cpts, val, ts_load_val_lo); in am65_cpts_settime() 198 am65_cpts_write32(cpts, AM65_CPTS_TS_LOAD_EN, ts_load_en); in am65_cpts_settime() 201 static void am65_cpts_set_add_val(struct am65_cpts *cpts) in am65_cpts_set_add_val() argument 204 cpts->ts_add_val = (NSEC_PER_SEC / cpts->refclk_freq - 1) & 0x7; in am65_cpts_set_add_val() 206 am65_cpts_write32(cpts, cpts->ts_add_val, ts_add_val); in am65_cpts_set_add_val() 209 static void am65_cpts_disable(struct am65_cpts *cpts) in am65_cpts_disable() argument 211 am65_cpts_write32(cpts, 0, control); in am65_cpts_disable() [all …]
|
| D | cpts.h | 100 struct cpts { struct 126 void cpts_rx_timestamp(struct cpts *cpts, struct sk_buff *skb); argument 127 void cpts_tx_timestamp(struct cpts *cpts, struct sk_buff *skb); 128 int cpts_register(struct cpts *cpts); 129 void cpts_unregister(struct cpts *cpts); 130 struct cpts *cpts_create(struct device *dev, void __iomem *regs, 132 void cpts_release(struct cpts *cpts); 133 void cpts_misc_interrupt(struct cpts *cpts); 135 static inline bool cpts_can_timestamp(struct cpts *cpts, struct sk_buff *skb) in cpts_can_timestamp() argument 145 static inline void cpts_set_irqpoll(struct cpts *cpts, bool en) in cpts_set_irqpoll() argument [all …]
|
| D | am65-cpts.h | 2 /* TI K3 AM65 CPTS driver interface 23 int am65_cpts_phc_index(struct am65_cpts *cpts); 24 void am65_cpts_tx_timestamp(struct am65_cpts *cpts, struct sk_buff *skb); 25 void am65_cpts_prep_tx_timestamp(struct am65_cpts *cpts, struct sk_buff *skb); 26 void am65_cpts_rx_enable(struct am65_cpts *cpts, bool en); 27 u64 am65_cpts_ns_gettime(struct am65_cpts *cpts); 28 int am65_cpts_estf_enable(struct am65_cpts *cpts, int idx, 30 void am65_cpts_estf_disable(struct am65_cpts *cpts, int idx); 39 static inline int am65_cpts_phc_index(struct am65_cpts *cpts) in am65_cpts_phc_index() argument 44 static inline void am65_cpts_tx_timestamp(struct am65_cpts *cpts, in am65_cpts_tx_timestamp() argument [all …]
|
| D | Kconfig | 82 tristate "TI Common Platform Time Sync (CPTS) Support" 109 tristate "TI K3 AM65x CPTS" 113 Say y here to support the TI K3 AM65x CPTS with 1588 features such as 114 PTP hardware clock for each CPTS device and network packets 116 Depending on integration CPTS blocks enable compliance with 127 defined in IEEE 802.1Q 2018. The EST scheduler runs on CPTS and the
|
| D | am65-cpsw-qos.c | 14 #include "am65-cpts.h" 367 struct am65_cpts *cpts = common->cpts; in am65_cpsw_timer_set() local 373 return am65_cpts_estf_enable(cpts, port->port_id - 1, &cfg); in am65_cpsw_timer_set() 379 struct am65_cpts *cpts = port->common->cpts; in am65_cpsw_timer_stop() local 381 am65_cpts_estf_disable(cpts, port->port_id - 1); in am65_cpsw_timer_stop() 389 struct am65_cpts *cpts = port->common->cpts; in am65_cpsw_timer_act() local 415 cur_time = am65_cpts_ns_gettime(cpts); in am65_cpsw_timer_act() 449 struct am65_cpts *cpts = common->cpts; in am65_cpsw_configure_taprio() local 474 est_new->taprio.base_time = am65_cpts_ns_gettime(cpts); in am65_cpsw_configure_taprio()
|
| D | Makefile | 16 obj-$(CONFIG_TI_CPTS) += cpts.o 29 obj-$(CONFIG_TI_K3_AM65_CPTS) += am65-cpts.o
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/ti/ |
| D | cpts.c | 21 #include "cpts.h" 50 static int cpts_fifo_pop(struct cpts *cpts, u32 *high, u32 *low) in cpts_fifo_pop() argument 52 u32 r = cpts_read32(cpts, intstat_raw); in cpts_fifo_pop() 55 *high = cpts_read32(cpts, event_high); in cpts_fifo_pop() 56 *low = cpts_read32(cpts, event_low); in cpts_fifo_pop() 57 cpts_write32(cpts, EVENT_POP, event_pop); in cpts_fifo_pop() 63 static int cpts_purge_events(struct cpts *cpts) in cpts_purge_events() argument 69 list_for_each_safe(this, next, &cpts->events) { in cpts_purge_events() 73 list_add(&event->list, &cpts->pool); in cpts_purge_events() 79 dev_dbg(cpts->dev, "cpts: event pool cleaned up %d\n", removed); in cpts_purge_events() [all …]
|
| D | am65-cpts.c | 23 #include "am65-cpts.h" 204 static void am65_cpts_settime(struct am65_cpts *cpts, u64 start_tstamp) in am65_cpts_settime() argument 209 am65_cpts_write32(cpts, val, ts_load_val_hi); in am65_cpts_settime() 211 am65_cpts_write32(cpts, val, ts_load_val_lo); in am65_cpts_settime() 213 am65_cpts_write32(cpts, AM65_CPTS_TS_LOAD_EN, ts_load_en); in am65_cpts_settime() 216 static void am65_cpts_set_add_val(struct am65_cpts *cpts) in am65_cpts_set_add_val() argument 219 cpts->ts_add_val = (NSEC_PER_SEC / cpts->refclk_freq - 1) & 0x7; in am65_cpts_set_add_val() 221 am65_cpts_write32(cpts, cpts->ts_add_val, ts_add_val); in am65_cpts_set_add_val() 224 static void am65_cpts_disable(struct am65_cpts *cpts) in am65_cpts_disable() argument 226 am65_cpts_write32(cpts, 0, control); in am65_cpts_disable() [all …]
|
| D | cpts.h | 100 struct cpts { struct 126 void cpts_rx_timestamp(struct cpts *cpts, struct sk_buff *skb); argument 127 void cpts_tx_timestamp(struct cpts *cpts, struct sk_buff *skb); 128 int cpts_register(struct cpts *cpts); 129 void cpts_unregister(struct cpts *cpts); 130 struct cpts *cpts_create(struct device *dev, void __iomem *regs, 132 void cpts_release(struct cpts *cpts); 133 void cpts_misc_interrupt(struct cpts *cpts); 135 static inline bool cpts_can_timestamp(struct cpts *cpts, struct sk_buff *skb) in cpts_can_timestamp() argument 145 static inline void cpts_set_irqpoll(struct cpts *cpts, bool en) in cpts_set_irqpoll() argument [all …]
|
| D | am65-cpts.h | 2 /* TI K3 AM65 CPTS driver interface 21 void am65_cpts_release(struct am65_cpts *cpts); 24 int am65_cpts_phc_index(struct am65_cpts *cpts); 25 void am65_cpts_tx_timestamp(struct am65_cpts *cpts, struct sk_buff *skb); 26 void am65_cpts_prep_tx_timestamp(struct am65_cpts *cpts, struct sk_buff *skb); 27 void am65_cpts_rx_enable(struct am65_cpts *cpts, bool en); 28 u64 am65_cpts_ns_gettime(struct am65_cpts *cpts); 29 int am65_cpts_estf_enable(struct am65_cpts *cpts, int idx, 31 void am65_cpts_estf_disable(struct am65_cpts *cpts, int idx); 32 void am65_cpts_suspend(struct am65_cpts *cpts); [all …]
|
| D | Kconfig | 83 tristate "TI Common Platform Time Sync (CPTS) Support" 125 tristate "TI K3 AM65x CPTS" 129 Say y here to support the TI K3 AM65x CPTS with 1588 features such as 130 PTP hardware clock for each CPTS device and network packets 132 Depending on integration CPTS blocks enable compliance with 143 defined in IEEE 802.1Q 2018. The EST scheduler runs on CPTS and the
|
| D | am65-cpsw-qos.c | 15 #include "am65-cpts.h" 369 struct am65_cpts *cpts = common->cpts; in am65_cpsw_timer_set() local 375 return am65_cpts_estf_enable(cpts, port->port_id - 1, &cfg); in am65_cpsw_timer_set() 381 struct am65_cpts *cpts = port->common->cpts; in am65_cpsw_timer_stop() local 383 am65_cpts_estf_disable(cpts, port->port_id - 1); in am65_cpsw_timer_stop() 391 struct am65_cpts *cpts = port->common->cpts; in am65_cpsw_timer_act() local 417 cur_time = am65_cpts_ns_gettime(cpts); in am65_cpsw_timer_act() 448 struct am65_cpts *cpts = common->cpts; in am65_cpsw_configure_taprio() local 473 est_new->taprio.base_time = am65_cpts_ns_gettime(cpts); in am65_cpsw_configure_taprio()
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/ |
| D | ti,k3-am654-cpts.yaml | 4 $id: http://devicetree.org/schemas/net/ti,k3-am654-cpts.yaml# 7 title: The TI AM654x/J721E Common Platform Time Sync (CPTS) module Device Tree Bindings 14 The TI AM654x/J721E CPTS module is used to facilitate host control of time 16 Main features of CPTS module are 32 TI AM654x/J721E SoCs has several similar CPTS modules integrated into the 34 - Main CPTS 35 - MCU CPSW CPTS with IEEE 1588-2008 support 36 - PCIe subsystem CPTS for PTM support 38 Depending on CPTS module integration and when CPTS is integral part of 40 be omitted - parent module is fully responsible for CPTS enabling and [all …]
|
| D | keystone-netcp.txt | 107 - cpts: sub-node time synchronization (CPTS) submodule configuration 108 -- clocks: CPTS reference clock. Should point on cpts-refclk-mux clock. 109 -- clock-names: should be "cpts" 110 -- cpts-refclk-mux: multiplexer clock definition sub-node for CPTS reference (RFTCLK) clock 112 --- clocks: list of CPTS reference (RFTCLK) clock's parents as defined in Data manual 114 --- assigned-clocks: should point on cpts-refclk-mux clock 120 Mult and shift will be calculated basing on CPTS 188 cpts { 190 clock-names = "cpts"; 192 cpts_refclk_mux: cpts-refclk-mux { [all …]
|
| D | ti,k3-am654-cpsw-nuss.yaml | 19 new version of Common Platform Time Sync (CPTS), updated Address Lookup 146 "^cpts@[0-9a-f]+": 148 $ref: "ti,k3-am654-cpts.yaml#" 150 CPSW Common Platform Time Sync (CPTS) module. 238 cpts@3d000 { 239 compatible = "ti,am65-cpts"; 242 clock-names = "cpts"; 244 interrupt-names = "cpts"; 245 ti,cpts-ext-ts-inputs = <4>; 246 ti,cpts-periodic-outputs = <2>;
|
| D | ti,cpsw-switch.yaml | 119 cpts: 122 The Common Platform Time Sync (CPTS) module 127 description: CPTS reference clock 131 - const: cpts 142 Mult and shift will be calculated basing on CPTS rftclk frequency if 235 cpts { 237 clock-names = "cpts";
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/net/ |
| D | ti,k3-am654-cpts.yaml | 4 $id: http://devicetree.org/schemas/net/ti,k3-am654-cpts.yaml# 7 title: The TI AM654x/J721E Common Platform Time Sync (CPTS) module 14 The TI AM654x/J721E CPTS module is used to facilitate host control of time 16 Main features of CPTS module are 32 TI AM654x/J721E SoCs has several similar CPTS modules integrated into the 34 - Main CPTS 35 - MCU CPSW CPTS with IEEE 1588-2008 support 36 - PCIe subsystem CPTS for PTM support 38 Depending on CPTS module integration and when CPTS is integral part of 40 be omitted - parent module is fully responsible for CPTS enabling and [all …]
|
| D | keystone-netcp.txt | 107 - cpts: sub-node time synchronization (CPTS) submodule configuration 108 -- clocks: CPTS reference clock. Should point on cpts-refclk-mux clock. 109 -- clock-names: should be "cpts" 110 -- cpts-refclk-mux: multiplexer clock definition sub-node for CPTS reference (RFTCLK) clock 112 --- clocks: list of CPTS reference (RFTCLK) clock's parents as defined in Data manual 114 --- assigned-clocks: should point on cpts-refclk-mux clock 120 Mult and shift will be calculated basing on CPTS 188 cpts { 190 clock-names = "cpts"; 192 cpts_refclk_mux: cpts-refclk-mux { [all …]
|
| D | ti,k3-am654-cpsw-nuss.yaml | 40 new version of Common Platform Time Sync (CPTS) 176 "^cpts@[0-9a-f]+": 178 $ref: ti,k3-am654-cpts.yaml# 180 CPSW Common Platform Time Sync (CPTS) module. 307 cpts@3d000 { 308 compatible = "ti,am65-cpts"; 311 clock-names = "cpts"; 313 interrupt-names = "cpts"; 314 ti,cpts-ext-ts-inputs = <4>; 315 ti,cpts-periodic-outputs = <2>;
|
| D | ti,cpsw-switch.yaml | 121 cpts: 125 The Common Platform Time Sync (CPTS) module 130 description: CPTS reference clock 134 - const: cpts 145 Mult and shift will be calculated basing on CPTS rftclk frequency if 238 cpts { 240 clock-names = "cpts";
|
| /kernel/linux/linux-5.10/arch/arm64/boot/dts/ti/ |
| D | k3-j7200-mcu-wakeup.dtsi | 229 cpts@3d000 { 230 compatible = "ti,am65-cpts"; 233 clock-names = "cpts"; 235 interrupt-names = "cpts"; 236 ti,cpts-ext-ts-inputs = <4>; 237 ti,cpts-periodic-outputs = <2>;
|
| D | k3-am65-mcu.dtsi | 251 cpts@3d000 { 252 compatible = "ti,am65-cpts"; 255 clock-names = "cpts"; 257 interrupt-names = "cpts"; 258 ti,cpts-ext-ts-inputs = <4>; 259 ti,cpts-periodic-outputs = <2>;
|
| D | k3-j721e-mcu-wakeup.dtsi | 345 cpts@3d000 { 346 compatible = "ti,am65-cpts"; 349 clock-names = "cpts"; 351 interrupt-names = "cpts"; 352 ti,cpts-ext-ts-inputs = <4>; 353 ti,cpts-periodic-outputs = <2>;
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/ti/keystone/ |
| D | keystone-k2g-netcp.dtsi | 101 clock-names = "ethss_clk", "cpts"; 122 cpts-rftclk-sel = <0>; 123 cpts-ext-ts-inputs = <8>;
|