[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2114025245.1081083.1744805030927.JavaMail.zimbra@couthit.local>
Date: Wed, 16 Apr 2025 17:33:50 +0530 (IST)
From: Parvathi Pudi <parvathi@...thit.com>
To: horms <horms@...nel.org>
Cc: parvathi <parvathi@...thit.com>, danishanwar <danishanwar@...com>,
rogerq <rogerq@...nel.org>, andrew+netdev <andrew+netdev@...n.ch>,
davem <davem@...emloft.net>, edumazet <edumazet@...gle.com>,
kuba <kuba@...nel.org>, pabeni <pabeni@...hat.com>,
robh <robh@...nel.org>, krzk+dt <krzk+dt@...nel.org>,
conor+dt <conor+dt@...nel.org>, nm <nm@...com>,
ssantosh <ssantosh@...nel.org>, tony <tony@...mide.com>,
richardcochran <richardcochran@...il.com>,
glaroque <glaroque@...libre.com>, schnelle <schnelle@...ux.ibm.com>,
m-karicheri2 <m-karicheri2@...com>, s hauer <s.hauer@...gutronix.de>,
rdunlap <rdunlap@...radead.org>, diogo ivo <diogo.ivo@...mens.com>,
basharath <basharath@...thit.com>,
jacob e keller <jacob.e.keller@...el.com>,
m-malladi <m-malladi@...com>,
javier carrasco cruz <javier.carrasco.cruz@...il.com>,
afd <afd@...com>, s-anna <s-anna@...com>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>,
netdev <netdev@...r.kernel.org>,
devicetree <devicetree@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
pratheesh <pratheesh@...com>, Prajith Jayarajan <prajith@...com>,
Vignesh Raghavendra <vigneshr@...com>, praneeth <praneeth@...com>,
srk <srk@...com>, rogerq <rogerq@...com>,
krishna <krishna@...thit.com>, pmohan <pmohan@...thit.com>,
mohan <mohan@...thit.com>
Subject: Re: [PATCH net-next v5 11/11] net: ti: prueth: Adds PTP OC Support
for AM335x and AM437x
Hi,
> On Mon, Apr 14, 2025 at 07:37:51PM +0530, Parvathi Pudi wrote:
>> From: Roger Quadros <rogerq@...com>
>>
>> PRU-ICSS IEP module, which is capable of timestamping RX and
>> TX packets at HW level, is used for time synchronization by PTP4L.
>>
>> This change includes interaction between firmware/driver and user
>> application (ptp4l) with required packet timestamps.
>>
>> RX SOF timestamp comes along with packet and firmware will rise
>> interrupt with TX SOF timestamp after pushing the packet on to the wire.
>>
>> IEP driver available in upstream linux as part of ICSSG assumes 64-bit
>> timestamp value from firmware.
>>
>> Enhanced the IEP driver to support the legacy 32-bit timestamp
>> conversion to 64-bit timestamp by using 2 fields as below:
>> - 32-bit HW timestamp from SOF event in ns
>> - Seconds value maintained in driver.
>>
>> Currently ordinary clock (OC) configuration has been validated with
>> Linux ptp4l.
>>
>> Signed-off-by: Roger Quadros <rogerq@...com>
>> Signed-off-by: Andrew F. Davis <afd@...com>
>> Signed-off-by: Basharath Hussain Khaja <basharath@...thit.com>
>> Signed-off-by: Parvathi Pudi <parvathi@...thit.com>
>
> ...
>
>> diff --git a/drivers/net/ethernet/ti/icssg/icss_iep.h
>> b/drivers/net/ethernet/ti/icssg/icss_iep.h
>> index 0bdca0155abd..437153350197 100644
>> --- a/drivers/net/ethernet/ti/icssg/icss_iep.h
>> +++ b/drivers/net/ethernet/ti/icssg/icss_iep.h
>> @@ -47,6 +47,11 @@ enum {
>> ICSS_IEP_MAX_REGS,
>> };
>>
>> +enum iep_revision {
>> + IEP_REV_V1_0 = 0,
>> + IEP_REV_V2_1
>> +};
>> +
>> /**
>> * struct icss_iep_plat_data - Plat data to handle SoC variants
>> * @config: Regmap configuration data
>> @@ -57,11 +62,13 @@ struct icss_iep_plat_data {
>> const struct regmap_config *config;
>> u32 reg_offs[ICSS_IEP_MAX_REGS];
>> u32 flags;
>> + enum iep_revision iep_rev;
>> };
>
> Please add iep_rev to the Kernel doc for struct icss_iep_plat_data.
>
> Flagged by ./scripts/kernel-doc -none
>
Sure, we will update the documentation in the next version.
> ...
>
>> diff --git a/drivers/net/ethernet/ti/icssm/icssm_prueth.h
>> b/drivers/net/ethernet/ti/icssm/icssm_prueth.h
>
> ...
>
>> @@ -337,6 +343,7 @@ enum pruss_device {
>> struct prueth_private_data {
>> enum pruss_device driver_data;
>> const struct prueth_firmware fw_pru[PRUSS_NUM_PRUS];
>> + enum fw_revision fw_rev;
>> bool support_lre;
>> bool support_switch;
>> };
>
> And, likewise, please add fw_rev to the Kernel doc for struct
> prueth_private_data.
>
Sure, we will add fw_rev to the Kernel doc in the next version.
Thanks and Regards,
Parvathi.
Powered by blists - more mailing lists