Path: blob/main/sys/contrib/device-tree/include/dt-bindings/net/ti-dp83867.h
48406 views
/* SPDX-License-Identifier: GPL-2.0-only OR MIT */1/*2* Device Tree constants for the Texas Instruments DP83867 PHY3*4* Author: Dan Murphy <[email protected]>5*6* Copyright (C) 2015-2024 Texas Instruments Incorporated - https://www.ti.com/7*/89#ifndef _DT_BINDINGS_TI_DP83867_H10#define _DT_BINDINGS_TI_DP83867_H1112/* PHY CTRL bits */13#define DP83867_PHYCR_FIFO_DEPTH_3_B_NIB 0x0014#define DP83867_PHYCR_FIFO_DEPTH_4_B_NIB 0x0115#define DP83867_PHYCR_FIFO_DEPTH_6_B_NIB 0x0216#define DP83867_PHYCR_FIFO_DEPTH_8_B_NIB 0x031718/* RGMIIDCTL internal delay for rx and tx */19#define DP83867_RGMIIDCTL_250_PS 0x020#define DP83867_RGMIIDCTL_500_PS 0x121#define DP83867_RGMIIDCTL_750_PS 0x222#define DP83867_RGMIIDCTL_1_NS 0x323#define DP83867_RGMIIDCTL_1_25_NS 0x424#define DP83867_RGMIIDCTL_1_50_NS 0x525#define DP83867_RGMIIDCTL_1_75_NS 0x626#define DP83867_RGMIIDCTL_2_00_NS 0x727#define DP83867_RGMIIDCTL_2_25_NS 0x828#define DP83867_RGMIIDCTL_2_50_NS 0x929#define DP83867_RGMIIDCTL_2_75_NS 0xa30#define DP83867_RGMIIDCTL_3_00_NS 0xb31#define DP83867_RGMIIDCTL_3_25_NS 0xc32#define DP83867_RGMIIDCTL_3_50_NS 0xd33#define DP83867_RGMIIDCTL_3_75_NS 0xe34#define DP83867_RGMIIDCTL_4_00_NS 0xf3536/* IO_MUX_CFG - Clock output selection */37#define DP83867_CLK_O_SEL_CHN_A_RCLK 0x038#define DP83867_CLK_O_SEL_CHN_B_RCLK 0x139#define DP83867_CLK_O_SEL_CHN_C_RCLK 0x240#define DP83867_CLK_O_SEL_CHN_D_RCLK 0x341#define DP83867_CLK_O_SEL_CHN_A_RCLK_DIV5 0x442#define DP83867_CLK_O_SEL_CHN_B_RCLK_DIV5 0x543#define DP83867_CLK_O_SEL_CHN_C_RCLK_DIV5 0x644#define DP83867_CLK_O_SEL_CHN_D_RCLK_DIV5 0x745#define DP83867_CLK_O_SEL_CHN_A_TCLK 0x846#define DP83867_CLK_O_SEL_CHN_B_TCLK 0x947#define DP83867_CLK_O_SEL_CHN_C_TCLK 0xA48#define DP83867_CLK_O_SEL_CHN_D_TCLK 0xB49#define DP83867_CLK_O_SEL_REF_CLK 0xC50/* Special flag to indicate clock should be off */51#define DP83867_CLK_O_SEL_OFF 0xFFFFFFFF52#endif535455