mirror_ubuntu-kernels/drivers/net/dsa/microchip
Arun Ramadoss 168a5940c7 net: dsa: microchip: ptp: lan937x: Enable periodic output in LED pins
There is difference in implementation of per_out pins between KSZ9563
and LAN937x. In KSZ9563, Timestamping control register (0x052C) bit 6,
if 1 - timestamp input and 0 - trigger output. But it is opposite for
LAN937x 1 - trigger output and 0 - timestamp input.
As per per_out gpio pins, KSZ9563 has four Led pins and two dedicated
gpio pins. But in LAN937x dedicated gpio pins are removed instead there
are up to 10 LED pins out of which LED_0 and LED_1 can be mapped to PTP
tou 0, 1 or 2. This patch sets the bit 6 in 0x052C register and
configure the LED override and source register for LAN937x series of
switches alone.

Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-01-13 08:40:41 +00:00
..
Kconfig net: dsa: microchip: ptp: add the posix clock support 2023-01-13 08:40:40 +00:00
ksz8.h net: dsa: microchip: ksz8: add MTU configuration support 2022-12-07 11:57:58 +01:00
ksz8795_reg.h net: dsa: microchip: ksz8: add MTU configuration support 2022-12-07 11:57:58 +01:00
ksz8795.c net: dsa: microchip: ksz8: move all DSA configurations to one location 2022-12-07 11:57:58 +01:00
ksz8863_smi.c net: dsa: microchip: add dev_err_probe in probe functions 2022-11-09 13:06:01 +00:00
ksz9477_i2c.c net: dsa: microchip: ksz9477: Convert to i2c's .probe_new() 2022-11-23 12:50:06 -08:00
ksz9477_reg.h net: dsa: microchip: move max mtu to one location 2022-12-07 11:57:58 +01:00
ksz9477.c net: dsa: microchip: enable MTU normalization for KSZ8795 and KSZ9477 compatible switches 2022-12-07 11:57:58 +01:00
ksz9477.h net: dsa: microchip: move max mtu to one location 2022-12-07 11:57:58 +01:00
ksz_common.c net: dsa: microchip: ptp: add packet transmission timestamping 2023-01-13 08:40:41 +00:00
ksz_common.h net: dsa: microchip: ptp: add periodic output signal 2023-01-13 08:40:41 +00:00
ksz_ptp_reg.h net: dsa: microchip: ptp: lan937x: Enable periodic output in LED pins 2023-01-13 08:40:41 +00:00
ksz_ptp.c net: dsa: microchip: ptp: lan937x: Enable periodic output in LED pins 2023-01-13 08:40:41 +00:00
ksz_ptp.h net: dsa: microchip: ptp: add support for perout programmable pins 2023-01-13 08:40:41 +00:00
ksz_spi.c net: dsa: microchip: add dev_err_probe in probe functions 2022-11-09 13:06:01 +00:00
lan937x_main.c net: dsa: microchip: add error checking for ksz_pwrite 2022-11-09 13:06:01 +00:00
lan937x_reg.h net: dsa: microchip: add the support for set_ageing_time 2022-09-16 21:51:47 +01:00
lan937x.h net: dsa: microchip: add the support for set_ageing_time 2022-09-16 21:51:47 +01:00
Makefile net: dsa: microchip: ptp: add the posix clock support 2023-01-13 08:40:40 +00:00