xref: /openbmc/linux/scripts/dtc/include-prefixes/dt-bindings/net/ti-dp83869.h (revision c95baf12f5077419db01313ab61c2aac007d40cd)
1*4d66c56fSDan Murphy /* SPDX-License-Identifier: GPL-2.0-only */
2*4d66c56fSDan Murphy /*
3*4d66c56fSDan Murphy  * Device Tree constants for the Texas Instruments DP83869 PHY
4*4d66c56fSDan Murphy  *
5*4d66c56fSDan Murphy  * Author: Dan Murphy <dmurphy@ti.com>
6*4d66c56fSDan Murphy  *
7*4d66c56fSDan Murphy  * Copyright:   (C) 2019 Texas Instruments, Inc.
8*4d66c56fSDan Murphy  */
9*4d66c56fSDan Murphy 
10*4d66c56fSDan Murphy #ifndef _DT_BINDINGS_TI_DP83869_H
11*4d66c56fSDan Murphy #define _DT_BINDINGS_TI_DP83869_H
12*4d66c56fSDan Murphy 
13*4d66c56fSDan Murphy /* PHY CTRL bits */
14*4d66c56fSDan Murphy #define DP83869_PHYCR_FIFO_DEPTH_3_B_NIB	0x00
15*4d66c56fSDan Murphy #define DP83869_PHYCR_FIFO_DEPTH_4_B_NIB	0x01
16*4d66c56fSDan Murphy #define DP83869_PHYCR_FIFO_DEPTH_6_B_NIB	0x02
17*4d66c56fSDan Murphy #define DP83869_PHYCR_FIFO_DEPTH_8_B_NIB	0x03
18*4d66c56fSDan Murphy 
19*4d66c56fSDan Murphy /* IO_MUX_CFG - Clock output selection */
20*4d66c56fSDan Murphy #define DP83869_CLK_O_SEL_CHN_A_RCLK		0x0
21*4d66c56fSDan Murphy #define DP83869_CLK_O_SEL_CHN_B_RCLK		0x1
22*4d66c56fSDan Murphy #define DP83869_CLK_O_SEL_CHN_C_RCLK		0x2
23*4d66c56fSDan Murphy #define DP83869_CLK_O_SEL_CHN_D_RCLK		0x3
24*4d66c56fSDan Murphy #define DP83869_CLK_O_SEL_CHN_A_RCLK_DIV5	0x4
25*4d66c56fSDan Murphy #define DP83869_CLK_O_SEL_CHN_B_RCLK_DIV5	0x5
26*4d66c56fSDan Murphy #define DP83869_CLK_O_SEL_CHN_C_RCLK_DIV5	0x6
27*4d66c56fSDan Murphy #define DP83869_CLK_O_SEL_CHN_D_RCLK_DIV5	0x7
28*4d66c56fSDan Murphy #define DP83869_CLK_O_SEL_CHN_A_TCLK		0x8
29*4d66c56fSDan Murphy #define DP83869_CLK_O_SEL_CHN_B_TCLK		0x9
30*4d66c56fSDan Murphy #define DP83869_CLK_O_SEL_CHN_C_TCLK		0xa
31*4d66c56fSDan Murphy #define DP83869_CLK_O_SEL_CHN_D_TCLK		0xb
32*4d66c56fSDan Murphy #define DP83869_CLK_O_SEL_REF_CLK		0xc
33*4d66c56fSDan Murphy 
34*4d66c56fSDan Murphy #define DP83869_RGMII_COPPER_ETHERNET		0x00
35*4d66c56fSDan Murphy #define DP83869_RGMII_1000_BASE			0x01
36*4d66c56fSDan Murphy #define DP83869_RGMII_100_BASE			0x02
37*4d66c56fSDan Murphy #define DP83869_RGMII_SGMII_BRIDGE		0x03
38*4d66c56fSDan Murphy #define DP83869_1000M_MEDIA_CONVERT		0x04
39*4d66c56fSDan Murphy #define DP83869_100M_MEDIA_CONVERT		0x05
40*4d66c56fSDan Murphy #define DP83869_SGMII_COPPER_ETHERNET		0x06
41*4d66c56fSDan Murphy 
42*4d66c56fSDan Murphy #endif
43