blob: 416ee6dd25743d97e12f086d25364bb2cca8c169 [file] [log] [blame]
Thomas Gleixner2874c5f2019-05-27 08:55:01 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Marek Vasut69190e62012-09-23 16:58:51 +00002/*
3 * include/linux/micrel_phy.h
4 *
5 * Micrel PHY IDs
Marek Vasut69190e62012-09-23 16:58:51 +00006 */
7
Baruch Siachd606ef32011-02-14 02:05:33 +00008#ifndef _MICREL_PHY_H
9#define _MICREL_PHY_H
10
11#define MICREL_PHY_ID_MASK 0x00fffff0
12
Jean-Christophe PLAGNIOL-VILLARD93272e02012-11-21 05:38:07 +000013#define PHY_ID_KSZ8873MLL 0x000e7237
Nobuhiro Iwamatsu35c57902012-05-21 14:20:08 +000014#define PHY_ID_KSZ9021 0x00221610
Dinh Nguyendc76a1a2013-08-13 09:59:00 -050015#define PHY_ID_KSZ9021RLRN 0x00221611
Baruch Siachd606ef32011-02-14 02:05:33 +000016#define PHY_ID_KS8737 0x00221720
Marek Vasut212ea992012-09-23 16:58:49 +000017#define PHY_ID_KSZ8021 0x00221555
Hector Palaciosb818d1a2013-03-10 22:50:02 +000018#define PHY_ID_KSZ8031 0x00221556
Marek Vasut510d5732012-09-23 16:58:50 +000019#define PHY_ID_KSZ8041 0x00221510
Sergei Shtylyov4bd7b512013-12-10 02:20:41 +030020/* undocumented */
21#define PHY_ID_KSZ8041RNLI 0x00221537
Marek Vasut510d5732012-09-23 16:58:50 +000022#define PHY_ID_KSZ8051 0x00221550
David J. Choi7ab59dc2013-01-23 14:05:15 +000023/* same id: ks8001 Rev. A/B, and ks8721 Rev 3. */
Marek Vasut510d5732012-09-23 16:58:50 +000024#define PHY_ID_KSZ8001 0x0022161A
David J. Choi7ab59dc2013-01-23 14:05:15 +000025/* same id: KS8081, KS8091 */
26#define PHY_ID_KSZ8081 0x00221560
27#define PHY_ID_KSZ8061 0x00221570
28#define PHY_ID_KSZ9031 0x00221620
Yuiko Oshinobff5b4b2018-10-18 15:06:01 -040029#define PHY_ID_KSZ9131 0x00221640
Divya Koppera1623ad82020-09-11 18:48:44 +053030#define PHY_ID_LAN8814 0x00221660
David J. Choi7ab59dc2013-01-23 14:05:15 +000031
32#define PHY_ID_KSZ886X 0x00221430
33#define PHY_ID_KSZ8863 0x00221435
Baruch Siachd606ef32011-02-14 02:05:33 +000034
Marek Vasut1d951ba2019-10-16 15:35:07 +020035#define PHY_ID_KSZ87XX 0x00221550
Sean Nyekjaer9d162ed2017-01-27 08:46:23 +010036
Woojung Huhfc3973a2017-05-31 20:19:13 +000037#define PHY_ID_KSZ9477 0x00221631
38
Baruch Siachd606ef32011-02-14 02:05:33 +000039/* struct phy_device dev_flags definitions */
40#define MICREL_PHY_50MHZ_CLK 0x00000001
Philipp Zabel77501a72016-07-14 16:29:43 +020041#define MICREL_PHY_FXEN 0x00000002
Baruch Siachd606ef32011-02-14 02:05:33 +000042
Dinh Nguyendc76a1a2013-08-13 09:59:00 -050043#define MICREL_KSZ9021_EXTREG_CTRL 0xB
44#define MICREL_KSZ9021_EXTREG_DATA_WRITE 0xC
45#define MICREL_KSZ9021_RGMII_CLK_CTRL_PAD_SCEW 0x104
46#define MICREL_KSZ9021_RGMII_RX_DATA_PAD_SCEW 0x105
47
Baruch Siachd606ef32011-02-14 02:05:33 +000048#endif /* _MICREL_PHY_H */