/linux/Documentation/devicetree/bindings/ptp/ |
H A D | fsl,ptp.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Frank Li <Frank.Li@nxp.com> 15 - enum: 16 - fsl,etsec-ptp 17 - fsl,fman-ptp-timer 18 - fsl,dpaa2-ptp 19 - items: 20 - const: pci1957,ee02 [all …]
|
/linux/arch/arm64/boot/dts/freescale/ |
H A D | qoriq-fman3-0.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 5 * Copyright 2012-2015 Freescale Semiconductor Inc. 9 #include <dt-bindings/clock/fsl,qoriq-clockgen.h> 12 #address-cells = <1>; 13 #size-cells = <1>; 14 cell-index = <0>; 21 clock-names = "fmanclk"; 22 fsl,qman-channel-range = <0x800 0x10>; 23 ptimer-handle = <&ptp_timer0>; 24 dma-coherent; [all …]
|
H A D | fsl-ls1088a.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree Include file for NXP Layerscape-1088A family SoC. 5 * Copyright 2017-2020 NXP 10 #include <dt-bindings/clock/fsl,qoriq-clockgen.h> 11 #include <dt-bindings/interrupt-controller/arm-gic.h> 12 #include <dt-bindings/thermal/thermal.h> 16 interrupt-parent = <&gic>; 17 #address-cells = <2>; 18 #size-cells = <2>; 26 #address-cells = <1>; [all …]
|
H A D | fsl-ls208xa.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree Include file for Freescale Layerscape-2080A family SoC. 6 * Copyright 2017-2020 NXP 12 #include <dt-bindings/clock/fsl,qoriq-clockgen.h> 13 #include <dt-bindings/thermal/thermal.h> 14 #include <dt-bindings/interrupt-controller/arm-gic.h> 18 interrupt-parent = <&gic>; 19 #address-cells = <2>; 20 #size-cells = <2>; 32 #address-cells = <1>; [all …]
|
H A D | fsl-ls1028a.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree Include file for NXP Layerscape-1028A family SoC. 5 * Copyright 2018-2020 NXP 11 #include <dt-bindings/clock/fsl,qoriq-clockgen.h> 12 #include <dt-bindings/interrupt-controller/arm-gic.h> 13 #include <dt-bindings/thermal/thermal.h> 17 interrupt-parent = <&gic>; 18 #address-cells = <2>; 19 #size-cells = <2>; 22 #address-cells = <1>; [all …]
|
H A D | fsl-lx2160a.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 3 // Device Tree Include file for Layerscape-LX2160A family SoC. 5 // Copyright 2018-2020 NXP 7 #include <dt-bindings/clock/fsl,qoriq-clockgen.h> 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/interrupt-controller/arm-gic.h> 10 #include <dt-bindings/thermal/thermal.h> 16 interrupt-parent = <&gic>; 17 #address-cells = <2>; 18 #size-cells = <2>; [all …]
|
/linux/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_ptp.c | 1 // SPDX-License-Identifier: GPL-2.0-only 21 * Scaled parts per million is ppm with a 16-bit binary fractional field. 30 addend = adjust_by_scaled_ppm(priv->default_addend, scaled_ppm); in stmmac_adjust_freq() 32 write_lock_irqsave(&priv->ptp_lock, flags); in stmmac_adjust_freq() 33 stmmac_config_addend(priv, priv->ptpaddr, addend); in stmmac_adjust_freq() 34 write_unlock_irqrestore(&priv->ptp_lock, flags); in stmmac_adjust_freq() 58 xmac = priv->plat->has_gmac4 || priv->plat->has_xgmac; in stmmac_adjust_time() 62 delta = -delta; in stmmac_adjust_time() 70 if (priv->est && priv->est->enable) { in stmmac_adjust_time() 72 mutex_lock(&priv->est_lock); in stmmac_adjust_time() [all …]
|
/linux/drivers/ptp/ |
H A D | ptp_sysfs.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * PTP 1588 clock support - sysfs interface. 17 return sysfs_emit(page, "%s\n", ptp->info->name); in clock_name_show() 27 return sysfs_emit(page, "%d\n", ptp->info->getmaxphase(ptp->info)); in max_phase_adjustment_show() 36 return sysfs_emit(page, "%d\n", ptp->info->var); \ 52 struct ptp_clock_info *ops = ptp->info; in extts_enable_store() 55 int err = -EINVAL; in extts_enable_store() 57 cnt = sscanf(buf, "%u %d", &req.extts.index, &enable); in extts_enable_store() 60 if (req.extts.index >= ops->n_ext_ts) in extts_enable_store() 63 err = ops->enable(ops, &req, enable ? 1 : 0); in extts_enable_store() [all …]
|
H A D | ptp_qoriq.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 26 /* Caller must hold ptp_qoriq->lock. */ 29 struct ptp_qoriq_registers *regs = &ptp_qoriq->regs; in tmr_cnt_read() 33 lo = ptp_qoriq->read(®s->ctrl_regs->tmr_cnt_l); in tmr_cnt_read() 34 hi = ptp_qoriq->read(®s->ctrl_regs->tmr_cnt_h); in tmr_cnt_read() 40 /* Caller must hold ptp_qoriq->lock. */ 43 struct ptp_qoriq_registers *regs = &ptp_qoriq->regs; in tmr_cnt_write() 47 ptp_qoriq->write(®s->ctrl_regs->tmr_cnt_l, lo); in tmr_cnt_write() 48 ptp_qoriq->write(®s->ctrl_regs->tmr_cnt_h, hi); in tmr_cnt_write() 53 struct ptp_qoriq_registers *regs = &ptp_qoriq->regs; in tmr_offset_read() [all …]
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_ptp.c | 1 // SPDX-License-Identifier: GPL-2.0 20 { TIME_SYNC, { 4, -1 }, { 0, 0 }}, 21 { ONE_PPS, { -1, 5 }, { 0, 11 }}, 30 { TIME_SYNC, { 4, -1 }, { 11, 0 }}, 31 { ONE_PPS, { -1, 5 }, { 0, 9 }}, 40 { ONE_PPS, { -1, 5 }, { 0, 1 }}, 53 { GNSS, { 1, -1 }, { 0, 0 }}, 55 { UFL1, { -1, 0 }, { 0, 1 }}, 57 { UFL2, { 3, -1 }, { 0, 0 }}, 62 return !pf->adapter ? NULL : pf->adapter->ctrl_pf; in ice_get_ctrl_pf() [all …]
|
/linux/drivers/net/ethernet/ti/ |
H A D | am65-cpts.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com 9 #include <linux/clk-provider.h> 23 #include "am65-cpts.h" 201 #define am65_cpts_write32(c, v, r) writel(v, &(c)->reg->r) 202 #define am65_cpts_read32(c, r) readl(&(c)->reg->r) 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() 232 return (event->event1 & AM65_CPTS_EVENT_1_PORT_NUMBER_MASK) >> in am65_cpts_event_get_port() 238 return (event->event1 & AM65_CPTS_EVENT_1_EVENT_TYPE_MASK) >> in am65_cpts_event_get_type() [all …]
|
/linux/arch/arm/boot/dts/nxp/ls/ |
H A D | ls1021a.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Copyright 2013-2014 Freescale Semiconductor, Inc. 6 #include <dt-bindings/interrupt-controller/arm-gic.h> 7 #include <dt-bindings/thermal/thermal.h> 10 #address-cells = <2>; 11 #size-cells = <2>; 12 interrupt-parent = <&gic>; 30 #address-cells = <1>; 31 #size-cells = <0>; 34 compatible = "arm,cortex-a7"; [all …]
|
/linux/drivers/net/phy/ |
H A D | micrel.c | 1 // SPDX-License-Identifier: GPL-2.0+ 9 * Copyright (c) 2010-2013 Micrel, Inc. 128 * The value is calculated as following: (1/1000000)/((2^-32)/4) 134 * The value is calculated as following: (1/1000000)/((2^-32)/8) 415 /* Lock for Rx ts fifo */ 529 const struct kszphy_type *type = phydev->drv->driver_data; in kszphy_config_intr() 533 if (type && type->interrupt_level_mask) in kszphy_config_intr() 534 mask = type->interrupt_level_mask; in kszphy_config_intr() 546 if (phydev->interrupts == PHY_INTERRUPT_ENABLED) { in kszphy_config_intr() 609 return -EINVAL; in kszphy_setup_led() [all …]
|