[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240904233100.114611-1-aford173@gmail.com>
Date: Wed, 4 Sep 2024 18:30:28 -0500
From: Adam Ford <aford173@...il.com>
To: linux-phy@...ts.infradead.org
Cc: dominique.martinet@...ark-techno.com,
linux-imx@....com,
festevam@...il.com,
frieder.schrempf@...tron.de,
aford@...conembedded.com,
Sandor.yu@....com,
Adam Ford <aford173@...il.com>,
Vinod Koul <vkoul@...nel.org>,
Kishon Vijay Abraham I <kishon@...nel.org>,
Marco Felsch <m.felsch@...gutronix.de>,
Uwe Kleine-König <u.kleine-koenig@...gutronix.de>,
Lucas Stach <l.stach@...gutronix.de>,
linux-kernel@...r.kernel.org
Subject: [PATCH V6 0/5] phy: freescale: fsl-samsung-hdmi: Expand phy clock options
Currently, there is a look-up-table to describe all the clock options the HDMI PHY
can use. Some of these entries in the LUT are using a fractional divider which does
not have a well documented algorithm for determinging values, but the the integer
divider can use an algorithm to calculate the integer divder values dynamically
beyond those listed in the LUT and also duplicates some of the entries.
The first two patches do not do anything functionally other than simplify
some of the register accesses and de-duplicates some of the register look-ups.
The third patch adds support for the integer divider and uses it whenever the
clock request is an exact match. Otherwise, it will use the LUT as before.
The rouding is still based on the LUT if the integer clock isn't an exact match.
The forth patch updates thes set_rate and round_rate functions to use either
the fractional clock LUT or the the integer divder mechanism to determine
which ever clock rate might be closest match.
The last patch removes the integer divider entries from the LUT since by then
it'll be comparing both the integer divider calculator and the closest value
in the LUT.
In my testing with a AOC 4K monitor, I was able to add 4 entries in my modetest
table. I do not have an HDMI analyzer, so I just used my monitor to determine
if this series worked.
V6: Fix some whitespace
Fix issues with calculating the closest divider
V5: Updates patch 1 of 5 for whitespace and comment updates
Patches 1 and 2 add RB tags
No functional changes from V4
Adam Ford (5):
phy: freescale: fsl-samsung-hdmi: Replace register defines with macro
phy: freescale: fsl-samsung-hdmi: Simplify REG21_PMS_S_MASK lookup
phy: freescale: fsl-samsung-hdmi: Support dynamic integer
phy: freescale: fsl-samsung-hdmi: Use closest divider
phy: freescale: fsl-samsung-hdmi: Remove unnecessary LUT entries
drivers/phy/freescale/phy-fsl-samsung-hdmi.c | 570 ++++++++++---------
1 file changed, 292 insertions(+), 278 deletions(-)
--
2.43.0
Powered by blists - more mailing lists