Skip to content

Commit

Permalink
dt-bindings: clock: Add ids for Lynx 10g PLLs
Browse files Browse the repository at this point in the history
This adds ids for the Lynx 10g SerDes's internal PLLs. These may be used
with assigned-clock* to specify a particular frequency to use. For
example, to set the second PLL (at offset 0x20)'s frequency, use
LYNX10G_PLLa(1). These are for use only in the device tree, and are not
otherwise used by the driver.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Acked-by: Rob Herring <robh@kernel.org>
  • Loading branch information
sean-anderson-seco authored and intel-lab-lkp committed Oct 18, 2022
1 parent b24f6ab commit ab8164a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions include/dt-bindings/clock/fsl,lynx-10g.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause */
/*
* Copyright (C) 2022 Sean Anderson <sean.anderson@seco.com>
*/

#ifndef __DT_BINDINGS_CLK_LYNX_10G_H
#define __DT_BINDINGS_CLK_LYNX_10G_H

#define LYNX10G_CLKS_PER_PLL 2

#define LYNX10G_PLLa(a) ((a) * LYNX10G_CLKS_PER_PLL)
#define LYNX10G_PLLa_EX_DLY(a) ((a) * LYNX10G_CLKS_PER_PLL + 1)

#endif /* __DT_BINDINGS_CLK_LYNX_10G_H */

0 comments on commit ab8164a

Please sign in to comment.